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
40148327
Kaydet (Commit)
40148327
authored
Kas 06, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: prefix members of SwTextFormatInfo
Change-Id: I116b4c6b8eed53ad19263fdc3a11ee67756fe472
üst
dc5a6426
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
223 additions
and
223 deletions
+223
-223
inftxt.cxx
sw/source/core/text/inftxt.cxx
+98
-98
inftxt.hxx
sw/source/core/text/inftxt.hxx
+125
-125
No files found.
sw/source/core/text/inftxt.cxx
Dosyayı görüntüle @
40148327
...
@@ -1324,9 +1324,9 @@ static void lcl_InitHyphValues( PropertyValues &rVals,
...
@@ -1324,9 +1324,9 @@ static void lcl_InitHyphValues( PropertyValues &rVals,
const
PropertyValues
&
SwTextFormatInfo
::
GetHyphValues
()
const
const
PropertyValues
&
SwTextFormatInfo
::
GetHyphValues
()
const
{
{
OSL_ENSURE
(
2
==
aHyphVals
.
getLength
(),
OSL_ENSURE
(
2
==
m_
aHyphVals
.
getLength
(),
"hyphenation values not yet initialized"
);
"hyphenation values not yet initialized"
);
return
aHyphVals
;
return
m_
aHyphVals
;
}
}
bool
SwTextFormatInfo
::
InitHyph
(
const
bool
bAutoHyphen
)
bool
SwTextFormatInfo
::
InitHyph
(
const
bool
bAutoHyphen
)
...
@@ -1338,11 +1338,11 @@ bool SwTextFormatInfo::InitHyph( const bool bAutoHyphen )
...
@@ -1338,11 +1338,11 @@ bool SwTextFormatInfo::InitHyph( const bool bAutoHyphen )
const
SvxHyphenZoneItem
&
rAttr
=
rAttrSet
.
GetHyphenZone
();
const
SvxHyphenZoneItem
&
rAttr
=
rAttrSet
.
GetHyphenZone
();
MaxHyph
()
=
rAttr
.
GetMaxHyphens
();
MaxHyph
()
=
rAttr
.
GetMaxHyphens
();
const
bool
bAuto
=
bAutoHyphen
||
rAttr
.
IsHyphen
();
const
bool
bAuto
=
bAutoHyphen
||
rAttr
.
IsHyphen
();
if
(
bAuto
||
bInterHyph
)
if
(
bAuto
||
m_
bInterHyph
)
{
{
const
sal_Int16
nMinimalLeading
=
std
::
max
(
rAttr
.
GetMinLead
(),
sal_uInt8
(
2
));
const
sal_Int16
nMinimalLeading
=
std
::
max
(
rAttr
.
GetMinLead
(),
sal_uInt8
(
2
));
const
sal_Int16
nMinimalTrailing
=
rAttr
.
GetMinTrail
();
const
sal_Int16
nMinimalTrailing
=
rAttr
.
GetMinTrail
();
lcl_InitHyphValues
(
aHyphVals
,
nMinimalLeading
,
nMinimalTrailing
);
lcl_InitHyphValues
(
m_
aHyphVals
,
nMinimalLeading
,
nMinimalTrailing
);
}
}
return
bAuto
;
return
bAuto
;
}
}
...
@@ -1352,28 +1352,28 @@ void SwTextFormatInfo::CtorInitTextFormatInfo( OutputDevice* pRenderContext, SwT
...
@@ -1352,28 +1352,28 @@ void SwTextFormatInfo::CtorInitTextFormatInfo( OutputDevice* pRenderContext, SwT
{
{
CtorInitTextPaintInfo
(
pRenderContext
,
pNewFrm
,
SwRect
()
);
CtorInitTextPaintInfo
(
pRenderContext
,
pNewFrm
,
SwRect
()
);
bQuick
=
bNewQuick
;
m_
bQuick
=
bNewQuick
;
bInterHyph
=
bNewInterHyph
;
m_
bInterHyph
=
bNewInterHyph
;
//! needs to be done in this order
//! needs to be done in this order
nMinLeading
=
2
;
m_
nMinLeading
=
2
;
nMinTrailing
=
2
;
m_
nMinTrailing
=
2
;
nMinWordLength
=
0
;
m_
nMinWordLength
=
0
;
bAutoHyph
=
InitHyph
();
m_
bAutoHyph
=
InitHyph
();
bIgnoreFly
=
false
;
m_
bIgnoreFly
=
false
;
bFakeLineStart
=
false
;
m_
bFakeLineStart
=
false
;
bShift
=
false
;
m_
bShift
=
false
;
bDropInit
=
false
;
m_
bDropInit
=
false
;
bTestFormat
=
bTst
;
m_
bTestFormat
=
bTst
;
nLeft
=
0
;
m_
nLeft
=
0
;
nRight
=
0
;
m_
nRight
=
0
;
nFirst
=
0
;
m_
nFirst
=
0
;
nRealWidth
=
0
;
m_
nRealWidth
=
0
;
nForcedLeftMargin
=
0
;
m_
nForcedLeftMargin
=
0
;
pRest
=
0
;
m_
pRest
=
0
;
nLineHeight
=
0
;
m_
nLineHeight
=
0
;
nLineNetHeight
=
0
;
m_
nLineNetHeight
=
0
;
SetLineStart
(
0
);
SetLineStart
(
0
);
SvtCTLOptions
::
TextNumerals
const
nTextNumerals
(
SvtCTLOptions
::
TextNumerals
const
nTextNumerals
(
...
@@ -1400,7 +1400,7 @@ void SwTextFormatInfo::CtorInitTextFormatInfo( OutputDevice* pRenderContext, SwT
...
@@ -1400,7 +1400,7 @@ void SwTextFormatInfo::CtorInitTextFormatInfo( OutputDevice* pRenderContext, SwT
*/
*/
bool
SwTextFormatInfo
::
IsHyphenate
()
const
bool
SwTextFormatInfo
::
IsHyphenate
()
const
{
{
if
(
!
bInterHyph
&&
!
bAutoHyph
)
if
(
!
m_bInterHyph
&&
!
m_
bAutoHyph
)
return
false
;
return
false
;
LanguageType
eTmp
=
GetFont
()
->
GetLanguage
();
LanguageType
eTmp
=
GetFont
()
->
GetLanguage
();
...
@@ -1411,7 +1411,7 @@ bool SwTextFormatInfo::IsHyphenate() const
...
@@ -1411,7 +1411,7 @@ bool SwTextFormatInfo::IsHyphenate() const
if
(
!
xHyph
.
is
())
if
(
!
xHyph
.
is
())
return
false
;
return
false
;
if
(
bInterHyph
)
if
(
m_
bInterHyph
)
SvxSpellWrapper
::
CheckHyphLang
(
xHyph
,
eTmp
);
SvxSpellWrapper
::
CheckHyphLang
(
xHyph
,
eTmp
);
return
xHyph
->
hasLocale
(
g_pBreakIt
->
GetLocale
(
eTmp
)
);
return
xHyph
->
hasLocale
(
g_pBreakIt
->
GetLocale
(
eTmp
)
);
...
@@ -1430,8 +1430,8 @@ void SwTextFormatInfo::Init()
...
@@ -1430,8 +1430,8 @@ void SwTextFormatInfo::Init()
{
{
// Not initialized: pRest, nLeft, nRight, nFirst, nRealWidth
// Not initialized: pRest, nLeft, nRight, nFirst, nRealWidth
X
(
0
);
X
(
0
);
bArrowDone
=
bFull
=
bFootnoteDone
=
bErgoDone
=
bNumDone
=
bNoEndHyph
=
m_bArrowDone
=
m_bFull
=
m_bFootnoteDone
=
m_bErgoDone
=
m_bNumDone
=
m_
bNoEndHyph
=
bNoMidHyph
=
bStop
=
bNewLine
=
bUnderflow
=
bTabOverflow
=
false
;
m_bNoMidHyph
=
m_bStop
=
m_bNewLine
=
m_bUnderflow
=
m_
bTabOverflow
=
false
;
// generally we do not allow number portions in follows, except...
// generally we do not allow number portions in follows, except...
if
(
GetTextFrm
()
->
IsFollow
()
)
if
(
GetTextFrm
()
->
IsFollow
()
)
...
@@ -1442,22 +1442,22 @@ void SwTextFormatInfo::Init()
...
@@ -1442,22 +1442,22 @@ void SwTextFormatInfo::Init()
// there is a master for this follow and the master does not have
// there is a master for this follow and the master does not have
// any contents (especially it does not have a number portion)
// any contents (especially it does not have a number portion)
bNumDone
=
!
pTmpPara
||
m_
bNumDone
=
!
pTmpPara
||
!
static_cast
<
const
SwParaPortion
*>
(
pTmpPara
)
->
GetFirstPortion
()
->
IsFlyPortion
();
!
static_cast
<
const
SwParaPortion
*>
(
pTmpPara
)
->
GetFirstPortion
()
->
IsFlyPortion
();
}
}
pRoot
=
0
;
m_
pRoot
=
0
;
pLast
=
0
;
m_
pLast
=
0
;
pFly
=
0
;
m_
pFly
=
0
;
pLastField
=
0
;
m_
pLastField
=
0
;
pLastTab
=
0
;
m_
pLastTab
=
0
;
pUnderflow
=
0
;
m_
pUnderflow
=
0
;
cTabDecimal
=
0
;
m_
cTabDecimal
=
0
;
nWidth
=
nRealWidth
;
m_nWidth
=
m_
nRealWidth
;
nForcedLeftMargin
=
0
;
m_
nForcedLeftMargin
=
0
;
nSoftHyphPos
=
0
;
m_
nSoftHyphPos
=
0
;
nUnderScorePos
=
COMPLETE_STRING
;
m_
nUnderScorePos
=
COMPLETE_STRING
;
cHookChar
=
0
;
m_
cHookChar
=
0
;
SetIdx
(
0
);
SetIdx
(
0
);
SetLen
(
GetText
().
getLength
()
);
SetLen
(
GetText
().
getLength
()
);
SetPaintOfst
(
0
);
SetPaintOfst
(
0
);
...
@@ -1479,53 +1479,53 @@ SwTextFormatInfo::SwTextFormatInfo(OutputDevice* pRenderContext, SwTextFrm *pFra
...
@@ -1479,53 +1479,53 @@ SwTextFormatInfo::SwTextFormatInfo(OutputDevice* pRenderContext, SwTextFrm *pFra
*/
*/
SwTextFormatInfo
::
SwTextFormatInfo
(
const
SwTextFormatInfo
&
rInf
,
SwTextFormatInfo
::
SwTextFormatInfo
(
const
SwTextFormatInfo
&
rInf
,
SwLineLayout
&
rLay
,
SwTwips
nActWidth
)
:
SwTextPaintInfo
(
rInf
),
SwLineLayout
&
rLay
,
SwTwips
nActWidth
)
:
SwTextPaintInfo
(
rInf
),
bTabOverflow
(
false
)
m_
bTabOverflow
(
false
)
{
{
pRoot
=
&
rLay
;
m_
pRoot
=
&
rLay
;
pLast
=
&
rLay
;
m_
pLast
=
&
rLay
;
pFly
=
NULL
;
m_
pFly
=
NULL
;
pLastField
=
NULL
;
m_
pLastField
=
NULL
;
pUnderflow
=
NULL
;
m_
pUnderflow
=
NULL
;
pRest
=
NULL
;
m_
pRest
=
NULL
;
pLastTab
=
NULL
;
m_
pLastTab
=
NULL
;
nSoftHyphPos
=
0
;
m_
nSoftHyphPos
=
0
;
nUnderScorePos
=
COMPLETE_STRING
;
m_
nUnderScorePos
=
COMPLETE_STRING
;
nLineStart
=
rInf
.
GetIdx
();
m_
nLineStart
=
rInf
.
GetIdx
();
nLeft
=
rInf
.
nLeft
;
m_nLeft
=
rInf
.
m_
nLeft
;
nRight
=
rInf
.
nRight
;
m_nRight
=
rInf
.
m_
nRight
;
nFirst
=
rInf
.
nLeft
;
m_nFirst
=
rInf
.
m_
nLeft
;
nRealWidth
=
sal_uInt16
(
nActWidth
);
m_
nRealWidth
=
sal_uInt16
(
nActWidth
);
nWidth
=
nRealWidth
;
m_nWidth
=
m_
nRealWidth
;
nLineHeight
=
0
;
m_
nLineHeight
=
0
;
nLineNetHeight
=
0
;
m_
nLineNetHeight
=
0
;
nForcedLeftMargin
=
0
;
m_
nForcedLeftMargin
=
0
;
nMinLeading
=
0
;
m_
nMinLeading
=
0
;
nMinTrailing
=
0
;
m_
nMinTrailing
=
0
;
nMinWordLength
=
0
;
m_
nMinWordLength
=
0
;
bFull
=
false
;
m_
bFull
=
false
;
bFootnoteDone
=
true
;
m_
bFootnoteDone
=
true
;
bErgoDone
=
true
;
m_
bErgoDone
=
true
;
bNumDone
=
true
;
m_
bNumDone
=
true
;
bArrowDone
=
true
;
m_
bArrowDone
=
true
;
bStop
=
false
;
m_
bStop
=
false
;
bNewLine
=
true
;
m_
bNewLine
=
true
;
bShift
=
false
;
m_
bShift
=
false
;
bUnderflow
=
false
;
m_
bUnderflow
=
false
;
bInterHyph
=
false
;
m_
bInterHyph
=
false
;
bAutoHyph
=
false
;
m_
bAutoHyph
=
false
;
bDropInit
=
false
;
m_
bDropInit
=
false
;
bQuick
=
rInf
.
bQuick
;
m_bQuick
=
rInf
.
m_
bQuick
;
bNoEndHyph
=
false
;
m_
bNoEndHyph
=
false
;
bNoMidHyph
=
false
;
m_
bNoMidHyph
=
false
;
bIgnoreFly
=
false
;
m_
bIgnoreFly
=
false
;
bFakeLineStart
=
false
;
m_
bFakeLineStart
=
false
;
cTabDecimal
=
0
;
m_
cTabDecimal
=
0
;
cHookChar
=
0
;
m_
cHookChar
=
0
;
nMaxHyph
=
0
;
m_
nMaxHyph
=
0
;
bTestFormat
=
rInf
.
bTestFormat
;
m_bTestFormat
=
rInf
.
m_
bTestFormat
;
SetMulti
(
true
);
SetMulti
(
true
);
SetFirstMulti
(
rInf
.
IsFirstMulti
()
);
SetFirstMulti
(
rInf
.
IsFirstMulti
()
);
}
}
...
@@ -1548,7 +1548,7 @@ bool SwTextFormatInfo::_CheckFootnotePortion( SwLineLayout* pCurr )
...
@@ -1548,7 +1548,7 @@ bool SwTextFormatInfo::_CheckFootnotePortion( SwLineLayout* pCurr )
sal_Int32
SwTextFormatInfo
::
ScanPortionEnd
(
const
sal_Int32
nStart
,
sal_Int32
SwTextFormatInfo
::
ScanPortionEnd
(
const
sal_Int32
nStart
,
const
sal_Int32
nEnd
)
const
sal_Int32
nEnd
)
{
{
cHookChar
=
0
;
m_
cHookChar
=
0
;
sal_Int32
i
=
nStart
;
sal_Int32
i
=
nStart
;
// Used for decimal tab handling:
// Used for decimal tab handling:
...
@@ -1579,12 +1579,12 @@ sal_Int32 SwTextFormatInfo::ScanPortionEnd( const sal_Int32 nStart,
...
@@ -1579,12 +1579,12 @@ sal_Int32 SwTextFormatInfo::ScanPortionEnd( const sal_Int32 nStart,
case
CH_BREAK
:
case
CH_BREAK
:
case
CHAR_ZWSP
:
case
CHAR_ZWSP
:
case
CHAR_ZWNBSP
:
case
CHAR_ZWNBSP
:
cHookChar
=
cPos
;
m_
cHookChar
=
cPos
;
return
i
;
return
i
;
case
CHAR_UNDERSCORE
:
case
CHAR_UNDERSCORE
:
if
(
COMPLETE_STRING
==
nUnderScorePos
)
if
(
COMPLETE_STRING
==
m_
nUnderScorePos
)
nUnderScorePos
=
i
;
m_
nUnderScorePos
=
i
;
break
;
break
;
default
:
default
:
...
@@ -1595,7 +1595,7 @@ sal_Int32 SwTextFormatInfo::ScanPortionEnd( const sal_Int32 nStart,
...
@@ -1595,7 +1595,7 @@ sal_Int32 SwTextFormatInfo::ScanPortionEnd( const sal_Int32 nStart,
OSL_ENSURE
(
cPos
,
"Unexpected end of string"
);
OSL_ENSURE
(
cPos
,
"Unexpected end of string"
);
if
(
cPos
)
// robust
if
(
cPos
)
// robust
{
{
cHookChar
=
cPos
;
m_
cHookChar
=
cPos
;
return
i
;
return
i
;
}
}
}
}
...
@@ -1613,7 +1613,7 @@ sal_Int32 SwTextFormatInfo::ScanPortionEnd( const sal_Int32 nStart,
...
@@ -1613,7 +1613,7 @@ sal_Int32 SwTextFormatInfo::ScanPortionEnd( const sal_Int32 nStart,
{
{
if
(
bNumFound
)
if
(
bNumFound
)
{
{
cHookChar
=
cPos
;
m_
cHookChar
=
cPos
;
SetTabDecimal
(
cPos
);
SetTabDecimal
(
cPos
);
return
i
;
return
i
;
}
}
...
@@ -1630,8 +1630,8 @@ sal_Int32 SwTextFormatInfo::ScanPortionEnd( const sal_Int32 nStart,
...
@@ -1630,8 +1630,8 @@ sal_Int32 SwTextFormatInfo::ScanPortionEnd( const sal_Int32 nStart,
const
sal_Unicode
cPos
=
GetChar
(
i
);
const
sal_Unicode
cPos
=
GetChar
(
i
);
if
(
cPos
!=
cTabDec
&&
cPos
!=
cThousandSep
&&
cPos
!=
cThousandSep2
&&
(
0x2F
>=
cPos
||
cPos
>=
0x3A
)
)
if
(
cPos
!=
cTabDec
&&
cPos
!=
cThousandSep
&&
cPos
!=
cThousandSep2
&&
(
0x2F
>=
cPos
||
cPos
>=
0x3A
)
)
{
{
cHookChar
=
GetChar
(
i
);
m_
cHookChar
=
GetChar
(
i
);
SetTabDecimal
(
cHookChar
);
SetTabDecimal
(
m_
cHookChar
);
}
}
}
}
...
@@ -1814,10 +1814,10 @@ SwFontSave::~SwFontSave()
...
@@ -1814,10 +1814,10 @@ SwFontSave::~SwFontSave()
bool
SwTextFormatInfo
::
ChgHyph
(
const
bool
bNew
)
bool
SwTextFormatInfo
::
ChgHyph
(
const
bool
bNew
)
{
{
const
bool
bOld
=
bAutoHyph
;
const
bool
bOld
=
m_
bAutoHyph
;
if
(
bAutoHyph
!=
bNew
)
if
(
m_
bAutoHyph
!=
bNew
)
{
{
bAutoHyph
=
bNew
;
m_
bAutoHyph
=
bNew
;
InitHyph
(
bNew
);
InitHyph
(
bNew
);
// Set language in the Hyphenator
// Set language in the Hyphenator
if
(
m_pFnt
)
if
(
m_pFnt
)
...
...
sw/source/core/text/inftxt.hxx
Dosyayı görüntüle @
40148327
...
@@ -486,59 +486,59 @@ public:
...
@@ -486,59 +486,59 @@ public:
class
SwTextFormatInfo
:
public
SwTextPaintInfo
class
SwTextFormatInfo
:
public
SwTextPaintInfo
{
{
// temporary arguments for hyphenation
// temporary arguments for hyphenation
com
::
sun
::
star
::
beans
::
PropertyValues
aHyphVals
;
com
::
sun
::
star
::
beans
::
PropertyValues
m_
aHyphVals
;
SwLineLayout
*
pRoot
;
// The Root of the current line (pCurr)
SwLineLayout
*
m_
pRoot
;
// The Root of the current line (pCurr)
SwLinePortion
*
pLast
;
// The last Portion
SwLinePortion
*
m_
pLast
;
// The last Portion
SwFlyPortion
*
pFly
;
// The following FlyPortion
SwFlyPortion
*
m_
pFly
;
// The following FlyPortion
SwFieldPortion
*
pLastField
;
// Wrapped Field
SwFieldPortion
*
m_
pLastField
;
// Wrapped Field
SwLinePortion
*
pUnderflow
;
// Underflow: Last Portion
SwLinePortion
*
m_
pUnderflow
;
// Underflow: Last Portion
SwLinePortion
*
pRest
;
// The Rest is the start of the next Line
SwLinePortion
*
m_
pRest
;
// The Rest is the start of the next Line
SwTabPortion
*
pLastTab
;
// The _last_ TabPortion
SwTabPortion
*
m_
pLastTab
;
// The _last_ TabPortion
sal_Int32
nSoftHyphPos
;
// SoftHyphPos for Hyphenation
sal_Int32
m_
nSoftHyphPos
;
// SoftHyphPos for Hyphenation
sal_Int32
nLineStart
;
// Current line start in rText
sal_Int32
m_
nLineStart
;
// Current line start in rText
sal_Int32
nUnderScorePos
;
// enlarge repaint if underscore has been found
sal_Int32
m_
nUnderScorePos
;
// enlarge repaint if underscore has been found
// #i34348# Changed type from sal_uInt16 to SwTwips
// #i34348# Changed type from sal_uInt16 to SwTwips
SwTwips
nLeft
;
// Left margin
SwTwips
m_
nLeft
;
// Left margin
SwTwips
nRight
;
// Right margin
SwTwips
m_
nRight
;
// Right margin
SwTwips
nFirst
;
// EZE
SwTwips
m_
nFirst
;
// EZE
sal_uInt16
nRealWidth
;
// "real" line width
sal_uInt16
m_
nRealWidth
;
// "real" line width
sal_uInt16
nWidth
;
// "virtual" line width
sal_uInt16
m_
nWidth
;
// "virtual" line width
sal_uInt16
nLineHeight
;
// Final height after CalcLine
sal_uInt16
m_
nLineHeight
;
// Final height after CalcLine
sal_uInt16
nLineNetHeight
;
// line height without spacing
sal_uInt16
m_
nLineNetHeight
;
// line height without spacing
sal_uInt16
nForcedLeftMargin
;
// Shift of left margin due to frame
sal_uInt16
m_
nForcedLeftMargin
;
// Shift of left margin due to frame
sal_Int16
nMinLeading
;
// minimum number of chars before hyphenation point
sal_Int16
m_
nMinLeading
;
// minimum number of chars before hyphenation point
sal_Int16
nMinTrailing
;
// minimum number of chars after hyphenation point
sal_Int16
m_
nMinTrailing
;
// minimum number of chars after hyphenation point
sal_Int16
nMinWordLength
;
// minimum length of word to be hyphenated
sal_Int16
m_
nMinWordLength
;
// minimum length of word to be hyphenated
bool
bFull
:
1
;
// Line is full
bool
m_
bFull
:
1
;
// Line is full
bool
bFootnoteDone
:
1
;
// Footnote already formatted
bool
m_
bFootnoteDone
:
1
;
// Footnote already formatted
bool
bErgoDone
:
1
;
// ErgoDone already formatted
bool
m_
bErgoDone
:
1
;
// ErgoDone already formatted
bool
bNumDone
:
1
;
// bNumDone already formatted
bool
m_
bNumDone
:
1
;
// bNumDone already formatted
bool
bArrowDone
:
1
;
// Arrow to the left for scrolling paragraphs
bool
m_
bArrowDone
:
1
;
// Arrow to the left for scrolling paragraphs
bool
bStop
:
1
;
// Cancel immediately, discarding the line
bool
m_
bStop
:
1
;
// Cancel immediately, discarding the line
bool
bNewLine
:
1
;
// Format another line
bool
m_
bNewLine
:
1
;
// Format another line
bool
bShift
:
1
;
// Position change: Repaint until further notice
bool
m_
bShift
:
1
;
// Position change: Repaint until further notice
bool
bUnderflow
:
1
;
// Context: Underflow() ?
bool
m_
bUnderflow
:
1
;
// Context: Underflow() ?
bool
bInterHyph
:
1
;
// Interactive hyphenation?
bool
m_
bInterHyph
:
1
;
// Interactive hyphenation?
bool
bAutoHyph
:
1
;
// Automatic hyphenation?
bool
m_
bAutoHyph
:
1
;
// Automatic hyphenation?
bool
bDropInit
:
1
;
// Set DropWidth
bool
m_
bDropInit
:
1
;
// Set DropWidth
bool
bQuick
:
1
;
// FormatQuick()
bool
m_
bQuick
:
1
;
// FormatQuick()
bool
bNoEndHyph
:
1
;
// Switch off hyphenation at the line end (due to MaxHyphens)
bool
m_
bNoEndHyph
:
1
;
// Switch off hyphenation at the line end (due to MaxHyphens)
bool
bNoMidHyph
:
1
;
// Switch off hyphenation before flys (due to MaxHyphens)
bool
m_
bNoMidHyph
:
1
;
// Switch off hyphenation before flys (due to MaxHyphens)
bool
bIgnoreFly
:
1
;
// FitToContent ignores flys
bool
m_
bIgnoreFly
:
1
;
// FitToContent ignores flys
bool
bFakeLineStart
:
1
;
// String has been replaced by field portion
bool
m_
bFakeLineStart
:
1
;
// String has been replaced by field portion
// info structure only pretends that we are at
// info structure only pretends that we are at
// the beginning of a line
// the beginning of a line
bool
bTabOverflow
:
1
;
// Tabs are expanding after the end margin
bool
m_
bTabOverflow
:
1
;
// Tabs are expanding after the end margin
bool
bTestFormat
:
1
;
// Test formatting from WouldFit, no notification etc.
bool
m_
bTestFormat
:
1
;
// Test formatting from WouldFit, no notification etc.
sal_Unicode
cTabDecimal
;
// the current decimal delimiter
sal_Unicode
m_
cTabDecimal
;
// the current decimal delimiter
sal_Unicode
cHookChar
;
// For tabs in fields etc.
sal_Unicode
m_
cHookChar
;
// For tabs in fields etc.
sal_uInt8
nMaxHyph
;
// Max. line count of followup hyphenations
sal_uInt8
m_
nMaxHyph
;
// Max. line count of followup hyphenations
// Hyphenating ...
// Hyphenating ...
bool
InitHyph
(
const
bool
bAuto
=
false
);
bool
InitHyph
(
const
bool
bAuto
=
false
);
...
@@ -555,112 +555,112 @@ public:
...
@@ -555,112 +555,112 @@ public:
SwTextFormatInfo
(
const
SwTextFormatInfo
&
rInf
,
SwLineLayout
&
rLay
,
SwTextFormatInfo
(
const
SwTextFormatInfo
&
rInf
,
SwLineLayout
&
rLay
,
SwTwips
nActWidth
);
SwTwips
nActWidth
);
inline
sal_uInt16
Width
()
const
{
return
nWidth
;
}
inline
sal_uInt16
Width
()
const
{
return
m_
nWidth
;
}
inline
void
Width
(
const
sal_uInt16
nNew
)
{
nWidth
=
nNew
;
}
inline
void
Width
(
const
sal_uInt16
nNew
)
{
m_
nWidth
=
nNew
;
}
void
Init
();
void
Init
();
// Returns the first changed position of the paragraph
// Returns the first changed position of the paragraph
inline
sal_Int32
GetReformatStart
()
const
;
inline
sal_Int32
GetReformatStart
()
const
;
// Margins
// Margins
inline
SwTwips
Left
()
const
{
return
nLeft
;
}
inline
SwTwips
Left
()
const
{
return
m_
nLeft
;
}
inline
void
Left
(
const
SwTwips
nNew
)
{
nLeft
=
nNew
;
}
inline
void
Left
(
const
SwTwips
nNew
)
{
m_
nLeft
=
nNew
;
}
inline
SwTwips
Right
()
const
{
return
nRight
;
}
inline
SwTwips
Right
()
const
{
return
m_
nRight
;
}
inline
void
Right
(
const
SwTwips
nNew
)
{
nRight
=
nNew
;
}
inline
void
Right
(
const
SwTwips
nNew
)
{
m_
nRight
=
nNew
;
}
inline
SwTwips
First
()
const
{
return
nFirst
;
}
inline
SwTwips
First
()
const
{
return
m_
nFirst
;
}
inline
void
First
(
const
SwTwips
nNew
)
{
nFirst
=
nNew
;
}
inline
void
First
(
const
SwTwips
nNew
)
{
m_
nFirst
=
nNew
;
}
inline
sal_uInt16
RealWidth
()
const
{
return
nRealWidth
;
}
inline
sal_uInt16
RealWidth
()
const
{
return
m_
nRealWidth
;
}
inline
void
RealWidth
(
const
sal_uInt16
nNew
)
{
nRealWidth
=
nNew
;
}
inline
void
RealWidth
(
const
sal_uInt16
nNew
)
{
m_
nRealWidth
=
nNew
;
}
inline
sal_uInt16
ForcedLeftMargin
()
const
{
return
nForcedLeftMargin
;
}
inline
sal_uInt16
ForcedLeftMargin
()
const
{
return
m_
nForcedLeftMargin
;
}
inline
void
ForcedLeftMargin
(
const
sal_uInt16
nN
)
{
nForcedLeftMargin
=
nN
;
}
inline
void
ForcedLeftMargin
(
const
sal_uInt16
nN
)
{
m_
nForcedLeftMargin
=
nN
;
}
inline
sal_uInt8
&
MaxHyph
()
{
return
nMaxHyph
;
}
inline
sal_uInt8
&
MaxHyph
()
{
return
m_
nMaxHyph
;
}
inline
const
sal_uInt8
&
MaxHyph
()
const
{
return
nMaxHyph
;
}
inline
const
sal_uInt8
&
MaxHyph
()
const
{
return
m_
nMaxHyph
;
}
inline
SwLineLayout
*
GetRoot
()
{
return
pRoot
;
}
inline
SwLineLayout
*
GetRoot
()
{
return
m_
pRoot
;
}
inline
const
SwLineLayout
*
GetRoot
()
const
{
return
pRoot
;
}
inline
const
SwLineLayout
*
GetRoot
()
const
{
return
m_
pRoot
;
}
inline
void
SetRoot
(
SwLineLayout
*
pNew
)
{
pRoot
=
pNew
;
}
inline
void
SetRoot
(
SwLineLayout
*
pNew
)
{
m_
pRoot
=
pNew
;
}
inline
SwLinePortion
*
GetLast
()
{
return
pLast
;
}
inline
SwLinePortion
*
GetLast
()
{
return
m_
pLast
;
}
inline
void
SetLast
(
SwLinePortion
*
pNewLast
)
{
pLast
=
pNewLast
;
}
inline
void
SetLast
(
SwLinePortion
*
pNewLast
)
{
m_
pLast
=
pNewLast
;
}
inline
bool
IsFull
()
const
{
return
bFull
;
}
inline
bool
IsFull
()
const
{
return
m_
bFull
;
}
inline
void
SetFull
(
const
bool
bNew
)
{
bFull
=
bNew
;
}
inline
void
SetFull
(
const
bool
bNew
)
{
m_
bFull
=
bNew
;
}
inline
bool
IsHyphForbud
()
const
inline
bool
IsHyphForbud
()
const
{
return
pFly
?
bNoMidHyph
:
bNoEndHyph
;
}
{
return
m_pFly
?
m_bNoMidHyph
:
m_
bNoEndHyph
;
}
inline
void
ChkNoHyph
(
const
sal_uInt8
bEnd
,
const
sal_uInt8
bMid
)
inline
void
ChkNoHyph
(
const
sal_uInt8
bEnd
,
const
sal_uInt8
bMid
)
{
bNoEndHyph
=
(
nMaxHyph
&&
bEnd
>=
nMaxHyph
);
{
m_bNoEndHyph
=
(
m_nMaxHyph
&&
bEnd
>=
m_
nMaxHyph
);
bNoMidHyph
=
(
nMaxHyph
&&
bMid
>=
nMaxHyph
);
}
m_bNoMidHyph
=
(
m_nMaxHyph
&&
bMid
>=
m_
nMaxHyph
);
}
inline
bool
IsIgnoreFly
()
const
{
return
bIgnoreFly
;
}
inline
bool
IsIgnoreFly
()
const
{
return
m_
bIgnoreFly
;
}
inline
void
SetIgnoreFly
(
const
bool
bNew
)
{
bIgnoreFly
=
bNew
;
}
inline
void
SetIgnoreFly
(
const
bool
bNew
)
{
m_
bIgnoreFly
=
bNew
;
}
inline
bool
IsFakeLineStart
()
const
{
return
bFakeLineStart
;
}
inline
bool
IsFakeLineStart
()
const
{
return
m_
bFakeLineStart
;
}
inline
void
SetFakeLineStart
(
const
bool
bNew
)
{
bFakeLineStart
=
bNew
;
}
inline
void
SetFakeLineStart
(
const
bool
bNew
)
{
m_
bFakeLineStart
=
bNew
;
}
inline
bool
IsStop
()
const
{
return
bStop
;
}
inline
bool
IsStop
()
const
{
return
m_
bStop
;
}
inline
void
SetStop
(
const
bool
bNew
)
{
bStop
=
bNew
;
}
inline
void
SetStop
(
const
bool
bNew
)
{
m_
bStop
=
bNew
;
}
inline
SwLinePortion
*
GetRest
()
{
return
pRest
;
}
inline
SwLinePortion
*
GetRest
()
{
return
m_
pRest
;
}
inline
void
SetRest
(
SwLinePortion
*
pNewRest
)
{
pRest
=
pNewRest
;
}
inline
void
SetRest
(
SwLinePortion
*
pNewRest
)
{
m_
pRest
=
pNewRest
;
}
inline
bool
IsNewLine
()
const
{
return
bNewLine
;
}
inline
bool
IsNewLine
()
const
{
return
m_
bNewLine
;
}
inline
void
SetNewLine
(
const
bool
bNew
)
{
bNewLine
=
bNew
;
}
inline
void
SetNewLine
(
const
bool
bNew
)
{
m_
bNewLine
=
bNew
;
}
inline
bool
IsShift
()
const
{
return
bShift
;
}
inline
bool
IsShift
()
const
{
return
m_
bShift
;
}
inline
void
SetShift
(
const
bool
bNew
)
{
bShift
=
bNew
;
}
inline
void
SetShift
(
const
bool
bNew
)
{
m_
bShift
=
bNew
;
}
inline
bool
IsInterHyph
()
const
{
return
bInterHyph
;
}
inline
bool
IsInterHyph
()
const
{
return
m_
bInterHyph
;
}
inline
bool
IsUnderflow
()
const
{
return
bUnderflow
;
}
inline
bool
IsUnderflow
()
const
{
return
m_
bUnderflow
;
}
inline
void
ClrUnderflow
()
{
bUnderflow
=
false
;
}
inline
void
ClrUnderflow
()
{
m_
bUnderflow
=
false
;
}
inline
bool
IsDropInit
()
const
{
return
bDropInit
;
}
inline
bool
IsDropInit
()
const
{
return
m_
bDropInit
;
}
inline
void
SetDropInit
(
const
bool
bNew
)
{
bDropInit
=
bNew
;
}
inline
void
SetDropInit
(
const
bool
bNew
)
{
m_
bDropInit
=
bNew
;
}
inline
bool
IsQuick
()
const
{
return
bQuick
;
}
inline
bool
IsQuick
()
const
{
return
m_
bQuick
;
}
inline
bool
IsTest
()
const
{
return
bTestFormat
;
}
inline
bool
IsTest
()
const
{
return
m_
bTestFormat
;
}
inline
sal_Int32
GetLineStart
()
const
{
return
nLineStart
;
}
inline
sal_Int32
GetLineStart
()
const
{
return
m_
nLineStart
;
}
inline
void
SetLineStart
(
const
sal_Int32
nNew
)
{
nLineStart
=
nNew
;
}
inline
void
SetLineStart
(
const
sal_Int32
nNew
)
{
m_
nLineStart
=
nNew
;
}
// these are used during fly calculation
// these are used during fly calculation
inline
sal_uInt16
GetLineHeight
()
const
{
return
nLineHeight
;
}
inline
sal_uInt16
GetLineHeight
()
const
{
return
m_
nLineHeight
;
}
inline
void
SetLineHeight
(
const
sal_uInt16
nNew
)
{
nLineHeight
=
nNew
;
}
inline
void
SetLineHeight
(
const
sal_uInt16
nNew
)
{
m_
nLineHeight
=
nNew
;
}
inline
sal_uInt16
GetLineNetHeight
()
const
{
return
nLineNetHeight
;
}
inline
sal_uInt16
GetLineNetHeight
()
const
{
return
m_
nLineNetHeight
;
}
inline
void
SetLineNetHeight
(
const
sal_uInt16
nNew
)
{
nLineNetHeight
=
nNew
;
}
inline
void
SetLineNetHeight
(
const
sal_uInt16
nNew
)
{
m_
nLineNetHeight
=
nNew
;
}
inline
const
SwLinePortion
*
GetUnderflow
()
const
{
return
pUnderflow
;
}
inline
const
SwLinePortion
*
GetUnderflow
()
const
{
return
m_
pUnderflow
;
}
inline
SwLinePortion
*
GetUnderflow
()
{
return
pUnderflow
;
}
inline
SwLinePortion
*
GetUnderflow
()
{
return
m_
pUnderflow
;
}
inline
void
SetUnderflow
(
SwLinePortion
*
pNew
)
inline
void
SetUnderflow
(
SwLinePortion
*
pNew
)
{
pUnderflow
=
pNew
;
bUnderflow
=
true
;
}
{
m_pUnderflow
=
pNew
;
m_
bUnderflow
=
true
;
}
inline
sal_Int32
GetSoftHyphPos
()
const
{
return
nSoftHyphPos
;
}
inline
sal_Int32
GetSoftHyphPos
()
const
{
return
m_
nSoftHyphPos
;
}
inline
void
SetSoftHyphPos
(
const
sal_Int32
nNew
)
{
nSoftHyphPos
=
nNew
;
}
inline
void
SetSoftHyphPos
(
const
sal_Int32
nNew
)
{
m_
nSoftHyphPos
=
nNew
;
}
inline
void
SetParaFootnote
();
inline
void
SetParaFootnote
();
// FlyFrms
// FlyFrms
inline
SwFlyPortion
*
GetFly
()
{
return
pFly
;
}
inline
SwFlyPortion
*
GetFly
()
{
return
m_
pFly
;
}
inline
void
SetFly
(
SwFlyPortion
*
pNew
)
{
pFly
=
pNew
;
}
inline
void
SetFly
(
SwFlyPortion
*
pNew
)
{
m_
pFly
=
pNew
;
}
inline
const
SwAttrSet
&
GetCharAttr
()
const
;
inline
const
SwAttrSet
&
GetCharAttr
()
const
;
// Tabs
// Tabs
inline
SwTabPortion
*
GetLastTab
()
{
return
pLastTab
;
}
inline
SwTabPortion
*
GetLastTab
()
{
return
m_
pLastTab
;
}
inline
void
SetLastTab
(
SwTabPortion
*
pNew
)
{
pLastTab
=
pNew
;
}
inline
void
SetLastTab
(
SwTabPortion
*
pNew
)
{
m_
pLastTab
=
pNew
;
}
inline
sal_Unicode
GetTabDecimal
()
const
{
return
cTabDecimal
;
}
inline
sal_Unicode
GetTabDecimal
()
const
{
return
m_
cTabDecimal
;
}
inline
void
SetTabDecimal
(
const
sal_Unicode
cNew
)
{
cTabDecimal
=
cNew
;}
inline
void
SetTabDecimal
(
const
sal_Unicode
cNew
)
{
m_
cTabDecimal
=
cNew
;}
inline
void
ClearHookChar
()
{
cHookChar
=
0
;
}
inline
void
ClearHookChar
()
{
m_
cHookChar
=
0
;
}
inline
void
SetHookChar
(
const
sal_Unicode
cNew
)
{
cHookChar
=
cNew
;
}
inline
void
SetHookChar
(
const
sal_Unicode
cNew
)
{
m_
cHookChar
=
cNew
;
}
inline
sal_Unicode
GetHookChar
()
const
{
return
cHookChar
;
}
inline
sal_Unicode
GetHookChar
()
const
{
return
m_
cHookChar
;
}
// Done-Flags
// Done-Flags
inline
bool
IsFootnoteDone
()
const
{
return
bFootnoteDone
;
}
inline
bool
IsFootnoteDone
()
const
{
return
m_
bFootnoteDone
;
}
inline
void
SetFootnoteDone
(
const
bool
bNew
)
{
bFootnoteDone
=
bNew
;
}
inline
void
SetFootnoteDone
(
const
bool
bNew
)
{
m_
bFootnoteDone
=
bNew
;
}
inline
bool
IsErgoDone
()
const
{
return
bErgoDone
;
}
inline
bool
IsErgoDone
()
const
{
return
m_
bErgoDone
;
}
inline
void
SetErgoDone
(
const
bool
bNew
)
{
bErgoDone
=
bNew
;
}
inline
void
SetErgoDone
(
const
bool
bNew
)
{
m_
bErgoDone
=
bNew
;
}
inline
bool
IsNumDone
()
const
{
return
bNumDone
;
}
inline
bool
IsNumDone
()
const
{
return
m_
bNumDone
;
}
inline
void
SetNumDone
(
const
bool
bNew
)
{
bNumDone
=
bNew
;
}
inline
void
SetNumDone
(
const
bool
bNew
)
{
m_
bNumDone
=
bNew
;
}
inline
bool
IsArrowDone
()
const
{
return
bArrowDone
;
}
inline
bool
IsArrowDone
()
const
{
return
m_
bArrowDone
;
}
inline
void
SetArrowDone
(
const
bool
bNew
)
{
bArrowDone
=
bNew
;
}
inline
void
SetArrowDone
(
const
bool
bNew
)
{
m_
bArrowDone
=
bNew
;
}
// For SwTextPortion::Hyphenate
// For SwTextPortion::Hyphenate
bool
ChgHyph
(
const
bool
bNew
);
bool
ChgHyph
(
const
bool
bNew
);
// Should the hyphenate helper be discarded?
// Should the hyphenate helper be discarded?
bool
IsHyphenate
()
const
;
bool
IsHyphenate
()
const
;
inline
sal_Int32
GetUnderScorePos
()
const
{
return
nUnderScorePos
;
}
inline
sal_Int32
GetUnderScorePos
()
const
{
return
m_
nUnderScorePos
;
}
inline
void
SetUnderScorePos
(
sal_Int32
nNew
)
{
nUnderScorePos
=
nNew
;
}
inline
void
SetUnderScorePos
(
sal_Int32
nNew
)
{
m_
nUnderScorePos
=
nNew
;
}
// Calls HyphenateWord() of Hyphenator
// Calls HyphenateWord() of Hyphenator
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
Reference
<
...
@@ -682,8 +682,8 @@ public:
...
@@ -682,8 +682,8 @@ public:
// Return: Position; sets cHookChar if necessary
// Return: Position; sets cHookChar if necessary
sal_Int32
ScanPortionEnd
(
const
sal_Int32
nStart
,
const
sal_Int32
nEnd
);
sal_Int32
ScanPortionEnd
(
const
sal_Int32
nStart
,
const
sal_Int32
nEnd
);
inline
void
SetTabOverflow
(
bool
bOverflow
)
{
bTabOverflow
=
bOverflow
;
}
inline
void
SetTabOverflow
(
bool
bOverflow
)
{
m_
bTabOverflow
=
bOverflow
;
}
inline
bool
IsTabOverflow
()
{
return
bTabOverflow
;
}
inline
bool
IsTabOverflow
()
{
return
m_
bTabOverflow
;
}
};
};
...
...
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