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
d72c90cc
Kaydet (Commit)
d72c90cc
authored
Kas 16, 2015
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: Rename to avoid conflict after Crsr -> Cursor rename.
Change-Id: Iee7124259cadc1db416e8aedc5b4e87f75ba9d21
üst
764a1cdf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
pormulti.cxx
sw/source/core/text/pormulti.cxx
+18
-18
No files found.
sw/source/core/text/pormulti.cxx
Dosyayı görüntüle @
d72c90cc
...
@@ -2237,49 +2237,49 @@ SwLinePortion* SwTextFormatter::MakeRestPortion( const SwLineLayout* pLine,
...
@@ -2237,49 +2237,49 @@ SwLinePortion* SwTextFormatter::MakeRestPortion( const SwLineLayout* pLine,
// SwTextCursorSave notes the start and current line of a SwTextCursor,
// SwTextCursorSave notes the start and current line of a SwTextCursor,
// sets them to the values for GetCrsrOfst inside a multiportion
// sets them to the values for GetCrsrOfst inside a multiportion
// and restores them in the destructor.
// and restores them in the destructor.
SwTextCursorSave
::
SwTextCursorSave
(
SwTextCursor
*
p
Text
Cursor
,
SwTextCursorSave
::
SwTextCursorSave
(
SwTextCursor
*
pCursor
,
SwMultiPortion
*
pMulti
,
SwMultiPortion
*
pMulti
,
SwTwips
nY
,
SwTwips
nY
,
sal_uInt16
&
nX
,
sal_uInt16
&
nX
,
sal_Int32
nCurrStart
,
sal_Int32
nCurrStart
,
long
nSpaceAdd
)
long
nSpaceAdd
)
{
{
pTextCrsr
=
p
Text
Cursor
;
pTextCrsr
=
pCursor
;
nStart
=
p
Text
Cursor
->
m_nStart
;
nStart
=
pCursor
->
m_nStart
;
p
Text
Cursor
->
m_nStart
=
nCurrStart
;
pCursor
->
m_nStart
=
nCurrStart
;
pCurr
=
p
Text
Cursor
->
m_pCurr
;
pCurr
=
pCursor
->
m_pCurr
;
p
Text
Cursor
->
m_pCurr
=
&
pMulti
->
GetRoot
();
pCursor
->
m_pCurr
=
&
pMulti
->
GetRoot
();
while
(
p
TextCursor
->
Y
()
+
pText
Cursor
->
GetLineHeight
()
<
nY
&&
while
(
p
Cursor
->
Y
()
+
p
Cursor
->
GetLineHeight
()
<
nY
&&
p
Text
Cursor
->
Next
()
)
pCursor
->
Next
()
)
;
// nothing
;
// nothing
nWidth
=
p
Text
Cursor
->
m_pCurr
->
Width
();
nWidth
=
pCursor
->
m_pCurr
->
Width
();
nOldProp
=
p
Text
Cursor
->
GetPropFont
();
nOldProp
=
pCursor
->
GetPropFont
();
if
(
pMulti
->
IsDouble
()
||
pMulti
->
IsBidi
()
)
if
(
pMulti
->
IsDouble
()
||
pMulti
->
IsBidi
()
)
{
{
bSpaceChg
=
pMulti
->
ChgSpaceAdd
(
p
Text
Cursor
->
m_pCurr
,
nSpaceAdd
);
bSpaceChg
=
pMulti
->
ChgSpaceAdd
(
pCursor
->
m_pCurr
,
nSpaceAdd
);
sal_Int32
nSpaceCnt
;
sal_Int32
nSpaceCnt
;
if
(
pMulti
->
IsDouble
()
)
if
(
pMulti
->
IsDouble
()
)
{
{
p
Text
Cursor
->
SetPropFont
(
50
);
pCursor
->
SetPropFont
(
50
);
nSpaceCnt
=
static_cast
<
SwDoubleLinePortion
*>
(
pMulti
)
->
GetSpaceCnt
();
nSpaceCnt
=
static_cast
<
SwDoubleLinePortion
*>
(
pMulti
)
->
GetSpaceCnt
();
}
}
else
else
{
{
const
sal_Int32
nOldIdx
=
p
Text
Cursor
->
GetInfo
().
GetIdx
();
const
sal_Int32
nOldIdx
=
pCursor
->
GetInfo
().
GetIdx
();
p
Text
Cursor
->
GetInfo
().
SetIdx
(
nCurrStart
);
pCursor
->
GetInfo
().
SetIdx
(
nCurrStart
);
nSpaceCnt
=
static_cast
<
SwBidiPortion
*>
(
pMulti
)
->
GetSpaceCnt
(
p
Text
Cursor
->
GetInfo
());
nSpaceCnt
=
static_cast
<
SwBidiPortion
*>
(
pMulti
)
->
GetSpaceCnt
(
pCursor
->
GetInfo
());
p
Text
Cursor
->
GetInfo
().
SetIdx
(
nOldIdx
);
pCursor
->
GetInfo
().
SetIdx
(
nOldIdx
);
}
}
if
(
nSpaceAdd
>
0
&&
!
pMulti
->
HasTabulator
()
)
if
(
nSpaceAdd
>
0
&&
!
pMulti
->
HasTabulator
()
)
p
Text
Cursor
->
m_pCurr
->
Width
(
static_cast
<
sal_uInt16
>
(
nWidth
+
nSpaceAdd
*
nSpaceCnt
/
SPACING_PRECISION_FACTOR
)
);
pCursor
->
m_pCurr
->
Width
(
static_cast
<
sal_uInt16
>
(
nWidth
+
nSpaceAdd
*
nSpaceCnt
/
SPACING_PRECISION_FACTOR
)
);
// For a BidiPortion we have to calculate the offset from the
// For a BidiPortion we have to calculate the offset from the
// end of the portion
// end of the portion
if
(
nX
&&
pMulti
->
IsBidi
()
)
if
(
nX
&&
pMulti
->
IsBidi
()
)
nX
=
p
Text
Cursor
->
m_pCurr
->
Width
()
-
nX
;
nX
=
pCursor
->
m_pCurr
->
Width
()
-
nX
;
}
}
else
else
bSpaceChg
=
false
;
bSpaceChg
=
false
;
...
...
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