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
f3bb7012
Kaydet (Commit)
f3bb7012
authored
Mar 31, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: prefix members of SwPageDesc
Change-Id: I252c2f84a3edc83f069d5983e3fa5f479c289e42
üst
72b39b01
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
70 additions
and
71 deletions
+70
-71
pagedesc.hxx
sw/inc/pagedesc.hxx
+0
-0
docdesc.cxx
sw/source/core/doc/docdesc.cxx
+1
-1
pagedesc.cxx
sw/source/core/layout/pagedesc.cxx
+69
-70
No files found.
sw/inc/pagedesc.hxx
Dosyayı görüntüle @
f3bb7012
This diff is collapsed.
Click to expand it.
sw/source/core/doc/docdesc.cxx
Dosyayı görüntüle @
f3bb7012
...
...
@@ -487,7 +487,7 @@ void SwDoc::ChgPageDesc( sal_uInt16 i, const SwPageDesc &rChged )
}
}
else
{
rDesc
.
SetFollow
(
rChged
.
pFollow
);
{
rDesc
.
SetFollow
(
rChged
.
m_
pFollow
);
bFollow
=
true
;
}
}
...
...
sw/source/core/layout/pagedesc.cxx
Dosyayı görüntüle @
f3bb7012
...
...
@@ -38,61 +38,60 @@
using
namespace
::
com
::
sun
::
star
;
SwPageDesc
::
SwPageDesc
(
const
OUString
&
rName
,
SwFrmFmt
*
pFmt
,
SwDoc
*
pDc
)
:
SwModify
(
0
),
aDescName
(
rName
),
aMaster
(
pDc
->
GetAttrPool
(),
rName
,
pFmt
),
aLeft
(
pDc
->
GetAttrPool
(),
rName
,
pFmt
),
m_FirstMaster
(
pDc
->
GetAttrPool
(),
rName
,
pFmt
),
m_FirstLeft
(
pDc
->
GetAttrPool
(),
rName
,
pFmt
),
aDepend
(
this
,
0
),
pFollow
(
this
),
nRegHeight
(
0
),
nRegAscent
(
0
),
eUse
(
(
UseOnPage
)(
nsUseOnPage
::
PD_ALL
|
nsUseOnPage
::
PD_HEADERSHARE
|
nsUseOnPage
::
PD_FOOTERSHARE
|
nsUseOnPage
::
PD_FIRSTSHARE
)
),
bLandscape
(
false
),
bHidden
(
false
),
aFtnInfo
()
{
}
SwPageDesc
::
SwPageDesc
(
const
SwPageDesc
&
rCpy
)
:
SwModify
(
0
),
aDescName
(
rCpy
.
GetName
()
),
aNumType
(
rCpy
.
GetNumType
()
),
aMaster
(
rCpy
.
GetMaster
()
),
aLeft
(
rCpy
.
GetLeft
()
),
m_FirstMaster
(
rCpy
.
GetFirstMaster
()
),
m_FirstLeft
(
rCpy
.
GetFirstLeft
()
),
aDepend
(
this
,
const_cast
<
SwModify
*>
(
rCpy
.
aDepend
.
GetRegisteredIn
())
),
pFollow
(
rCpy
.
pFollow
),
nRegHeight
(
rCpy
.
GetRegHeight
()
),
nRegAscent
(
rCpy
.
GetRegAscent
()
),
eUse
(
rCpy
.
ReadUseOn
()
),
bLandscape
(
rCpy
.
GetLandscape
()
),
bHidden
(
rCpy
.
IsHidden
()
),
aFtnInfo
(
rCpy
.
GetFtnInfo
()
)
SwPageDesc
::
SwPageDesc
(
const
OUString
&
rName
,
SwFrmFmt
*
pFmt
,
SwDoc
*
const
pDoc
)
:
SwModify
(
nullptr
)
,
m_StyleName
(
rName
)
,
m_Master
(
pDoc
->
GetAttrPool
(),
rName
,
pFmt
)
,
m_Left
(
pDoc
->
GetAttrPool
(),
rName
,
pFmt
)
,
m_FirstMaster
(
pDoc
->
GetAttrPool
(),
rName
,
pFmt
)
,
m_FirstLeft
(
pDoc
->
GetAttrPool
(),
rName
,
pFmt
)
,
m_Depend
(
this
,
0
)
,
m_pFollow
(
this
)
,
m_nRegHeight
(
0
)
,
m_nRegAscent
(
0
)
,
m_eUse
(
(
UseOnPage
)(
nsUseOnPage
::
PD_ALL
|
nsUseOnPage
::
PD_HEADERSHARE
|
nsUseOnPage
::
PD_FOOTERSHARE
|
nsUseOnPage
::
PD_FIRSTSHARE
)
)
,
m_IsLandscape
(
false
)
,
m_IsHidden
(
false
)
{
}
SwPageDesc
::
SwPageDesc
(
const
SwPageDesc
&
rCpy
)
:
SwModify
(
nullptr
)
,
m_StyleName
(
rCpy
.
GetName
()
)
,
m_NumType
(
rCpy
.
GetNumType
()
)
,
m_Master
(
rCpy
.
GetMaster
()
)
,
m_Left
(
rCpy
.
GetLeft
()
)
,
m_FirstMaster
(
rCpy
.
GetFirstMaster
()
)
,
m_FirstLeft
(
rCpy
.
GetFirstLeft
()
)
,
m_Depend
(
this
,
const_cast
<
SwModify
*>
(
rCpy
.
m_Depend
.
GetRegisteredIn
())
)
,
m_pFollow
(
rCpy
.
m_pFollow
)
,
m_nRegHeight
(
rCpy
.
GetRegHeight
()
)
,
m_nRegAscent
(
rCpy
.
GetRegAscent
()
)
,
m_eUse
(
rCpy
.
ReadUseOn
()
)
,
m_IsLandscape
(
rCpy
.
GetLandscape
()
)
,
m_IsHidden
(
rCpy
.
IsHidden
()
)
,
m_IsFtnInfo
(
rCpy
.
GetFtnInfo
()
)
{
}
SwPageDesc
&
SwPageDesc
::
operator
=
(
const
SwPageDesc
&
rSrc
)
{
aDescName
=
rSrc
.
aDesc
Name
;
aNumType
=
rSrc
.
a
NumType
;
aMaster
=
rSrc
.
a
Master
;
aLeft
=
rSrc
.
a
Left
;
m_StyleName
=
rSrc
.
m_Style
Name
;
m_NumType
=
rSrc
.
m_
NumType
;
m_Master
=
rSrc
.
m_
Master
;
m_Left
=
rSrc
.
m_
Left
;
m_FirstMaster
=
rSrc
.
m_FirstMaster
;
m_FirstLeft
=
rSrc
.
m_FirstLeft
;
if
(
rSrc
.
pFollow
==
&
rSrc
)
pFollow
=
this
;
if
(
rSrc
.
m_
pFollow
==
&
rSrc
)
m_
pFollow
=
this
;
else
pFollow
=
rSrc
.
pFollow
;
m_pFollow
=
rSrc
.
m_
pFollow
;
nRegHeight
=
rSrc
.
nRegHeight
;
nRegAscent
=
rSrc
.
nRegAscent
;
eUse
=
rSrc
.
eUse
;
bLandscape
=
rSrc
.
b
Landscape
;
m_nRegHeight
=
rSrc
.
m_
nRegHeight
;
m_nRegAscent
=
rSrc
.
m_
nRegAscent
;
m_eUse
=
rSrc
.
m_
eUse
;
m_IsLandscape
=
rSrc
.
m_Is
Landscape
;
return
*
this
;
}
...
...
@@ -106,22 +105,22 @@ void SwPageDesc::Mirror()
{
//Only the margins are mirrored, all other values are just copied.
SvxLRSpaceItem
aLR
(
RES_LR_SPACE
);
const
SvxLRSpaceItem
&
rLR
=
a
Master
.
GetLRSpace
();
const
SvxLRSpaceItem
&
rLR
=
m_
Master
.
GetLRSpace
();
aLR
.
SetLeft
(
rLR
.
GetRight
()
);
aLR
.
SetRight
(
rLR
.
GetLeft
()
);
SfxItemSet
aSet
(
*
a
Master
.
GetAttrSet
().
GetPool
(),
a
Master
.
GetAttrSet
().
GetRanges
()
);
SfxItemSet
aSet
(
*
m_
Master
.
GetAttrSet
().
GetPool
(),
m_
Master
.
GetAttrSet
().
GetRanges
()
);
aSet
.
Put
(
aLR
);
aSet
.
Put
(
a
Master
.
GetFrmSize
()
);
aSet
.
Put
(
a
Master
.
GetPaperBin
()
);
aSet
.
Put
(
a
Master
.
GetULSpace
()
);
aSet
.
Put
(
a
Master
.
GetBox
()
);
aSet
.
Put
(
a
Master
.
makeBackgroundBrushItem
()
);
aSet
.
Put
(
a
Master
.
GetShadow
()
);
aSet
.
Put
(
a
Master
.
GetCol
()
);
aSet
.
Put
(
a
Master
.
GetFrmDir
()
);
// #112217#
a
Left
.
SetFmtAttr
(
aSet
);
aSet
.
Put
(
m_
Master
.
GetFrmSize
()
);
aSet
.
Put
(
m_
Master
.
GetPaperBin
()
);
aSet
.
Put
(
m_
Master
.
GetULSpace
()
);
aSet
.
Put
(
m_
Master
.
GetBox
()
);
aSet
.
Put
(
m_
Master
.
makeBackgroundBrushItem
()
);
aSet
.
Put
(
m_
Master
.
GetShadow
()
);
aSet
.
Put
(
m_
Master
.
GetCol
()
);
aSet
.
Put
(
m_
Master
.
GetFrmDir
()
);
// #112217#
m_
Left
.
SetFmtAttr
(
aSet
);
}
void
SwPageDesc
::
ResetAllAttr
(
bool
bLeft
)
...
...
@@ -136,9 +135,9 @@ void SwPageDesc::ResetAllAttr( bool bLeft )
// gets information from Modify
bool
SwPageDesc
::
GetInfo
(
SfxPoolItem
&
rInfo
)
const
{
if
(
!
aMaster
.
GetInfo
(
rInfo
)
)
if
(
!
m_Master
.
GetInfo
(
rInfo
)
)
return
false
;
// found
if
(
!
aLeft
.
GetInfo
(
rInfo
)
)
if
(
!
m_Left
.
GetInfo
(
rInfo
)
)
return
false
;
if
(
!
m_FirstMaster
.
GetInfo
(
rInfo
)
)
return
false
;
...
...
@@ -151,9 +150,9 @@ void SwPageDesc::SetRegisterFmtColl( const SwTxtFmtColl* pFmt )
if
(
pFmt
!=
GetRegisterFmtColl
()
)
{
if
(
pFmt
)
const_cast
<
SwTxtFmtColl
*>
(
pFmt
)
->
Add
(
&
aDepend
);
const_cast
<
SwTxtFmtColl
*>
(
pFmt
)
->
Add
(
&
m_Depend
);
else
const_cast
<
SwTxtFmtColl
*>
(
GetRegisterFmtColl
())
->
Remove
(
&
aDepend
);
const_cast
<
SwTxtFmtColl
*>
(
GetRegisterFmtColl
())
->
Remove
(
&
m_Depend
);
RegisterChange
();
}
...
...
@@ -162,7 +161,7 @@ void SwPageDesc::SetRegisterFmtColl( const SwTxtFmtColl* pFmt )
/// retrieve the style for the grid alignment
const
SwTxtFmtColl
*
SwPageDesc
::
GetRegisterFmtColl
()
const
{
const
SwModify
*
pReg
=
a
Depend
.
GetRegisteredIn
();
const
SwModify
*
pReg
=
m_
Depend
.
GetRegisteredIn
();
return
static_cast
<
const
SwTxtFmtColl
*>
(
pReg
);
}
...
...
@@ -183,7 +182,7 @@ void SwPageDesc::RegisterChange()
return
;
}
nRegHeight
=
0
;
m_
nRegHeight
=
0
;
{
SwIterator
<
SwFrm
,
SwFmt
>
aIter
(
GetMaster
()
);
for
(
SwFrm
*
pLast
=
aIter
.
First
();
pLast
;
pLast
=
aIter
.
Next
()
)
...
...
@@ -305,29 +304,29 @@ bool SwPageDesc::IsFollowNextPageOfNode( const SwNode& rNd ) const
SwFrmFmt
*
SwPageDesc
::
GetLeftFmt
(
bool
const
bFirst
)
{
return
(
nsUseOnPage
::
PD_LEFT
&
eUse
)
?
((
bFirst
)
?
&
m_FirstLeft
:
&
a
Left
)
return
(
nsUseOnPage
::
PD_LEFT
&
m_
eUse
)
?
((
bFirst
)
?
&
m_FirstLeft
:
&
m_
Left
)
:
0
;
}
SwFrmFmt
*
SwPageDesc
::
GetRightFmt
(
bool
const
bFirst
)
{
return
(
nsUseOnPage
::
PD_RIGHT
&
eUse
)
?
((
bFirst
)
?
&
m_FirstMaster
:
&
a
Master
)
return
(
nsUseOnPage
::
PD_RIGHT
&
m_
eUse
)
?
((
bFirst
)
?
&
m_FirstMaster
:
&
m_
Master
)
:
0
;
}
bool
SwPageDesc
::
IsFirstShared
()
const
{
return
(
eUse
&
nsUseOnPage
::
PD_FIRSTSHARE
)
!=
0
;
return
(
m_
eUse
&
nsUseOnPage
::
PD_FIRSTSHARE
)
!=
0
;
}
void
SwPageDesc
::
ChgFirstShare
(
bool
bNew
)
{
if
(
bNew
)
eUse
=
(
UseOnPage
)
(
eUse
|
nsUseOnPage
::
PD_FIRSTSHARE
);
m_eUse
=
(
UseOnPage
)
(
m_
eUse
|
nsUseOnPage
::
PD_FIRSTSHARE
);
else
eUse
=
(
UseOnPage
)
(
eUse
&
nsUseOnPage
::
PD_NOFIRSTSHARE
);
m_eUse
=
(
UseOnPage
)
(
m_
eUse
&
nsUseOnPage
::
PD_NOFIRSTSHARE
);
}
SwPageDesc
*
SwPageDesc
::
GetByName
(
SwDoc
&
rDoc
,
const
OUString
&
rName
)
...
...
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