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
4e0c84ae
Kaydet (Commit)
4e0c84ae
authored
Eki 09, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert sw/source/ui/fldui/*.hxx from String to OUString
Change-Id: I7c9e4fdd8f2edf1a7d9a566543571516544bb1c0
üst
c9228985
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
29 deletions
+29
-29
fldfunc.cxx
sw/source/ui/fldui/fldfunc.cxx
+4
-4
fldfunc.hxx
sw/source/ui/fldui/fldfunc.hxx
+1
-1
fldpage.cxx
sw/source/ui/fldui/fldpage.cxx
+16
-16
fldpage.hxx
sw/source/ui/fldui/fldpage.hxx
+5
-5
fldvar.hxx
sw/source/ui/fldui/fldvar.hxx
+3
-3
No files found.
sw/source/ui/fldui/fldfunc.cxx
Dosyayı görüntüle @
4e0c84ae
...
...
@@ -587,9 +587,9 @@ sal_Bool SwFldFuncPage::FillItemSet(SfxItemSet& )
return
sal_False
;
}
String
SwFldFuncPage
::
TurnMacroString
(
const
String
&
rMacro
)
OUString
SwFldFuncPage
::
TurnMacroString
(
const
OU
String
&
rMacro
)
{
if
(
rMacro
.
Len
())
if
(
!
rMacro
.
isEmpty
())
{
// reverse content of aName
String
sTmp
,
sBuf
;
...
...
@@ -598,9 +598,9 @@ String SwFldFuncPage::TurnMacroString(const String &rMacro)
for
(
sal_uInt16
i
=
0
;
i
<
4
&&
nPos
!=
-
1
;
i
++
)
{
if
(
i
==
3
)
sTmp
=
rMacro
.
C
opy
(
nPos
);
sTmp
=
rMacro
.
c
opy
(
nPos
);
else
sTmp
=
rMacro
.
G
etToken
(
0
,
'.'
,
nPos
);
sTmp
=
rMacro
.
g
etToken
(
0
,
'.'
,
nPos
);
if
(
sBuf
.
Len
()
)
sTmp
+=
'.'
;
...
...
sw/source/ui/fldui/fldfunc.hxx
Dosyayı görüntüle @
4e0c84ae
...
...
@@ -77,7 +77,7 @@ class SwFldFuncPage : public SwFldPage
DECL_LINK
(
MacroHdl
,
Button
*
);
void
UpdateSubType
();
String
TurnMacroString
(
const
String
&
rMacro
);
OUString
TurnMacroString
(
const
OU
String
&
rMacro
);
protected
:
virtual
sal_uInt16
GetGroup
();
...
...
sw/source/ui/fldui/fldpage.cxx
Dosyayı görüntüle @
4e0c84ae
...
...
@@ -127,8 +127,8 @@ void SwFldPage::EditNewField( sal_Bool bOnlyActivate )
Description: insert field
--------------------------------------------------------------------*/
sal_Bool
SwFldPage
::
InsertFld
(
sal_uInt16
nTypeId
,
sal_uInt16
nSubType
,
const
String
&
rPar1
,
const
String
&
rPar2
,
sal_uLong
nFormatId
,
sal_Bool
SwFldPage
::
InsertFld
(
sal_uInt16
nTypeId
,
sal_uInt16
nSubType
,
const
OU
String
&
rPar1
,
const
OU
String
&
rPar2
,
sal_uLong
nFormatId
,
sal_Unicode
cSeparator
,
sal_Bool
bIsAutomaticLanguage
)
{
sal_Bool
bRet
=
sal_False
;
...
...
@@ -157,13 +157,13 @@ sal_Bool SwFldPage::InsertFld(sal_uInt16 nTypeId, sal_uInt16 nSubType, const Str
if
(
bRecordDB
)
{
aReq
.
AppendItem
(
SfxStringItem
(
FN_INSERT_DBFIELD
,
rPar1
.
G
etToken
(
0
,
DB_DELIM
)));
(
FN_INSERT_DBFIELD
,
rPar1
.
g
etToken
(
0
,
DB_DELIM
)));
aReq
.
AppendItem
(
SfxStringItem
(
FN_PARAM_1
,
rPar1
.
G
etToken
(
1
,
DB_DELIM
)));
(
FN_PARAM_1
,
rPar1
.
g
etToken
(
1
,
DB_DELIM
)));
aReq
.
AppendItem
(
SfxInt32Item
(
FN_PARAM_3
,
rPar1
.
GetToken
(
1
,
DB_DELIM
).
T
oInt32
()));
(
FN_PARAM_3
,
rPar1
.
getToken
(
1
,
DB_DELIM
).
t
oInt32
()));
aReq
.
AppendItem
(
SfxStringItem
(
FN_PARAM_2
,
rPar1
.
G
etToken
(
3
,
DB_DELIM
)));
(
FN_PARAM_2
,
rPar1
.
g
etToken
(
3
,
DB_DELIM
)));
}
else
{
...
...
@@ -201,10 +201,10 @@ sal_Bool SwFldPage::InsertFld(sal_uInt16 nTypeId, sal_uInt16 nSubType, const Str
sal_Int32
nPos
=
0
;
SwDBData
aData
;
aData
.
sDataSource
=
rPar1
.
G
etToken
(
0
,
DB_DELIM
,
nPos
);
aData
.
sCommand
=
rPar1
.
G
etToken
(
0
,
DB_DELIM
,
nPos
);
aData
.
nCommandType
=
rPar1
.
GetToken
(
0
,
DB_DELIM
,
nPos
).
T
oInt32
();
sPar1
=
rPar1
.
C
opy
(
nPos
);
aData
.
sDataSource
=
rPar1
.
g
etToken
(
0
,
DB_DELIM
,
nPos
);
aData
.
sCommand
=
rPar1
.
g
etToken
(
0
,
DB_DELIM
,
nPos
);
aData
.
nCommandType
=
rPar1
.
getToken
(
0
,
DB_DELIM
,
nPos
).
t
oInt32
();
sPar1
=
rPar1
.
c
opy
(
nPos
);
((
SwDBNameInfField
*
)
pTmpFld
)
->
SetDBData
(
aData
);
}
...
...
@@ -213,10 +213,10 @@ sal_Bool SwFldPage::InsertFld(sal_uInt16 nTypeId, sal_uInt16 nSubType, const Str
case
TYP_DBFLD
:
{
SwDBData
aData
;
aData
.
sDataSource
=
rPar1
.
G
etToken
(
0
,
DB_DELIM
);
aData
.
sCommand
=
rPar1
.
G
etToken
(
1
,
DB_DELIM
);
aData
.
nCommandType
=
rPar1
.
GetToken
(
2
,
DB_DELIM
).
T
oInt32
();
String
sColumn
=
rPar1
.
G
etToken
(
3
,
DB_DELIM
);
aData
.
sDataSource
=
rPar1
.
g
etToken
(
0
,
DB_DELIM
);
aData
.
sCommand
=
rPar1
.
g
etToken
(
1
,
DB_DELIM
);
aData
.
nCommandType
=
rPar1
.
getToken
(
2
,
DB_DELIM
).
t
oInt32
();
String
sColumn
=
rPar1
.
g
etToken
(
3
,
DB_DELIM
);
SwDBFieldType
*
pOldTyp
=
(
SwDBFieldType
*
)
pTmpFld
->
GetTyp
();
SwDBFieldType
*
pTyp
=
(
SwDBFieldType
*
)
pSh
->
InsertFldType
(
...
...
@@ -303,7 +303,7 @@ void SwFldPage::SavePos( const ListBox* pLst1, const ListBox* pLst2,
if
(
(
*
ppLB
)
&&
(
*
ppLB
)
->
GetEntryCount
()
)
m_aLstStrArr
[
i
]
=
(
*
ppLB
)
->
GetSelectEntry
();
else
m_aLstStrArr
[
i
]
.
Erase
()
;
m_aLstStrArr
[
i
]
=
""
;
}
void
SwFldPage
::
RestorePos
(
ListBox
*
pLst1
,
ListBox
*
pLst2
,
ListBox
*
pLst3
)
...
...
@@ -312,7 +312,7 @@ void SwFldPage::RestorePos(ListBox* pLst1, ListBox* pLst2, ListBox* pLst3)
ListBox
*
aLBArr
[
coLBCount
]
=
{
pLst1
,
pLst2
,
pLst3
};
ListBox
**
ppLB
=
aLBArr
;
for
(
int
i
=
0
;
i
<
coLBCount
;
++
i
,
++
ppLB
)
if
(
(
*
ppLB
)
&&
(
*
ppLB
)
->
GetEntryCount
()
&&
m_aLstStrArr
[
i
].
Len
()
&&
if
(
(
*
ppLB
)
&&
(
*
ppLB
)
->
GetEntryCount
()
&&
!
m_aLstStrArr
[
i
].
isEmpty
()
&&
LISTBOX_ENTRY_NOTFOUND
!=
(
nPos
=
(
*
ppLB
)
->
GetEntryPos
(
m_aLstStrArr
[
i
]
)
)
)
(
*
ppLB
)
->
SelectEntryPos
(
nPos
);
...
...
sw/source/ui/fldui/fldpage.hxx
Dosyayı görüntüle @
4e0c84ae
...
...
@@ -30,12 +30,12 @@ const int coLBCount = 3;
class
SwFldPage
:
public
SfxTabPage
{
String
m_aLstStrArr
[
coLBCount
];
OUString
m_aLstStrArr
[
coLBCount
];
SwFldMgr
m_aMgr
;
SwField
*
m_pCurFld
;
SwWrtShell
*
m_pWrtShell
;
sal_uInt16
m_nTypeSel
;
sal_uInt16
m_nSelectionSel
;
sal_uInt16
m_nTypeSel
;
sal_uInt16
m_nSelectionSel
;
bool
m_bFldEdit
;
sal_Bool
m_bInsert
;
sal_Bool
m_bFldDlgHtmlMode
;
...
...
@@ -68,8 +68,8 @@ protected:
// insert field
sal_Bool
InsertFld
(
sal_uInt16
nTypeId
,
sal_uInt16
nSubType
,
const
String
&
rPar1
,
const
String
&
rPar2
,
const
OU
String
&
rPar1
,
const
OU
String
&
rPar2
,
sal_uLong
nFormatId
,
sal_Unicode
cDelim
=
' '
,
sal_Bool
bIsAutomaticLanguage
=
sal_True
);
...
...
sw/source/ui/fldui/fldvar.hxx
Dosyayı görüntüle @
4e0c84ae
...
...
@@ -70,10 +70,10 @@ class SwFldVarPage : public SwFldPage
sal_uInt16
m_nApplyId
;
sal_uInt16
m_nDeleteId
;
String
sOldValueFT
;
String
sOldNameFT
;
OUString
sOldValueFT
;
OUString
sOldNameFT
;
sal_uLong
nOldFormat
;
sal_uLong
nOldFormat
;
sal_Bool
bInit
;
DECL_LINK
(
TypeHdl
,
void
*
);
...
...
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