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
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
98 additions
and
98 deletions
+98
-98
inftxt.cxx
sw/source/core/text/inftxt.cxx
+98
-98
inftxt.hxx
sw/source/core/text/inftxt.hxx
+0
-0
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,
const
PropertyValues
&
SwTextFormatInfo
::
GetHyphValues
()
const
{
OSL_ENSURE
(
2
==
aHyphVals
.
getLength
(),
OSL_ENSURE
(
2
==
m_
aHyphVals
.
getLength
(),
"hyphenation values not yet initialized"
);
return
aHyphVals
;
return
m_
aHyphVals
;
}
bool
SwTextFormatInfo
::
InitHyph
(
const
bool
bAutoHyphen
)
...
...
@@ -1338,11 +1338,11 @@ bool SwTextFormatInfo::InitHyph( const bool bAutoHyphen )
const
SvxHyphenZoneItem
&
rAttr
=
rAttrSet
.
GetHyphenZone
();
MaxHyph
()
=
rAttr
.
GetMaxHyphens
();
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
nMinimalTrailing
=
rAttr
.
GetMinTrail
();
lcl_InitHyphValues
(
aHyphVals
,
nMinimalLeading
,
nMinimalTrailing
);
lcl_InitHyphValues
(
m_
aHyphVals
,
nMinimalLeading
,
nMinimalTrailing
);
}
return
bAuto
;
}
...
...
@@ -1352,28 +1352,28 @@ void SwTextFormatInfo::CtorInitTextFormatInfo( OutputDevice* pRenderContext, SwT
{
CtorInitTextPaintInfo
(
pRenderContext
,
pNewFrm
,
SwRect
()
);
bQuick
=
bNewQuick
;
bInterHyph
=
bNewInterHyph
;
m_
bQuick
=
bNewQuick
;
m_
bInterHyph
=
bNewInterHyph
;
//! needs to be done in this order
nMinLeading
=
2
;
nMinTrailing
=
2
;
nMinWordLength
=
0
;
bAutoHyph
=
InitHyph
();
bIgnoreFly
=
false
;
bFakeLineStart
=
false
;
bShift
=
false
;
bDropInit
=
false
;
bTestFormat
=
bTst
;
nLeft
=
0
;
nRight
=
0
;
nFirst
=
0
;
nRealWidth
=
0
;
nForcedLeftMargin
=
0
;
pRest
=
0
;
nLineHeight
=
0
;
nLineNetHeight
=
0
;
m_
nMinLeading
=
2
;
m_
nMinTrailing
=
2
;
m_
nMinWordLength
=
0
;
m_
bAutoHyph
=
InitHyph
();
m_
bIgnoreFly
=
false
;
m_
bFakeLineStart
=
false
;
m_
bShift
=
false
;
m_
bDropInit
=
false
;
m_
bTestFormat
=
bTst
;
m_
nLeft
=
0
;
m_
nRight
=
0
;
m_
nFirst
=
0
;
m_
nRealWidth
=
0
;
m_
nForcedLeftMargin
=
0
;
m_
pRest
=
0
;
m_
nLineHeight
=
0
;
m_
nLineNetHeight
=
0
;
SetLineStart
(
0
);
SvtCTLOptions
::
TextNumerals
const
nTextNumerals
(
...
...
@@ -1400,7 +1400,7 @@ void SwTextFormatInfo::CtorInitTextFormatInfo( OutputDevice* pRenderContext, SwT
*/
bool
SwTextFormatInfo
::
IsHyphenate
()
const
{
if
(
!
bInterHyph
&&
!
bAutoHyph
)
if
(
!
m_bInterHyph
&&
!
m_
bAutoHyph
)
return
false
;
LanguageType
eTmp
=
GetFont
()
->
GetLanguage
();
...
...
@@ -1411,7 +1411,7 @@ bool SwTextFormatInfo::IsHyphenate() const
if
(
!
xHyph
.
is
())
return
false
;
if
(
bInterHyph
)
if
(
m_
bInterHyph
)
SvxSpellWrapper
::
CheckHyphLang
(
xHyph
,
eTmp
);
return
xHyph
->
hasLocale
(
g_pBreakIt
->
GetLocale
(
eTmp
)
);
...
...
@@ -1430,8 +1430,8 @@ void SwTextFormatInfo::Init()
{
// Not initialized: pRest, nLeft, nRight, nFirst, nRealWidth
X
(
0
);
bArrowDone
=
bFull
=
bFootnoteDone
=
bErgoDone
=
bNumDone
=
bNoEndHyph
=
bNoMidHyph
=
bStop
=
bNewLine
=
bUnderflow
=
bTabOverflow
=
false
;
m_bArrowDone
=
m_bFull
=
m_bFootnoteDone
=
m_bErgoDone
=
m_bNumDone
=
m_
bNoEndHyph
=
m_bNoMidHyph
=
m_bStop
=
m_bNewLine
=
m_bUnderflow
=
m_
bTabOverflow
=
false
;
// generally we do not allow number portions in follows, except...
if
(
GetTextFrm
()
->
IsFollow
()
)
...
...
@@ -1442,22 +1442,22 @@ void SwTextFormatInfo::Init()
// there is a master for this follow and the master does not have
// any contents (especially it does not have a number portion)
bNumDone
=
!
pTmpPara
||
m_
bNumDone
=
!
pTmpPara
||
!
static_cast
<
const
SwParaPortion
*>
(
pTmpPara
)
->
GetFirstPortion
()
->
IsFlyPortion
();
}
pRoot
=
0
;
pLast
=
0
;
pFly
=
0
;
pLastField
=
0
;
pLastTab
=
0
;
pUnderflow
=
0
;
cTabDecimal
=
0
;
nWidth
=
nRealWidth
;
nForcedLeftMargin
=
0
;
nSoftHyphPos
=
0
;
nUnderScorePos
=
COMPLETE_STRING
;
cHookChar
=
0
;
m_
pRoot
=
0
;
m_
pLast
=
0
;
m_
pFly
=
0
;
m_
pLastField
=
0
;
m_
pLastTab
=
0
;
m_
pUnderflow
=
0
;
m_
cTabDecimal
=
0
;
m_nWidth
=
m_
nRealWidth
;
m_
nForcedLeftMargin
=
0
;
m_
nSoftHyphPos
=
0
;
m_
nUnderScorePos
=
COMPLETE_STRING
;
m_
cHookChar
=
0
;
SetIdx
(
0
);
SetLen
(
GetText
().
getLength
()
);
SetPaintOfst
(
0
);
...
...
@@ -1479,53 +1479,53 @@ SwTextFormatInfo::SwTextFormatInfo(OutputDevice* pRenderContext, SwTextFrm *pFra
*/
SwTextFormatInfo
::
SwTextFormatInfo
(
const
SwTextFormatInfo
&
rInf
,
SwLineLayout
&
rLay
,
SwTwips
nActWidth
)
:
SwTextPaintInfo
(
rInf
),
bTabOverflow
(
false
)
m_
bTabOverflow
(
false
)
{
pRoot
=
&
rLay
;
pLast
=
&
rLay
;
pFly
=
NULL
;
pLastField
=
NULL
;
pUnderflow
=
NULL
;
pRest
=
NULL
;
pLastTab
=
NULL
;
nSoftHyphPos
=
0
;
nUnderScorePos
=
COMPLETE_STRING
;
nLineStart
=
rInf
.
GetIdx
();
nLeft
=
rInf
.
nLeft
;
nRight
=
rInf
.
nRight
;
nFirst
=
rInf
.
nLeft
;
nRealWidth
=
sal_uInt16
(
nActWidth
);
nWidth
=
nRealWidth
;
nLineHeight
=
0
;
nLineNetHeight
=
0
;
nForcedLeftMargin
=
0
;
nMinLeading
=
0
;
nMinTrailing
=
0
;
nMinWordLength
=
0
;
bFull
=
false
;
bFootnoteDone
=
true
;
bErgoDone
=
true
;
bNumDone
=
true
;
bArrowDone
=
true
;
bStop
=
false
;
bNewLine
=
true
;
bShift
=
false
;
bUnderflow
=
false
;
bInterHyph
=
false
;
bAutoHyph
=
false
;
bDropInit
=
false
;
bQuick
=
rInf
.
bQuick
;
bNoEndHyph
=
false
;
bNoMidHyph
=
false
;
bIgnoreFly
=
false
;
bFakeLineStart
=
false
;
cTabDecimal
=
0
;
cHookChar
=
0
;
nMaxHyph
=
0
;
bTestFormat
=
rInf
.
bTestFormat
;
m_
pRoot
=
&
rLay
;
m_
pLast
=
&
rLay
;
m_
pFly
=
NULL
;
m_
pLastField
=
NULL
;
m_
pUnderflow
=
NULL
;
m_
pRest
=
NULL
;
m_
pLastTab
=
NULL
;
m_
nSoftHyphPos
=
0
;
m_
nUnderScorePos
=
COMPLETE_STRING
;
m_
nLineStart
=
rInf
.
GetIdx
();
m_nLeft
=
rInf
.
m_
nLeft
;
m_nRight
=
rInf
.
m_
nRight
;
m_nFirst
=
rInf
.
m_
nLeft
;
m_
nRealWidth
=
sal_uInt16
(
nActWidth
);
m_nWidth
=
m_
nRealWidth
;
m_
nLineHeight
=
0
;
m_
nLineNetHeight
=
0
;
m_
nForcedLeftMargin
=
0
;
m_
nMinLeading
=
0
;
m_
nMinTrailing
=
0
;
m_
nMinWordLength
=
0
;
m_
bFull
=
false
;
m_
bFootnoteDone
=
true
;
m_
bErgoDone
=
true
;
m_
bNumDone
=
true
;
m_
bArrowDone
=
true
;
m_
bStop
=
false
;
m_
bNewLine
=
true
;
m_
bShift
=
false
;
m_
bUnderflow
=
false
;
m_
bInterHyph
=
false
;
m_
bAutoHyph
=
false
;
m_
bDropInit
=
false
;
m_bQuick
=
rInf
.
m_
bQuick
;
m_
bNoEndHyph
=
false
;
m_
bNoMidHyph
=
false
;
m_
bIgnoreFly
=
false
;
m_
bFakeLineStart
=
false
;
m_
cTabDecimal
=
0
;
m_
cHookChar
=
0
;
m_
nMaxHyph
=
0
;
m_bTestFormat
=
rInf
.
m_
bTestFormat
;
SetMulti
(
true
);
SetFirstMulti
(
rInf
.
IsFirstMulti
()
);
}
...
...
@@ -1548,7 +1548,7 @@ bool SwTextFormatInfo::_CheckFootnotePortion( SwLineLayout* pCurr )
sal_Int32
SwTextFormatInfo
::
ScanPortionEnd
(
const
sal_Int32
nStart
,
const
sal_Int32
nEnd
)
{
cHookChar
=
0
;
m_
cHookChar
=
0
;
sal_Int32
i
=
nStart
;
// Used for decimal tab handling:
...
...
@@ -1579,12 +1579,12 @@ sal_Int32 SwTextFormatInfo::ScanPortionEnd( const sal_Int32 nStart,
case
CH_BREAK
:
case
CHAR_ZWSP
:
case
CHAR_ZWNBSP
:
cHookChar
=
cPos
;
m_
cHookChar
=
cPos
;
return
i
;
case
CHAR_UNDERSCORE
:
if
(
COMPLETE_STRING
==
nUnderScorePos
)
nUnderScorePos
=
i
;
if
(
COMPLETE_STRING
==
m_
nUnderScorePos
)
m_
nUnderScorePos
=
i
;
break
;
default
:
...
...
@@ -1595,7 +1595,7 @@ sal_Int32 SwTextFormatInfo::ScanPortionEnd( const sal_Int32 nStart,
OSL_ENSURE
(
cPos
,
"Unexpected end of string"
);
if
(
cPos
)
// robust
{
cHookChar
=
cPos
;
m_
cHookChar
=
cPos
;
return
i
;
}
}
...
...
@@ -1613,7 +1613,7 @@ sal_Int32 SwTextFormatInfo::ScanPortionEnd( const sal_Int32 nStart,
{
if
(
bNumFound
)
{
cHookChar
=
cPos
;
m_
cHookChar
=
cPos
;
SetTabDecimal
(
cPos
);
return
i
;
}
...
...
@@ -1630,8 +1630,8 @@ sal_Int32 SwTextFormatInfo::ScanPortionEnd( const sal_Int32 nStart,
const
sal_Unicode
cPos
=
GetChar
(
i
);
if
(
cPos
!=
cTabDec
&&
cPos
!=
cThousandSep
&&
cPos
!=
cThousandSep2
&&
(
0x2F
>=
cPos
||
cPos
>=
0x3A
)
)
{
cHookChar
=
GetChar
(
i
);
SetTabDecimal
(
cHookChar
);
m_
cHookChar
=
GetChar
(
i
);
SetTabDecimal
(
m_
cHookChar
);
}
}
...
...
@@ -1814,10 +1814,10 @@ SwFontSave::~SwFontSave()
bool
SwTextFormatInfo
::
ChgHyph
(
const
bool
bNew
)
{
const
bool
bOld
=
bAutoHyph
;
if
(
bAutoHyph
!=
bNew
)
const
bool
bOld
=
m_
bAutoHyph
;
if
(
m_
bAutoHyph
!=
bNew
)
{
bAutoHyph
=
bNew
;
m_
bAutoHyph
=
bNew
;
InitHyph
(
bNew
);
// Set language in the Hyphenator
if
(
m_pFnt
)
...
...
sw/source/core/text/inftxt.hxx
Dosyayı görüntüle @
40148327
This diff is collapsed.
Click to expand it.
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