Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
012bdecf
Kaydet (Commit)
012bdecf
authored
Ara 13, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
more lifecycle protection
Change-Id: I158632de6898685e34d362cc274e959bb5c2e2d7
üst
69d166a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
25 deletions
+23
-25
lwpstory.cxx
lotuswordpro/source/filter/lwpstory.cxx
+23
-25
No files found.
lotuswordpro/source/filter/lwpstory.cxx
Dosyayı görüntüle @
012bdecf
...
...
@@ -301,21 +301,19 @@ void LwpStory::XFConvertFrameInCell(XFContentContainer* pCont)
rtl
::
Reference
<
LwpVirtualLayout
>
xLayout
(
GetLayout
(
nullptr
));
while
(
xLayout
.
is
())
{
LwpVirtualLayout
*
pFrameLayout
=
dynamic_cast
<
LwpVirtualLayout
*>
(
xLayout
->
GetChildHead
().
obj
().
get
(
));
while
(
pFrameLayout
)
rtl
::
Reference
<
LwpVirtualLayout
>
xFrameLayout
(
dynamic_cast
<
LwpVirtualLayout
*>
(
xLayout
->
GetChildHead
().
obj
().
get
()
));
while
(
xFrameLayout
.
is
()
)
{
//if(pFrameLayout->IsAnchorCell())
if
(
pFrameLayout
->
IsAnchorCell
()
&&
pFrameLayout
->
HasContent
())
if
(
xFrameLayout
->
IsAnchorCell
()
&&
xFrameLayout
->
HasContent
())
{
//get the first xfpara
rtl
::
Reference
<
XFContent
>
first
(
pCont
->
FindFirstContent
(
enumXFContentPara
));
XFContentContainer
*
pXFFirtPara
=
static_cast
<
XFContentContainer
*>
(
first
.
get
());
if
(
pXFFirtPara
)
p
FrameLayout
->
XFConvert
(
pXFFirtPara
);
x
FrameLayout
->
XFConvert
(
pXFFirtPara
);
}
pFrameLayout
=
dynamic_cast
<
LwpVirtualLayout
*>
(
pFrameLayout
->
GetNext
().
obj
().
get
(
));
xFrameLayout
.
set
(
dynamic_cast
<
LwpVirtualLayout
*>
(
xFrameLayout
->
GetNext
().
obj
().
get
()
));
}
xLayout
=
GetLayout
(
xLayout
.
get
());
}
...
...
@@ -329,17 +327,17 @@ void LwpStory::XFConvertFrameInPage(XFContentContainer* pCont)
rtl
::
Reference
<
LwpVirtualLayout
>
xLayout
(
GetLayout
(
nullptr
));
while
(
xLayout
.
is
())
{
LwpVirtualLayout
*
pFrameLayout
=
dynamic_cast
<
LwpVirtualLayout
*>
(
xLayout
->
GetChildHead
().
obj
().
get
(
));
while
(
pFrameLayout
)
rtl
::
Reference
<
LwpVirtualLayout
>
xFrameLayout
(
dynamic_cast
<
LwpVirtualLayout
*>
(
xLayout
->
GetChildHead
().
obj
().
get
()
));
while
(
xFrameLayout
.
is
()
)
{
if
((
p
FrameLayout
->
IsAnchorPage
()
&&
(
p
FrameLayout
->
IsFrame
()
||
p
FrameLayout
->
IsSuperTable
()
||
p
FrameLayout
->
IsGroupHead
())))
if
((
x
FrameLayout
->
IsAnchorPage
()
&&
(
x
FrameLayout
->
IsFrame
()
||
x
FrameLayout
->
IsSuperTable
()
||
x
FrameLayout
->
IsGroupHead
())))
{
p
FrameLayout
->
XFConvert
(
pCont
);
x
FrameLayout
->
XFConvert
(
pCont
);
}
pFrameLayout
=
dynamic_cast
<
LwpVirtualLayout
*>
(
pFrameLayout
->
GetNext
().
obj
().
get
(
));
xFrameLayout
.
set
(
dynamic_cast
<
LwpVirtualLayout
*>
(
xFrameLayout
->
GetNext
().
obj
().
get
()
));
}
xLayout
=
GetLayout
(
xLayout
.
get
());
}
...
...
@@ -352,14 +350,14 @@ void LwpStory::XFConvertFrameInFrame(XFContentContainer* pCont)
rtl
::
Reference
<
LwpVirtualLayout
>
xLayout
(
GetLayout
(
nullptr
));
while
(
xLayout
.
get
())
{
LwpVirtualLayout
*
pFrameLayout
=
dynamic_cast
<
LwpVirtualLayout
*>
(
xLayout
->
GetChildHead
().
obj
().
get
(
));
while
(
pFrameLayout
)
rtl
::
Reference
<
LwpVirtualLayout
>
xFrameLayout
(
dynamic_cast
<
LwpVirtualLayout
*>
(
xLayout
->
GetChildHead
().
obj
().
get
()
));
while
(
xFrameLayout
.
is
()
)
{
if
(
p
FrameLayout
->
IsAnchorFrame
())
if
(
x
FrameLayout
->
IsAnchorFrame
())
{
p
FrameLayout
->
XFConvert
(
pCont
);
x
FrameLayout
->
XFConvert
(
pCont
);
}
pFrameLayout
=
dynamic_cast
<
LwpVirtualLayout
*>
(
pFrameLayout
->
GetNext
().
obj
().
get
(
));
xFrameLayout
.
set
(
dynamic_cast
<
LwpVirtualLayout
*>
(
xFrameLayout
->
GetNext
().
obj
().
get
()
));
}
xLayout
=
GetLayout
(
xLayout
.
get
());
}
...
...
@@ -372,19 +370,19 @@ void LwpStory::XFConvertFrameInHeaderFooter(XFContentContainer* pCont)
rtl
::
Reference
<
LwpVirtualLayout
>
xLayout
(
GetLayout
(
nullptr
));
while
(
xLayout
.
is
())
{
LwpVirtualLayout
*
pFrameLayout
=
dynamic_cast
<
LwpVirtualLayout
*>
(
xLayout
->
GetChildHead
().
obj
().
get
(
));
while
(
pFrameLayout
)
rtl
::
Reference
<
LwpVirtualLayout
>
xFrameLayout
(
dynamic_cast
<
LwpVirtualLayout
*>
(
xLayout
->
GetChildHead
().
obj
().
get
()
));
while
(
xFrameLayout
.
is
()
)
{
if
(
p
FrameLayout
->
IsAnchorPage
()
&&
(
xLayout
->
IsHeader
()
||
xLayout
->
IsFooter
()))
if
(
x
FrameLayout
->
IsAnchorPage
()
&&
(
xLayout
->
IsHeader
()
||
xLayout
->
IsFooter
()))
{
//The frame must be included by <text:p>
rtl
::
Reference
<
XFContent
>
first
(
pCont
->
FindFirstContent
(
enumXFContentPara
));
XFContentContainer
*
pXFFirtPara
=
static_cast
<
XFContentContainer
*>
(
first
.
get
());
if
(
pXFFirtPara
)
p
FrameLayout
->
XFConvert
(
pXFFirtPara
);
x
FrameLayout
->
XFConvert
(
pXFFirtPara
);
}
pFrameLayout
=
dynamic_cast
<
LwpVirtualLayout
*>
(
pFrameLayout
->
GetNext
().
obj
().
get
(
));
xFrameLayout
.
set
(
dynamic_cast
<
LwpVirtualLayout
*>
(
xFrameLayout
->
GetNext
().
obj
().
get
()
));
}
xLayout
=
GetLayout
(
xLayout
.
get
());
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment