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
66668551
Kaydet (Commit)
66668551
authored
Agu 03, 2015
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_uInt16/short to sal_Int32
Change-Id: Ib69bdfd66328c1e4e3d8a0a03e4360b23e69a476
üst
c65d64a5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
19 deletions
+20
-19
textdat2.hxx
vcl/source/edit/textdat2.hxx
+7
-7
textdata.cxx
vcl/source/edit/textdata.cxx
+9
-8
texteng.cxx
vcl/source/edit/texteng.cxx
+4
-4
No files found.
vcl/source/edit/textdat2.hxx
Dosyayı görüntüle @
66668551
...
@@ -168,8 +168,8 @@ private:
...
@@ -168,8 +168,8 @@ private:
TETextPortionList
maTextPortions
;
TETextPortionList
maTextPortions
;
std
::
vector
<
TEWritingDirectionInfo
>
maWritingDirectionInfos
;
std
::
vector
<
TEWritingDirectionInfo
>
maWritingDirectionInfos
;
sal_
uInt16
mnInvalidPosStart
;
sal_
Int32
mnInvalidPosStart
;
s
hort
mnInvalidDiff
;
s
al_Int32
mnInvalidDiff
;
bool
mbInvalid
;
bool
mbInvalid
;
bool
mbSimple
;
// only type linearly
bool
mbSimple
;
// only type linearly
...
@@ -185,18 +185,18 @@ public:
...
@@ -185,18 +185,18 @@ public:
void
SetNotSimpleInvalid
()
{
mbSimple
=
false
;
}
void
SetNotSimpleInvalid
()
{
mbSimple
=
false
;
}
void
SetValid
()
{
mbInvalid
=
false
;
mbSimple
=
true
;}
void
SetValid
()
{
mbInvalid
=
false
;
mbSimple
=
true
;}
void
MarkInvalid
(
sal_
uInt16
nStart
,
short
nDiff
);
void
MarkInvalid
(
sal_
Int32
nStart
,
sal_Int32
nDiff
);
void
MarkSelectionInvalid
(
sal_
uInt16
nStart
,
sal_uInt16
nEnd
);
void
MarkSelectionInvalid
(
sal_
Int32
nStart
,
sal_Int32
nEnd
);
sal_
uInt16
GetInvalidPosStart
()
const
{
return
mnInvalidPosStart
;
}
sal_
Int32
GetInvalidPosStart
()
const
{
return
mnInvalidPosStart
;
}
s
hort
GetInvalidDiff
()
const
{
return
mnInvalidDiff
;
}
s
al_Int32
GetInvalidDiff
()
const
{
return
mnInvalidDiff
;
}
TextNode
*
GetNode
()
const
{
return
mpNode
;
}
TextNode
*
GetNode
()
const
{
return
mpNode
;
}
boost
::
ptr_vector
<
TextLine
>&
GetLines
()
{
return
maLines
;
}
boost
::
ptr_vector
<
TextLine
>&
GetLines
()
{
return
maLines
;
}
TETextPortionList
&
GetTextPortions
()
{
return
maTextPortions
;
}
TETextPortionList
&
GetTextPortions
()
{
return
maTextPortions
;
}
std
::
vector
<
TEWritingDirectionInfo
>&
GetWritingDirectionInfos
()
{
return
maWritingDirectionInfos
;
}
std
::
vector
<
TEWritingDirectionInfo
>&
GetWritingDirectionInfos
()
{
return
maWritingDirectionInfos
;
}
sal_uInt16
GetLineNumber
(
sal_uInt16
nIndex
,
bool
bInclEnd
);
sal_uInt16
GetLineNumber
(
sal_Int32
nIndex
,
bool
bInclEnd
);
void
CorrectValuesBehindLastFormattedLine
(
sal_uInt16
nLastFormattedLine
);
void
CorrectValuesBehindLastFormattedLine
(
sal_uInt16
nLastFormattedLine
);
};
};
...
...
vcl/source/edit/textdata.cxx
Dosyayı görüntüle @
66668551
...
@@ -93,18 +93,19 @@ sal_uInt16 TETextPortionList::FindPortion( sal_uInt16 nCharPos, sal_uInt16& nPor
...
@@ -93,18 +93,19 @@ sal_uInt16 TETextPortionList::FindPortion( sal_uInt16 nCharPos, sal_uInt16& nPor
}
}
TEParaPortion
::
TEParaPortion
(
TextNode
*
pN
)
TEParaPortion
::
TEParaPortion
(
TextNode
*
pN
)
:
mpNode
{
pN
}
,
mnInvalidPosStart
{
0
}
,
mnInvalidDiff
{
0
}
,
mbInvalid
{
true
}
,
mbSimple
{
false
}
{
{
mpNode
=
pN
;
mnInvalidPosStart
=
mnInvalidDiff
=
0
;
mbInvalid
=
true
;
mbSimple
=
false
;
}
}
TEParaPortion
::~
TEParaPortion
()
TEParaPortion
::~
TEParaPortion
()
{
{
}
}
void
TEParaPortion
::
MarkInvalid
(
sal_
uInt16
nStart
,
short
nDiff
)
void
TEParaPortion
::
MarkInvalid
(
sal_
Int32
nStart
,
sal_Int32
nDiff
)
{
{
if
(
!
mbInvalid
)
if
(
!
mbInvalid
)
{
{
...
@@ -128,7 +129,7 @@ void TEParaPortion::MarkInvalid( sal_uInt16 nStart, short nDiff )
...
@@ -128,7 +129,7 @@ void TEParaPortion::MarkInvalid( sal_uInt16 nStart, short nDiff )
else
else
{
{
DBG_ASSERT
(
(
nDiff
>=
0
)
||
(
(
nStart
+
nDiff
)
>=
0
),
"MarkInvalid: Diff out of Range"
);
DBG_ASSERT
(
(
nDiff
>=
0
)
||
(
(
nStart
+
nDiff
)
>=
0
),
"MarkInvalid: Diff out of Range"
);
mnInvalidPosStart
=
std
::
min
(
mnInvalidPosStart
,
(
sal_uInt16
)
(
(
nDiff
<
0
)
?
nStart
+
nDiff
:
nDiff
)
);
mnInvalidPosStart
=
std
::
min
(
mnInvalidPosStart
,
nDiff
<
0
?
nStart
+
nDiff
:
nDiff
);
mnInvalidDiff
=
0
;
mnInvalidDiff
=
0
;
mbSimple
=
false
;
mbSimple
=
false
;
}
}
...
@@ -139,7 +140,7 @@ void TEParaPortion::MarkInvalid( sal_uInt16 nStart, short nDiff )
...
@@ -139,7 +140,7 @@ void TEParaPortion::MarkInvalid( sal_uInt16 nStart, short nDiff )
mbInvalid
=
true
;
mbInvalid
=
true
;
}
}
void
TEParaPortion
::
MarkSelectionInvalid
(
sal_
uInt16
nStart
,
sal_uInt16
/*nEnd*/
)
void
TEParaPortion
::
MarkSelectionInvalid
(
sal_
Int32
nStart
,
sal_Int32
/*nEnd*/
)
{
{
if
(
!
mbInvalid
)
if
(
!
mbInvalid
)
{
{
...
@@ -159,7 +160,7 @@ void TEParaPortion::MarkSelectionInvalid( sal_uInt16 nStart, sal_uInt16 /*nEnd*/
...
@@ -159,7 +160,7 @@ void TEParaPortion::MarkSelectionInvalid( sal_uInt16 nStart, sal_uInt16 /*nEnd*/
mbSimple
=
false
;
mbSimple
=
false
;
}
}
sal_uInt16
TEParaPortion
::
GetLineNumber
(
sal_
uInt16
nChar
,
bool
bInclEnd
)
sal_uInt16
TEParaPortion
::
GetLineNumber
(
sal_
Int32
nChar
,
bool
bInclEnd
)
{
{
for
(
size_t
nLine
=
0
;
nLine
<
maLines
.
size
();
nLine
++
)
for
(
size_t
nLine
=
0
;
nLine
<
maLines
.
size
();
nLine
++
)
{
{
...
...
vcl/source/edit/texteng.cxx
Dosyayı görüntüle @
66668551
...
@@ -2154,9 +2154,9 @@ bool TextEngine::CreateLines( sal_uLong nPara )
...
@@ -2154,9 +2154,9 @@ bool TextEngine::CreateLines( sal_uLong nPara )
pTEParaPortion
->
GetLines
().
push_back
(
pL
);
pTEParaPortion
->
GetLines
().
push_back
(
pL
);
}
}
const
int
nInvalidDiff
=
pTEParaPortion
->
GetInvalidDiff
();
const
sal_Int32
nInvalidDiff
=
pTEParaPortion
->
GetInvalidDiff
();
const
sal_
uInt16
nInvalidStart
=
pTEParaPortion
->
GetInvalidPosStart
();
const
sal_
Int32
nInvalidStart
=
pTEParaPortion
->
GetInvalidPosStart
();
const
sal_
uInt16
nInvalidEnd
=
nInvalidStart
+
std
::
abs
(
nInvalidDiff
);
const
sal_
Int32
nInvalidEnd
=
nInvalidStart
+
std
::
abs
(
nInvalidDiff
);
bool
bQuickFormat
=
false
;
bool
bQuickFormat
=
false
;
if
(
pTEParaPortion
->
GetWritingDirectionInfos
().
empty
()
)
if
(
pTEParaPortion
->
GetWritingDirectionInfos
().
empty
()
)
...
@@ -2168,7 +2168,7 @@ bool TextEngine::CreateLines( sal_uLong nPara )
...
@@ -2168,7 +2168,7 @@ bool TextEngine::CreateLines( sal_uLong nPara )
if
(
nInvalidDiff
<
0
)
if
(
nInvalidDiff
<
0
)
{
{
// check if deleting across Portion border
// check if deleting across Portion border
sal_
uInt16
nPos
=
0
;
sal_
Int32
nPos
=
0
;
for
(
const
auto
pTP
:
pTEParaPortion
->
GetTextPortions
()
)
for
(
const
auto
pTP
:
pTEParaPortion
->
GetTextPortions
()
)
{
{
// there must be no Start/End in the deleted region
// there must be no Start/End in the deleted region
...
...
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