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
0876868a
Kaydet (Commit)
0876868a
authored
Ara 13, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use more references to fix life cycles
Change-Id: I54931f0dccabb2d9a58cc92ef5ebf3469f93f03c
üst
4df183e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
29 deletions
+12
-29
lwpstory.cxx
lotuswordpro/source/filter/lwpstory.cxx
+12
-29
No files found.
lotuswordpro/source/filter/lwpstory.cxx
Dosyayı görüntüle @
0876868a
...
...
@@ -100,15 +100,15 @@ void LwpStory::XFConvert(XFContentContainer* pCont)
XFConvertFrameInFrame
(
pCont
);
//process para list
XFContentContainer
*
pParaCont
=
pCont
;
LwpPara
*
pPara
=
dynamic_cast
<
LwpPara
*>
(
GetFirstPara
().
obj
().
get
()
);
while
(
pPara
)
rtl
::
Reference
<
LwpPara
>
xPara
(
dynamic_cast
<
LwpPara
*>
(
GetFirstPara
().
obj
().
get
())
);
while
(
xPara
.
is
()
)
{
p
Para
->
SetFoundry
(
m_pFoundry
);
p
Para
->
XFConvert
(
pParaCont
);
x
Para
->
SetFoundry
(
m_pFoundry
);
x
Para
->
XFConvert
(
pParaCont
);
//Get the xfcontainer for the next para
pParaCont
=
p
Para
->
GetXFContainer
();
pPara
=
dynamic_cast
<
LwpPara
*>
(
pPara
->
GetNext
().
obj
().
get
()
);
pParaCont
=
x
Para
->
GetXFContainer
();
xPara
.
set
(
dynamic_cast
<
LwpPara
*>
(
xPara
->
GetNext
().
obj
().
get
())
);
}
//process frame which anchor is to cell after converter all the para
...
...
@@ -116,15 +116,15 @@ void LwpStory::XFConvert(XFContentContainer* pCont)
XFConvertFrameInHeaderFooter
(
pCont
);
//Release Lwp Objects
LwpPara
*
pCur
=
dynamic_cast
<
LwpPara
*>
(
GetFirstPara
().
obj
().
get
(
));
LwpPara
*
p
Next
;
while
(
pCur
)
rtl
::
Reference
<
LwpPara
>
xCur
(
dynamic_cast
<
LwpPara
*>
(
GetFirstPara
().
obj
().
get
()
));
rtl
::
Reference
<
LwpPara
>
x
Next
;
while
(
xCur
.
is
()
)
{
pNext
=
dynamic_cast
<
LwpPara
*>
(
pCur
->
GetNext
().
obj
().
get
()
);
xNext
.
set
(
dynamic_cast
<
LwpPara
*>
(
xCur
->
GetNext
().
obj
().
get
())
);
LwpGlobalMgr
*
pGlobal
=
LwpGlobalMgr
::
GetInstance
();
LwpObjectFactory
*
pObjMgr
=
pGlobal
->
GetLwpObjFactory
();
pObjMgr
->
ReleaseObject
(
p
Cur
->
GetObjectID
());
pCur
=
p
Next
;
pObjMgr
->
ReleaseObject
(
x
Cur
->
GetObjectID
());
xCur
=
x
Next
;
}
}
...
...
@@ -146,23 +146,6 @@ void LwpStory::Parse(IXFStream* pOutputStream)
m_pXFContainer
->
ToXml
(
pOutputStream
);
delete
m_pXFContainer
;
m_pXFContainer
=
nullptr
;
//It seems that, currently, we do not need to process the child story
/*LwpObject* pChildStory = GetFirstStory()->obj();
if(pChildStory)
{
pChildStory->SetFoundry(m_pFoundry);
pChildStory->Parse(pOutputStream);
}*/
//Don't process the next story
/* LwpObject* pNextStory = GetNextStory()->obj();
if(pNextStory)
{
pNextStory->SetFoundry(m_pFoundry);
pNextStory->Parse(pOutputStream);
}*/
}
#include "lwppagelayout.hxx"
...
...
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