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
d71c8d1e
Kaydet (Commit)
d71c8d1e
authored
Agu 20, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert svtools/source/dialogs/* from String to OUString
Change-Id: Ib868e94bb73f244fcb5b1b47962ded0118023a26
üst
9bd6c8d0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
31 deletions
+31
-31
addresstemplate.cxx
svtools/source/dialogs/addresstemplate.cxx
+27
-27
insdlg.cxx
svtools/source/dialogs/insdlg.cxx
+3
-3
roadmapwizard.cxx
svtools/source/dialogs/roadmapwizard.cxx
+1
-1
No files found.
svtools/source/dialogs/addresstemplate.cxx
Dosyayı görüntüle @
d71c8d1e
...
@@ -70,15 +70,15 @@ namespace svt
...
@@ -70,15 +70,15 @@ namespace svt
using
namespace
::
comphelper
;
using
namespace
::
comphelper
;
using
namespace
::
utl
;
using
namespace
::
utl
;
DECLARE_STL_VECTOR
(
String
,
StringArray
)
;
typedef
std
::
vector
<
OUString
>
StringArray
;
DECLARE_STL_STDKEY_SET
(
OUString
,
StringBag
)
;
typedef
std
::
set
<
OUString
>
StringBag
;
DECLARE_STL_USTRINGACCESS_MAP
(
OUString
,
MapString2String
);
DECLARE_STL_USTRINGACCESS_MAP
(
OUString
,
MapString2String
);
namespace
namespace
{
{
String
lcl_getSelectedDataSource
(
const
ComboBox
&
_dataSourceCombo
)
OU
String
lcl_getSelectedDataSource
(
const
ComboBox
&
_dataSourceCombo
)
{
{
String
selectedDataSource
=
_dataSourceCombo
.
GetText
();
OU
String
selectedDataSource
=
_dataSourceCombo
.
GetText
();
if
(
_dataSourceCombo
.
GetEntryPos
(
selectedDataSource
)
==
LISTBOX_ENTRY_NOTFOUND
)
if
(
_dataSourceCombo
.
GetEntryPos
(
selectedDataSource
)
==
LISTBOX_ENTRY_NOTFOUND
)
{
{
// none of the pre-selected entries -> assume a path to a database document
// none of the pre-selected entries -> assume a path to a database document
...
@@ -187,7 +187,7 @@ public:
...
@@ -187,7 +187,7 @@ public:
const
AliasProgrammaticPair
*
pFieldsEnd
=
pFields
+
_rFields
.
getLength
();
const
AliasProgrammaticPair
*
pFieldsEnd
=
pFields
+
_rFields
.
getLength
();
for
(;
pFields
!=
pFieldsEnd
;
++
pFields
)
for
(;
pFields
!=
pFieldsEnd
;
++
pFields
)
{
{
StringBag
I
terator
aKnownPos
=
aKnownNames
.
find
(
pFields
->
ProgrammaticName
);
StringBag
::
const_i
terator
aKnownPos
=
aKnownNames
.
find
(
pFields
->
ProgrammaticName
);
if
(
aKnownNames
.
end
()
!=
aKnownPos
)
if
(
aKnownNames
.
end
()
!=
aKnownPos
)
{
{
m_aAliases
[
pFields
->
ProgrammaticName
]
=
pFields
->
Alias
;
m_aAliases
[
pFields
->
ProgrammaticName
]
=
pFields
->
Alias
;
...
@@ -635,7 +635,7 @@ void AssignmentPersistentData::Commit()
...
@@ -635,7 +635,7 @@ void AssignmentPersistentData::Commit()
long
nLabelWidth
=
0
;
long
nLabelWidth
=
0
;
long
nListBoxWidth
=
m_pImpl
->
pFields
[
0
]
->
approximate_char_width
()
*
20
;
long
nListBoxWidth
=
m_pImpl
->
pFields
[
0
]
->
approximate_char_width
()
*
20
;
for
(
ConstStringArrayI
terator
aI
=
m_pImpl
->
aFieldLabels
.
begin
(),
aEnd
=
m_pImpl
->
aFieldLabels
.
end
();
aI
!=
aEnd
;
++
aI
)
for
(
StringArray
::
const_i
terator
aI
=
m_pImpl
->
aFieldLabels
.
begin
(),
aEnd
=
m_pImpl
->
aFieldLabels
.
end
();
aI
!=
aEnd
;
++
aI
)
{
{
nLabelWidth
=
std
::
max
(
nLabelWidth
,
FixedText
::
getTextDimensions
(
m_pImpl
->
pFieldLabels
[
0
],
*
aI
,
0x7FFFFFFF
).
Width
());
nLabelWidth
=
std
::
max
(
nLabelWidth
,
FixedText
::
getTextDimensions
(
m_pImpl
->
pFieldLabels
[
0
],
*
aI
,
0x7FFFFFFF
).
Width
());
}
}
...
@@ -720,7 +720,7 @@ void AssignmentPersistentData::Commit()
...
@@ -720,7 +720,7 @@ void AssignmentPersistentData::Commit()
AliasProgrammaticPair
*
pPair
=
_rMapping
.
getArray
();
AliasProgrammaticPair
*
pPair
=
_rMapping
.
getArray
();
OUString
sCurrent
;
OUString
sCurrent
;
for
(
ConstStringArrayI
terator
aProgrammatic
=
m_pImpl
->
aLogicalFieldNames
.
begin
();
for
(
StringArray
::
const_i
terator
aProgrammatic
=
m_pImpl
->
aLogicalFieldNames
.
begin
();
aProgrammatic
!=
m_pImpl
->
aLogicalFieldNames
.
end
();
aProgrammatic
!=
m_pImpl
->
aLogicalFieldNames
.
end
();
++
aProgrammatic
++
aProgrammatic
)
)
...
@@ -757,8 +757,8 @@ void AssignmentPersistentData::Commit()
...
@@ -757,8 +757,8 @@ void AssignmentPersistentData::Commit()
// AddressBookSourceDialog::loadConfiguration: inconsistence between field names and field assignments!
// AddressBookSourceDialog::loadConfiguration: inconsistence between field names and field assignments!
assert
(
m_pImpl
->
aLogicalFieldNames
.
size
()
==
m_pImpl
->
aFieldAssignments
.
size
());
assert
(
m_pImpl
->
aLogicalFieldNames
.
size
()
==
m_pImpl
->
aFieldAssignments
.
size
());
ConstStringArrayI
terator
aLogical
=
m_pImpl
->
aLogicalFieldNames
.
begin
();
StringArray
::
const_i
terator
aLogical
=
m_pImpl
->
aLogicalFieldNames
.
begin
();
StringArray
I
terator
aAssignment
=
m_pImpl
->
aFieldAssignments
.
begin
();
StringArray
::
i
terator
aAssignment
=
m_pImpl
->
aFieldAssignments
.
begin
();
for
(
;
for
(
;
aLogical
!=
m_pImpl
->
aLogicalFieldNames
.
end
();
aLogical
!=
m_pImpl
->
aLogicalFieldNames
.
end
();
++
aLogical
,
++
aAssignment
++
aLogical
,
++
aAssignment
...
@@ -860,7 +860,7 @@ void AssignmentPersistentData::Commit()
...
@@ -860,7 +860,7 @@ void AssignmentPersistentData::Commit()
Reference
<
XCompletedConnection
>
xDS
;
Reference
<
XCompletedConnection
>
xDS
;
if
(
m_pImpl
->
bWorkingPersistent
)
if
(
m_pImpl
->
bWorkingPersistent
)
{
{
String
sSelectedDS
=
lcl_getSelectedDataSource
(
*
m_pDatasource
);
OU
String
sSelectedDS
=
lcl_getSelectedDataSource
(
*
m_pDatasource
);
// get the data source the user has chosen and let it build a connection
// get the data source the user has chosen and let it build a connection
INetURLObject
aURL
(
sSelectedDS
);
INetURLObject
aURL
(
sSelectedDS
);
...
@@ -932,7 +932,7 @@ void AssignmentPersistentData::Commit()
...
@@ -932,7 +932,7 @@ void AssignmentPersistentData::Commit()
// no matter what we do here, we handled the currently selected table (no matter if successful or not)
// no matter what we do here, we handled the currently selected table (no matter if successful or not)
m_pDatasource
->
SaveValue
();
m_pDatasource
->
SaveValue
();
String
sSelectedTable
=
m_pTable
->
GetText
();
OU
String
sSelectedTable
=
m_pTable
->
GetText
();
Sequence
<
OUString
>
aColumnNames
;
Sequence
<
OUString
>
aColumnNames
;
try
try
{
{
...
@@ -959,14 +959,14 @@ void AssignmentPersistentData::Commit()
...
@@ -959,14 +959,14 @@ void AssignmentPersistentData::Commit()
const
OUString
*
pEnd
=
pColumnNames
+
aColumnNames
.
getLength
();
const
OUString
*
pEnd
=
pColumnNames
+
aColumnNames
.
getLength
();
// for quicker access
// for quicker access
::
std
::
set
<
String
>
aColumnNameSet
;
::
std
::
set
<
OU
String
>
aColumnNameSet
;
for
(
pColumnNames
=
aColumnNames
.
getConstArray
();
pColumnNames
!=
pEnd
;
++
pColumnNames
)
for
(
pColumnNames
=
aColumnNames
.
getConstArray
();
pColumnNames
!=
pEnd
;
++
pColumnNames
)
aColumnNameSet
.
insert
(
*
pColumnNames
);
aColumnNameSet
.
insert
(
*
pColumnNames
);
std
::
vector
<
String
>::
iterator
aInitialSelection
=
m_pImpl
->
aFieldAssignments
.
begin
()
+
m_pImpl
->
nFieldScrollPos
;
std
::
vector
<
OU
String
>::
iterator
aInitialSelection
=
m_pImpl
->
aFieldAssignments
.
begin
()
+
m_pImpl
->
nFieldScrollPos
;
ListBox
**
pListbox
=
m_pImpl
->
pFields
;
ListBox
**
pListbox
=
m_pImpl
->
pFields
;
String
sSaveSelection
;
OU
String
sSaveSelection
;
for
(
sal_Int32
i
=
0
;
i
<
FIELD_CONTROLS_VISIBLE
;
++
i
,
++
pListbox
,
++
aInitialSelection
)
for
(
sal_Int32
i
=
0
;
i
<
FIELD_CONTROLS_VISIBLE
;
++
i
,
++
pListbox
,
++
aInitialSelection
)
{
{
sSaveSelection
=
(
*
pListbox
)
->
GetSelectEntry
();
sSaveSelection
=
(
*
pListbox
)
->
GetSelectEntry
();
...
@@ -982,7 +982,7 @@ void AssignmentPersistentData::Commit()
...
@@ -982,7 +982,7 @@ void AssignmentPersistentData::Commit()
for
(
pColumnNames
=
aColumnNames
.
getConstArray
();
pColumnNames
!=
pEnd
;
++
pColumnNames
)
for
(
pColumnNames
=
aColumnNames
.
getConstArray
();
pColumnNames
!=
pEnd
;
++
pColumnNames
)
(
*
pListbox
)
->
InsertEntry
(
*
pColumnNames
);
(
*
pListbox
)
->
InsertEntry
(
*
pColumnNames
);
if
(
aInitialSelection
->
Len
()
&&
(
aColumnNameSet
.
end
()
!=
aColumnNameSet
.
find
(
*
aInitialSelection
)))
if
(
!
aInitialSelection
->
isEmpty
()
&&
(
aColumnNameSet
.
end
()
!=
aColumnNameSet
.
find
(
*
aInitialSelection
)))
// we can select the entry as specified in our field assignment array
// we can select the entry as specified in our field assignment array
(
*
pListbox
)
->
SelectEntry
(
*
aInitialSelection
);
(
*
pListbox
)
->
SelectEntry
(
*
aInitialSelection
);
else
else
...
@@ -996,13 +996,13 @@ void AssignmentPersistentData::Commit()
...
@@ -996,13 +996,13 @@ void AssignmentPersistentData::Commit()
}
}
// adjust m_pImpl->aFieldAssignments
// adjust m_pImpl->aFieldAssignments
for
(
StringArray
I
terator
aAdjust
=
m_pImpl
->
aFieldAssignments
.
begin
();
for
(
StringArray
::
i
terator
aAdjust
=
m_pImpl
->
aFieldAssignments
.
begin
();
aAdjust
!=
m_pImpl
->
aFieldAssignments
.
end
();
aAdjust
!=
m_pImpl
->
aFieldAssignments
.
end
();
++
aAdjust
++
aAdjust
)
)
if
(
aAdjust
->
Len
())
if
(
!
aAdjust
->
isEmpty
())
if
(
aColumnNameSet
.
end
()
==
aColumnNameSet
.
find
(
*
aAdjust
))
if
(
aColumnNameSet
.
end
()
==
aColumnNameSet
.
find
(
*
aAdjust
))
aAdjust
->
Erase
()
;
(
*
aAdjust
)
=
""
;
}
}
// -------------------------------------------------------------------
// -------------------------------------------------------------------
...
@@ -1016,7 +1016,7 @@ void AssignmentPersistentData::Commit()
...
@@ -1016,7 +1016,7 @@ void AssignmentPersistentData::Commit()
// update the array where we remember the field selections
// update the array where we remember the field selections
if
(
0
==
_pListbox
->
GetSelectEntryPos
())
if
(
0
==
_pListbox
->
GetSelectEntryPos
())
// it's the "no field selection" entry
// it's the "no field selection" entry
m_pImpl
->
aFieldAssignments
[
m_pImpl
->
nFieldScrollPos
*
2
+
nListBoxIndex
]
=
String
()
;
m_pImpl
->
aFieldAssignments
[
m_pImpl
->
nFieldScrollPos
*
2
+
nListBoxIndex
]
=
""
;
else
else
// it's a regular field entry
// it's a regular field entry
m_pImpl
->
aFieldAssignments
[
m_pImpl
->
nFieldScrollPos
*
2
+
nListBoxIndex
]
=
_pListbox
->
GetSelectEntry
();
m_pImpl
->
aFieldAssignments
[
m_pImpl
->
nFieldScrollPos
*
2
+
nListBoxIndex
]
=
_pListbox
->
GetSelectEntry
();
...
@@ -1035,8 +1035,8 @@ void AssignmentPersistentData::Commit()
...
@@ -1035,8 +1035,8 @@ void AssignmentPersistentData::Commit()
// for the new texts
// for the new texts
FixedText
**
pLeftLabelControl
=
m_pImpl
->
pFieldLabels
;
FixedText
**
pLeftLabelControl
=
m_pImpl
->
pFieldLabels
;
FixedText
**
pRightLabelControl
=
pLeftLabelControl
+
1
;
FixedText
**
pRightLabelControl
=
pLeftLabelControl
+
1
;
ConstStringArrayI
terator
pLeftColumnLabel
=
m_pImpl
->
aFieldLabels
.
begin
()
+
2
*
_nPos
;
StringArray
::
const_i
terator
pLeftColumnLabel
=
m_pImpl
->
aFieldLabels
.
begin
()
+
2
*
_nPos
;
ConstStringArrayI
terator
pRightColumnLabel
=
pLeftColumnLabel
+
1
;
StringArray
::
const_i
terator
pRightColumnLabel
=
pLeftColumnLabel
+
1
;
// for the focus movement and the selection scroll
// for the focus movement and the selection scroll
ListBox
**
pLeftListControl
=
m_pImpl
->
pFields
;
ListBox
**
pLeftListControl
=
m_pImpl
->
pFields
;
...
@@ -1047,8 +1047,8 @@ void AssignmentPersistentData::Commit()
...
@@ -1047,8 +1047,8 @@ void AssignmentPersistentData::Commit()
sal_Int32
nOldFocusColumn
=
0
;
sal_Int32
nOldFocusColumn
=
0
;
// for the selection scroll
// for the selection scroll
ConstStringArrayI
terator
pLeftAssignment
=
m_pImpl
->
aFieldAssignments
.
begin
()
+
2
*
_nPos
;
StringArray
::
const_i
terator
pLeftAssignment
=
m_pImpl
->
aFieldAssignments
.
begin
()
+
2
*
_nPos
;
ConstStringArrayI
terator
pRightAssignment
=
pLeftAssignment
+
1
;
StringArray
::
const_i
terator
pRightAssignment
=
pLeftAssignment
+
1
;
m_pImpl
->
nLastVisibleListIndex
=
-
1
;
m_pImpl
->
nLastVisibleListIndex
=
-
1
;
// loop
// loop
...
@@ -1075,7 +1075,7 @@ void AssignmentPersistentData::Commit()
...
@@ -1075,7 +1075,7 @@ void AssignmentPersistentData::Commit()
// (If sometimes we support an arbitrary number of field assignments, we would have to care for
// (If sometimes we support an arbitrary number of field assignments, we would have to care for
// an invisible left hand side column, too. But right now, the left hand side controls are always
// an invisible left hand side column, too. But right now, the left hand side controls are always
// visible)
// visible)
sal_Bool
bHideRightColumn
=
(
0
==
pRightColumnLabel
->
Len
()
);
sal_Bool
bHideRightColumn
=
pRightColumnLabel
->
isEmpty
(
);
(
*
pRightLabelControl
)
->
Show
(
!
bHideRightColumn
);
(
*
pRightLabelControl
)
->
Show
(
!
bHideRightColumn
);
(
*
pRightListControl
)
->
Show
(
!
bHideRightColumn
);
(
*
pRightListControl
)
->
Show
(
!
bHideRightColumn
);
// the new selections of the listboxes
// the new selections of the listboxes
...
@@ -1180,7 +1180,7 @@ void AssignmentPersistentData::Commit()
...
@@ -1180,7 +1180,7 @@ void AssignmentPersistentData::Commit()
// -------------------------------------------------------------------
// -------------------------------------------------------------------
IMPL_LINK_NOARG
(
AddressBookSourceDialog
,
OnOkClicked
)
IMPL_LINK_NOARG
(
AddressBookSourceDialog
,
OnOkClicked
)
{
{
String
sSelectedDS
=
lcl_getSelectedDataSource
(
*
m_pDatasource
);
OU
String
sSelectedDS
=
lcl_getSelectedDataSource
(
*
m_pDatasource
);
if
(
m_pImpl
->
bWorkingPersistent
)
if
(
m_pImpl
->
bWorkingPersistent
)
{
{
m_pImpl
->
pConfigData
->
setDatasourceName
(
sSelectedDS
);
m_pImpl
->
pConfigData
->
setDatasourceName
(
sSelectedDS
);
...
@@ -1191,8 +1191,8 @@ void AssignmentPersistentData::Commit()
...
@@ -1191,8 +1191,8 @@ void AssignmentPersistentData::Commit()
assert
(
m_pImpl
->
aLogicalFieldNames
.
size
()
==
m_pImpl
->
aFieldAssignments
.
size
());
assert
(
m_pImpl
->
aLogicalFieldNames
.
size
()
==
m_pImpl
->
aFieldAssignments
.
size
());
// set the field assignments
// set the field assignments
ConstStringArrayI
terator
aLogical
=
m_pImpl
->
aLogicalFieldNames
.
begin
();
StringArray
::
const_i
terator
aLogical
=
m_pImpl
->
aLogicalFieldNames
.
begin
();
ConstStringArrayI
terator
aAssignment
=
m_pImpl
->
aFieldAssignments
.
begin
();
StringArray
::
const_i
terator
aAssignment
=
m_pImpl
->
aFieldAssignments
.
begin
();
for
(
;
for
(
;
aLogical
!=
m_pImpl
->
aLogicalFieldNames
.
end
();
aLogical
!=
m_pImpl
->
aLogicalFieldNames
.
end
();
++
aLogical
,
++
aAssignment
++
aLogical
,
++
aAssignment
...
...
svtools/source/dialogs/insdlg.cxx
Dosyayı görüntüle @
d71c8d1e
...
@@ -162,7 +162,7 @@ void SvObjectServerList::FillInsertObjects()
...
@@ -162,7 +162,7 @@ void SvObjectServerList::FillInsertObjects()
}
}
SvGlobalName
aClassName
;
SvGlobalName
aClassName
;
if
(
aClassName
.
MakeId
(
String
(
aClassID
))
)
if
(
aClassName
.
MakeId
(
aClassID
)
)
{
{
if
(
!
Get
(
aClassName
)
)
if
(
!
Get
(
aClassName
)
)
// noch nicht eingetragen
// noch nicht eingetragen
...
@@ -175,7 +175,7 @@ void SvObjectServerList::FillInsertObjects()
...
@@ -175,7 +175,7 @@ void SvObjectServerList::FillInsertObjects()
#ifdef WNT
#ifdef WNT
SvGlobalName
aOleFact
(
SO3_OUT_CLASSID
);
SvGlobalName
aOleFact
(
SO3_OUT_CLASSID
);
String
aOleObj
(
SVT_RESSTR
(
STR_FURTHER_OBJECT
)
);
OU
String
aOleObj
(
SVT_RESSTR
(
STR_FURTHER_OBJECT
)
);
aObjectServerList
.
push_back
(
SvObjectServer
(
aOleFact
,
aOleObj
)
);
aObjectServerList
.
push_back
(
SvObjectServer
(
aOleFact
,
aOleObj
)
);
#endif
#endif
...
@@ -267,7 +267,7 @@ OUString SvPasteObjectHelper::GetSotFormatUIName( SotFormatStringId nId )
...
@@ -267,7 +267,7 @@ OUString SvPasteObjectHelper::GetSotFormatUIName( SotFormatStringId nId )
{
SOT_FORMATSTR_ID_HTML_NO_COMMENT
,
STR_FORMAT_ID_HTML_NO_COMMENT
}
{
SOT_FORMATSTR_ID_HTML_NO_COMMENT
,
STR_FORMAT_ID_HTML_NO_COMMENT
}
};
};
String
aUIName
;
OU
String
aUIName
;
sal_uInt16
nResId
=
0
;
sal_uInt16
nResId
=
0
;
for
(
sal_uInt32
i
=
0
,
nCount
=
SAL_N_ELEMENTS
(
aSotResourcePairs
);
(
i
<
nCount
)
&&
!
nResId
;
i
++
)
for
(
sal_uInt32
i
=
0
,
nCount
=
SAL_N_ELEMENTS
(
aSotResourcePairs
);
(
i
<
nCount
)
&&
!
nResId
;
i
++
)
...
...
svtools/source/dialogs/roadmapwizard.cxx
Dosyayı görüntüle @
d71c8d1e
...
@@ -47,7 +47,7 @@ namespace svt
...
@@ -47,7 +47,7 @@ namespace svt
typedef
::
std
::
map
<
typedef
::
std
::
map
<
WizardTypes
::
WizardState
,
WizardTypes
::
WizardState
,
::
std
::
pair
<
::
std
::
pair
<
String
,
OU
String
,
RoadmapWizardTypes
::
RoadmapPageFactory
RoadmapWizardTypes
::
RoadmapPageFactory
>
>
>
StateDescriptions
;
>
StateDescriptions
;
...
...
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