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
66686e44
Kaydet (Commit)
66686e44
authored
Ara 09, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
guard against infinite recursion on registering styles
Change-Id: Iabedfcce9d8ef21172e6bd0d654f3a258aae97e3
üst
a0c4ce34
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
36 additions
and
25 deletions
+36
-25
lwp9reader.cxx
lotuswordpro/source/filter/lwp9reader.cxx
+1
-1
lwpcelllayout.cxx
lotuswordpro/source/filter/lwpcelllayout.cxx
+1
-1
lwpdoc.cxx
lotuswordpro/source/filter/lwpdoc.cxx
+5
-5
lwpfnlayout.cxx
lotuswordpro/source/filter/lwpfnlayout.cxx
+2
-2
lwpfootnote.cxx
lotuswordpro/source/filter/lwpfootnote.cxx
+1
-1
lwpfoundry.cxx
lotuswordpro/source/filter/lwpfoundry.cxx
+4
-4
lwpframelayout.cxx
lotuswordpro/source/filter/lwpframelayout.cxx
+1
-1
lwpfribframe.cxx
lotuswordpro/source/filter/lwpfribframe.cxx
+1
-1
lwplayout.cxx
lotuswordpro/source/filter/lwplayout.cxx
+1
-1
lwpnotes.cxx
lotuswordpro/source/filter/lwpnotes.cxx
+3
-3
lwpobj.cxx
lotuswordpro/source/filter/lwpobj.cxx
+1
-1
lwpobj.hxx
lotuswordpro/source/filter/lwpobj.hxx
+12
-1
lwppagelayout.cxx
lotuswordpro/source/filter/lwppagelayout.cxx
+2
-2
lwpvpointer.cxx
lotuswordpro/source/filter/lwpvpointer.cxx
+1
-1
No files found.
lotuswordpro/source/filter/lwp9reader.cxx
Dosyayı görüntüle @
66686e44
...
@@ -148,7 +148,7 @@ void Lwp9Reader::ParseDocument()
...
@@ -148,7 +148,7 @@ void Lwp9Reader::ParseDocument()
//Register Styles
//Register Styles
RegisteArrowStyles
();
RegisteArrowStyles
();
doc
->
RegisterStyle
();
doc
->
Do
RegisterStyle
();
XFStyleManager
*
pXFStyleManager
=
LwpGlobalMgr
::
GetInstance
()
->
GetXFStyleManager
();
XFStyleManager
*
pXFStyleManager
=
LwpGlobalMgr
::
GetInstance
()
->
GetXFStyleManager
();
pXFStyleManager
->
ToXml
(
m_pStream
);
pXFStyleManager
->
ToXml
(
m_pStream
);
...
...
lotuswordpro/source/filter/lwpcelllayout.cxx
Dosyayı görüntüle @
66686e44
...
@@ -597,7 +597,7 @@ void LwpCellLayout::RegisterStyle()
...
@@ -597,7 +597,7 @@ void LwpCellLayout::RegisterStyle()
if
(
pObj
.
is
())
if
(
pObj
.
is
())
{
{
pObj
->
SetFoundry
(
m_pFoundry
);
pObj
->
SetFoundry
(
m_pFoundry
);
pObj
->
RegisterStyle
();
pObj
->
Do
RegisterStyle
();
}
}
//register child layout style
//register child layout style
...
...
lotuswordpro/source/filter/lwpdoc.cxx
Dosyayı görüntüle @
66686e44
...
@@ -224,7 +224,7 @@ void LwpDocument::RegisterStyle()
...
@@ -224,7 +224,7 @@ void LwpDocument::RegisterStyle()
rtl
::
Reference
<
LwpObject
>
pDocSock
=
GetSocket
().
obj
();
rtl
::
Reference
<
LwpObject
>
pDocSock
=
GetSocket
().
obj
();
if
(
pDocSock
.
is
())
if
(
pDocSock
.
is
())
{
{
pDocSock
->
RegisterStyle
();
pDocSock
->
Do
RegisterStyle
();
}
}
}
}
/**
/**
...
@@ -322,7 +322,7 @@ void LwpDocument::RegisterGraphicsStyles()
...
@@ -322,7 +322,7 @@ void LwpDocument::RegisterGraphicsStyles()
if
(
pGraphic
.
is
())
if
(
pGraphic
.
is
())
{
{
pGraphic
->
SetFoundry
(
m_pFoundry
);
pGraphic
->
SetFoundry
(
m_pFoundry
);
pGraphic
->
RegisterStyle
();
pGraphic
->
Do
RegisterStyle
();
}
}
}
}
/**
/**
...
@@ -619,7 +619,7 @@ LwpDocument* LwpDocument::GetPreviousDivision()
...
@@ -619,7 +619,7 @@ LwpDocument* LwpDocument::GetPreviousDivision()
LwpDocument
*
pDivision
=
GetFirstDivision
();
LwpDocument
*
pDivision
=
GetFirstDivision
();
while
(
pDivision
)
while
(
pDivision
&&
pDivision
!=
this
)
{
{
LwpDocument
*
pContentDivision
=
pDivision
->
GetFirstDivisionWithContentsThatIsNotOLE
();
LwpDocument
*
pContentDivision
=
pDivision
->
GetFirstDivisionWithContentsThatIsNotOLE
();
if
(
pContentDivision
)
if
(
pContentDivision
)
...
@@ -782,11 +782,11 @@ void LwpDocSock::RegisterStyle()
...
@@ -782,11 +782,11 @@ void LwpDocSock::RegisterStyle()
{
{
rtl
::
Reference
<
LwpObject
>
pDoc
=
GetNext
().
obj
();
rtl
::
Reference
<
LwpObject
>
pDoc
=
GetNext
().
obj
();
if
(
pDoc
.
is
())
if
(
pDoc
.
is
())
pDoc
->
RegisterStyle
();
pDoc
->
Do
RegisterStyle
();
pDoc
=
GetChildHead
().
obj
();
pDoc
=
GetChildHead
().
obj
();
if
(
pDoc
.
is
())
if
(
pDoc
.
is
())
pDoc
->
RegisterStyle
();
pDoc
->
Do
RegisterStyle
();
}
}
/**
/**
* @descr parse contents of documents plugged
* @descr parse contents of documents plugged
...
...
lotuswordpro/source/filter/lwpfnlayout.cxx
Dosyayı görüntüle @
66686e44
...
@@ -160,7 +160,7 @@ void LwpFnCellLayout::RegisterStyle()
...
@@ -160,7 +160,7 @@ void LwpFnCellLayout::RegisterStyle()
if
(
pObj
.
is
())
if
(
pObj
.
is
())
{
{
pObj
->
SetFoundry
(
m_pFoundry
);
pObj
->
SetFoundry
(
m_pFoundry
);
pObj
->
RegisterStyle
();
pObj
->
Do
RegisterStyle
();
}
}
}
}
...
@@ -237,7 +237,7 @@ void LwpEnSuperTableLayout::RegisterStyle()
...
@@ -237,7 +237,7 @@ void LwpEnSuperTableLayout::RegisterStyle()
if
(
pTableLayout
!=
nullptr
)
if
(
pTableLayout
!=
nullptr
)
{
{
pTableLayout
->
SetFoundry
(
m_pFoundry
);
pTableLayout
->
SetFoundry
(
m_pFoundry
);
pTableLayout
->
RegisterStyle
();
pTableLayout
->
Do
RegisterStyle
();
}
}
}
}
...
...
lotuswordpro/source/filter/lwpfootnote.cxx
Dosyayı görüntüle @
66686e44
...
@@ -174,7 +174,7 @@ void LwpFootnote::RegisterStyle()
...
@@ -174,7 +174,7 @@ void LwpFootnote::RegisterStyle()
if
(
pContent
)
if
(
pContent
)
{
{
pContent
->
SetFoundry
(
m_pFoundry
);
pContent
->
SetFoundry
(
m_pFoundry
);
pContent
->
RegisterStyle
();
pContent
->
Do
RegisterStyle
();
}
}
}
}
}
}
...
...
lotuswordpro/source/filter/lwpfoundry.cxx
Dosyayı görüntüle @
66686e44
...
@@ -188,7 +188,7 @@ void LwpFoundry::RegisterAllLayouts()
...
@@ -188,7 +188,7 @@ void LwpFoundry::RegisterAllLayouts()
if
(
pStyle
.
is
()
)
if
(
pStyle
.
is
()
)
{
{
pStyle
->
SetFoundry
(
this
);
pStyle
->
SetFoundry
(
this
);
pStyle
->
RegisterStyle
();
pStyle
->
Do
RegisterStyle
();
}
}
//register content page layout list: Layout
//register content page layout list: Layout
...
@@ -196,7 +196,7 @@ void LwpFoundry::RegisterAllLayouts()
...
@@ -196,7 +196,7 @@ void LwpFoundry::RegisterAllLayouts()
if
(
pStyle
.
is
()
)
if
(
pStyle
.
is
()
)
{
{
pStyle
->
SetFoundry
(
this
);
pStyle
->
SetFoundry
(
this
);
pStyle
->
RegisterStyle
();
pStyle
->
Do
RegisterStyle
();
}
}
//Register page style layout list: PageStyle, such as "Default Page"
//Register page style layout list: PageStyle, such as "Default Page"
...
@@ -204,7 +204,7 @@ void LwpFoundry::RegisterAllLayouts()
...
@@ -204,7 +204,7 @@ void LwpFoundry::RegisterAllLayouts()
if
(
pStyle
.
is
()
)
if
(
pStyle
.
is
()
)
{
{
pStyle
->
SetFoundry
(
this
);
pStyle
->
SetFoundry
(
this
);
pStyle
->
RegisterStyle
();
pStyle
->
Do
RegisterStyle
();
}
}
//Register FrameStyle
//Register FrameStyle
...
@@ -212,7 +212,7 @@ void LwpFoundry::RegisterAllLayouts()
...
@@ -212,7 +212,7 @@ void LwpFoundry::RegisterAllLayouts()
if
(
pStyle
.
is
()
)
if
(
pStyle
.
is
()
)
{
{
pStyle
->
SetFoundry
(
this
);
pStyle
->
SetFoundry
(
this
);
pStyle
->
RegisterStyle
();
pStyle
->
Do
RegisterStyle
();
}
}
}
}
...
...
lotuswordpro/source/filter/lwpframelayout.cxx
Dosyayı görüntüle @
66686e44
...
@@ -862,7 +862,7 @@ void LwpFrameLayout::RegisterStyle()
...
@@ -862,7 +862,7 @@ void LwpFrameLayout::RegisterStyle()
if
(
content
.
is
())
if
(
content
.
is
())
{
{
content
->
SetFoundry
(
m_pFoundry
);
content
->
SetFoundry
(
m_pFoundry
);
content
->
RegisterStyle
();
content
->
Do
RegisterStyle
();
}
}
//register child frame style
//register child frame style
...
...
lotuswordpro/source/filter/lwpfribframe.cxx
Dosyayı görüntüle @
66686e44
...
@@ -102,7 +102,7 @@ void LwpFribFrame::RegisterStyle(LwpFoundry* pFoundry)
...
@@ -102,7 +102,7 @@ void LwpFribFrame::RegisterStyle(LwpFoundry* pFoundry)
if
(
!
pLayout
)
if
(
!
pLayout
)
return
;
return
;
pLayout
->
SetFoundry
(
pFoundry
);
pLayout
->
SetFoundry
(
pFoundry
);
pLayout
->
RegisterStyle
();
pLayout
->
Do
RegisterStyle
();
//register next frib text style
//register next frib text style
sal_uInt8
nType
=
pLayout
->
GetRelativeType
();
sal_uInt8
nType
=
pLayout
->
GetRelativeType
();
...
...
lotuswordpro/source/filter/lwplayout.cxx
Dosyayı görüntüle @
66686e44
...
@@ -486,7 +486,7 @@ void LwpHeadLayout::RegisterStyle()
...
@@ -486,7 +486,7 @@ void LwpHeadLayout::RegisterStyle()
OSL_FAIL
(
"Layout points to itself"
);
OSL_FAIL
(
"Layout points to itself"
);
break
;
break
;
}
}
pLayout
->
RegisterStyle
();
pLayout
->
Do
RegisterStyle
();
}
}
LwpVirtualLayout
*
pNext
=
dynamic_cast
<
LwpVirtualLayout
*>
(
pLayout
->
GetNext
().
obj
().
get
());
LwpVirtualLayout
*
pNext
=
dynamic_cast
<
LwpVirtualLayout
*>
(
pLayout
->
GetNext
().
obj
().
get
());
if
(
pNext
==
pLayout
)
if
(
pNext
==
pLayout
)
...
...
lotuswordpro/source/filter/lwpnotes.cxx
Dosyayı görüntüle @
66686e44
...
@@ -89,7 +89,7 @@ void LwpFribNote::RegisterNewStyle()
...
@@ -89,7 +89,7 @@ void LwpFribNote::RegisterNewStyle()
LwpFrib
::
RegisterStyle
(
m_pPara
->
GetFoundry
());
LwpFrib
::
RegisterStyle
(
m_pPara
->
GetFoundry
());
//register foonote style
//register foonote style
pLayout
->
SetFoundry
(
m_pPara
->
GetFoundry
());
pLayout
->
SetFoundry
(
m_pPara
->
GetFoundry
());
pLayout
->
RegisterStyle
();
pLayout
->
Do
RegisterStyle
();
}
}
}
}
...
@@ -169,7 +169,7 @@ void LwpNoteLayout::RegisterStyle()
...
@@ -169,7 +169,7 @@ void LwpNoteLayout::RegisterStyle()
if
(
pTextLayout
)
if
(
pTextLayout
)
{
{
pTextLayout
->
SetFoundry
(
GetFoundry
());
pTextLayout
->
SetFoundry
(
GetFoundry
());
pTextLayout
->
RegisterStyle
();
pTextLayout
->
Do
RegisterStyle
();
}
}
}
}
...
@@ -281,7 +281,7 @@ void LwpNoteTextLayout::RegisterStyle()
...
@@ -281,7 +281,7 @@ void LwpNoteTextLayout::RegisterStyle()
if
(
pContent
.
is
())
if
(
pContent
.
is
())
{
{
pContent
->
SetFoundry
(
GetFoundry
());
pContent
->
SetFoundry
(
GetFoundry
());
pContent
->
RegisterStyle
();
pContent
->
Do
RegisterStyle
();
}
}
}
}
...
...
lotuswordpro/source/filter/lwpobj.cxx
Dosyayı görüntüle @
66686e44
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
* @descr construct lwpobject from stream
* @descr construct lwpobject from stream
*/
*/
LwpObject
::
LwpObject
(
LwpObjectHeader
objHdr
,
LwpSvStream
*
pStrm
)
LwpObject
::
LwpObject
(
LwpObjectHeader
objHdr
,
LwpSvStream
*
pStrm
)
:
m_ObjHdr
(
objHdr
),
m_pObjStrm
(
nullptr
),
m_pFoundry
(
nullptr
),
m_pStrm
(
pStrm
)
:
m_ObjHdr
(
objHdr
),
m_pObjStrm
(
nullptr
),
m_pFoundry
(
nullptr
),
m_pStrm
(
pStrm
)
,
m_bRegisteringStyle
(
false
)
{
{
m_pObjStrm
=
new
LwpObjectStream
(
pStrm
,
m_ObjHdr
.
IsCompressed
(),
m_pObjStrm
=
new
LwpObjectStream
(
pStrm
,
m_ObjHdr
.
IsCompressed
(),
static_cast
<
sal_uInt16
>
(
m_ObjHdr
.
GetSize
())
);
static_cast
<
sal_uInt16
>
(
m_ObjHdr
.
GetSize
())
);
...
...
lotuswordpro/source/filter/lwpobj.hxx
Dosyayı görüntüle @
66686e44
...
@@ -88,11 +88,22 @@ protected:
...
@@ -88,11 +88,22 @@ protected:
LwpObjectStream
*
m_pObjStrm
;
LwpObjectStream
*
m_pObjStrm
;
LwpFoundry
*
m_pFoundry
;
LwpFoundry
*
m_pFoundry
;
LwpSvStream
*
m_pStrm
;
LwpSvStream
*
m_pStrm
;
bool
m_bRegisteringStyle
;
protected
:
protected
:
virtual
void
Read
();
virtual
void
Read
();
virtual
void
RegisterStyle
();
public
:
public
:
void
QuickRead
();
void
QuickRead
();
virtual
void
RegisterStyle
();
//calls RegisterStyle but bails if DoRegisterStyle is called
//on the same object recursively
void
DoRegisterStyle
()
{
if
(
m_bRegisteringStyle
)
throw
std
::
runtime_error
(
"recursion in styles"
);
m_bRegisteringStyle
=
true
;
RegisterStyle
();
m_bRegisteringStyle
=
false
;
}
virtual
void
Parse
(
IXFStream
*
pOutputStream
);
virtual
void
Parse
(
IXFStream
*
pOutputStream
);
virtual
void
XFConvert
(
XFContentContainer
*
pCont
);
virtual
void
XFConvert
(
XFContentContainer
*
pCont
);
...
...
lotuswordpro/source/filter/lwppagelayout.cxx
Dosyayı görüntüle @
66686e44
...
@@ -881,7 +881,7 @@ void LwpHeaderLayout::RegisterStyle(XFMasterPage* mp1)
...
@@ -881,7 +881,7 @@ void LwpHeaderLayout::RegisterStyle(XFMasterPage* mp1)
//Call the RegisterStyle first to register the styles in header paras, and then XFConvert()
//Call the RegisterStyle first to register the styles in header paras, and then XFConvert()
pStory
->
SetFoundry
(
m_pFoundry
);
pStory
->
SetFoundry
(
m_pFoundry
);
pStory
->
RegisterStyle
();
pStory
->
Do
RegisterStyle
();
//, 06/27/2005
//, 06/27/2005
//register child layout style for framelayout,
//register child layout style for framelayout,
RegisterChildStyle
();
RegisterChildStyle
();
...
@@ -1034,7 +1034,7 @@ void LwpFooterLayout::RegisterStyle(XFMasterPage* mp1)
...
@@ -1034,7 +1034,7 @@ void LwpFooterLayout::RegisterStyle(XFMasterPage* mp1)
pChangeMgr
->
SetHeadFootFribMap
(
true
);
pChangeMgr
->
SetHeadFootFribMap
(
true
);
pStory
->
SetFoundry
(
m_pFoundry
);
pStory
->
SetFoundry
(
m_pFoundry
);
pStory
->
RegisterStyle
();
pStory
->
Do
RegisterStyle
();
//register child layout style for framelayout,
//register child layout style for framelayout,
RegisterChildStyle
();
RegisterChildStyle
();
...
...
lotuswordpro/source/filter/lwpvpointer.cxx
Dosyayı görüntüle @
66686e44
...
@@ -77,7 +77,7 @@ void LwpVersionedPointer::RegisterStyle()
...
@@ -77,7 +77,7 @@ void LwpVersionedPointer::RegisterStyle()
if
(
pObj
.
is
()
)
if
(
pObj
.
is
()
)
{
{
pObj
->
SetFoundry
(
m_pFoundry
);
pObj
->
SetFoundry
(
m_pFoundry
);
pObj
->
RegisterStyle
();
pObj
->
Do
RegisterStyle
();
}
}
}
}
...
...
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