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
7ef05264
Kaydet (Commit)
7ef05264
authored
Tem 25, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert the rest of outdev.hxx from XubString to OUString
Change-Id: I1305dde31106aada30534919456a4809a302afcf
üst
0c7579d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
18 deletions
+18
-18
outdev.hxx
include/vcl/outdev.hxx
+6
-6
outdev3.cxx
vcl/source/gdi/outdev3.cxx
+12
-12
No files found.
include/vcl/outdev.hxx
Dosyayı görüntüle @
7ef05264
...
...
@@ -618,19 +618,19 @@ public:
MetricVector
*
pVector
=
NULL
,
OUString
*
pDisplayText
=
NULL
,
::
vcl
::
ITextLayout
*
_pTextLayout
=
NULL
);
Rectangle
GetTextRect
(
const
Rectangle
&
rRect
,
const
Xub
String
&
rStr
,
sal_uInt16
nStyle
=
TEXT_DRAW_WORDBREAK
,
const
OU
String
&
rStr
,
sal_uInt16
nStyle
=
TEXT_DRAW_WORDBREAK
,
TextRectInfo
*
pInfo
=
NULL
,
const
::
vcl
::
ITextLayout
*
_pTextLayout
=
NULL
)
const
;
OUString
GetEllipsisString
(
const
OUString
&
rStr
,
long
nMaxWidth
,
sal_uInt16
nStyle
=
TEXT_DRAW_ENDELLIPSIS
)
const
;
void
DrawCtrlText
(
const
Point
&
rPos
,
const
Xub
String
&
rStr
,
void
DrawCtrlText
(
const
Point
&
rPos
,
const
OU
String
&
rStr
,
xub_StrLen
nIndex
=
0
,
xub_StrLen
nLen
=
STRING_LEN
,
sal_uInt16
nStyle
=
TEXT_DRAW_MNEMONIC
,
MetricVector
*
pVector
=
NULL
,
OUString
*
pDisplayText
=
NULL
);
long
GetCtrlTextWidth
(
const
Xub
String
&
rStr
,
xub_StrLen
nIndex
=
0
,
long
GetCtrlTextWidth
(
const
OU
String
&
rStr
,
xub_StrLen
nIndex
=
0
,
xub_StrLen
nLen
=
STRING_LEN
,
sal_uInt16
nStyle
=
TEXT_DRAW_MNEMONIC
)
const
;
static
XubString
GetNonMnemonicString
(
const
Xub
String
&
rStr
,
xub_StrLen
&
rMnemonicPos
);
static
XubString
GetNonMnemonicString
(
const
Xub
String
&
rStr
)
static
OUString
GetNonMnemonicString
(
const
OU
String
&
rStr
,
xub_StrLen
&
rMnemonicPos
);
static
OUString
GetNonMnemonicString
(
const
OU
String
&
rStr
)
{
xub_StrLen
nDummy
;
return
GetNonMnemonicString
(
rStr
,
nDummy
);
}
sal_Bool
GetTextBoundRect
(
Rectangle
&
rRect
,
...
...
@@ -905,7 +905,7 @@ public:
const
Font
&
GetFont
()
const
{
return
maFont
;
}
SystemFontData
GetSysFontData
(
int
nFallbacklevel
)
const
;
SystemTextLayoutData
GetSysTextLayoutData
(
const
Point
&
rStartPt
,
const
Xub
String
&
rStr
,
SystemTextLayoutData
GetSysTextLayoutData
(
const
Point
&
rStartPt
,
const
OU
String
&
rStr
,
xub_StrLen
nIndex
=
0
,
xub_StrLen
nLen
=
STRING_LEN
,
const
sal_Int32
*
pDXAry
=
NULL
)
const
;
...
...
vcl/source/gdi/outdev3.cxx
Dosyayı görüntüle @
7ef05264
...
...
@@ -6151,7 +6151,7 @@ void OutputDevice::ImplDrawText( OutputDevice& rTargetDevice, const Rectangle& r
if
(
nStyle
&
TEXT_DRAW_MULTILINE
)
{
XubString
aLastLine
;
String
aLastLine
;
ImplMultiTextLineInfo
aMultiLineInfo
;
ImplTextLineInfo
*
pLineInfo
;
xub_StrLen
i
;
...
...
@@ -6426,7 +6426,7 @@ void OutputDevice::DrawText( const Rectangle& rRect, const OUString& rOrigStr, s
}
Rectangle
OutputDevice
::
GetTextRect
(
const
Rectangle
&
rRect
,
const
Xub
String
&
rStr
,
sal_uInt16
nStyle
,
const
OU
String
&
rStr
,
sal_uInt16
nStyle
,
TextRectInfo
*
pInfo
,
const
::
vcl
::
ITextLayout
*
_pTextLayout
)
const
{
...
...
@@ -6689,13 +6689,13 @@ OUString OutputDevice::ImplGetEllipsisString( const OutputDevice& rTargetDevice,
return
aStr
;
}
void
OutputDevice
::
DrawCtrlText
(
const
Point
&
rPos
,
const
Xub
String
&
rStr
,
void
OutputDevice
::
DrawCtrlText
(
const
Point
&
rPos
,
const
OU
String
&
rStr
,
xub_StrLen
nIndex
,
xub_StrLen
nLen
,
sal_uInt16
nStyle
,
MetricVector
*
pVector
,
OUString
*
pDisplayText
)
{
DBG_CHKTHIS
(
OutputDevice
,
ImplDbgCheckOutputDevice
);
if
(
!
IsDeviceOutputNecessary
()
||
(
nIndex
>=
rStr
.
Len
())
)
if
(
!
IsDeviceOutputNecessary
()
||
(
nIndex
>=
rStr
.
getLength
())
)
return
;
// better get graphics here because ImplDrawMnemonicLine() will not
...
...
@@ -6707,12 +6707,12 @@ void OutputDevice::DrawCtrlText( const Point& rPos, const XubString& rStr,
if
(
mbOutputClipped
)
return
;
if
(
nIndex
>=
rStr
.
Len
()
)
if
(
nIndex
>=
rStr
.
getLength
()
)
return
;
if
(
(
sal_
uLong
)
nIndex
+
nLen
>=
rStr
.
Len
()
)
nLen
=
rStr
.
Len
()
-
nIndex
;
if
(
(
sal_
Int32
)
nIndex
+
nLen
>=
rStr
.
getLength
()
)
nLen
=
rStr
.
getLength
()
-
nIndex
;
Xub
String
aStr
=
rStr
;
OU
String
aStr
=
rStr
;
xub_StrLen
nMnemonicPos
=
STRING_NOTFOUND
;
long
nMnemonicX
=
0
;
...
...
@@ -6819,7 +6819,7 @@ void OutputDevice::DrawCtrlText( const Point& rPos, const XubString& rStr,
mpAlphaVDev
->
DrawCtrlText
(
rPos
,
rStr
,
nIndex
,
nLen
,
nStyle
,
pVector
,
pDisplayText
);
}
long
OutputDevice
::
GetCtrlTextWidth
(
const
String
&
rStr
,
long
OutputDevice
::
GetCtrlTextWidth
(
const
OU
String
&
rStr
,
xub_StrLen
nIndex
,
xub_StrLen
nLen
,
sal_uInt16
nStyle
)
const
{
...
...
@@ -6828,7 +6828,7 @@ long OutputDevice::GetCtrlTextWidth( const String& rStr,
if
(
nStyle
&
TEXT_DRAW_MNEMONIC
)
{
xub_StrLen
nMnemonicPos
;
Xub
String
aStr
=
GetNonMnemonicString
(
rStr
,
nMnemonicPos
);
OU
String
aStr
=
GetNonMnemonicString
(
rStr
,
nMnemonicPos
);
if
(
nMnemonicPos
!=
STRING_NOTFOUND
)
{
if
(
nMnemonicPos
<
nIndex
)
...
...
@@ -6843,7 +6843,7 @@ long OutputDevice::GetCtrlTextWidth( const String& rStr,
return
GetTextWidth
(
rStr
,
nIndex
,
nLen
);
}
String
OutputDevice
::
GetNonMnemonicString
(
const
String
&
rStr
,
xub_StrLen
&
rMnemonicPos
)
OUString
OutputDevice
::
GetNonMnemonicString
(
const
OU
String
&
rStr
,
xub_StrLen
&
rMnemonicPos
)
{
String
aStr
=
rStr
;
xub_StrLen
nLen
=
aStr
.
Len
();
...
...
@@ -7083,7 +7083,7 @@ SystemFontData OutputDevice::GetSysFontData(int nFallbacklevel) const
*
* @return SystemTextLayoutData
**/
SystemTextLayoutData
OutputDevice
::
GetSysTextLayoutData
(
const
Point
&
rStartPt
,
const
Xub
String
&
rStr
,
xub_StrLen
nIndex
,
xub_StrLen
nLen
,
SystemTextLayoutData
OutputDevice
::
GetSysTextLayoutData
(
const
Point
&
rStartPt
,
const
OU
String
&
rStr
,
xub_StrLen
nIndex
,
xub_StrLen
nLen
,
const
sal_Int32
*
pDXAry
)
const
{
DBG_CHKTHIS
(
OutputDevice
,
ImplDbgCheckOutputDevice
);
...
...
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