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
71622632
Kaydet (Commit)
71622632
authored
Eyl 04, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert svx/source/sidebar/*.cxx from String to OUString
Change-Id: I57bd0ade23a17cd2c8edfd2549ae131d80ab7592
üst
a4da41c4
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
127 additions
and
139 deletions
+127
-139
ColorControl.hxx
include/svx/sidebar/ColorControl.hxx
+2
-2
AreaPropertyPanel.cxx
svx/source/sidebar/area/AreaPropertyPanel.cxx
+7
-7
LineWidthControl.cxx
svx/source/sidebar/line/LineWidthControl.cxx
+5
-5
nbdtmg.cxx
svx/source/sidebar/nbdtmg.cxx
+65
-74
ParaLineSpacingControl.cxx
svx/source/sidebar/paragraph/ParaLineSpacingControl.cxx
+21
-21
PosSizePropertyPanel.cxx
svx/source/sidebar/possize/PosSizePropertyPanel.cxx
+8
-8
TextCharacterSpacingControl.cxx
svx/source/sidebar/text/TextCharacterSpacingControl.cxx
+9
-9
TextPropertyPanel.cxx
svx/source/sidebar/text/TextPropertyPanel.cxx
+2
-2
ColorControl.cxx
svx/source/sidebar/tools/ColorControl.cxx
+3
-3
ValueSetWithTextControl.cxx
svx/source/sidebar/tools/ValueSetWithTextControl.cxx
+5
-8
No files found.
include/svx/sidebar/ColorControl.hxx
Dosyayı görüntüle @
71622632
...
...
@@ -58,7 +58,7 @@ public:
const
ResId
&
rControlResId
,
const
ResId
&
rValueSetResId
,
const
::
boost
::
function
<
Color
(
void
)
>&
rNoColorGetter
,
const
::
boost
::
function
<
void
(
String
&
,
Color
)
>&
rColorSetter
,
const
::
boost
::
function
<
void
(
OU
String
&
,
Color
)
>&
rColorSetter
,
FloatingWindow
*
pFloatingWindow
,
const
ResId
*
pNoColorStringResId
);
virtual
~
ColorControl
(
void
);
...
...
@@ -73,7 +73,7 @@ private:
FloatingWindow
*
mpFloatingWindow
;
const
OUString
msNoColorString
;
::
boost
::
function
<
Color
(
void
)
>
maNoColorGetter
;
::
boost
::
function
<
void
(
String
&
,
Color
)
>
maColorSetter
;
::
boost
::
function
<
void
(
OU
String
&
,
Color
)
>
maColorSetter
;
void
FillColors
(
void
);
DECL_LINK
(
VSSelectHdl
,
void
*
);
...
...
svx/source/sidebar/area/AreaPropertyPanel.cxx
Dosyayı görüntüle @
71622632
...
...
@@ -236,7 +236,7 @@ IMPL_LINK( AreaPropertyPanel, SelectFillTypeHdl, ListBox *, pToolBox )
{
mpLbFillAttr
->
Hide
();
mpToolBoxColor
->
Show
();
const
String
aTmpStr
;
const
OU
String
aTmpStr
;
const
Color
aColor
=
maLastColor
;
const
XFillColorItem
aXFillColorItem
(
aTmpStr
,
aColor
);
...
...
@@ -998,7 +998,7 @@ void AreaPropertyPanel::NotifyItemUpdate(
{
if
(
mpFillGradientItem
)
{
const
String
aString
(
mpFillGradientItem
->
GetName
()
);
const
OU
String
aString
(
mpFillGradientItem
->
GetName
()
);
const
SfxObjectShell
*
pSh
=
SfxObjectShell
::
Current
();
const
SvxGradientListItem
aItem
(
*
(
const
SvxGradientListItem
*
)(
pSh
->
GetItem
(
SID_GRADIENT_LIST
)));
...
...
@@ -1023,7 +1023,7 @@ void AreaPropertyPanel::NotifyItemUpdate(
{
if
(
mpHatchItem
)
{
const
String
aString
(
mpHatchItem
->
GetName
()
);
const
OU
String
aString
(
mpHatchItem
->
GetName
()
);
const
SfxObjectShell
*
pSh
=
SfxObjectShell
::
Current
();
const
SvxHatchListItem
aItem
(
*
(
const
SvxHatchListItem
*
)(
pSh
->
GetItem
(
SID_HATCH_LIST
)));
...
...
@@ -1048,7 +1048,7 @@ void AreaPropertyPanel::NotifyItemUpdate(
{
if
(
mpBitmapItem
)
{
const
String
aString
(
mpBitmapItem
->
GetName
()
);
const
OU
String
aString
(
mpBitmapItem
->
GetName
()
);
const
SfxObjectShell
*
pSh
=
SfxObjectShell
::
Current
();
const
SvxBitmapListItem
aItem
(
*
(
const
SvxBitmapListItem
*
)(
pSh
->
GetItem
(
SID_BITMAP_LIST
)));
...
...
@@ -1120,7 +1120,7 @@ void AreaPropertyPanel::Update()
if
(
mpFillGradientItem
)
{
const
String
aString
(
mpFillGradientItem
->
GetName
());
const
OU
String
aString
(
mpFillGradientItem
->
GetName
());
mpLbFillAttr
->
SelectEntry
(
aString
);
}
...
...
@@ -1149,7 +1149,7 @@ void AreaPropertyPanel::Update()
if
(
mpHatchItem
)
{
const
String
aString
(
mpHatchItem
->
GetName
());
const
OU
String
aString
(
mpHatchItem
->
GetName
());
mpLbFillAttr
->
SelectEntry
(
aString
);
}
...
...
@@ -1178,7 +1178,7 @@ void AreaPropertyPanel::Update()
if
(
mpBitmapItem
)
{
const
String
aString
(
mpBitmapItem
->
GetName
());
const
OU
String
aString
(
mpBitmapItem
->
GetName
());
mpLbFillAttr
->
SelectEntry
(
aString
);
}
...
...
svx/source/sidebar/line/LineWidthControl.cxx
Dosyayı görüntüle @
71622632
...
...
@@ -214,14 +214,14 @@ void LineWidthControl::SetWidthSelect( long lValue, bool bValuable, SfxMapUnit e
if
(
aSeq
.
getLength
())
aSeq
[
0
].
Value
>>=
aTmp
;
String
aWinData
(
aTmp
);
mnCustomWidth
=
aWinData
.
T
oInt32
();
OU
String
aWinData
(
aTmp
);
mnCustomWidth
=
aWinData
.
t
oInt32
();
mbCustom
=
true
;
maVSWidth
.
SetImage
(
maIMGCus
);
maVSWidth
.
SetCusEnable
(
true
);
String
aStrTip
(
OUString
::
number
(
(
double
)
mnCustomWidth
/
10
));
aStrTip
.
Append
(
mstrPT
);
//
OU
String
aStrTip
(
OUString
::
number
(
(
double
)
mnCustomWidth
/
10
));
aStrTip
+=
mstrPT
;
maVSWidth
.
SetItemText
(
9
,
aStrTip
);
}
else
...
...
@@ -243,7 +243,7 @@ void LineWidthControl::SetWidthSelect( long lValue, bool bValuable, SfxMapUnit e
}
else
{
maMFWidth
.
SetText
(
String
()
);
maMFWidth
.
SetText
(
""
);
}
MapUnit
eOrgUnit
=
(
MapUnit
)
eMapUnit
;
...
...
svx/source/sidebar/nbdtmg.cxx
Dosyayı görüntüle @
71622632
...
...
@@ -65,8 +65,7 @@ namespace svx { namespace sidebar {
Font
&
lcl_GetDefaultBulletFont
()
{
static
sal_Bool
bInit
=
0
;
static
Font
aDefBulletFont
(
OUString
(
"StarSymbol"
),
String
(),
Size
(
0
,
14
)
);
static
Font
aDefBulletFont
(
"StarSymbol"
,
""
,
Size
(
0
,
14
)
);
if
(
!
bInit
)
{
aDefBulletFont
.
SetCharSet
(
RTL_TEXTENCODING_SYMBOL
);
...
...
@@ -132,7 +131,7 @@ NumSettings_ImplPtr lcl_CreateNumberingSettingsPtr(const Sequence<PropertyValue>
}
const
sal_Unicode
cLocalPrefix
=
pNew
->
sPrefix
.
getLength
()
?
pNew
->
sPrefix
.
getStr
()[
0
]
:
0
;
const
sal_Unicode
cLocalSuffix
=
pNew
->
sSuffix
.
getLength
()
?
pNew
->
sSuffix
.
getStr
()[
0
]
:
0
;
String
aEmptyStr
;
OU
String
aEmptyStr
;
if
(
cLocalPrefix
==
' '
)
pNew
->
sPrefix
=
aEmptyStr
;
if
(
cLocalSuffix
==
' '
)
pNew
->
sSuffix
=
aEmptyStr
;
return
pNew
;
...
...
@@ -167,7 +166,7 @@ void NBOTypeMgrBase::StoreBulCharFmtName_impl() {
if
(
pBulletCharFmt
)
{
aNumCharFmtName
=
String
(
pBulletCharFmt
->
GetValue
()
);
aNumCharFmtName
=
pBulletCharFmt
->
GetValue
(
);
}
}
}
...
...
@@ -417,10 +416,10 @@ sal_Bool BulletsTypeMgr::RelplaceNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_
pActualBullets
[
nIndex
]
->
aFont
=
*
pFont
;
pActualBullets
[
nIndex
]
->
bIsCustomized
=
sal_True
;
String
aStrFromRES
=
String
(
SVX_RESSTR
(
RID_SVXSTR_NUMBULLET_CUSTOM_BULLET_DESCRIPTION
)
);
String
aReplace
=
OUString
(
"%LIST_NUM"
);
String
sNUM
=
OUString
::
number
(
nIndex
+
1
);
aStrFromRES
.
SearchAndReplace
(
aReplace
,
sNUM
);
OUString
aStrFromRES
=
SVX_RESSTR
(
RID_SVXSTR_NUMBULLET_CUSTOM_BULLET_DESCRIPTION
);
OU
String
aReplace
=
OUString
(
"%LIST_NUM"
);
OU
String
sNUM
=
OUString
::
number
(
nIndex
+
1
);
aStrFromRES
=
aStrFromRES
.
replaceFirst
(
aReplace
,
sNUM
);
pActualBullets
[
nIndex
]
->
sDescription
=
aStrFromRES
;
return
sal_True
;
...
...
@@ -458,7 +457,7 @@ sal_Bool BulletsTypeMgr::ApplyNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_uIn
Font
rActBulletFont
=
pActualBullets
[
nIndex
]
->
aFont
;
sal_uInt16
nMask
=
1
;
String
sBulletCharFmtName
=
GetBulCharFmtName
();
OU
String
sBulletCharFmtName
=
GetBulCharFmtName
();
for
(
sal_uInt16
i
=
0
;
i
<
aNum
.
GetLevelCount
();
i
++
)
{
if
(
mLevel
&
nMask
)
...
...
@@ -479,7 +478,7 @@ sal_Bool BulletsTypeMgr::ApplyNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_uIn
OUString
BulletsTypeMgr
::
GetDescription
(
sal_uInt16
nIndex
,
sal_Bool
/*isDefault*/
)
{
String
sRet
;
OU
String
sRet
;
//sal_uInt16 nLength = 0;
//nLength = sizeof(pActualBullets)/sizeof(BulletsSettings_Impl);
...
...
@@ -586,7 +585,7 @@ void GraphyicBulletsTypeMgr::Init()
GalleryExplorer
::
FillObjList
(
GALLERY_THEME_BULLETS
,
aGrfNames
);
for
(
sal_uInt16
i
=
0
;
i
<
aGrfNames
.
size
();
i
++
)
{
String
sGrfNm
=
aGrfNames
[
i
];
OU
String
sGrfNm
=
aGrfNames
[
i
];
INetURLObject
aObj
(
sGrfNm
);
if
(
aObj
.
GetProtocol
()
==
INET_PROT_FILE
)
sGrfNm
=
aObj
.
PathToFileName
();
...
...
@@ -678,10 +677,9 @@ sal_Bool GraphyicBulletsTypeMgr::RelplaceNumRule(SvxNumRule& aNum,sal_uInt16 nIn
//pEntry->sDescription = sEmpty;
pEntry
->
nGallaryIndex
=
(
sal_uInt16
)
0xFFFF
;
pEntry
->
bIsCustomized
=
sal_True
;
String
aStrFromRES
=
String
(
SVX_RESSTR
(
RID_SVXSTR_NUMBULLET_CUSTOM_BULLET_DESCRIPTION
));
String
aReplace
=
OUString
(
"%LIST_NUM"
);
String
sNUM
=
OUString
::
number
(
nIndex
+
1
);
aStrFromRES
.
SearchAndReplace
(
aReplace
,
sNUM
);
OUString
aStrFromRES
=
SVX_RESSTR
(
RID_SVXSTR_NUMBULLET_CUSTOM_BULLET_DESCRIPTION
);
OUString
sNUM
=
OUString
::
number
(
nIndex
+
1
);
aStrFromRES
=
aStrFromRES
.
replaceFirst
(
"%LIST_NUM"
,
sNUM
);
pEntry
->
sDescription
=
aStrFromRES
;
}
else
{
...
...
@@ -699,14 +697,14 @@ sal_Bool GraphyicBulletsTypeMgr::ApplyNumRule(SvxNumRule& aNum,sal_uInt16 nIndex
if
(
nIndex
>=
aGrfDataLst
.
size
()
)
return
sal_False
;
String
sGrfName
;
OU
String
sGrfName
;
GrfBulDataRelation
*
pEntry
=
aGrfDataLst
[
nIndex
];
sGrfName
=
pEntry
->
sGrfName
;
sal_uInt16
nMask
=
1
;
String
aEmptyStr
;
OU
String
aEmptyStr
;
sal_uInt16
nSetNumberingType
=
SVX_NUM_BITMAP
;
String
sNumCharFmtName
=
GetBulCharFmtName
();
OU
String
sNumCharFmtName
=
GetBulCharFmtName
();
for
(
sal_uInt16
i
=
0
;
i
<
aNum
.
GetLevelCount
();
i
++
)
{
if
(
mLevel
&
nMask
)
...
...
@@ -738,7 +736,7 @@ sal_Bool GraphyicBulletsTypeMgr::ApplyNumRule(SvxNumRule& aNum,sal_uInt16 nIndex
}
OUString
GraphyicBulletsTypeMgr
::
GetDescription
(
sal_uInt16
nIndex
,
sal_Bool
/*isDefault*/
)
{
String
sRet
;
OU
String
sRet
;
sal_uInt16
nLength
=
0
;
nLength
=
aGrfDataLst
.
size
();
...
...
@@ -1041,10 +1039,9 @@ sal_Bool MixBulletsTypeMgr::RelplaceNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,s
pEntry
->
cBulletChar
=
cChar
;
pEntry
->
aFont
=
pFont
?*
pFont
:
lcl_GetDefaultBulletFont
();
pEntry
->
bIsCustomized
=
sal_True
;
String
aStrFromRES
=
String
(
SVX_RESSTR
(
RID_SVXSTR_NUMBULLET_CUSTOM_BULLET_DESCRIPTION
));
String
aReplace
=
OUString
(
"%LIST_NUM"
);
String
sNUM
=
OUString
::
number
(
nIndex
+
1
);
aStrFromRES
.
SearchAndReplace
(
aReplace
,
sNUM
);
OUString
aStrFromRES
=
SVX_RESSTR
(
RID_SVXSTR_NUMBULLET_CUSTOM_BULLET_DESCRIPTION
);
OUString
sNUM
=
OUString
::
number
(
nIndex
+
1
);
aStrFromRES
=
aStrFromRES
.
replaceFirst
(
"%LIST_NUM"
,
sNUM
);
pEntry
->
sDescription
=
aStrFromRES
;
}
else
if
(
(
eNumType
&
(
~
LINK_TOKEN
))
==
SVX_NUM_BITMAP
&&
pActualBullets
[
nIndex
]
->
eType
==
eNBType
::
GRAPHICBULLETS
)
...
...
@@ -1056,7 +1053,7 @@ sal_Bool MixBulletsTypeMgr::RelplaceNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,s
else
return
sal_False
;
String
sEmpty
;
OU
String
sEmpty
;
if
(
pGrf
)
{
const
String
*
pGrfName
=
pBrsh
->
GetGraphicLink
();
...
...
@@ -1074,10 +1071,9 @@ sal_Bool MixBulletsTypeMgr::RelplaceNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,s
//}else
{
pActualBullets
[
nIndex
]
->
nIndexDefault
=
(
sal_uInt16
)
0xFFFF
;
sEmpty
=
String
(
SVX_RESSTR
(
RID_SVXSTR_NUMBULLET_CUSTOM_BULLET_DESCRIPTION
));
String
aReplace
=
OUString
(
"%LIST_NUM"
);
String
sNUM
=
OUString
::
number
(
nIndex
+
1
);
sEmpty
.
SearchAndReplace
(
aReplace
,
sNUM
);
sEmpty
=
SVX_RESSTR
(
RID_SVXSTR_NUMBULLET_CUSTOM_BULLET_DESCRIPTION
);
OUString
sNUM
=
OUString
::
number
(
nIndex
+
1
);
sEmpty
=
sEmpty
.
replaceFirst
(
"%LIST_NUM"
,
sNUM
);
//pEntry->pGrfObj = pGrf;
pEntry
->
pGrfObj
=
new
Graphic
(
*
pGrf
);
pEntry
->
aSize
=
aFmt
.
GetGraphicSize
();
...
...
@@ -1118,10 +1114,9 @@ sal_Bool MixBulletsTypeMgr::RelplaceNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,s
//}else
{
pActualBullets
[
nIndex
]
->
nIndexDefault
=
(
sal_uInt16
)
0xFFFF
;
String
aStrFromRES
=
String
(
SVX_RESSTR
(
RID_SVXSTR_NUMBULLET_CUSTOM_BULLET_DESCRIPTION
));
String
aReplace
=
OUString
(
"%LIST_NUM"
);
String
sNUM
=
OUString
::
number
(
nIndex
+
1
);
aStrFromRES
.
SearchAndReplace
(
aReplace
,
sNUM
);
OUString
aStrFromRES
=
SVX_RESSTR
(
RID_SVXSTR_NUMBULLET_CUSTOM_BULLET_DESCRIPTION
);
OUString
sNUM
=
OUString
::
number
(
nIndex
+
1
);
aStrFromRES
=
aStrFromRES
.
replaceFirst
(
"%LIST_NUM"
,
sNUM
);
((
BulletsSettings_Impl
*
)(
pActualBullets
[
nIndex
]
->
pBullets
))
->
sDescription
=
aStrFromRES
;
}
}
...
...
@@ -1157,10 +1152,9 @@ sal_Bool MixBulletsTypeMgr::RelplaceNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,s
//}else
{
pActualBullets
[
nIndex
]
->
nIndexDefault
=
(
sal_uInt16
)
0xFFFF
;
String
aStrFromRES
=
String
(
SVX_RESSTR
(
RID_SVXSTR_NUMBULLET_CUSTOM_BULLET_DESCRIPTION
));
String
aReplace
=
OUString
(
"%LIST_NUM"
);
String
sNUM
=
OUString
::
number
(
nIndex
+
1
);
aStrFromRES
.
SearchAndReplace
(
aReplace
,
sNUM
);
OUString
aStrFromRES
=
SVX_RESSTR
(
RID_SVXSTR_NUMBULLET_CUSTOM_BULLET_DESCRIPTION
);
OUString
sNUM
=
OUString
::
number
(
nIndex
+
1
);
aStrFromRES
=
aStrFromRES
.
replaceFirst
(
"%LIST_NUM"
,
sNUM
);
((
GrfBulDataRelation
*
)(
pActualBullets
[
nIndex
]
->
pBullets
))
->
sDescription
=
aStrFromRES
;
//((GrfBulDataRelation*)(pActualBullets[nIndex]->pBullets))->pGrfObj = pGrf;
((
GrfBulDataRelation
*
)(
pActualBullets
[
nIndex
]
->
pBullets
))
->
pGrfObj
=
new
Graphic
(
*
pGrf
);
...
...
@@ -1210,7 +1204,7 @@ sal_Bool MixBulletsTypeMgr::ApplyNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_
//Font& rActBulletFont = lcl_GetDefaultBulletFont();
Font
rActBulletFont
=
((
BulletsSettings_Impl
*
)(
pCurrentBullets
->
pBullets
))
->
aFont
;
sal_uInt16
nMask
=
1
;
String
sBulletCharFmtName
=
GetBulCharFmtName
();
OU
String
sBulletCharFmtName
=
GetBulCharFmtName
();
for
(
sal_uInt16
i
=
0
;
i
<
aNum
.
GetLevelCount
();
i
++
)
{
if
(
mLevel
&
nMask
)
...
...
@@ -1221,7 +1215,7 @@ sal_Bool MixBulletsTypeMgr::ApplyNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_
aFmt
.
SetBulletFont
(
&
rActBulletFont
);
aFmt
.
SetBulletChar
(
cChar
);
aFmt
.
SetCharFmtName
(
sBulletCharFmtName
);
String
aEmptyStr
;
OU
String
aEmptyStr
;
aFmt
.
SetPrefix
(
aEmptyStr
);
aFmt
.
SetSuffix
(
aEmptyStr
);
if
(
isResetSize
)
aFmt
.
SetBulletRelSize
(
45
);
...
...
@@ -1231,14 +1225,14 @@ sal_Bool MixBulletsTypeMgr::ApplyNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_
}
}
else
if
(
pCurrentBullets
->
eType
==
eNBType
::
GRAPHICBULLETS
)
{
String
sGrfName
;
OU
String
sGrfName
;
GrfBulDataRelation
*
pEntry
=
(
GrfBulDataRelation
*
)
(
pCurrentBullets
->
pBullets
);
sGrfName
=
pEntry
->
sGrfName
;
sal_uInt16
nMask
=
1
;
String
aEmptyStr
;
OU
String
aEmptyStr
;
sal_uInt16
nSetNumberingType
=
SVX_NUM_BITMAP
;
String
sNumCharFmtName
=
GetBulCharFmtName
();
OU
String
sNumCharFmtName
=
GetBulCharFmtName
();
for
(
sal_uInt16
i
=
0
;
i
<
aNum
.
GetLevelCount
();
i
++
)
{
if
(
mLevel
&
nMask
)
...
...
@@ -1293,7 +1287,7 @@ sal_Bool MixBulletsTypeMgr::ApplyNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_
OUString
MixBulletsTypeMgr
::
GetDescription
(
sal_uInt16
nIndex
,
sal_Bool
isDefault
)
{
String
sRet
;
OU
String
sRet
;
//sal_uInt16 nLength = 0;
//nLength = sizeof(pActualBullets)/sizeof(BulletsSettings_Impl);
...
...
@@ -1366,7 +1360,7 @@ void NumberingTypeMgr::Init()
pNumEntry
->
pNumSetting
=
pNew
;
//SetItemText( i + 1, SVX_RESSTR( RID_SVXSTR_SINGLENUM_DESCRIPTIONS + i ));
{
String
sText
;
OU
String
sText
;
//const OUString sValue(C2U("Value"));
Reference
<
XNumberingFormatter
>
xFormatter
(
xDefNum
,
UNO_QUERY
);
if
(
xFormatter
.
is
()
&&
aNumberings
.
getLength
()
>
i
)
...
...
@@ -1393,9 +1387,8 @@ void NumberingTypeMgr::Init()
}
}
}
String
aStrFromRES
(
SVX_RESSTR
(
RID_SVXSTR_SINGLENUM_DESCRIPTIONS
));
String
aReplace
=
OUString
(
"%NUMBERINGSAMPLE"
);
aStrFromRES
.
SearchAndReplace
(
aReplace
,
sText
);
OUString
aStrFromRES
(
SVX_RESSTR
(
RID_SVXSTR_SINGLENUM_DESCRIPTIONS
));
aStrFromRES
=
aStrFromRES
.
replaceFirst
(
"%NUMBERINGSAMPLE"
,
sText
);
pNumEntry
->
sDescription
=
aStrFromRES
;
}
//End modification
...
...
@@ -1422,8 +1415,8 @@ sal_uInt16 NumberingTypeMgr::GetNBOIndexForNumRule(SvxNumRule& aNum,sal_uInt16 m
SvxNumberFormat
aFmt
(
aNum
.
GetLevel
(
nActLv
));
//sal_Unicode cPrefix = rtl::OUString(aFmt.GetPrefix()).getStr()[0];
//sal_Unicode cSuffix = rtl::OUString(aFmt.GetSuffix()).getStr()[0];
String
sPreFix
=
aFmt
.
GetPrefix
();
String
sLclSuffix
=
aFmt
.
GetSuffix
();
OU
String
sPreFix
=
aFmt
.
GetPrefix
();
OU
String
sLclSuffix
=
aFmt
.
GetSuffix
();
sal_Int16
eNumType
=
aFmt
.
GetNumberingType
();
sal_uInt16
nCount
=
pNumberSettingsArr
->
size
();
...
...
@@ -1431,10 +1424,10 @@ sal_uInt16 NumberingTypeMgr::GetNBOIndexForNumRule(SvxNumRule& aNum,sal_uInt16 m
{
NumberSettings_ImplPtr
_pSet
=
(
*
pNumberSettingsArr
)[
i
].
get
();
sal_Int16
eNType
=
_pSet
->
pNumSetting
->
nNumberType
;
String
sLocalPreFix
=
_pSet
->
pNumSetting
->
sPrefix
;
String
sLocalSuffix
=
_pSet
->
pNumSetting
->
sSuffix
;
if
(
sPreFix
.
CompareTo
(
sLocalPreFix
)
==
COMPARE_EQUAL
&&
sLclSuffix
.
CompareTo
(
sLocalSuffix
)
==
COMPARE_EQUAL
&&
OU
String
sLocalPreFix
=
_pSet
->
pNumSetting
->
sPrefix
;
OU
String
sLocalSuffix
=
_pSet
->
pNumSetting
->
sSuffix
;
if
(
sPreFix
==
sLocalPreFix
&&
sLclSuffix
==
sLocalSuffix
&&
eNumType
==
eNType
)
{
return
i
+
1
;
...
...
@@ -1480,10 +1473,9 @@ sal_Bool NumberingTypeMgr::RelplaceNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sa
ApplyNumRule
(
aTmpRule2
,
nIndex
,
mLevel
,
false
);
if
(
aTmpRule1
==
aTmpRule2
)
_pSet
->
bIsCustomized
=
false
;
if
(
_pSet
->
bIsCustomized
)
{
String
aStrFromRES
=
String
(
SVX_RESSTR
(
RID_SVXSTR_NUMBULLET_CUSTOM_NUMBERING_DESCRIPTION
));
String
aReplace
=
OUString
(
"%LIST_NUM"
);
String
sNUM
=
OUString
::
number
(
nIndex
+
1
);
aStrFromRES
.
SearchAndReplace
(
aReplace
,
sNUM
);
OUString
aStrFromRES
=
SVX_RESSTR
(
RID_SVXSTR_NUMBULLET_CUSTOM_NUMBERING_DESCRIPTION
);
OUString
sNUM
=
OUString
::
number
(
nIndex
+
1
);
aStrFromRES
=
aStrFromRES
.
replaceFirst
(
"%LIST_NUM"
,
sNUM
);
_pSet
->
sDescription
=
aStrFromRES
;
}
else
{
_pSet
->
sDescription
=
GetDescription
(
nIndex
,
true
);
...
...
@@ -1506,7 +1498,7 @@ sal_Bool NumberingTypeMgr::ApplyNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_u
sal_Int16
eNewType
=
_pSet
->
pNumSetting
->
nNumberType
;
sal_uInt16
nMask
=
1
;
String
sNumCharFmtName
=
GetBulCharFmtName
();
OU
String
sNumCharFmtName
=
GetBulCharFmtName
();
for
(
sal_uInt16
i
=
0
;
i
<
aNum
.
GetLevelCount
();
i
++
)
{
if
(
mLevel
&
nMask
)
...
...
@@ -1528,7 +1520,7 @@ sal_Bool NumberingTypeMgr::ApplyNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_u
}
OUString
NumberingTypeMgr
::
GetDescription
(
sal_uInt16
nIndex
,
sal_Bool
isDefault
)
{
String
sRet
;
OU
String
sRet
;
sal_uInt16
nLength
=
0
;
nLength
=
pNumberSettingsArr
->
size
();
...
...
@@ -1644,8 +1636,8 @@ sal_uInt16 OutlineTypeMgr::GetNBOIndexForNumRule(SvxNumRule& aNum,sal_uInt16 /*m
sal_Int16
eNType
=
_pSet
->
nNumberType
;
SvxNumberFormat
aFmt
(
aNum
.
GetLevel
(
iLevel
));
String
sPreFix
=
aFmt
.
GetPrefix
();
String
sLclSuffix
=
aFmt
.
GetSuffix
();
OU
String
sPreFix
=
aFmt
.
GetPrefix
();
OU
String
sLclSuffix
=
aFmt
.
GetSuffix
();
sal_Int16
eNumType
=
aFmt
.
GetNumberingType
();
if
(
eNumType
==
SVX_NUM_CHAR_SPECIAL
)
{
...
...
@@ -1684,14 +1676,14 @@ sal_uInt16 OutlineTypeMgr::GetNBOIndexForNumRule(SvxNumRule& aNum,sal_uInt16 /*m
}
}
else
{
if
(
!
(
(
sPreFix
.
CompareTo
(
_pSet
->
sPrefix
)
==
COMPARE_EQUAL
)
&&
(
sLclSuffix
.
CompareTo
(
_pSet
->
sSuffix
)
==
COMPARE_EQUAL
)
&&
eNumType
==
eNType
&&
_pSet
->
eLabelFollowedBy
==
aFmt
.
GetLabelFollowedBy
()
&&
_pSet
->
nTabValue
==
aFmt
.
GetListtabPos
()
&&
_pSet
->
eNumAlign
==
aFmt
.
GetNumAdjust
()
&&
_pSet
->
nNumAlignAt
==
aFmt
.
GetFirstLineIndent
()
&&
_pSet
->
nNumIndentAt
==
aFmt
.
GetIndentAt
()))
if
(
!
(
sPreFix
==
_pSet
->
sPrefix
&&
sLclSuffix
==
_pSet
->
sSuffix
&&
eNumType
==
eNType
&&
_pSet
->
eLabelFollowedBy
==
aFmt
.
GetLabelFollowedBy
()
&&
_pSet
->
nTabValue
==
aFmt
.
GetListtabPos
()
&&
_pSet
->
eNumAlign
==
aFmt
.
GetNumAdjust
()
&&
_pSet
->
nNumAlignAt
==
aFmt
.
GetFirstLineIndent
()
&&
_pSet
->
nNumIndentAt
==
aFmt
.
GetIndentAt
()))
{
bNotMatch
=
sal_True
;
break
;
...
...
@@ -1766,10 +1758,9 @@ sal_Bool OutlineTypeMgr::RelplaceNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_
ApplyNumRule
(
aTmpRule2
,
nIndex
,
mLevel
,
false
);
if
(
aTmpRule1
==
aTmpRule2
)
pItemArr
->
bIsCustomized
=
false
;
if
(
pItemArr
->
bIsCustomized
)
{
String
aStrFromRES
=
String
(
SVX_RESSTR
(
RID_SVXSTR_NUMBULLET_CUSTOM_MULTILEVEL_DESCRIPTION
));
String
aReplace
=
OUString
(
"%LIST_NUM"
);
String
sNUM
=
OUString
::
number
(
nIndex
+
1
);
aStrFromRES
.
SearchAndReplace
(
aReplace
,
sNUM
);
OUString
aStrFromRES
=
SVX_RESSTR
(
RID_SVXSTR_NUMBULLET_CUSTOM_MULTILEVEL_DESCRIPTION
);
OUString
sNUM
=
OUString
::
number
(
nIndex
+
1
);
aStrFromRES
=
aStrFromRES
.
replaceFirst
(
"%LIST_NUM"
,
sNUM
);
pItemArr
->
sDescription
=
aStrFromRES
;
}
else
{
pItemArr
->
sDescription
=
GetDescription
(
nIndex
,
true
);
...
...
@@ -1796,7 +1787,7 @@ sal_Bool OutlineTypeMgr::ApplyNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_uIn
NumSettingsArr_Impl
*
pNumSettingsArr
=
pItemArr
->
pNumSettingsArr
;
NumSettings_ImplPtr
pLevelSettings
=
0
;
String
sBulletCharFmtName
=
GetBulCharFmtName
();
OU
String
sBulletCharFmtName
=
GetBulCharFmtName
();
for
(
sal_uInt16
i
=
0
;
i
<
aNum
.
GetLevelCount
();
i
++
)
{
if
(
pNumSettingsArr
->
size
()
>
i
)
...
...
@@ -1897,7 +1888,7 @@ sal_Bool OutlineTypeMgr::ApplyNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_uIn
}
OUString
OutlineTypeMgr
::
GetDescription
(
sal_uInt16
nIndex
,
sal_Bool
isDefault
)
{
String
sRet
;
OU
String
sRet
;
sal_uInt16
nLength
=
0
;
nLength
=
sizeof
(
pOutlineSettingsArrs
)
/
sizeof
(
OutlineSettings_Impl
*
);
...
...
svx/source/sidebar/paragraph/ParaLineSpacingControl.cxx
Dosyayı görüntüle @
71622632
...
...
@@ -187,8 +187,8 @@ void ParaLineSpacingControl::Rearrange(SfxItemState currSPState,FieldUnit currMe
if
(
aSeq
.
getLength
())
aSeq
[
0
].
Value
>>=
aTmp
;
String
aWinData
(
aTmp
);
maPos
=
(
sal_uInt16
)
aWinData
.
T
oInt32
();
OU
String
aWinData
(
aTmp
);
maPos
=
(
sal_uInt16
)
aWinData
.
t
oInt32
();
}
SvtViewOptions
aWinOpt2
(
E_WINDOW
,
LSP_LV_GLOBAL_VALUE
);
...
...
@@ -199,10 +199,10 @@ void ParaLineSpacingControl::Rearrange(SfxItemState currSPState,FieldUnit currMe
if
(
aSeq
.
getLength
())
aSeq
[
0
].
Value
>>=
aTmp
;
String
aWinData
(
aTmp
);
maValue
=
(
sal_uInt16
)
aWinData
.
T
oInt32
();
OU
String
aWinData
(
aTmp
);
maValue
=
(
sal_uInt16
)
aWinData
.
t
oInt32
();
}
String
sHelpText
;
OU
String
sHelpText
;
switch
(
maPos
)
{
case
LLINESPACE_1
:
...
...
@@ -216,27 +216,27 @@ void ParaLineSpacingControl::Rearrange(SfxItemState currSPState,FieldUnit currMe
break
;
case
LLINESPACE_PROP
:
sHelpText
+=
maLine
;
sHelpText
.
Append
(
String
(
"Proportion: "
,
12
,
RTL_TEXTENCODING_ASCII_US
))
;
sHelpText
+=
"Proportion: "
;
sHelpText
+=
maOf
;
sHelpText
.
Append
(
OUString
::
number
(
maValue
)
);
sHelpText
+=
OUString
::
number
(
maValue
);
break
;
case
LLINESPACE_MIN
:
sHelpText
+=
maLine
;
sHelpText
.
Append
(
String
(
"At Least: "
,
10
,
RTL_TEXTENCODING_ASCII_US
))
;
sHelpText
+=
"At Least: "
;
sHelpText
+=
maOf
;
sHelpText
.
Append
(
OUString
::
number
(
maValue
)
);
sHelpText
+=
OUString
::
number
(
maValue
);
break
;
case
LLINESPACE_DURCH
:
sHelpText
+=
maLine
;
sHelpText
.
Append
(
String
(
"Leading: "
,
9
,
RTL_TEXTENCODING_ASCII_US
))
;
sHelpText
+=
"Leading: "
;
sHelpText
+=
maOf
;
sHelpText
.
Append
(
OUString
::
number
(
maValue
)
);
sHelpText
+=
OUString
::
number
(
maValue
);
break
;
case
LLINESPACE_FIX
:
sHelpText
+=
maLine
;
sHelpText
.
Append
(
String
(
"Fixed: "
,
7
,
RTL_TEXTENCODING_ASCII_US
))
;
sHelpText
+=
"Fixed: "
;
sHelpText
+=
maOf
;
sHelpText
.
Append
(
OUString
::
number
(
maValue
)
);
sHelpText
+=
OUString
::
number
(
maValue
);
break
;
}
if
(
!
aWinOpt
.
Exists
()
&&
!
aWinOpt2
.
Exists
()
)
...
...
@@ -259,7 +259,7 @@ void ParaLineSpacingControl::Rearrange(SfxItemState currSPState,FieldUnit currMe
// mpLineSPPage->SetAllNoSel();
aLineDist
.
Enable
();
pActLineDistFld
->
Enable
();
pActLineDistFld
->
SetText
(
String
()
);
pActLineDistFld
->
SetText
(
""
);
//bool bValueSetFocus = sal_False; //wj
if
(
eState
>=
SFX_ITEM_AVAILABLE
)
...
...
@@ -280,7 +280,7 @@ void ParaLineSpacingControl::Rearrange(SfxItemState currSPState,FieldUnit currMe
{
aLineDist
.
SelectEntryPos
(
LLINESPACE_1
);
pActLineDistFld
->
Disable
();
pActLineDistFld
->
SetText
(
String
()
);
pActLineDistFld
->
SetText
(
""
);
mbUseLineSPCustom
=
DO_NOT_CUSTOM
;
if
(
LINESPACE_1
==
currSPItem
->
GetPropLineSpace
()
)
{
...
...
@@ -296,7 +296,7 @@ void ParaLineSpacingControl::Rearrange(SfxItemState currSPState,FieldUnit currMe
{
aLineDist
.
SelectEntryPos
(
LLINESPACE_1
);
pActLineDistFld
->
Disable
();
pActLineDistFld
->
SetText
(
String
()
);
pActLineDistFld
->
SetText
(
""
);
mbUseLineSPCustom
=
DO_NOT_CUSTOM
;
maLineSpacing
.
SelectItem
(
1
);
//bValueSetFocus = sal_True; //wj
...
...
@@ -306,7 +306,7 @@ void ParaLineSpacingControl::Rearrange(SfxItemState currSPState,FieldUnit currMe
{
aLineDist
.
SelectEntryPos
(
LLINESPACE_15
);
pActLineDistFld
->
Disable
();
pActLineDistFld
->
SetText
(
String
()
);
pActLineDistFld
->
SetText
(
""
);
mbUseLineSPCustom
=
DO_NOT_CUSTOM
;
maLineSpacing
.
SelectItem
(
3
);
...
...
@@ -317,7 +317,7 @@ void ParaLineSpacingControl::Rearrange(SfxItemState currSPState,FieldUnit currMe
{
aLineDist
.
SelectEntryPos
(
LLINESPACE_2
);
pActLineDistFld
->
Disable
();
pActLineDistFld
->
SetText
(
String
()
);
pActLineDistFld
->
SetText
(
""
);
mbUseLineSPCustom
=
DO_NOT_CUSTOM
;
maLineSpacing
.
SelectItem
(
4
);
...
...
@@ -452,7 +452,7 @@ void ParaLineSpacingControl::Rearrange(SfxItemState currSPState,FieldUnit currMe
{
aLineDist
.
Disable
();
pActLineDistFld
->
Enable
(
sal_False
);
pActLineDistFld
->
SetText
(
String
()
);
pActLineDistFld
->
SetText
(
""
);
maLineSpacing
.
SetNoSelection
();
maLineSpacing
.
SelectItem
(
0
);
...
...
@@ -461,7 +461,7 @@ void ParaLineSpacingControl::Rearrange(SfxItemState currSPState,FieldUnit currMe
else
{
pActLineDistFld
->
Enable
(
sal_False
);
pActLineDistFld
->
SetText
(
String
()
);
pActLineDistFld
->
SetText
(
""
);
aLineDist
.
SetNoSelection
();
maLineSpacing
.
SetNoSelection
();
maLineSpacing
.
SelectItem
(
0
);
...
...
@@ -523,7 +523,7 @@ IMPL_LINK( ParaLineSpacingControl, LineSPDistHdl_Impl, ListBox*, pBox )
case
LLINESPACE_15
:
case
LLINESPACE_2
:
pActLineDistFld
->
Enable
(
sal_False
);
pActLineDistFld
->
SetText
(
String
()
);
pActLineDistFld
->
SetText
(
""
);
break
;
case
LLINESPACE_DURCH
:
...
...
svx/source/sidebar/possize/PosSizePropertyPanel.cxx
Dosyayı görüntüle @
71622632
...
...
@@ -616,7 +616,7 @@ void PosSizePropertyPanel::NotifyItemUpdate(
}
}
mpMtrWidth
->
SetText
(
String
()
);
mpMtrWidth
->
SetText
(
""
);
break
;
case
SID_ATTR_TRANSFORM_HEIGHT
:
...
...
@@ -636,7 +636,7 @@ void PosSizePropertyPanel::NotifyItemUpdate(
}
}
mpMtrHeight
->
SetText
(
String
()
);
mpMtrHeight
->
SetText
(
""
);
break
;
case
SID_ATTR_TRANSFORM_POS_X
:
...
...
@@ -654,7 +654,7 @@ void PosSizePropertyPanel::NotifyItemUpdate(
}
}
mpMtrPosX
->
SetText
(
String
()
);
mpMtrPosX
->
SetText
(
""
);
break
;
case
SID_ATTR_TRANSFORM_POS_Y
:
...
...
@@ -672,7 +672,7 @@ void PosSizePropertyPanel::NotifyItemUpdate(
}
}
mpMtrPosY
->
SetText
(
String
()
);
mpMtrPosY
->
SetText
(
""
);
break
;
case
SID_ATTR_TRANSFORM_ROT_X
:
...
...
@@ -801,7 +801,7 @@ void PosSizePropertyPanel::NotifyItemUpdate(
}
}
mpMtrAngle
->
SetText
(
String
()
);
mpMtrAngle
->
SetText
(
""
);
mpDial
->
SetRotation
(
0
);
break
;
...
...
@@ -883,12 +883,12 @@ void PosSizePropertyPanel::NotifyItemUpdate(
// mpCbxScale must synchronized with that on Position and Size tabpage on Shape Properties dialog
SvtViewOptions
aPageOpt
(
E_TABPAGE
,
OUString
::
number
(
RID_SVXPAGE_POSITION_SIZE
)
);
String
sUserData
;
OU
String
sUserData
;
::
com
::
sun
::
star
::
uno
::
Any
aUserItem
=
aPageOpt
.
GetUserItem
(
USERITEM_NAME
);
::
rtl
::
OUString
aTemp
;
if
(
aUserItem
>>=
aTemp
)
sUserData
=
String
(
aTemp
)
;
mpCbxScale
->
Check
(
(
bool
)
sUserData
.
T
oInt32
()
);
sUserData
=
aTemp
;
mpCbxScale
->
Check
(
(
bool
)
sUserData
.
t
oInt32
()
);
}
...
...
svx/source/sidebar/text/TextCharacterSpacingControl.cxx
Dosyayı görüntüle @
71622632
...
...
@@ -150,8 +150,8 @@ void TextCharacterSpacingControl::Rearrange(bool bLBAvailable,bool bAvailable, l
if
(
aSeq
.
getLength
())
aSeq
[
0
].
Value
>>=
aTmp
;
String
aWinData
(
aTmp
);
mnCustomKern
=
aWinData
.
T
oInt32
();
OU
String
aWinData
(
aTmp
);
mnCustomKern
=
aWinData
.
t
oInt32
();
mnLastCus
=
SPACING_CLOSE_BY_CUS_EDIT
;
mbCusEnable
=
true
;
}
...
...
@@ -171,21 +171,21 @@ void TextCharacterSpacingControl::Rearrange(bool bLBAvailable,bool bAvailable, l
maVSSpacing
.
ReplaceItemImages
(
6
,
maImgCus
,
0
);
if
(
mnCustomKern
>
0
)
{
String
aStrTip
(
maStrCusE
);
//LAST CUSTOM no tip defect //add
aStrTip
.
Append
(
OUString
::
number
(
(
double
)
mnCustomKern
/
10
)
);
aStrTip
.
Append
(
maStrUnit
)
;
// modify
OU
String
aStrTip
(
maStrCusE
);
//LAST CUSTOM no tip defect //add
aStrTip
+=
OUString
::
number
(
(
double
)
mnCustomKern
/
10
);
aStrTip
+=
maStrUnit
;
// modify
maVSSpacing
.
SetItemText
(
6
,
aStrTip
);
}
else
if
(
mnCustomKern
<
0
)
{
String
aStrTip
(
maStrCusC
)
;
//LAST CUSTOM no tip defect //add
aStrTip
.
Append
(
OUString
::
number
(
(
double
)
-
mnCustomKern
/
10
)
);
aStrTip
.
Append
(
maStrUnit
)
;
// modify
OU
String
aStrTip
(
maStrCusC
)
;
//LAST CUSTOM no tip defect //add
aStrTip
+=
OUString
::
number
(
(
double
)
-
mnCustomKern
/
10
);
aStrTip
+=
maStrUnit
;
// modify
maVSSpacing
.
SetItemText
(
6
,
aStrTip
);
}
else
{
String
aStrTip
(
maStrCusN
)
;
//LAST CUSTOM no tip defect //add
OU
String
aStrTip
(
maStrCusN
)
;
//LAST CUSTOM no tip defect //add
maVSSpacing
.
SetItemText
(
6
,
aStrTip
);
}
...
...
svx/source/sidebar/text/TextPropertyPanel.cxx
Dosyayı görüntüle @
71622632
...
...
@@ -769,7 +769,7 @@ void TextPropertyPanel::NotifyItemUpdate (
}
else
{
mpFontNameBox
->
SetText
(
String
()
);
mpFontNameBox
->
SetText
(
""
);
if
(
SFX_ITEM_DISABLED
==
eState
)
bIsControlEnabled
=
false
;
}
...
...
@@ -825,7 +825,7 @@ void TextPropertyPanel::NotifyItemUpdate (
else
{
mpHeightItem
=
NULL
;
mpFontSizeBox
->
SetText
(
String
()
);
mpFontSizeBox
->
SetText
(
""
);
//increase decrease diabled when multi-seletion have different font size
// font size +/- enhancement in sd
...
...
svx/source/sidebar/tools/ColorControl.cxx
Dosyayı görüntüle @
71622632
...
...
@@ -89,7 +89,7 @@ ColorControl::ColorControl (
const
ResId
&
rControlResId
,
const
ResId
&
rValueSetResId
,
const
::
boost
::
function
<
Color
(
void
)
>&
rNoColorGetter
,
const
::
boost
::
function
<
void
(
String
&
,
Color
)
>&
rColorSetter
,
const
::
boost
::
function
<
void
(
OU
String
&
,
Color
)
>&
rColorSetter
,
FloatingWindow
*
pFloatingWindow
,
const
ResId
*
pNoColorStringResId
)
// const sal_uInt32 nNoColorStringResId)
:
PopupControl
(
pParent
,
rControlResId
),
...
...
@@ -200,10 +200,10 @@ IMPL_LINK(ColorControl, VSSelectHdl, void *, pControl)
{
sal_uInt16
iPos
=
maVSColor
.
GetSelectItemId
();
Color
aColor
=
maVSColor
.
GetItemColor
(
iPos
);
String
aTmpStr
=
maVSColor
.
GetItemText
(
iPos
);
OU
String
aTmpStr
=
maVSColor
.
GetItemText
(
iPos
);
// react when the WB_NONEFIELD created entry is selected
if
(
aColor
.
GetColor
()
==
0
&&
aTmpStr
.
Len
()
==
0
)
if
(
aColor
.
GetColor
()
==
0
&&
aTmpStr
.
isEmpty
()
)
{
if
(
maNoColorGetter
)
aColor
=
maNoColorGetter
();
...
...
svx/source/sidebar/tools/ValueSetWithTextControl.cxx
Dosyayı görüntüle @
71622632
...
...
@@ -346,7 +346,7 @@ void SvxNumValueSet2::UserDraw( const UserDrawEvent& rUDEvt )
Point
aStart
(
aBLPos
.
X
()
+
nRectWidth
/
9
,
0
);
if
(
nItemId
==
DEFAULT_NONE
)
{
String
sText
(
SVX_RESSTR
(
RID_SVXSTR_NUMBULLET_NONE
));
OU
String
sText
(
SVX_RESSTR
(
RID_SVXSTR_NUMBULLET_NONE
));
Font
aLclFont
=
pDev
->
GetFont
();
Size
aLclSize
=
aLclFont
.
GetSize
();
aLclSize
.
Height
()
=
nRectHeight
/
4
;
...
...
@@ -374,14 +374,12 @@ void SvxNumValueSet2::UserDraw( const UserDrawEvent& rUDEvt )
{
sal_uInt32
nY
=
11
+
i
*
33
;
aStart
.
Y
()
=
aBLPos
.
Y
()
+
nRectHeight
*
nY
/
100
;
String
sText
;
OU
String
sText
;
sal_uInt16
nLvl
=
0
;
SvxNumRule
aTempRule
(
0
,
10
,
false
);
pNumbering
->
ApplyNumRule
(
aTempRule
,
nItemId
-
1
,
1
<<
nLvl
);
SvxNumberFormat
aNumFmt
(
aTempRule
.
GetLevel
(
nLvl
));
sText
=
aNumFmt
.
GetNumStr
(
i
+
1
);
sText
.
Insert
(
aNumFmt
.
GetPrefix
(),
0
);
sText
+=
aNumFmt
.
GetSuffix
();
sText
=
aNumFmt
.
GetPrefix
()
+
aNumFmt
.
GetNumStr
(
i
+
1
)
+
aNumFmt
.
GetSuffix
();
aStart
.
X
()
=
aBLPos
.
X
()
+
2
;
aStart
.
Y
()
-=
pDev
->
GetTextHeight
()
/
2
;
pDev
->
DrawText
(
aStart
,
sText
);
...
...
@@ -444,8 +442,7 @@ void SvxNumValueSet3::UserDraw( const UserDrawEvent& rUDEvt )
pDev
->
SetFont
(
aFont
);
pDev
->
SetFillColor
(
aBackColor
);
//wj
String
sText
;
sText
=
cChar
;
OUString
sText
(
cChar
);
Font
aOldBulletFont
=
pDev
->
GetFont
();
Font
aBulletFnt
(
aFmt
.
GetBulletFont
()
?
*
aFmt
.
GetBulletFont
()
:
aOldBulletFont
);
Size
aBulSize
=
aOldBulletFont
.
GetSize
();
...
...
@@ -488,7 +485,7 @@ void SvxNumValueSet3::UserDraw( const UserDrawEvent& rUDEvt )
pDev
->
SetFont
(
aFont
);
pDev
->
SetFillColor
(
aBackColor
);
String
sText
(
SVX_RESSTR
(
RID_SVXSTR_NUMBULLET_NONE
));
OU
String
sText
(
SVX_RESSTR
(
RID_SVXSTR_NUMBULLET_NONE
));
long
nTextWidth
=
pDev
->
GetTextWidth
(
sText
);
long
nTextHeight
=
pDev
->
GetTextHeight
();
...
...
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