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
e7c7f96b
Kaydet (Commit)
e7c7f96b
authored
Eyl 06, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert include/editeng/numitem.hxx from String to OUString
Change-Id: If353e9ee792d58cb7ae3a20072c7208e8f2e6ef6
üst
c049ec85
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
26 deletions
+25
-26
numitem.cxx
editeng/source/items/numitem.cxx
+15
-16
numitem.hxx
include/editeng/numitem.hxx
+10
-10
No files found.
editeng/source/items/numitem.cxx
Dosyayı görüntüle @
e7c7f96b
...
...
@@ -419,7 +419,7 @@ void SvxNumberFormat::SetGraphicBrush( const SvxBrushItem* pBrushItem,
aGraphicSize
.
Width
()
=
aGraphicSize
.
Height
()
=
0
;
}
void
SvxNumberFormat
::
SetGraphic
(
const
String
&
rName
)
void
SvxNumberFormat
::
SetGraphic
(
const
OU
String
&
rName
)
{
const
String
*
pName
;
if
(
pGraphicBrush
&&
...
...
@@ -551,7 +551,7 @@ Size SvxNumberFormat::GetGraphicSizeMM100(const Graphic* pGraphic)
return
aRetSize
;
}
String
SvxNumberFormat
::
CreateRomanString
(
sal_uLong
nNo
,
sal_Bool
bUpper
)
OU
String
SvxNumberFormat
::
CreateRomanString
(
sal_uLong
nNo
,
sal_Bool
bUpper
)
{
nNo
%=
4000
;
// more can not be displayed
// i, ii, iii, iv, v, vi, vii, vii, viii, ix
...
...
@@ -560,7 +560,7 @@ String SvxNumberFormat::CreateRomanString( sal_uLong nNo, sal_Bool bUpper )
?
"MDCLXVI--"
// +2 Dummy entries!
:
"mdclxvi--"
;
// +2 Dummy entries!
String
sRet
;
OU
String
sRet
;
sal_uInt16
nMask
=
1000
;
while
(
nMask
)
{
...
...
@@ -571,23 +571,23 @@ String SvxNumberFormat::CreateRomanString( sal_uLong nNo, sal_Bool bUpper )
if
(
5
<
nZahl
)
{
if
(
nZahl
<
9
)
sRet
+=
sal_Unicode
(
*
(
cRomanArr
-
1
));
sRet
+=
OUString
(
*
(
cRomanArr
-
1
));
++
nDiff
;
nZahl
-=
5
;
}
switch
(
nZahl
)
{
case
3
:
{
sRet
+=
sal_Unicode
(
*
cRomanArr
);
}
case
2
:
{
sRet
+=
sal_Unicode
(
*
cRomanArr
);
}
case
1
:
{
sRet
+=
sal_Unicode
(
*
cRomanArr
);
}
case
3
:
{
sRet
+=
OUString
(
*
cRomanArr
);
}
case
2
:
{
sRet
+=
OUString
(
*
cRomanArr
);
}
case
1
:
{
sRet
+=
OUString
(
*
cRomanArr
);
}
break
;
case
4
:
{
sRet
+=
sal_Unicode
(
*
cRomanArr
);
sRet
+=
sal_Unicode
(
*
(
cRomanArr
-
nDiff
));
sRet
+=
OUString
(
*
cRomanArr
);
sRet
+=
OUString
(
*
(
cRomanArr
-
nDiff
));
}
break
;
case
5
:
{
sRet
+=
sal_Unicode
(
*
(
cRomanArr
-
nDiff
));
}
case
5
:
{
sRet
+=
OUString
(
*
(
cRomanArr
-
nDiff
));
}
break
;
}
...
...
@@ -853,9 +853,9 @@ void SvxNumRule::SetLevel(sal_uInt16 nLevel, const SvxNumberFormat* pFmt)
}
}
String
SvxNumRule
::
MakeNumString
(
const
SvxNodeNum
&
rNum
,
sal_Bool
bInclStrings
)
const
OUString
SvxNumRule
::
MakeNumString
(
const
SvxNodeNum
&
rNum
,
sal_Bool
bInclStrings
)
const
{
String
aStr
;
OU
String
aStr
;
if
(
SVX_NO_NUM
>
rNum
.
GetLevel
()
&&
!
(
SVX_NO_NUMLEVEL
&
rNum
.
GetLevel
()
)
)
{
const
SvxNumberFormat
&
rMyNFmt
=
GetLevel
(
rNum
.
GetLevel
()
);
...
...
@@ -893,16 +893,15 @@ String SvxNumRule::MakeNumString( const SvxNodeNum& rNum, sal_Bool bInclStrings
bDot
=
sal_False
;
}
else
aStr
+=
sal_Unicode
(
'0'
)
;
// all 0-levels are a 0
aStr
+=
"0"
;
// all 0-levels are a 0
if
(
i
!=
rNum
.
GetLevel
()
&&
bDot
)
aStr
+=
sal_Unicode
(
'.'
)
;
aStr
+=
"."
;
}
}
if
(
bInclStrings
)
{
aStr
.
Insert
(
rMyNFmt
.
GetPrefix
(),
0
);
aStr
+=
rMyNFmt
.
GetSuffix
();
aStr
=
rMyNFmt
.
GetPrefix
()
+
aStr
+
rMyNFmt
.
GetSuffix
();
}
}
return
aStr
;
...
...
include/editeng/numitem.hxx
Dosyayı görüntüle @
e7c7f96b
...
...
@@ -149,7 +149,7 @@ private:
Size
aGraphicSize
;
// Always! in 1/100 mm
Font
*
pBulletFont
;
// Pointer to the bullet font
String
sCharStyleName
;
// Character Style
OUString
sCharStyleName
;
// Character Style
DECL_STATIC_LINK
(
SvxNumberFormat
,
GraphicArrived
,
void
*
);
virtual
void
NotifyGraphicArrived
();
...
...
@@ -175,7 +175,7 @@ public:
void
SetSuffix
(
const
OUString
&
rSet
)
{
sSuffix
=
rSet
;}
const
OUString
&
GetSuffix
()
const
{
return
sSuffix
;}
void
SetCharFmtName
(
const
String
&
rSet
){
sCharStyleName
=
rSet
;
}
void
SetCharFmtName
(
const
OU
String
&
rSet
){
sCharStyleName
=
rSet
;
}
virtual
OUString
GetCharFmtName
()
const
;
void
SetBulletFont
(
const
Font
*
pFont
);
...
...
@@ -194,7 +194,7 @@ public:
virtual
void
SetGraphicBrush
(
const
SvxBrushItem
*
pBrushItem
,
const
Size
*
pSize
=
0
,
const
sal_Int16
*
pOrient
=
0
);
const
SvxBrushItem
*
GetBrush
()
const
{
return
pGraphicBrush
;}
void
SetGraphic
(
const
String
&
rName
);
void
SetGraphic
(
const
OU
String
&
rName
);
virtual
void
SetVertOrient
(
sal_Int16
eSet
);
virtual
sal_Int16
GetVertOrient
()
const
;
void
SetGraphicSize
(
const
Size
&
rSet
)
{
aGraphicSize
=
rSet
;}
...
...
@@ -222,7 +222,7 @@ public:
long
GetIndentAt
()
const
;
static
Size
GetGraphicSizeMM100
(
const
Graphic
*
pGraphic
);
static
String
CreateRomanString
(
sal_uLong
nNo
,
sal_Bool
bUpper
);
static
OUString
CreateRomanString
(
sal_uLong
nNo
,
sal_Bool
bUpper
);
};
enum
SvxNumRuleType
...
...
@@ -269,23 +269,23 @@ public:
void
SetLevel
(
sal_uInt16
nLevel
,
const
SvxNumberFormat
&
rFmt
,
sal_Bool
bIsValid
=
sal_True
);
void
SetLevel
(
sal_uInt16
nLevel
,
const
SvxNumberFormat
*
pFmt
);
sal_Bool
IsContinuousNumbering
()
const
sal_Bool
IsContinuousNumbering
()
const
{
return
bContinuousNumbering
;}
void
SetContinuousNumbering
(
sal_Bool
bSet
)
{
bContinuousNumbering
=
bSet
;}
sal_uInt16
GetLevelCount
()
const
{
return
nLevelCount
;}
sal_Bool
IsFeatureSupported
(
sal_uInt32
nFeature
)
const
sal_uInt16
GetLevelCount
()
const
{
return
nLevelCount
;}
sal_Bool
IsFeatureSupported
(
sal_uInt32
nFeature
)
const
{
return
0
!=
(
nFeatureFlags
&
nFeature
);}
sal_uInt32
GetFeatureFlags
()
const
{
return
nFeatureFlags
;}
sal_uInt32
GetFeatureFlags
()
const
{
return
nFeatureFlags
;}
void
SetFeatureFlag
(
sal_uInt32
nFlag
,
sal_Bool
bSet
=
sal_True
)
{
if
(
bSet
)
nFeatureFlags
|=
nFlag
;
else
nFeatureFlags
&=
~
nFlag
;
}
String
MakeNumString
(
const
SvxNodeNum
&
,
sal_Bool
bInclStrings
=
sal_True
)
const
;
OUString
MakeNumString
(
const
SvxNodeNum
&
,
sal_Bool
bInclStrings
=
sal_True
)
const
;
SvxNumRuleType
GetNumRuleType
()
const
{
return
eNumberingType
;
}
void
SetNumRuleType
(
const
SvxNumRuleType
&
rType
)
{
eNumberingType
=
rType
;
}
sal_Bool
UnLinkGraphics
();
sal_Bool
UnLinkGraphics
();
};
class
EDITENG_DLLPUBLIC
SvxNumBulletItem
:
public
SfxPoolItem
...
...
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