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
641009c4
Kaydet (Commit)
641009c4
authored
Mar 30, 2014
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Avoid unneeded OUString conversions and concatenated appends
Change-Id: Ied9fded44e1deee17be4c02f10261a459f88e530
üst
1cf621d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
mailmrge.cxx
sw/source/ui/envelp/mailmrge.cxx
+12
-12
No files found.
sw/source/ui/envelp/mailmrge.cxx
Dosyayı görüntüle @
641009c4
...
@@ -288,9 +288,9 @@ SwMailMergeDlg::SwMailMergeDlg(Window* pParent, SwWrtShell& rShell,
...
@@ -288,9 +288,9 @@ SwMailMergeDlg::SwMailMergeDlg(Window* pParent, SwWrtShell& rShell,
Sequence
<
PropertyValue
>
aProperties
(
3
);
Sequence
<
PropertyValue
>
aProperties
(
3
);
PropertyValue
*
pProperties
=
aProperties
.
getArray
();
PropertyValue
*
pProperties
=
aProperties
.
getArray
();
pProperties
[
0
].
Name
=
"DataSourceName"
;
pProperties
[
0
].
Name
=
"DataSourceName"
;
pProperties
[
0
].
Value
<<=
OUString
(
rSourceName
)
;
pProperties
[
0
].
Value
<<=
rDBName
;
pProperties
[
1
].
Name
=
"Command"
;
pProperties
[
1
].
Name
=
"Command"
;
pProperties
[
1
].
Value
<<=
OUString
(
rTableName
)
;
pProperties
[
1
].
Value
<<=
rTableName
;
pProperties
[
2
].
Name
=
"CommandType"
;
pProperties
[
2
].
Name
=
"CommandType"
;
pProperties
[
2
].
Value
<<=
nCommandType
;
pProperties
[
2
].
Value
<<=
nCommandType
;
xD
->
dispatch
(
aURL
,
aProperties
);
xD
->
dispatch
(
aURL
,
aProperties
);
...
@@ -362,7 +362,7 @@ SwMailMergeDlg::SwMailMergeDlg(Window* pParent, SwWrtShell& rShell,
...
@@ -362,7 +362,7 @@ SwMailMergeDlg::SwMailMergeDlg(Window* pParent, SwWrtShell& rShell,
for
(
sal_Int32
nEntry
=
0
;
nEntry
<
aAddressFldLB
.
GetEntryCount
();
++
nEntry
)
for
(
sal_Int32
nEntry
=
0
;
nEntry
<
aAddressFldLB
.
GetEntryCount
();
++
nEntry
)
aColumnLB
.
InsertEntry
(
aAddressFldLB
.
GetEntry
(
nEntry
));
aColumnLB
.
InsertEntry
(
aAddressFldLB
.
GetEntry
(
nEntry
));
aAddressFldLB
.
SelectEntry
(
OUString
(
"EMAIL"
)
);
aAddressFldLB
.
SelectEntry
(
"EMAIL"
);
OUString
sPath
(
pModOpt
->
GetMailingPath
());
OUString
sPath
(
pModOpt
->
GetMailingPath
());
if
(
sPath
.
isEmpty
())
if
(
sPath
.
isEmpty
())
...
@@ -378,7 +378,7 @@ SwMailMergeDlg::SwMailMergeDlg(Window* pParent, SwWrtShell& rShell,
...
@@ -378,7 +378,7 @@ SwMailMergeDlg::SwMailMergeDlg(Window* pParent, SwWrtShell& rShell,
if
(
!
bColumn
)
if
(
!
bColumn
)
{
{
aColumnLB
.
SelectEntry
(
OUString
(
"NAME"
)
);
aColumnLB
.
SelectEntry
(
"NAME"
);
}
}
else
else
aColumnLB
.
SelectEntry
(
pModOpt
->
GetNameFromColumn
());
aColumnLB
.
SelectEntry
(
pModOpt
->
GetNameFromColumn
());
...
@@ -403,18 +403,18 @@ SwMailMergeDlg::SwMailMergeDlg(Window* pParent, SwWrtShell& rShell,
...
@@ -403,18 +403,18 @@ SwMailMergeDlg::SwMailMergeDlg(Window* pParent, SwWrtShell& rShell,
uno
::
Reference
<
container
::
XNameContainer
>
xFilterFactory
(
uno
::
Reference
<
container
::
XNameContainer
>
xFilterFactory
(
xMSF
->
createInstance
(
"com.sun.star.document.FilterFactory"
),
UNO_QUERY_THROW
);
xMSF
->
createInstance
(
"com.sun.star.document.FilterFactory"
),
UNO_QUERY_THROW
);
uno
::
Reference
<
container
::
XContainerQuery
>
xQuery
(
xFilterFactory
,
UNO_QUERY_THROW
);
uno
::
Reference
<
container
::
XContainerQuery
>
xQuery
(
xFilterFactory
,
UNO_QUERY_THROW
);
OUString
sCommand
(
"matchByDocumentService=com.sun.star.text.TextDocument:iflags="
);
const
OUString
sCommand
(
"matchByDocumentService=com.sun.star.text.TextDocument:iflags="
sCommand
+=
OUString
::
number
(
SFX_FILTER_EXPORT
);
+
OUString
::
number
(
SFX_FILTER_EXPORT
)
sCommand
+=
":eflags="
;
+
":eflags="
sCommand
+=
OUString
::
number
(
SFX_FILTER_NOTINFILEDLG
);
+
OUString
::
number
(
SFX_FILTER_NOTINFILEDLG
)
sCommand
+=
":default_first"
;
+
":default_first"
)
;
uno
::
Reference
<
container
::
XEnumeration
>
xList
=
xQuery
->
createSubSetEnumerationByQuery
(
sCommand
);
uno
::
Reference
<
container
::
XEnumeration
>
xList
=
xQuery
->
createSubSetEnumerationByQuery
(
sCommand
);
const
OUString
sName
(
"Name"
);
const
OUString
sName
(
"Name"
);
sal_Int32
nODT
=
-
1
;
sal_Int32
nODT
=
-
1
;
while
(
xList
->
hasMoreElements
())
while
(
xList
->
hasMoreElements
())
{
{
comphelper
::
SequenceAsHashMap
aFilter
(
xList
->
nextElement
());
comphelper
::
SequenceAsHashMap
aFilter
(
xList
->
nextElement
());
OUString
sFilter
=
aFilter
.
getUnpackedValueOrDefault
(
sName
,
OUString
());
const
OUString
sFilter
=
aFilter
.
getUnpackedValueOrDefault
(
sName
,
OUString
());
uno
::
Any
aProps
=
xFilterFactory
->
getByName
(
sFilter
);
uno
::
Any
aProps
=
xFilterFactory
->
getByName
(
sFilter
);
uno
::
Sequence
<
beans
::
PropertyValue
>
aFilterProperties
;
uno
::
Sequence
<
beans
::
PropertyValue
>
aFilterProperties
;
...
@@ -423,7 +423,7 @@ SwMailMergeDlg::SwMailMergeDlg(Window* pParent, SwWrtShell& rShell,
...
@@ -423,7 +423,7 @@ SwMailMergeDlg::SwMailMergeDlg(Window* pParent, SwWrtShell& rShell,
const
beans
::
PropertyValue
*
pFilterProperties
=
aFilterProperties
.
getConstArray
();
const
beans
::
PropertyValue
*
pFilterProperties
=
aFilterProperties
.
getConstArray
();
for
(
int
nProp
=
0
;
nProp
<
aFilterProperties
.
getLength
();
nProp
++
)
for
(
int
nProp
=
0
;
nProp
<
aFilterProperties
.
getLength
();
nProp
++
)
{
{
if
(
pFilterProperties
[
nProp
].
Name
.
equalsAscii
(
"UIName"
)
)
if
(
pFilterProperties
[
nProp
].
Name
==
"UIName"
)
{
{
pFilterProperties
[
nProp
].
Value
>>=
sUIName2
;
pFilterProperties
[
nProp
].
Value
>>=
sUIName2
;
break
;
break
;
...
@@ -666,7 +666,7 @@ bool SwMailMergeDlg::ExecQryShell()
...
@@ -666,7 +666,7 @@ bool SwMailMergeDlg::ExecQryShell()
aAbs
,
aPathED
.
GetText
(),
URIHelper
::
GetMaybeFileHdl
()));
aAbs
,
aPathED
.
GetText
(),
URIHelper
::
GetMaybeFileHdl
()));
pModOpt
->
SetMailingPath
(
sPath
);
pModOpt
->
SetMailingPath
(
sPath
);
const
OUString
sDelim
=
OUString
(
INET_PATH_TOKEN
);
const
OUString
sDelim
(
INET_PATH_TOKEN
);
if
(
!
sPath
.
endsWith
(
sDelim
))
if
(
!
sPath
.
endsWith
(
sDelim
))
sPath
+=
sDelim
;
sPath
+=
sDelim
;
...
...
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