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
7f3f6e47
Kaydet (Commit)
7f3f6e47
authored
May 08, 2012
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use the field type value for branching instead of ISA macro.
Change-Id: Ie5bc60875fef3e9b6f6f46942b2124bc42978290
üst
3c648396
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
20 deletions
+23
-20
editutil.cxx
sc/source/core/tool/editutil.cxx
+23
-20
No files found.
sc/source/core/tool/editutil.cxx
Dosyayı görüntüle @
7f3f6e47
...
...
@@ -653,22 +653,29 @@ String ScHeaderEditEngine::CalcFieldValue( const SvxFieldItem& rField,
sal_uInt16
/* nPara */
,
sal_uInt16
/* nPos */
,
Color
*&
/* rTxtColor */
,
Color
*&
/* rFldColor */
)
{
String
aRet
;
const
SvxFieldData
*
pFieldData
=
rField
.
GetField
();
if
(
pFieldData
)
if
(
!
pFieldData
)
return
rtl
::
OUString
(
"?"
);
rtl
::
OUString
aRet
;
sal_Int32
nClsId
=
pFieldData
->
GetClassId
();
switch
(
nClsId
)
{
TypeId
aType
=
pFieldData
->
Type
();
if
(
aType
==
TYPE
(
SvxPageField
))
case
text
:
:
textfield
::
Type
::
PAGE
:
aRet
=
lcl_GetNumStr
(
aData
.
nPageNo
,
aData
.
eNumType
);
else
if
(
aType
==
TYPE
(
SvxPagesField
))
break
;
case
text
:
:
textfield
::
Type
::
PAGES
:
aRet
=
lcl_GetNumStr
(
aData
.
nTotalPages
,
aData
.
eNumType
);
else
if
(
aType
==
TYPE
(
SvxTimeField
))
break
;
case
text
:
:
textfield
::
Type
::
TIME
:
aRet
=
ScGlobal
::
pLocaleData
->
getTime
(
aData
.
aTime
);
else
if
(
aType
==
TYPE
(
SvxFileField
))
break
;
case
text
:
:
textfield
::
Type
::
FILE
:
aRet
=
aData
.
aTitle
;
else
if
(
aType
==
TYPE
(
SvxExtFileField
))
break
;
case
text
:
:
textfield
::
Type
::
EXTENDED_FILE
:
{
switch
(
((
const
SvxExtFileField
*
)
pFieldData
)
->
GetFormat
()
)
switch
(
static_cast
<
const
SvxExtFileField
*>
(
pFieldData
)
->
GetFormat
()
)
{
case
SVXFILEFORMAT_FULLPATH
:
aRet
=
aData
.
aLongDocName
;
...
...
@@ -677,19 +684,15 @@ String ScHeaderEditEngine::CalcFieldValue( const SvxFieldItem& rField,
aRet
=
aData
.
aShortDocName
;
}
}
else
if
(
aType
==
TYPE
(
SvxTableField
))
break
;
case
text
:
:
textfield
::
Type
::
TABLE
:
aRet
=
aData
.
aTabName
;
else
if
(
aType
==
TYPE
(
SvxDateField
))
break
;
case
text
:
:
textfield
::
Type
::
DATE
:
aRet
=
ScGlobal
::
pLocaleData
->
getDate
(
aData
.
aDate
);
else
{
aRet
=
'?'
;
}
}
else
{
OSL_FAIL
(
"FieldData ist 0"
);
aRet
=
'?'
;
break
;
default
:
aRet
=
"?"
;
}
return
aRet
;
...
...
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