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
f23d092c
Kaydet (Commit)
f23d092c
authored
Kas 14, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: prefix members of SwLineLayout
Change-Id: If6ced6d33dbb9c82c75aa05a9f7b018926c0ffb0
üst
97355c22
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
71 additions
and
71 deletions
+71
-71
porlay.cxx
sw/source/core/text/porlay.cxx
+5
-5
porlay.hxx
sw/source/core/text/porlay.hxx
+66
-66
No files found.
sw/source/core/text/porlay.cxx
Dosyayı görüntüle @
f23d092c
...
@@ -124,11 +124,11 @@ static bool lcl_HasStrongLTR ( const OUString& rText, sal_Int32 nStart, sal_Int
...
@@ -124,11 +124,11 @@ static bool lcl_HasStrongLTR ( const OUString& rText, sal_Int32 nStart, sal_Int
SwLineLayout
::~
SwLineLayout
()
SwLineLayout
::~
SwLineLayout
()
{
{
Truncate
();
Truncate
();
delete
pNext
;
delete
m_
pNext
;
if
(
pBlink
)
if
(
pBlink
)
pBlink
->
Delete
(
this
);
pBlink
->
Delete
(
this
);
delete
pLLSpaceAdd
;
delete
m_
pLLSpaceAdd
;
delete
pKanaComp
;
delete
m_
pKanaComp
;
}
}
SwLinePortion
*
SwLineLayout
::
Insert
(
SwLinePortion
*
pIns
)
SwLinePortion
*
SwLineLayout
::
Insert
(
SwLinePortion
*
pIns
)
...
@@ -220,7 +220,7 @@ SwMarginPortion *SwLineLayout::CalcLeftMargin()
...
@@ -220,7 +220,7 @@ SwMarginPortion *SwLineLayout::CalcLeftMargin()
void
SwLineLayout
::
InitSpaceAdd
()
void
SwLineLayout
::
InitSpaceAdd
()
{
{
if
(
!
pLLSpaceAdd
)
if
(
!
m_
pLLSpaceAdd
)
CreateSpaceAdd
();
CreateSpaceAdd
();
else
else
SetLLSpaceAdd
(
0
,
0
);
SetLLSpaceAdd
(
0
,
0
);
...
@@ -228,7 +228,7 @@ void SwLineLayout::InitSpaceAdd()
...
@@ -228,7 +228,7 @@ void SwLineLayout::InitSpaceAdd()
void
SwLineLayout
::
CreateSpaceAdd
(
const
long
nInit
)
void
SwLineLayout
::
CreateSpaceAdd
(
const
long
nInit
)
{
{
pLLSpaceAdd
=
new
std
::
vector
<
long
>
;
m_
pLLSpaceAdd
=
new
std
::
vector
<
long
>
;
SetLLSpaceAdd
(
nInit
,
0
);
SetLLSpaceAdd
(
nInit
,
0
);
}
}
...
...
sw/source/core/text/porlay.hxx
Dosyayı görüntüle @
f23d092c
...
@@ -77,25 +77,25 @@ public:
...
@@ -77,25 +77,25 @@ public:
class
SwLineLayout
:
public
SwTextPortion
class
SwLineLayout
:
public
SwTextPortion
{
{
private
:
private
:
SwLineLayout
*
pNext
;
// The next Line
SwLineLayout
*
m_
pNext
;
// The next Line
std
::
vector
<
long
>*
pLLSpaceAdd
;
// Used for justified alignment
std
::
vector
<
long
>*
m_
pLLSpaceAdd
;
// Used for justified alignment
std
::
deque
<
sal_uInt16
>*
pKanaComp
;
// Used for Kana compression
std
::
deque
<
sal_uInt16
>*
m_
pKanaComp
;
// Used for Kana compression
sal_uInt16
nRealHeight
;
// The height resulting from line spacing and register
sal_uInt16
m_
nRealHeight
;
// The height resulting from line spacing and register
bool
bFormatAdj
:
1
;
bool
m_
bFormatAdj
:
1
;
bool
bDummy
:
1
;
bool
m_
bDummy
:
1
;
bool
bFntChg
:
1
;
bool
m_
bFntChg
:
1
;
bool
bEndHyph
:
1
;
bool
m_
bEndHyph
:
1
;
bool
bMidHyph
:
1
;
bool
m_
bMidHyph
:
1
;
bool
bTab
:
1
;
bool
m_
bTab
:
1
;
bool
bFly
:
1
;
bool
m_
bFly
:
1
;
bool
bRest
:
1
;
bool
m_
bRest
:
1
;
bool
bBlinking
:
1
;
bool
m_
bBlinking
:
1
;
bool
bClipping
:
1
;
// Clipping needed for exact line height
bool
m_
bClipping
:
1
;
// Clipping needed for exact line height
bool
bContent
:
1
;
// Text for line numbering
bool
m_
bContent
:
1
;
// Text for line numbering
bool
bRedline
:
1
;
// The Redlining
bool
m_
bRedline
:
1
;
// The Redlining
bool
bForcedLeftMargin
:
1
;
// Left adjustment moved by the Fly
bool
m_
bForcedLeftMargin
:
1
;
// Left adjustment moved by the Fly
bool
bHanging
:
1
;
// Contains a hanging portion in the margin
bool
m_
bHanging
:
1
;
// Contains a hanging portion in the margin
bool
bUnderscore
:
1
;
bool
m_
bUnderscore
:
1
;
SwTwips
_GetHangingMargin
()
const
;
SwTwips
_GetHangingMargin
()
const
;
...
@@ -107,49 +107,49 @@ public:
...
@@ -107,49 +107,49 @@ public:
// Flags
// Flags
inline
void
ResetFlags
();
inline
void
ResetFlags
();
inline
void
SetFormatAdj
(
const
bool
bNew
)
{
bFormatAdj
=
bNew
;
}
inline
void
SetFormatAdj
(
const
bool
bNew
)
{
m_
bFormatAdj
=
bNew
;
}
inline
bool
IsFormatAdj
()
const
{
return
bFormatAdj
;
}
inline
bool
IsFormatAdj
()
const
{
return
m_
bFormatAdj
;
}
inline
void
SetEndHyph
(
const
bool
bNew
)
{
bEndHyph
=
bNew
;
}
inline
void
SetEndHyph
(
const
bool
bNew
)
{
m_
bEndHyph
=
bNew
;
}
inline
bool
IsEndHyph
()
const
{
return
bEndHyph
;
}
inline
bool
IsEndHyph
()
const
{
return
m_
bEndHyph
;
}
inline
void
SetMidHyph
(
const
bool
bNew
)
{
bMidHyph
=
bNew
;
}
inline
void
SetMidHyph
(
const
bool
bNew
)
{
m_
bMidHyph
=
bNew
;
}
inline
bool
IsMidHyph
()
const
{
return
bMidHyph
;
}
inline
bool
IsMidHyph
()
const
{
return
m_
bMidHyph
;
}
inline
void
SetFly
(
const
bool
bNew
)
{
bFly
=
bNew
;
}
inline
void
SetFly
(
const
bool
bNew
)
{
m_
bFly
=
bNew
;
}
inline
bool
IsFly
()
const
{
return
bFly
;
}
inline
bool
IsFly
()
const
{
return
m_
bFly
;
}
inline
void
SetRest
(
const
bool
bNew
)
{
bRest
=
bNew
;
}
inline
void
SetRest
(
const
bool
bNew
)
{
m_
bRest
=
bNew
;
}
inline
bool
IsRest
()
const
{
return
bRest
;
}
inline
bool
IsRest
()
const
{
return
m_
bRest
;
}
inline
void
SetBlinking
(
const
bool
bNew
=
true
)
{
bBlinking
=
bNew
;
}
inline
void
SetBlinking
(
const
bool
bNew
=
true
)
{
m_
bBlinking
=
bNew
;
}
inline
bool
IsBlinking
()
const
{
return
bBlinking
;
}
inline
bool
IsBlinking
()
const
{
return
m_
bBlinking
;
}
inline
void
SetContent
(
const
bool
bNew
=
true
)
{
bContent
=
bNew
;
}
inline
void
SetContent
(
const
bool
bNew
=
true
)
{
m_
bContent
=
bNew
;
}
inline
bool
HasContent
()
const
{
return
bContent
;
}
inline
bool
HasContent
()
const
{
return
m_
bContent
;
}
inline
void
SetRedline
(
const
bool
bNew
=
true
)
{
bRedline
=
bNew
;
}
inline
void
SetRedline
(
const
bool
bNew
=
true
)
{
m_
bRedline
=
bNew
;
}
inline
bool
HasRedline
()
const
{
return
bRedline
;
}
inline
bool
HasRedline
()
const
{
return
m_
bRedline
;
}
inline
void
SetForcedLeftMargin
(
const
bool
bNew
=
true
)
{
bForcedLeftMargin
=
bNew
;
}
inline
void
SetForcedLeftMargin
(
const
bool
bNew
=
true
)
{
m_
bForcedLeftMargin
=
bNew
;
}
inline
bool
HasForcedLeftMargin
()
const
{
return
bForcedLeftMargin
;
}
inline
bool
HasForcedLeftMargin
()
const
{
return
m_
bForcedLeftMargin
;
}
inline
void
SetHanging
(
const
bool
bNew
=
true
)
{
bHanging
=
bNew
;
}
inline
void
SetHanging
(
const
bool
bNew
=
true
)
{
m_
bHanging
=
bNew
;
}
inline
void
SetUnderscore
(
const
bool
bNew
=
true
)
{
bUnderscore
=
bNew
;
}
inline
void
SetUnderscore
(
const
bool
bNew
=
true
)
{
m_
bUnderscore
=
bNew
;
}
inline
bool
HasUnderscore
()
const
{
return
bUnderscore
;
}
inline
bool
HasUnderscore
()
const
{
return
m_
bUnderscore
;
}
// Respecting empty dummy lines
// Respecting empty dummy lines
inline
void
SetDummy
(
const
bool
bNew
)
{
bDummy
=
bNew
;
}
inline
void
SetDummy
(
const
bool
bNew
)
{
m_
bDummy
=
bNew
;
}
inline
bool
IsDummy
()
const
{
return
bDummy
;
}
inline
bool
IsDummy
()
const
{
return
m_
bDummy
;
}
inline
void
SetClipping
(
const
bool
bNew
)
{
bClipping
=
bNew
;
}
inline
void
SetClipping
(
const
bool
bNew
)
{
m_
bClipping
=
bNew
;
}
inline
bool
IsClipping
()
const
{
return
bClipping
;
}
inline
bool
IsClipping
()
const
{
return
m_
bClipping
;
}
inline
SwLineLayout
();
inline
SwLineLayout
();
virtual
~
SwLineLayout
();
virtual
~
SwLineLayout
();
inline
SwLineLayout
*
GetNext
()
{
return
pNext
;
}
inline
SwLineLayout
*
GetNext
()
{
return
m_
pNext
;
}
inline
const
SwLineLayout
*
GetNext
()
const
{
return
pNext
;
}
inline
const
SwLineLayout
*
GetNext
()
const
{
return
m_
pNext
;
}
inline
void
SetNext
(
SwLineLayout
*
pNew
)
{
pNext
=
pNew
;
}
inline
void
SetNext
(
SwLineLayout
*
pNew
)
{
m_
pNext
=
pNew
;
}
void
Init
(
SwLinePortion
*
pNextPortion
=
nullptr
);
void
Init
(
SwLinePortion
*
pNextPortion
=
nullptr
);
// Collects the data for the line
// Collects the data for the line
void
CalcLine
(
SwTextFormatter
&
rLine
,
SwTextFormatInfo
&
rInf
);
void
CalcLine
(
SwTextFormatter
&
rLine
,
SwTextFormatInfo
&
rInf
);
inline
void
SetRealHeight
(
sal_uInt16
nNew
)
{
nRealHeight
=
nNew
;
}
inline
void
SetRealHeight
(
sal_uInt16
nNew
)
{
m_
nRealHeight
=
nNew
;
}
inline
sal_uInt16
GetRealHeight
()
const
{
return
nRealHeight
;
}
inline
sal_uInt16
GetRealHeight
()
const
{
return
m_
nRealHeight
;
}
// Creates the glue chain for short lines
// Creates the glue chain for short lines
SwMarginPortion
*
CalcLeftMargin
();
SwMarginPortion
*
CalcLeftMargin
();
...
@@ -161,27 +161,27 @@ public:
...
@@ -161,27 +161,27 @@ public:
virtual
bool
Format
(
SwTextFormatInfo
&
rInf
)
override
;
virtual
bool
Format
(
SwTextFormatInfo
&
rInf
)
override
;
// Stuff for justified alignment
// Stuff for justified alignment
inline
bool
IsSpaceAdd
()
{
return
pLLSpaceAdd
!=
nullptr
;
}
inline
bool
IsSpaceAdd
()
{
return
m_
pLLSpaceAdd
!=
nullptr
;
}
void
InitSpaceAdd
();
// Creates pLLSpaceAdd if necessary
void
InitSpaceAdd
();
// Creates pLLSpaceAdd if necessary
void
CreateSpaceAdd
(
const
long
nInit
=
0
);
void
CreateSpaceAdd
(
const
long
nInit
=
0
);
inline
void
FinishSpaceAdd
()
{
delete
pLLSpaceAdd
;
pLLSpaceAdd
=
nullptr
;
}
inline
void
FinishSpaceAdd
()
{
delete
m_pLLSpaceAdd
;
m_
pLLSpaceAdd
=
nullptr
;
}
inline
sal_uInt16
GetLLSpaceAddCount
()
const
{
return
sal
::
static_int_cast
<
sal_uInt16
>
(
pLLSpaceAdd
->
size
());
}
inline
sal_uInt16
GetLLSpaceAddCount
()
const
{
return
sal
::
static_int_cast
<
sal_uInt16
>
(
m_
pLLSpaceAdd
->
size
());
}
inline
void
SetLLSpaceAdd
(
long
nNew
,
sal_uInt16
nIdx
)
inline
void
SetLLSpaceAdd
(
long
nNew
,
sal_uInt16
nIdx
)
{
{
if
(
nIdx
==
GetLLSpaceAddCount
()
)
if
(
nIdx
==
GetLLSpaceAddCount
()
)
pLLSpaceAdd
->
push_back
(
nNew
);
m_
pLLSpaceAdd
->
push_back
(
nNew
);
else
else
(
*
pLLSpaceAdd
)[
nIdx
]
=
nNew
;
(
*
m_
pLLSpaceAdd
)[
nIdx
]
=
nNew
;
}
}
inline
long
GetLLSpaceAdd
(
sal_uInt16
nIdx
)
{
return
(
*
pLLSpaceAdd
)[
nIdx
];
}
inline
long
GetLLSpaceAdd
(
sal_uInt16
nIdx
)
{
return
(
*
m_
pLLSpaceAdd
)[
nIdx
];
}
inline
void
RemoveFirstLLSpaceAdd
()
{
pLLSpaceAdd
->
erase
(
pLLSpaceAdd
->
begin
()
);
}
inline
void
RemoveFirstLLSpaceAdd
()
{
m_pLLSpaceAdd
->
erase
(
m_
pLLSpaceAdd
->
begin
()
);
}
inline
std
::
vector
<
long
>*
GetpLLSpaceAdd
()
const
{
return
pLLSpaceAdd
;
}
inline
std
::
vector
<
long
>*
GetpLLSpaceAdd
()
const
{
return
m_
pLLSpaceAdd
;
}
// Stuff for Kana compression
// Stuff for Kana compression
inline
void
SetKanaComp
(
std
::
deque
<
sal_uInt16
>*
pNew
){
pKanaComp
=
pNew
;
}
inline
void
SetKanaComp
(
std
::
deque
<
sal_uInt16
>*
pNew
){
m_
pKanaComp
=
pNew
;
}
inline
void
FinishKanaComp
()
{
delete
pKanaComp
;
pKanaComp
=
nullptr
;
}
inline
void
FinishKanaComp
()
{
delete
m_pKanaComp
;
m_
pKanaComp
=
nullptr
;
}
inline
std
::
deque
<
sal_uInt16
>*
GetpKanaComp
()
const
{
return
pKanaComp
;
}
inline
std
::
deque
<
sal_uInt16
>*
GetpKanaComp
()
const
{
return
m_
pKanaComp
;
}
inline
std
::
deque
<
sal_uInt16
>&
GetKanaComp
()
{
return
*
pKanaComp
;
}
inline
std
::
deque
<
sal_uInt16
>&
GetKanaComp
()
{
return
*
m_
pKanaComp
;
}
/** determine ascent and descent for positioning of as-character anchored
/** determine ascent and descent for positioning of as-character anchored
object
object
...
@@ -318,14 +318,14 @@ public:
...
@@ -318,14 +318,14 @@ public:
inline
void
SwLineLayout
::
ResetFlags
()
inline
void
SwLineLayout
::
ResetFlags
()
{
{
bFormatAdj
=
bDummy
=
bFntChg
=
bTab
=
bEndHyph
=
bMidHyph
=
bFly
m_bFormatAdj
=
m_bDummy
=
m_bFntChg
=
m_bTab
=
m_bEndHyph
=
m_bMidHyph
=
m_
bFly
=
bRest
=
bBlinking
=
bClipping
=
bContent
=
bRedline
=
m_bRest
=
m_bBlinking
=
m_bClipping
=
m_bContent
=
m_
bRedline
=
bForcedLeftMargin
=
bHanging
=
false
;
=
m_bForcedLeftMargin
=
m_
bHanging
=
false
;
}
}
inline
SwLineLayout
::
SwLineLayout
()
inline
SwLineLayout
::
SwLineLayout
()
:
pNext
(
nullptr
),
pLLSpaceAdd
(
nullptr
),
pKanaComp
(
nullptr
),
nRealHeight
(
0
),
:
m_pNext
(
nullptr
),
m_pLLSpaceAdd
(
nullptr
),
m_pKanaComp
(
nullptr
),
m_
nRealHeight
(
0
),
bUnderscore
(
false
)
m_
bUnderscore
(
false
)
{
{
ResetFlags
();
ResetFlags
();
SetWhichPor
(
POR_LAY
);
SetWhichPor
(
POR_LAY
);
...
...
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