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
878dcbee
Kaydet (Commit)
878dcbee
authored
Ock 15, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
more xub_Strlen->sal_Int32
Change-Id: I9bab4c8c0e5b62eace308b90a43800c21c9cba41
üst
838c8889
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
28 deletions
+27
-28
EnhancedCustomShapeFontWork.cxx
svx/source/customshapes/EnhancedCustomShapeFontWork.cxx
+2
-3
fntctrl.cxx
svx/source/dialog/fntctrl.cxx
+9
-9
srchdlg.cxx
svx/source/dialog/srchdlg.cxx
+2
-2
svdotextpathdecomposition.cxx
svx/source/svdraw/svdotextpathdecomposition.cxx
+14
-14
No files found.
svx/source/customshapes/EnhancedCustomShapeFontWork.cxx
Dosyayı görüntüle @
878dcbee
...
@@ -230,9 +230,8 @@ void GetTextAreaOutline( const FWData& rFWData, const SdrObject* pCustomShape, F
...
@@ -230,9 +230,8 @@ void GetTextAreaOutline( const FWData& rFWData, const SdrObject* pCustomShape, F
nScriptType
=
xBI
->
getScriptType
(
rText
,
0
);
nScriptType
=
xBI
->
getScriptType
(
rText
,
0
);
if
(
i18n
::
ScriptType
::
WEAK
==
nScriptType
)
if
(
i18n
::
ScriptType
::
WEAK
==
nScriptType
)
{
{
sal_uInt16
nChg
=
0
;
sal_Int32
nChg
=
xBI
->
endOfScript
(
rText
,
nChg
,
nScriptType
);
nChg
=
(
xub_StrLen
)
xBI
->
endOfScript
(
rText
,
nChg
,
nScriptType
);
if
(
nChg
<
rText
.
getLength
()
&&
nChg
>=
0
)
if
(
nChg
<
rText
.
getLength
()
)
nScriptType
=
xBI
->
getScriptType
(
rText
,
nChg
);
nScriptType
=
xBI
->
getScriptType
(
rText
,
nChg
);
else
else
nScriptType
=
i18n
::
ScriptType
::
LATIN
;
nScriptType
=
i18n
::
ScriptType
::
LATIN
;
...
...
svx/source/dialog/fntctrl.cxx
Dosyayı görüntüle @
878dcbee
...
@@ -138,7 +138,7 @@ class FontPrevWin_Impl
...
@@ -138,7 +138,7 @@ class FontPrevWin_Impl
Reference
<
XBreakIterator
>
xBreak
;
Reference
<
XBreakIterator
>
xBreak
;
std
::
vector
<
sal_uIntPtr
>
aTextWidth
;
std
::
vector
<
sal_uIntPtr
>
aTextWidth
;
std
::
deque
<
xub_StrLen
>
aScriptChg
;
std
::
deque
<
sal_Int32
>
aScriptChg
;
std
::
vector
<
sal_uInt16
>
aScriptType
;
std
::
vector
<
sal_uInt16
>
aScriptType
;
SvxFont
aCJKFont
;
SvxFont
aCJKFont
;
SvxFont
aCTLFont
;
SvxFont
aCTLFont
;
...
@@ -246,11 +246,11 @@ void FontPrevWin_Impl::CheckScript()
...
@@ -246,11 +246,11 @@ void FontPrevWin_Impl::CheckScript()
xBreak
=
BreakIterator
::
create
(
xContext
);
xBreak
=
BreakIterator
::
create
(
xContext
);
}
}
sal_uInt16
nScript
=
xBreak
->
getScriptType
(
aText
,
0
);
sal_uInt16
nScript
=
xBreak
->
getScriptType
(
aText
,
0
);
sal_
uInt16
nChg
=
0
;
sal_
Int32
nChg
=
0
;
if
(
com
::
sun
::
star
::
i18n
::
ScriptType
::
WEAK
==
nScript
)
if
(
com
::
sun
::
star
::
i18n
::
ScriptType
::
WEAK
==
nScript
)
{
{
nChg
=
(
xub_StrLen
)
xBreak
->
endOfScript
(
aText
,
nChg
,
nScript
);
nChg
=
xBreak
->
endOfScript
(
aText
,
nChg
,
nScript
);
if
(
nChg
<
aText
.
getLength
()
)
if
(
nChg
<
aText
.
getLength
()
&&
nChg
>=
0
)
nScript
=
xBreak
->
getScriptType
(
aText
,
nChg
);
nScript
=
xBreak
->
getScriptType
(
aText
,
nChg
);
else
else
nScript
=
com
::
sun
::
star
::
i18n
::
ScriptType
::
LATIN
;
nScript
=
com
::
sun
::
star
::
i18n
::
ScriptType
::
LATIN
;
...
@@ -258,7 +258,7 @@ void FontPrevWin_Impl::CheckScript()
...
@@ -258,7 +258,7 @@ void FontPrevWin_Impl::CheckScript()
do
do
{
{
nChg
=
(
xub_StrLen
)
xBreak
->
endOfScript
(
aText
,
nChg
,
nScript
);
nChg
=
xBreak
->
endOfScript
(
aText
,
nChg
,
nScript
);
if
(
nChg
<
aText
.
getLength
()
&&
nChg
>
0
&&
if
(
nChg
<
aText
.
getLength
()
&&
nChg
>
0
&&
(
com
::
sun
::
star
::
i18n
::
ScriptType
::
WEAK
==
(
com
::
sun
::
star
::
i18n
::
ScriptType
::
WEAK
==
xBreak
->
getScriptType
(
aText
,
nChg
-
1
)))
xBreak
->
getScriptType
(
aText
,
nChg
-
1
)))
...
@@ -303,8 +303,8 @@ Size FontPrevWin_Impl::CalcTextSize( OutputDevice* pWin, OutputDevice* _pPrinter
...
@@ -303,8 +303,8 @@ Size FontPrevWin_Impl::CalcTextSize( OutputDevice* pWin, OutputDevice* _pPrinter
{
{
sal_uInt16
nScript
;
sal_uInt16
nScript
;
sal_uInt16
nIdx
=
0
;
sal_uInt16
nIdx
=
0
;
xub_StrLen
nStart
=
0
;
sal_Int32
nStart
=
0
;
xub_StrLen
nEnd
;
sal_Int32
nEnd
;
size_t
nCnt
=
aScriptChg
.
size
();
size_t
nCnt
=
aScriptChg
.
size
();
if
(
nCnt
)
if
(
nCnt
)
{
{
...
@@ -385,8 +385,8 @@ void FontPrevWin_Impl::DrawPrev( OutputDevice* pWin, Printer* _pPrinter,
...
@@ -385,8 +385,8 @@ void FontPrevWin_Impl::DrawPrev( OutputDevice* pWin, Printer* _pPrinter,
Font
aOldFont
=
_pPrinter
->
GetFont
();
Font
aOldFont
=
_pPrinter
->
GetFont
();
sal_uInt16
nScript
;
sal_uInt16
nScript
;
sal_uInt16
nIdx
=
0
;
sal_uInt16
nIdx
=
0
;
xub_StrLen
nStart
=
0
;
sal_Int32
nStart
=
0
;
xub_StrLen
nEnd
;
sal_Int32
nEnd
;
size_t
nCnt
=
aScriptChg
.
size
();
size_t
nCnt
=
aScriptChg
.
size
();
if
(
nCnt
)
if
(
nCnt
)
{
{
...
...
svx/source/dialog/srchdlg.cxx
Dosyayı görüntüle @
878dcbee
...
@@ -1394,10 +1394,10 @@ IMPL_LINK( SvxSearchDialog, ModifyHdl_Impl, ComboBox *, pEd )
...
@@ -1394,10 +1394,10 @@ IMPL_LINK( SvxSearchDialog, ModifyHdl_Impl, ComboBox *, pEd )
sal_Int32
nReplTxtLen
=
0
;
sal_Int32
nReplTxtLen
=
0
;
if
(
bAllowEmptySearch
)
if
(
bAllowEmptySearch
)
nReplTxtLen
=
m_pReplaceLB
->
GetText
().
getLength
();
nReplTxtLen
=
m_pReplaceLB
->
GetText
().
getLength
();
xub_StrLen
nAttrTxtLen
=
0
;
sal_Int32
nAttrTxtLen
=
0
;
if
(
!
pImpl
->
bMultiLineEdit
)
if
(
!
pImpl
->
bMultiLineEdit
)
nAttrTxtLen
=
m_pSearchAttrText
->
GetText
().
getLength
();
nAttrTxtLen
=
m_pSearchAttrText
->
GetText
().
getLength
();
else
else
nAttrTxtLen
=
pImpl
->
m_pSearchFormats
->
GetText
().
getLength
();
nAttrTxtLen
=
pImpl
->
m_pSearchFormats
->
GetText
().
getLength
();
...
...
svx/source/svdraw/svdotextpathdecomposition.cxx
Dosyayı görüntüle @
878dcbee
...
@@ -72,8 +72,8 @@ namespace
...
@@ -72,8 +72,8 @@ namespace
{
{
basegfx
::
B2DVector
maOffset
;
basegfx
::
B2DVector
maOffset
;
OUString
maText
;
OUString
maText
;
xub_StrLen
mnTextStart
;
sal_Int32
mnTextStart
;
xub_StrLen
mnTextLength
;
sal_Int32
mnTextLength
;
sal_Int32
mnParagraph
;
sal_Int32
mnParagraph
;
SvxFont
maFont
;
SvxFont
maFont
;
::
std
::
vector
<
double
>
maDblDXArray
;
// double DXArray, font size independent -> unit coordinate system
::
std
::
vector
<
double
>
maDblDXArray
;
// double DXArray, font size independent -> unit coordinate system
...
@@ -122,15 +122,15 @@ namespace
...
@@ -122,15 +122,15 @@ namespace
}
}
const
OUString
&
getText
()
const
{
return
maText
;
}
const
OUString
&
getText
()
const
{
return
maText
;
}
xub_StrLen
getTextStart
()
const
{
return
mnTextStart
;
}
sal_Int32
getTextStart
()
const
{
return
mnTextStart
;
}
xub_StrLen
getTextLength
()
const
{
return
mnTextLength
;
}
sal_Int32
getTextLength
()
const
{
return
mnTextLength
;
}
sal_Int32
getParagraph
()
const
{
return
mnParagraph
;
}
sal_Int32
getParagraph
()
const
{
return
mnParagraph
;
}
const
SvxFont
&
getFont
()
const
{
return
maFont
;
}
const
SvxFont
&
getFont
()
const
{
return
maFont
;
}
bool
isRTL
()
const
{
return
mbRTL
;
}
bool
isRTL
()
const
{
return
mbRTL
;
}
const
::
std
::
vector
<
double
>&
getDoubleDXArray
()
const
{
return
maDblDXArray
;
}
const
::
std
::
vector
<
double
>&
getDoubleDXArray
()
const
{
return
maDblDXArray
;
}
const
::
com
::
sun
::
star
::
lang
::
Locale
&
getLocale
()
const
{
return
maLocale
;
}
const
::
com
::
sun
::
star
::
lang
::
Locale
&
getLocale
()
const
{
return
maLocale
;
}
xub_StrLen
getPortionIndex
(
xub_StrLen
nIndex
,
xub_StrLen
nLength
)
const
sal_Int32
getPortionIndex
(
sal_Int32
nIndex
,
sal_Int32
nLength
)
const
{
{
if
(
mbRTL
)
if
(
mbRTL
)
{
{
...
@@ -142,7 +142,7 @@ namespace
...
@@ -142,7 +142,7 @@ namespace
}
}
}
}
double
getDisplayLength
(
xub_StrLen
nIndex
,
xub_StrLen
nLength
)
const
double
getDisplayLength
(
sal_Int32
nIndex
,
sal_Int32
nLength
)
const
{
{
drawinglayer
::
primitive2d
::
TextLayouterDevice
aTextLayouter
;
drawinglayer
::
primitive2d
::
TextLayouterDevice
aTextLayouter
;
double
fRetval
(
0.0
);
double
fRetval
(
0.0
);
...
@@ -233,14 +233,14 @@ namespace
...
@@ -233,14 +233,14 @@ namespace
return
fRetval
;
return
fRetval
;
}
}
xub_StrLen
getNextGlyphLen
(
const
impPathTextPortion
*
pCandidate
,
xub_StrLen
nPosition
,
const
::
com
::
sun
::
star
::
lang
::
Locale
&
rFontLocale
)
sal_Int32
getNextGlyphLen
(
const
impPathTextPortion
*
pCandidate
,
sal_Int32
nPosition
,
const
::
com
::
sun
::
star
::
lang
::
Locale
&
rFontLocale
)
{
{
xub_StrLen
nNextGlyphLen
(
1
);
sal_Int32
nNextGlyphLen
(
1
);
if
(
mxBreak
.
is
())
if
(
mxBreak
.
is
())
{
{
sal_Int32
nDone
(
0L
);
sal_Int32
nDone
(
0L
);
nNextGlyphLen
=
(
xub_StrLen
)
mxBreak
->
nextCharacters
(
pCandidate
->
getText
(),
nPosition
,
nNextGlyphLen
=
mxBreak
->
nextCharacters
(
pCandidate
->
getText
(),
nPosition
,
rFontLocale
,
CharacterIteratorMode
::
SKIPCELL
,
1
,
nDone
)
-
nPosition
;
rFontLocale
,
CharacterIteratorMode
::
SKIPCELL
,
1
,
nDone
)
-
nPosition
;
}
}
...
@@ -353,11 +353,11 @@ namespace
...
@@ -353,11 +353,11 @@ namespace
drawinglayer
::
primitive2d
::
TextLayouterDevice
aTextLayouter
;
drawinglayer
::
primitive2d
::
TextLayouterDevice
aTextLayouter
;
aTextLayouter
.
setFont
(
pCandidate
->
getFont
());
aTextLayouter
.
setFont
(
pCandidate
->
getFont
());
xub_StrLen
nUsedTextLength
(
0
);
sal_Int32
nUsedTextLength
(
0
);
while
(
nUsedTextLength
<
pCandidate
->
getTextLength
()
&&
fPolyStart
<
fPolyEnd
)
while
(
nUsedTextLength
<
pCandidate
->
getTextLength
()
&&
fPolyStart
<
fPolyEnd
)
{
{
xub_StrLen
nNextGlyphLen
(
getNextGlyphLen
(
pCandidate
,
pCandidate
->
getTextStart
()
+
nUsedTextLength
,
pCandidate
->
getLocale
()));
sal_Int32
nNextGlyphLen
(
getNextGlyphLen
(
pCandidate
,
pCandidate
->
getTextStart
()
+
nUsedTextLength
,
pCandidate
->
getLocale
()));
// prepare portion length. Takes RTL sections into account.
// prepare portion length. Takes RTL sections into account.
double
fPortionLength
(
pCandidate
->
getDisplayLength
(
nUsedTextLength
,
nNextGlyphLen
));
double
fPortionLength
(
pCandidate
->
getDisplayLength
(
nUsedTextLength
,
nNextGlyphLen
));
...
@@ -479,7 +479,7 @@ namespace
...
@@ -479,7 +479,7 @@ namespace
if
(
!
pCandidate
->
getText
().
isEmpty
()
&&
nNextGlyphLen
)
if
(
!
pCandidate
->
getText
().
isEmpty
()
&&
nNextGlyphLen
)
{
{
const
xub_StrLen
nPortionIndex
(
pCandidate
->
getPortionIndex
(
nUsedTextLength
,
nNextGlyphLen
));
const
sal_Int32
nPortionIndex
(
pCandidate
->
getPortionIndex
(
nUsedTextLength
,
nNextGlyphLen
));
::
std
::
vector
<
double
>
aNewDXArray
;
::
std
::
vector
<
double
>
aNewDXArray
;
if
(
nNextGlyphLen
>
1
&&
pCandidate
->
getDoubleDXArray
().
size
())
if
(
nNextGlyphLen
>
1
&&
pCandidate
->
getDoubleDXArray
().
size
())
...
@@ -548,8 +548,8 @@ namespace
...
@@ -548,8 +548,8 @@ namespace
}
}
}
}
// consume from portion
// no += here, xub_StrLen is sal_uInt16 and the compiler will generate a warning here
// consume from portion
nUsedTextLength
=
nUsedTextLength
+
nNextGlyphLen
;
nUsedTextLength
+=
nNextGlyphLen
;
// consume from polygon
// consume from polygon
fPolyStart
+=
fPortionLength
;
fPolyStart
+=
fPortionLength
;
...
...
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