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
411dc205
Kaydet (Commit)
411dc205
authored
Ara 12, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
check all obj().get() casts with dynamic_cast
Change-Id: I763aa5874d0c1f977decff88414eea6247f96405
üst
25632b8f
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
52 additions
and
65 deletions
+52
-65
lwpdivinfo.cxx
lotuswordpro/source/filter/lwpdivinfo.cxx
+2
-2
lwpfnlayout.cxx
lotuswordpro/source/filter/lwpfnlayout.cxx
+5
-5
lwpfoundry.cxx
lotuswordpro/source/filter/lwpfoundry.cxx
+9
-9
lwpframelayout.cxx
lotuswordpro/source/filter/lwpframelayout.cxx
+4
-5
lwpfrib.cxx
lotuswordpro/source/filter/lwpfrib.cxx
+1
-1
lwpfribbreaks.cxx
lotuswordpro/source/filter/lwpfribbreaks.cxx
+0
-3
lwpfribsection.cxx
lotuswordpro/source/filter/lwpfribsection.cxx
+16
-25
lwpnotes.cxx
lotuswordpro/source/filter/lwpnotes.cxx
+2
-2
lwpproplist.cxx
lotuswordpro/source/filter/lwpproplist.cxx
+2
-2
lwptablelayout.cxx
lotuswordpro/source/filter/lwptablelayout.cxx
+8
-8
lwptblcell.cxx
lotuswordpro/source/filter/lwptblcell.cxx
+1
-1
lwptblcell.hxx
lotuswordpro/source/filter/lwptblcell.hxx
+1
-1
lwptblformula.cxx
lotuswordpro/source/filter/lwptblformula.cxx
+1
-1
No files found.
lotuswordpro/source/filter/lwpdivinfo.cxx
Dosyayı görüntüle @
411dc205
...
@@ -162,10 +162,10 @@ sal_uInt16 LwpDivInfo::GetMaxNumberOfPages()
...
@@ -162,10 +162,10 @@ sal_uInt16 LwpDivInfo::GetMaxNumberOfPages()
LwpDocument
*
pDiv
=
GetDivision
();
LwpDocument
*
pDiv
=
GetDivision
();
if
(
!
pDiv
)
if
(
!
pDiv
)
return
0
;
return
0
;
LwpDLVListHeadTailHolder
*
pHeadTail
=
stat
ic_cast
<
LwpDLVListHeadTailHolder
*>
(
pDiv
->
GetPageHintsID
().
obj
().
get
());
LwpDLVListHeadTailHolder
*
pHeadTail
=
dynam
ic_cast
<
LwpDLVListHeadTailHolder
*>
(
pDiv
->
GetPageHintsID
().
obj
().
get
());
if
(
pHeadTail
)
if
(
pHeadTail
)
{
{
LwpPageHint
*
pPageHint
=
stat
ic_cast
<
LwpPageHint
*>
(
pHeadTail
->
GetTail
().
obj
().
get
());
LwpPageHint
*
pPageHint
=
dynam
ic_cast
<
LwpPageHint
*>
(
pHeadTail
->
GetTail
().
obj
().
get
());
if
(
pPageHint
&&
!
pPageHint
->
GetPageLayoutID
().
IsNull
())
if
(
pPageHint
&&
!
pPageHint
->
GetPageLayoutID
().
IsNull
())
{
{
return
pPageHint
->
GetPageNumber
();
return
pPageHint
->
GetPageNumber
();
...
...
lotuswordpro/source/filter/lwpfnlayout.cxx
Dosyayı görüntüle @
411dc205
...
@@ -115,14 +115,14 @@ void LwpFnRowLayout::RegisterStyle()
...
@@ -115,14 +115,14 @@ void LwpFnRowLayout::RegisterStyle()
{
{
// register cells' style
// register cells' style
LwpObjectID
&
rCellID
=
GetChildHead
();
LwpObjectID
&
rCellID
=
GetChildHead
();
LwpCellLayout
*
pCellLayout
=
stat
ic_cast
<
LwpCellLayout
*>
(
rCellID
.
obj
().
get
());
LwpCellLayout
*
pCellLayout
=
dynam
ic_cast
<
LwpCellLayout
*>
(
rCellID
.
obj
().
get
());
while
(
pCellLayout
)
while
(
pCellLayout
)
{
{
pCellLayout
->
SetFoundry
(
m_pFoundry
);
pCellLayout
->
SetFoundry
(
m_pFoundry
);
pCellLayout
->
RegisterStyle
();
pCellLayout
->
RegisterStyle
();
rCellID
=
pCellLayout
->
GetNext
();
rCellID
=
pCellLayout
->
GetNext
();
pCellLayout
=
stat
ic_cast
<
LwpCellLayout
*>
(
rCellID
.
obj
().
get
());
pCellLayout
=
dynam
ic_cast
<
LwpCellLayout
*>
(
rCellID
.
obj
().
get
());
}
}
}
}
...
@@ -195,14 +195,14 @@ void LwpEndnoteLayout::RegisterStyle()
...
@@ -195,14 +195,14 @@ void LwpEndnoteLayout::RegisterStyle()
{
{
// register style of rows
// register style of rows
LwpObjectID
&
rRowID
=
GetChildHead
();
LwpObjectID
&
rRowID
=
GetChildHead
();
LwpRowLayout
*
pRowLayout
=
stat
ic_cast
<
LwpRowLayout
*>
(
rRowID
.
obj
().
get
());
LwpRowLayout
*
pRowLayout
=
dynam
ic_cast
<
LwpRowLayout
*>
(
rRowID
.
obj
().
get
());
while
(
pRowLayout
)
while
(
pRowLayout
)
{
{
pRowLayout
->
SetFoundry
(
m_pFoundry
);
pRowLayout
->
SetFoundry
(
m_pFoundry
);
pRowLayout
->
RegisterStyle
();
pRowLayout
->
RegisterStyle
();
rRowID
=
pRowLayout
->
GetNext
();
rRowID
=
pRowLayout
->
GetNext
();
pRowLayout
=
stat
ic_cast
<
LwpRowLayout
*>
(
rRowID
.
obj
().
get
());
pRowLayout
=
dynam
ic_cast
<
LwpRowLayout
*>
(
rRowID
.
obj
().
get
());
}
}
}
}
...
@@ -314,7 +314,7 @@ LwpVirtualLayout* LwpFnSuperTableLayout::GetMainTableLayout()
...
@@ -314,7 +314,7 @@ LwpVirtualLayout* LwpFnSuperTableLayout::GetMainTableLayout()
while
(
!
rID
.
IsNull
())
while
(
!
rID
.
IsNull
())
{
{
LwpVirtualLayout
*
pLayout
=
stat
ic_cast
<
LwpVirtualLayout
*>
(
rID
.
obj
().
get
());
LwpVirtualLayout
*
pLayout
=
dynam
ic_cast
<
LwpVirtualLayout
*>
(
rID
.
obj
().
get
());
if
(
!
pLayout
)
if
(
!
pLayout
)
{
{
break
;
break
;
...
...
lotuswordpro/source/filter/lwpfoundry.cxx
Dosyayı görüntüle @
411dc205
...
@@ -262,7 +262,7 @@ LwpSection* LwpFoundry::EnumSections(LwpSection * pSection)
...
@@ -262,7 +262,7 @@ LwpSection* LwpFoundry::EnumSections(LwpSection * pSection)
*/
*/
LwpObjectID
*
LwpFoundry
::
GetDefaultTextStyle
()
LwpObjectID
*
LwpFoundry
::
GetDefaultTextStyle
()
{
{
LwpVersionedPointer
*
pPointer
=
stat
ic_cast
<
LwpVersionedPointer
*>
(
m_DefaultTextStyle
.
obj
().
get
());
LwpVersionedPointer
*
pPointer
=
dynam
ic_cast
<
LwpVersionedPointer
*>
(
m_DefaultTextStyle
.
obj
().
get
());
if
(
!
pPointer
)
if
(
!
pPointer
)
return
nullptr
;
return
nullptr
;
...
@@ -276,16 +276,16 @@ LwpObjectID * LwpFoundry::GetDefaultTextStyle()
...
@@ -276,16 +276,16 @@ LwpObjectID * LwpFoundry::GetDefaultTextStyle()
LwpObjectID
*
LwpFoundry
::
FindParaStyleByName
(
const
OUString
&
name
)
LwpObjectID
*
LwpFoundry
::
FindParaStyleByName
(
const
OUString
&
name
)
{
{
//Register all text styles: para styles, character styles
//Register all text styles: para styles, character styles
LwpDLVListHeadHolder
*
pParaStyleHolder
=
stat
ic_cast
<
LwpDLVListHeadHolder
*>
(
GetTextStyleHead
().
obj
().
get
());
LwpDLVListHeadHolder
*
pParaStyleHolder
=
dynam
ic_cast
<
LwpDLVListHeadHolder
*>
(
GetTextStyleHead
().
obj
().
get
());
if
(
pParaStyleHolder
)
if
(
pParaStyleHolder
)
{
{
LwpTextStyle
*
pParaStyle
=
stat
ic_cast
<
LwpTextStyle
*>
(
pParaStyleHolder
->
GetHeadID
().
obj
().
get
());
LwpTextStyle
*
pParaStyle
=
dynam
ic_cast
<
LwpTextStyle
*>
(
pParaStyleHolder
->
GetHeadID
().
obj
().
get
());
while
(
pParaStyle
)
while
(
pParaStyle
)
{
{
OUString
strName
=
pParaStyle
->
GetName
().
str
();
OUString
strName
=
pParaStyle
->
GetName
().
str
();
if
(
strName
==
name
)
if
(
strName
==
name
)
return
&
pParaStyle
->
GetObjectID
();
return
&
pParaStyle
->
GetObjectID
();
pParaStyle
=
stat
ic_cast
<
LwpTextStyle
*>
(
pParaStyle
->
GetNext
().
obj
().
get
());
pParaStyle
=
dynam
ic_cast
<
LwpTextStyle
*>
(
pParaStyle
->
GetNext
().
obj
().
get
());
}
}
}
}
...
@@ -394,8 +394,8 @@ LwpContent* LwpContentManager::EnumContents(LwpContent* pContent)
...
@@ -394,8 +394,8 @@ LwpContent* LwpContentManager::EnumContents(LwpContent* pContent)
{
{
if
(
pContent
)
if
(
pContent
)
return
pContent
->
GetNextEnumerated
();
return
pContent
->
GetNextEnumerated
();
LwpVersionedPointer
*
pPointer
=
stat
ic_cast
<
LwpVersionedPointer
*>
(
m_EnumHead
.
obj
().
get
());
LwpVersionedPointer
*
pPointer
=
dynam
ic_cast
<
LwpVersionedPointer
*>
(
m_EnumHead
.
obj
().
get
());
return
pPointer
?
stat
ic_cast
<
LwpContent
*>
(
pPointer
->
GetPointer
().
obj
().
get
())
:
nullptr
;
return
pPointer
?
dynam
ic_cast
<
LwpContent
*>
(
pPointer
->
GetPointer
().
obj
().
get
())
:
nullptr
;
}
}
void
LwpPieceManager
::
Read
(
LwpObjectStream
*
pStrm
)
void
LwpPieceManager
::
Read
(
LwpObjectStream
*
pStrm
)
...
@@ -446,14 +446,14 @@ LwpOrderedObject* LwpOrderedObjectManager::Enumerate(LwpOrderedObject * pLast)
...
@@ -446,14 +446,14 @@ LwpOrderedObject* LwpOrderedObjectManager::Enumerate(LwpOrderedObject * pLast)
{
{
// If Last has a next, return it.
// If Last has a next, return it.
if
(
pLast
&&
!
pLast
->
GetNext
().
IsNull
())
if
(
pLast
&&
!
pLast
->
GetNext
().
IsNull
())
return
stat
ic_cast
<
LwpOrderedObject
*>
(
pLast
->
GetNext
().
obj
().
get
());
return
dynam
ic_cast
<
LwpOrderedObject
*>
(
pLast
->
GetNext
().
obj
().
get
());
LwpListList
*
pList
=
nullptr
;
LwpListList
*
pList
=
nullptr
;
if
(
pLast
)
if
(
pLast
)
{
{
// We're at the end of Last's list (not Liszt's list).
// We're at the end of Last's list (not Liszt's list).
// Start with the next active list
// Start with the next active list
pList
=
stat
ic_cast
<
LwpListList
*>
(
pLast
->
GetListList
().
obj
().
get
());
pList
=
dynam
ic_cast
<
LwpListList
*>
(
pLast
->
GetListList
().
obj
().
get
());
pList
=
GetNextActiveListList
(
pList
);
pList
=
GetNextActiveListList
(
pList
);
}
}
else
else
...
@@ -464,7 +464,7 @@ LwpOrderedObject* LwpOrderedObjectManager::Enumerate(LwpOrderedObject * pLast)
...
@@ -464,7 +464,7 @@ LwpOrderedObject* LwpOrderedObjectManager::Enumerate(LwpOrderedObject * pLast)
if
(
pList
)
if
(
pList
)
{
{
return
stat
ic_cast
<
LwpOrderedObject
*>
(
pList
->
GetHead
().
obj
().
get
());
return
dynam
ic_cast
<
LwpOrderedObject
*>
(
pList
->
GetHead
().
obj
().
get
());
}
}
return
nullptr
;
return
nullptr
;
...
...
lotuswordpro/source/filter/lwpframelayout.cxx
Dosyayı görüntüle @
411dc205
...
@@ -687,7 +687,6 @@ void LwpFrame::ParseAnchorType(XFFrame *pXFFrame)
...
@@ -687,7 +687,6 @@ void LwpFrame::ParseAnchorType(XFFrame *pXFFrame)
//because of the different feature between Word Pro and SODC, I simulate the vertical base offset
//because of the different feature between Word Pro and SODC, I simulate the vertical base offset
//between anchor and frame origin using the font height.
//between anchor and frame origin using the font height.
//LwpPara* pPara = static_cast<LwpPara*>(m_pLayout->GetPosition()->obj());
rtl
::
Reference
<
XFFont
>
pFont
=
m_pLayout
->
GetFont
();
rtl
::
Reference
<
XFFont
>
pFont
=
m_pLayout
->
GetFont
();
if
(
pFont
.
is
())
if
(
pFont
.
is
())
{
{
...
@@ -1096,11 +1095,11 @@ void LwpGroupLayout::XFConvertFrame(XFContentContainer* pCont, sal_Int32 nStart
...
@@ -1096,11 +1095,11 @@ void LwpGroupLayout::XFConvertFrame(XFContentContainer* pCont, sal_Int32 nStart
m_pFrame
->
Parse
(
pXFFrame
,
nStart
);
m_pFrame
->
Parse
(
pXFFrame
,
nStart
);
//add child frame into group
//add child frame into group
LwpVirtualLayout
*
pLayout
=
stat
ic_cast
<
LwpVirtualLayout
*>
(
GetChildHead
().
obj
().
get
());
LwpVirtualLayout
*
pLayout
=
dynam
ic_cast
<
LwpVirtualLayout
*>
(
GetChildHead
().
obj
().
get
());
while
(
pLayout
)
while
(
pLayout
)
{
{
pLayout
->
XFConvert
(
pXFFrame
);
pLayout
->
XFConvert
(
pXFFrame
);
pLayout
=
stat
ic_cast
<
LwpVirtualLayout
*>
(
pLayout
->
GetNext
().
obj
().
get
());
pLayout
=
dynam
ic_cast
<
LwpVirtualLayout
*>
(
pLayout
->
GetNext
().
obj
().
get
());
}
}
pCont
->
Add
(
pXFFrame
);
pCont
->
Add
(
pXFFrame
);
...
@@ -1179,12 +1178,12 @@ void LwpDropcapLayout::RegisterStyle(LwpFoundry* pFoundry)
...
@@ -1179,12 +1178,12 @@ void LwpDropcapLayout::RegisterStyle(LwpFoundry* pFoundry)
{
{
pStory
->
SetDropcapFlag
(
true
);
pStory
->
SetDropcapFlag
(
true
);
pStory
->
SetFoundry
(
pFoundry
);
pStory
->
SetFoundry
(
pFoundry
);
LwpPara
*
pPara
=
stat
ic_cast
<
LwpPara
*>
(
pStory
->
GetFirstPara
().
obj
().
get
());
LwpPara
*
pPara
=
dynam
ic_cast
<
LwpPara
*>
(
pStory
->
GetFirstPara
().
obj
().
get
());
while
(
pPara
)
while
(
pPara
)
{
{
pPara
->
SetFoundry
(
pFoundry
);
pPara
->
SetFoundry
(
pFoundry
);
pPara
->
RegisterStyle
();
pPara
->
RegisterStyle
();
pPara
=
stat
ic_cast
<
LwpPara
*>
(
pPara
->
GetNext
().
obj
().
get
());
pPara
=
dynam
ic_cast
<
LwpPara
*>
(
pPara
->
GetNext
().
obj
().
get
());
}
}
}
}
}
}
...
...
lotuswordpro/source/filter/lwpfrib.cxx
Dosyayı görüntüle @
411dc205
...
@@ -257,7 +257,7 @@ void LwpFrib::RegisterStyle(LwpFoundry* pFoundry)
...
@@ -257,7 +257,7 @@ void LwpFrib::RegisterStyle(LwpFoundry* pFoundry)
{
{
pStyle
=
new
XFTextStyle
();
pStyle
=
new
XFTextStyle
();
*
pStyle
=
*
pNamedStyle
;
*
pStyle
=
*
pNamedStyle
;
LwpCharacterStyle
*
pCharStyle
=
stat
ic_cast
<
LwpCharacterStyle
*>
(
m_pModifiers
->
CharStyleID
.
obj
().
get
());
LwpCharacterStyle
*
pCharStyle
=
dynam
ic_cast
<
LwpCharacterStyle
*>
(
m_pModifiers
->
CharStyleID
.
obj
().
get
());
pStyle
->
SetStyleName
(
""
);
pStyle
->
SetStyleName
(
""
);
pFont
=
pFoundry
->
GetFontManger
().
CreateOverrideFont
(
pCharStyle
->
GetFinalFontID
(),
m_pModifiers
->
FontID
);
pFont
=
pFoundry
->
GetFontManger
().
CreateOverrideFont
(
pCharStyle
->
GetFinalFontID
(),
m_pModifiers
->
FontID
);
...
...
lotuswordpro/source/filter/lwpfribbreaks.cxx
Dosyayı görüntüle @
411dc205
...
@@ -77,9 +77,6 @@ void LwpFribColumnBreak::RegisterBreakStyle(LwpPara * pPara)
...
@@ -77,9 +77,6 @@ void LwpFribColumnBreak::RegisterBreakStyle(LwpPara * pPara)
*
pOverStyle
=
*
pBaseStyle
;
*
pOverStyle
=
*
pBaseStyle
;
pOverStyle
->
SetStyleName
(
""
);
pOverStyle
->
SetStyleName
(
""
);
//Old code
//if (static_cast<LwpStory*>(pPara->GetStoryID()->obj())
// ->GetCurrentLayout()->GetNumCols() == 1)
//New code
//New code
LwpStory
*
pStory
=
dynamic_cast
<
LwpStory
*>
(
pPara
->
GetStoryID
().
obj
().
get
());
LwpStory
*
pStory
=
dynamic_cast
<
LwpStory
*>
(
pPara
->
GetStoryID
().
obj
().
get
());
LwpPageLayout
*
pCurLayout
=
pStory
?
pStory
->
GetCurrentLayout
()
:
nullptr
;
LwpPageLayout
*
pCurLayout
=
pStory
?
pStory
->
GetCurrentLayout
()
:
nullptr
;
...
...
lotuswordpro/source/filter/lwpfribsection.cxx
Dosyayı görüntüle @
411dc205
...
@@ -99,7 +99,7 @@ void LwpFribSection::Read(LwpObjectStream *pObjStrm, sal_uInt16 /*len*/)
...
@@ -99,7 +99,7 @@ void LwpFribSection::Read(LwpObjectStream *pObjStrm, sal_uInt16 /*len*/)
*/
*/
LwpSection
*
LwpFribSection
::
GetSection
()
LwpSection
*
LwpFribSection
::
GetSection
()
{
{
return
stat
ic_cast
<
LwpSection
*>
(
m_Section
.
obj
().
get
());
return
dynam
ic_cast
<
LwpSection
*>
(
m_Section
.
obj
().
get
());
}
}
/**
/**
...
@@ -123,11 +123,12 @@ void LwpFribSection::RegisterSectionStyle()
...
@@ -123,11 +123,12 @@ void LwpFribSection::RegisterSectionStyle()
void
LwpFribSection
::
SetSectionName
()
void
LwpFribSection
::
SetSectionName
()
{
{
LwpSection
*
pSection
=
GetSection
();
LwpSection
*
pSection
=
GetSection
();
if
(
pSection
)
if
(
!
pSection
)
{
return
;
LwpStory
*
pStory
=
static_cast
<
LwpStory
*>
(
m_pPara
->
GetStoryID
().
obj
().
get
());
LwpStory
*
pStory
=
dynamic_cast
<
LwpStory
*>
(
m_pPara
->
GetStoryID
().
obj
().
get
());
pStory
->
SetSectionName
(
pSection
->
GetSectionName
());
if
(
!
pStory
)
}
return
;
pStory
->
SetSectionName
(
pSection
->
GetSectionName
());
}
}
/**
/**
...
@@ -161,7 +162,7 @@ void LwpFribSection::ParseSection()
...
@@ -161,7 +162,7 @@ void LwpFribSection::ParseSection()
m_pMasterPage
->
ParseSection
(
this
);
m_pMasterPage
->
ParseSection
(
this
);
}
}
}
}
else
if
(
LwpStory
*
pStory
=
stat
ic_cast
<
LwpStory
*>
(
m_pPara
->
GetStoryID
().
obj
().
get
()))
else
if
(
LwpStory
*
pStory
=
dynam
ic_cast
<
LwpStory
*>
(
m_pPara
->
GetStoryID
().
obj
().
get
()))
{
{
rtl
::
Reference
<
LwpObject
>
xObj
(
m_Section
.
obj
());
rtl
::
Reference
<
LwpObject
>
xObj
(
m_Section
.
obj
());
if
(
xObj
.
is
()
&&
xObj
->
GetTag
()
==
VO_INDEXSECTION
)
if
(
xObj
.
is
()
&&
xObj
->
GetTag
()
==
VO_INDEXSECTION
)
...
@@ -169,16 +170,6 @@ void LwpFribSection::ParseSection()
...
@@ -169,16 +170,6 @@ void LwpFribSection::ParseSection()
//create a new section and add it to container
//create a new section and add it to container
XFIndex
*
pIndex
=
new
XFIndex
;
XFIndex
*
pIndex
=
new
XFIndex
;
pIndex
->
SetIndexType
(
enumXFIndexAlphabetical
);
pIndex
->
SetIndexType
(
enumXFIndexAlphabetical
);
/*
sal_Bool bRunin = sal_False;
sal_Bool bSeparator = sal_False;
LwpIndexSection* pIndexSection = static_cast<LwpIndexSection*>(m_Section.obj());
if (pIndexSection->IsFormatRunin())
bRunin = sal_True;
if (pIndexSection->IsFormatSeparator())
bSeparator = sal_True;
pIndex->SetDefaultAlphaIndex("",bRunin,bSeparator);
*/
SetDefaultAlphaIndex
(
pIndex
);
SetDefaultAlphaIndex
(
pIndex
);
pStory
->
AddXFContent
(
pIndex
);
pStory
->
AddXFContent
(
pIndex
);
...
@@ -197,7 +188,7 @@ void LwpFribSection::SetDefaultAlphaIndex(XFIndex * pXFIndex)
...
@@ -197,7 +188,7 @@ void LwpFribSection::SetDefaultAlphaIndex(XFIndex * pXFIndex)
LwpFoundry
*
pFoundry
=
m_pPara
->
GetFoundry
();
LwpFoundry
*
pFoundry
=
m_pPara
->
GetFoundry
();
OUString
styleName
=
pFoundry
->
FindActuralStyleName
(
"Separator"
);
OUString
styleName
=
pFoundry
->
FindActuralStyleName
(
"Separator"
);
LwpIndexSection
*
pIndexSection
=
stat
ic_cast
<
LwpIndexSection
*>
(
m_Section
.
obj
().
get
());
LwpIndexSection
*
pIndexSection
=
dynam
ic_cast
<
LwpIndexSection
*>
(
m_Section
.
obj
().
get
());
XFIndexTemplate
*
pTemplateSep
=
new
XFIndexTemplate
();
XFIndexTemplate
*
pTemplateSep
=
new
XFIndexTemplate
();
if
(
pIndexSection
->
IsFormatSeparator
())
if
(
pIndexSection
->
IsFormatSeparator
())
{
{
...
@@ -256,7 +247,7 @@ bool LwpMasterPage::RegisterMasterPage(LwpFrib* pFrib)
...
@@ -256,7 +247,7 @@ bool LwpMasterPage::RegisterMasterPage(LwpFrib* pFrib)
//if there is no other frib after current frib, register master page in starting para of next page
//if there is no other frib after current frib, register master page in starting para of next page
if
(
IsNextPageType
()
&&
(
!
pFrib
->
HasNextFrib
()))
if
(
IsNextPageType
()
&&
(
!
pFrib
->
HasNextFrib
()))
{
{
LwpStory
*
pStory
=
stat
ic_cast
<
LwpStory
*>
(
m_pPara
->
GetStoryID
().
obj
().
get
());
LwpStory
*
pStory
=
dynam
ic_cast
<
LwpStory
*>
(
m_pPara
->
GetStoryID
().
obj
().
get
());
pStory
->
SetCurrentLayout
(
m_pLayout
);
pStory
->
SetCurrentLayout
(
m_pLayout
);
RegisterFillerPageStyle
();
RegisterFillerPageStyle
();
return
false
;
return
false
;
...
@@ -287,7 +278,7 @@ bool LwpMasterPage::RegisterMasterPage(LwpFrib* pFrib)
...
@@ -287,7 +278,7 @@ bool LwpMasterPage::RegisterMasterPage(LwpFrib* pFrib)
case
LwpLayout
:
:
StartOnOddPage
:
//fall through
case
LwpLayout
:
:
StartOnOddPage
:
//fall through
case
LwpLayout
:
:
StartOnEvenPage
:
case
LwpLayout
:
:
StartOnEvenPage
:
{
{
LwpStory
*
pStory
=
stat
ic_cast
<
LwpStory
*>
(
m_pPara
->
GetStoryID
().
obj
().
get
());
LwpStory
*
pStory
=
dynam
ic_cast
<
LwpStory
*>
(
m_pPara
->
GetStoryID
().
obj
().
get
());
pStory
->
SetCurrentLayout
(
m_pLayout
);
pStory
->
SetCurrentLayout
(
m_pLayout
);
//get odd page layout when the current pagelayout is mirror
//get odd page layout when the current pagelayout is mirror
m_pLayout
=
pStory
->
GetCurrentLayout
();
m_pLayout
=
pStory
->
GetCurrentLayout
();
...
@@ -302,7 +293,7 @@ bool LwpMasterPage::RegisterMasterPage(LwpFrib* pFrib)
...
@@ -302,7 +293,7 @@ bool LwpMasterPage::RegisterMasterPage(LwpFrib* pFrib)
}
}
//register tab style;
//register tab style;
LwpStory
*
pStory
=
stat
ic_cast
<
LwpStory
*>
(
m_pPara
->
GetStoryID
().
obj
().
get
());
LwpStory
*
pStory
=
dynam
ic_cast
<
LwpStory
*>
(
m_pPara
->
GetStoryID
().
obj
().
get
());
pStory
->
SetTabLayout
(
m_pLayout
);
pStory
->
SetTabLayout
(
m_pLayout
);
m_pPara
->
RegisterTabStyle
(
pOverStyle
);
m_pPara
->
RegisterTabStyle
(
pOverStyle
);
...
@@ -313,7 +304,7 @@ bool LwpMasterPage::RegisterMasterPage(LwpFrib* pFrib)
...
@@ -313,7 +304,7 @@ bool LwpMasterPage::RegisterMasterPage(LwpFrib* pFrib)
{
{
XFSectionStyle
*
pSectStyle
=
new
XFSectionStyle
();
XFSectionStyle
*
pSectStyle
=
new
XFSectionStyle
();
//set margin
//set margin
pStory
=
stat
ic_cast
<
LwpStory
*>
(
m_pPara
->
GetStoryID
().
obj
().
get
());
pStory
=
dynam
ic_cast
<
LwpStory
*>
(
m_pPara
->
GetStoryID
().
obj
().
get
());
if
(
pStory
)
if
(
pStory
)
{
{
LwpPageLayout
*
pCurrentLayout
=
pStory
->
GetCurrentLayout
();
LwpPageLayout
*
pCurrentLayout
=
pStory
->
GetCurrentLayout
();
...
@@ -345,7 +336,7 @@ bool LwpMasterPage::IsNeedSection()
...
@@ -345,7 +336,7 @@ bool LwpMasterPage::IsNeedSection()
{
{
bool
bNewSection
=
false
;
bool
bNewSection
=
false
;
//get story
//get story
LwpStory
*
pStory
=
stat
ic_cast
<
LwpStory
*>
(
m_pPara
->
GetStoryID
().
obj
().
get
());
LwpStory
*
pStory
=
dynam
ic_cast
<
LwpStory
*>
(
m_pPara
->
GetStoryID
().
obj
().
get
());
//if pagelayout is modified, register the pagelayout
//if pagelayout is modified, register the pagelayout
if
(
pStory
->
IsPMModified
())
if
(
pStory
->
IsPMModified
())
{
{
...
@@ -393,7 +384,7 @@ void LwpMasterPage::ParseSection(LwpFrib* pFrib)
...
@@ -393,7 +384,7 @@ void LwpMasterPage::ParseSection(LwpFrib* pFrib)
XFContentContainer
*
pContent
=
CreateXFSection
();
XFContentContainer
*
pContent
=
CreateXFSection
();
if
(
pContent
)
if
(
pContent
)
{
{
LwpStory
*
pStory
=
stat
ic_cast
<
LwpStory
*>
(
m_pPara
->
GetStoryID
().
obj
().
get
()
);
LwpStory
*
pStory
=
dynam
ic_cast
<
LwpStory
*>
(
m_pPara
->
GetStoryID
().
obj
().
get
()
);
//delete the additional blank para
//delete the additional blank para
XFParagraph
*
pCurrPara
=
rFribPtr
.
GetXFPara
();
XFParagraph
*
pCurrPara
=
rFribPtr
.
GetXFPara
();
if
(
!
pCurrPara
->
HasContents
())
if
(
!
pCurrPara
->
HasContents
())
...
@@ -408,7 +399,7 @@ void LwpMasterPage::ParseSection(LwpFrib* pFrib)
...
@@ -408,7 +399,7 @@ void LwpMasterPage::ParseSection(LwpFrib* pFrib)
}
}
else
else
{
{
LwpStory
*
pStory
=
stat
ic_cast
<
LwpStory
*>
(
m_pPara
->
GetStoryID
().
obj
().
get
()
);
LwpStory
*
pStory
=
dynam
ic_cast
<
LwpStory
*>
(
m_pPara
->
GetStoryID
().
obj
().
get
()
);
pContent
=
pStory
->
GetXFContent
();
pContent
=
pStory
->
GetXFContent
();
}
}
if
(
pContent
)
if
(
pContent
)
...
...
lotuswordpro/source/filter/lwpnotes.cxx
Dosyayı görüntüle @
411dc205
...
@@ -214,10 +214,10 @@ OUString LwpNoteLayout::GetAuthor()
...
@@ -214,10 +214,10 @@ OUString LwpNoteLayout::GetAuthor()
LwpNoteHeaderLayout
*
pTextLayout
=
static_cast
<
LwpNoteHeaderLayout
*>
(
FindChildByType
(
LWP_NOTEHEADER_LAYOUT
));
LwpNoteHeaderLayout
*
pTextLayout
=
static_cast
<
LwpNoteHeaderLayout
*>
(
FindChildByType
(
LWP_NOTEHEADER_LAYOUT
));
if
(
pTextLayout
)
if
(
pTextLayout
)
{
{
LwpStory
*
pStory
=
stat
ic_cast
<
LwpStory
*>
(
pTextLayout
->
GetContent
().
obj
().
get
());
LwpStory
*
pStory
=
dynam
ic_cast
<
LwpStory
*>
(
pTextLayout
->
GetContent
().
obj
().
get
());
if
(
pStory
)
if
(
pStory
)
{
{
LwpPara
*
pFirst
=
stat
ic_cast
<
LwpPara
*>
(
pStory
->
GetFirstPara
().
obj
().
get
());
LwpPara
*
pFirst
=
dynam
ic_cast
<
LwpPara
*>
(
pStory
->
GetFirstPara
().
obj
().
get
());
if
(
pFirst
)
if
(
pFirst
)
return
pFirst
->
GetContentText
(
true
);
return
pFirst
->
GetContentText
(
true
);
}
}
...
...
lotuswordpro/source/filter/lwpproplist.cxx
Dosyayı görüntüle @
411dc205
...
@@ -67,7 +67,7 @@ LwpPropListElement::LwpPropListElement(LwpObjectHeader &objHdr, LwpSvStream *pSt
...
@@ -67,7 +67,7 @@ LwpPropListElement::LwpPropListElement(LwpObjectHeader &objHdr, LwpSvStream *pSt
LwpPropListElement
*
LwpPropListElement
::
GetNext
()
LwpPropListElement
*
LwpPropListElement
::
GetNext
()
{
{
return
stat
ic_cast
<
LwpPropListElement
*>
(
LwpDLVList
::
GetNext
().
obj
().
get
());
return
dynam
ic_cast
<
LwpPropListElement
*>
(
LwpDLVList
::
GetNext
().
obj
().
get
());
}
}
void
LwpPropListElement
::
Read
()
void
LwpPropListElement
::
Read
()
...
@@ -113,7 +113,7 @@ void LwpPropList::Read(LwpObjectStream* pObjStrm)
...
@@ -113,7 +113,7 @@ void LwpPropList::Read(LwpObjectStream* pObjStrm)
LwpPropListElement
*
LwpPropList
::
GetFirst
()
LwpPropListElement
*
LwpPropList
::
GetFirst
()
{
{
return
stat
ic_cast
<
LwpPropListElement
*>
(
LwpDLVListHead
::
GetFirst
().
obj
().
get
());
return
dynam
ic_cast
<
LwpPropListElement
*>
(
LwpDLVListHead
::
GetFirst
().
obj
().
get
());
}
}
OUString
LwpPropList
::
EnumNamedProperty
(
OUString
&
name
,
OUString
&
value
)
OUString
LwpPropList
::
EnumNamedProperty
(
OUString
&
name
,
OUString
&
value
)
...
...
lotuswordpro/source/filter/lwptablelayout.cxx
Dosyayı görüntüle @
411dc205
...
@@ -1107,9 +1107,9 @@ void LwpTableLayout::PutCellVals(LwpFoundry* pFoundry, LwpObjectID aTableID)
...
@@ -1107,9 +1107,9 @@ void LwpTableLayout::PutCellVals(LwpFoundry* pFoundry, LwpObjectID aTableID)
try
{
try
{
LwpDLVListHeadHolder
*
pHolder
=
stat
ic_cast
<
LwpDLVListHeadHolder
*>
(
pFoundry
->
GetNumberManager
().
GetTableRangeID
().
obj
().
get
());
LwpDLVListHeadHolder
*
pHolder
=
dynam
ic_cast
<
LwpDLVListHeadHolder
*>
(
pFoundry
->
GetNumberManager
().
GetTableRangeID
().
obj
().
get
());
LwpTableRange
*
pTableRange
=
pHolder
?
stat
ic_cast
<
LwpTableRange
*>
(
pHolder
->
GetHeadID
().
obj
().
get
())
:
nullptr
;
LwpTableRange
*
pTableRange
=
pHolder
?
dynam
ic_cast
<
LwpTableRange
*>
(
pHolder
->
GetHeadID
().
obj
().
get
())
:
nullptr
;
//Look up the table
//Look up the table
while
(
nullptr
!=
pTableRange
)
while
(
nullptr
!=
pTableRange
)
...
@@ -1125,23 +1125,23 @@ void LwpTableLayout::PutCellVals(LwpFoundry* pFoundry, LwpObjectID aTableID)
...
@@ -1125,23 +1125,23 @@ void LwpTableLayout::PutCellVals(LwpFoundry* pFoundry, LwpObjectID aTableID)
if
(
!
pTableRange
)
if
(
!
pTableRange
)
return
;
return
;
LwpCellRange
*
pRange
=
stat
ic_cast
<
LwpCellRange
*>
(
pTableRange
->
GetCellRangeID
().
obj
().
get
());
LwpCellRange
*
pRange
=
dynam
ic_cast
<
LwpCellRange
*>
(
pTableRange
->
GetCellRangeID
().
obj
().
get
());
if
(
!
pRange
)
if
(
!
pRange
)
return
;
return
;
LwpFolder
*
pFolder
=
stat
ic_cast
<
LwpFolder
*>
(
pRange
->
GetFolderID
().
obj
().
get
());
LwpFolder
*
pFolder
=
dynam
ic_cast
<
LwpFolder
*>
(
pRange
->
GetFolderID
().
obj
().
get
());
if
(
!
pFolder
)
if
(
!
pFolder
)
return
;
return
;
LwpObjectID
aRowListID
=
pFolder
->
GetChildHeadID
();
LwpObjectID
aRowListID
=
pFolder
->
GetChildHeadID
();
LwpRowList
*
pRowList
=
stat
ic_cast
<
LwpRowList
*>
(
aRowListID
.
obj
().
get
());
LwpRowList
*
pRowList
=
dynam
ic_cast
<
LwpRowList
*>
(
aRowListID
.
obj
().
get
());
//loop the rowlist
//loop the rowlist
while
(
nullptr
!=
pRowList
)
while
(
nullptr
!=
pRowList
)
{
{
sal_uInt16
nRowID
=
pRowList
->
GetRowID
();
sal_uInt16
nRowID
=
pRowList
->
GetRowID
();
{
{
LwpCellList
*
pCellList
=
stat
ic_cast
<
LwpCellList
*>
(
pRowList
->
GetChildHeadID
().
obj
().
get
());
LwpCellList
*
pCellList
=
dynam
ic_cast
<
LwpCellList
*>
(
pRowList
->
GetChildHeadID
().
obj
().
get
());
//loop the cellList
//loop the cellList
while
(
nullptr
!=
pCellList
)
while
(
nullptr
!=
pCellList
)
{
{
...
@@ -1162,10 +1162,10 @@ void LwpTableLayout::PutCellVals(LwpFoundry* pFoundry, LwpObjectID aTableID)
...
@@ -1162,10 +1162,10 @@ void LwpTableLayout::PutCellVals(LwpFoundry* pFoundry, LwpObjectID aTableID)
assert
(
false
);
assert
(
false
);
}
}
}
}
pCellList
=
stat
ic_cast
<
LwpCellList
*>
(
pCellList
->
GetNextID
().
obj
().
get
());
pCellList
=
dynam
ic_cast
<
LwpCellList
*>
(
pCellList
->
GetNextID
().
obj
().
get
());
}
}
}
}
pRowList
=
stat
ic_cast
<
LwpRowList
*>
(
pRowList
->
GetNextID
().
obj
().
get
());
pRowList
=
dynam
ic_cast
<
LwpRowList
*>
(
pRowList
->
GetNextID
().
obj
().
get
());
}
}
}
catch
(...)
{
}
catch
(...)
{
...
...
lotuswordpro/source/filter/lwptblcell.cxx
Dosyayı görüntüle @
411dc205
...
@@ -103,7 +103,7 @@ void LwpCellList::Parse(IXFStream* /*pOutputStream*/)
...
@@ -103,7 +103,7 @@ void LwpCellList::Parse(IXFStream* /*pOutputStream*/)
void
LwpCellList
::
Convert
(
XFCell
*
pCell
,
LwpTableLayout
*
/*pCellsMap*/
)
void
LwpCellList
::
Convert
(
XFCell
*
pCell
,
LwpTableLayout
*
/*pCellsMap*/
)
{
{
LwpObjectID
aValueID
=
GetValueID
();
LwpObjectID
aValueID
=
GetValueID
();
LwpNumericValue
*
pValue
=
stat
ic_cast
<
LwpNumericValue
*>
(
aValueID
.
obj
().
get
());
LwpNumericValue
*
pValue
=
dynam
ic_cast
<
LwpNumericValue
*>
(
aValueID
.
obj
().
get
());
if
(
pValue
)
if
(
pValue
)
{
{
pCell
->
SetValue
(
pValue
->
GetValue
()
);
pCell
->
SetValue
(
pValue
->
GetValue
()
);
...
...
lotuswordpro/source/filter/lwptblcell.hxx
Dosyayı görüntüle @
411dc205
...
@@ -148,7 +148,7 @@ public:
...
@@ -148,7 +148,7 @@ public:
void
Parse
(
IXFStream
*
pOutputStream
)
override
;
void
Parse
(
IXFStream
*
pOutputStream
)
override
;
LwpObjectID
GetCellRangeID
(){
return
cpCellRange
;}
LwpObjectID
GetCellRangeID
(){
return
cpCellRange
;}
LwpObjectID
GetTableID
(){
return
cqTable
;}
LwpObjectID
GetTableID
(){
return
cqTable
;}
LwpTableRange
*
GetNext
()
{
return
stat
ic_cast
<
LwpTableRange
*>
(
LwpDLVList
::
GetNext
().
obj
().
get
());}
LwpTableRange
*
GetNext
()
{
return
dynam
ic_cast
<
LwpTableRange
*>
(
LwpDLVList
::
GetNext
().
obj
().
get
());}
protected
:
protected
:
LwpObjectID
cqTable
;
LwpObjectID
cqTable
;
LwpObjectID
cpCellRange
;
LwpObjectID
cpCellRange
;
...
...
lotuswordpro/source/filter/lwptblformula.cxx
Dosyayı görüntüle @
411dc205
...
@@ -335,7 +335,7 @@ void LwpFormulaInfo::Read()
...
@@ -335,7 +335,7 @@ void LwpFormulaInfo::Read()
{
{
LwpCellList
::
Read
();
LwpCellList
::
Read
();
{
{
LwpRowList
*
pRowList
=
stat
ic_cast
<
LwpRowList
*>
(
cParent
.
obj
().
get
());
LwpRowList
*
pRowList
=
dynam
ic_cast
<
LwpRowList
*>
(
cParent
.
obj
().
get
());
if
(
pRowList
)
if
(
pRowList
)
{
{
m_nFormulaRow
=
pRowList
->
GetRowID
();
m_nFormulaRow
=
pRowList
->
GetRowID
();
...
...
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