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
a67d0193
Kaydet (Commit)
a67d0193
authored
Mar 12, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
XubString->OUString
Change-Id: Ie2b0060155eaeb4c8979731dd4c62bc269f7c501
üst
ecdd44e8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
35 deletions
+35
-35
fmtfield.hxx
svtools/inc/svtools/fmtfield.hxx
+6
-6
tabbar.hxx
svtools/inc/svtools/tabbar.hxx
+3
-3
fmtfield.cxx
svtools/source/control/fmtfield.cxx
+24
-24
tabbar.cxx
svtools/source/control/tabbar.cxx
+2
-2
No files found.
svtools/inc/svtools/fmtfield.hxx
Dosyayı görüntüle @
a67d0193
...
...
@@ -295,17 +295,17 @@ protected:
//------------------------------------------------------------------------------
class
DoubleCurrencyField
:
public
FormattedField
{
Xub
String
m_sCurrencySymbol
;
sal_Bool
m_bPrependCurrSym
;
sal_Bool
m_bChangingFormat
;
OU
String
m_sCurrencySymbol
;
sal_Bool
m_bPrependCurrSym
;
sal_Bool
m_bChangingFormat
;
public
:
DoubleCurrencyField
(
Window
*
pParent
,
WinBits
nStyle
=
0
);
XubString
getCurrencySymbol
()
const
{
return
m_sCurrencySymbol
;
}
void
setCurrencySymbol
(
const
XubString
&
_s
Symbol
);
OUString
getCurrencySymbol
()
const
{
return
m_sCurrencySymbol
;
}
void
setCurrencySymbol
(
const
OUString
&
r
Symbol
);
sal_Bool
getPrependCurrSym
()
const
{
return
m_bPrependCurrSym
;
}
sal_Bool
getPrependCurrSym
()
const
{
return
m_bPrependCurrSym
;
}
void
setPrependCurrSym
(
sal_Bool
_bPrepend
);
protected
:
...
...
svtools/inc/svtools/tabbar.hxx
Dosyayı görüntüle @
a67d0193
...
...
@@ -339,7 +339,7 @@ private:
ImplTabButton
*
mpLastBtn
;
TabBar_Impl
*
mpImpl
;
TabBarEdit
*
mpEdit
;
XubString
maEditText
;
OUString
maEditText
;
Color
maSelColor
;
Color
maSelTextColor
;
Size
maWinSize
;
...
...
@@ -476,8 +476,8 @@ public:
sal_Bool
IsEditModeEnabled
()
const
{
return
mbAutoEditMode
;
}
sal_Bool
StartEditMode
(
sal_uInt16
nPageId
);
void
EndEditMode
(
sal_Bool
bCancel
=
sal_False
);
void
SetEditText
(
const
Xub
String
&
rText
)
{
maEditText
=
rText
;
}
const
Xub
String
&
GetEditText
()
const
{
return
maEditText
;
}
void
SetEditText
(
const
OU
String
&
rText
)
{
maEditText
=
rText
;
}
const
OU
String
&
GetEditText
()
const
{
return
maEditText
;
}
sal_Bool
IsInEditMode
()
const
{
return
(
mpEdit
!=
NULL
);
}
sal_Bool
IsEditModeCanceled
()
const
{
return
mbEditCanceled
;
}
sal_uInt16
GetEditPageId
()
const
{
return
mnEditId
;
}
...
...
svtools/source/control/fmtfield.cxx
Dosyayı görüntüle @
a67d0193
...
...
@@ -1209,12 +1209,12 @@ void DoubleCurrencyField::FormatChanged(FORMAT_CHANGE_TYPE nWhat)
}
//------------------------------------------------------------------------------
void
DoubleCurrencyField
::
setCurrencySymbol
(
const
String
&
_s
Symbol
)
void
DoubleCurrencyField
::
setCurrencySymbol
(
const
OUString
&
r
Symbol
)
{
if
(
m_sCurrencySymbol
==
_s
Symbol
)
if
(
m_sCurrencySymbol
==
r
Symbol
)
return
;
m_sCurrencySymbol
=
_s
Symbol
;
m_sCurrencySymbol
=
r
Symbol
;
UpdateCurrencyFormat
();
FormatChanged
(
FCT_CURRENCY_SYMBOL
);
}
...
...
@@ -1248,61 +1248,61 @@ void DoubleCurrencyField::UpdateCurrencyFormat()
LanguageTag
aLanguageTag
(
eLanguage
);
LocaleDataWrapper
aLocaleInfo
(
aLanguageTag
);
XubString
sNewFormat
;
OUStringBuffer
sNewFormat
;
if
(
bThSep
)
{
sNewFormat
=
'#'
;
sNewFormat
+=
aLocaleInfo
.
getNumThousandSep
(
);
sNewFormat
.
AppendAscii
(
"##0"
);
sNewFormat
.
append
(
'#'
)
;
sNewFormat
.
append
(
aLocaleInfo
.
getNumThousandSep
()
);
sNewFormat
.
append
(
"##0"
);
}
else
sNewFormat
=
'0'
;
sNewFormat
.
append
(
'0'
)
;
if
(
nDigits
)
{
sNewFormat
+=
aLocaleInfo
.
getNumDecimalSep
(
);
sNewFormat
.
append
(
aLocaleInfo
.
getNumDecimalSep
()
);
rtl
::
OUStringBuffer
sTemp
;
comphelper
::
string
::
padToLength
(
sTemp
,
nDigits
,
'0'
);
sNewFormat
+=
sTemp
.
makeStringAndClear
(
);
sNewFormat
.
append
(
sTemp
);
}
if
(
getPrependCurrSym
())
{
Xub
String
sSymbol
=
getCurrencySymbol
();
OU
String
sSymbol
=
getCurrencySymbol
();
sSymbol
=
comphelper
::
string
::
stripStart
(
sSymbol
,
' '
);
sSymbol
=
comphelper
::
string
::
stripEnd
(
sSymbol
,
' '
);
XubString
sTemp
=
rtl
::
OUString
(
"[$"
);
sTemp
+=
sSymbol
;
sTemp
.
AppendAscii
(
"] "
);
sTemp
+=
sNewFormat
;
OUStringBuffer
sTemp
(
"[$"
);
sTemp
.
append
(
sSymbol
)
;
sTemp
.
append
(
"] "
);
sTemp
.
append
(
sNewFormat
)
;
// for negative values : $ -0.00, not -$ 0.00 ...
// (the real solution would be a possibility to choose a "positive currency format" and a "negative currency format" ...
// But not now ... (and hey, you could take a formatted field for this ....))
// FS - 31.03.00 74642
sTemp
.
AppendAscii
(
";[$"
);
sTemp
+=
sSymbol
;
sTemp
.
AppendAscii
(
"] -"
);
sTemp
+=
sNewFormat
;
sTemp
.
append
(
";[$"
);
sTemp
.
append
(
sSymbol
)
;
sTemp
.
append
(
"] -"
);
sTemp
.
append
(
sNewFormat
)
;
sNewFormat
=
sTemp
;
}
else
{
Xub
String
sTemp
=
getCurrencySymbol
();
OU
String
sTemp
=
getCurrencySymbol
();
sTemp
=
comphelper
::
string
::
stripStart
(
sTemp
,
' '
);
sTemp
=
comphelper
::
string
::
stripEnd
(
sTemp
,
' '
);
sNewFormat
+=
rtl
::
OUString
(
" [$"
);
sNewFormat
+=
sTemp
;
sNewFormat
+=
']'
;
sNewFormat
.
append
(
" [$"
);
sNewFormat
.
append
(
sTemp
)
;
sNewFormat
.
append
(
']'
)
;
}
// set this new basic format
m_bChangingFormat
=
sal_True
;
SetFormat
(
sNewFormat
,
eLanguage
);
SetFormat
(
sNewFormat
.
makeStringAndClear
()
,
eLanguage
);
m_bChangingFormat
=
sal_False
;
}
...
...
svtools/source/control/tabbar.cxx
Dosyayı görüntüle @
a67d0193
...
...
@@ -2405,8 +2405,8 @@ void TabBar::EndEditMode( sal_Bool bCancel )
}
// reset
maEditText
.
Erase
();
mbEditCanceled
=
sal_F
alse
;
maEditText
=
OUString
();
mbEditCanceled
=
f
alse
;
}
}
...
...
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