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
d9702989
Kaydet (Commit)
d9702989
authored
Ock 08, 2016
tarafından
Jan-Marek Glogowski
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
MM: abort email MM without an email DB column
Change-Id: Ia35a64d08f47af577426749712fa37c3b3b0b6e6
üst
e637b674
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
21 deletions
+26
-21
dbmgr.cxx
sw/source/uibase/dbui/dbmgr.cxx
+26
-21
No files found.
sw/source/uibase/dbui/dbmgr.cxx
Dosyayı görüntüle @
d9702989
...
@@ -952,12 +952,6 @@ bool SwDBManager::MergeMailFiles(SwWrtShell* pSourceShell,
...
@@ -952,12 +952,6 @@ bool SwDBManager::MergeMailFiles(SwWrtShell* pSourceShell,
const
bool
bNeedsTempFiles
=
(
bMT_EMAIL
||
bMT_FILE
);
const
bool
bNeedsTempFiles
=
(
bMT_EMAIL
||
bMT_FILE
);
const
bool
bCreateSingleFile
=
rMergeDescriptor
.
bCreateSingleFile
;
const
bool
bCreateSingleFile
=
rMergeDescriptor
.
bCreateSingleFile
;
::
rtl
::
Reference
<
MailDispatcher
>
xMailDispatcher
;
OUString
sMailBodyMimeType
;
rtl_TextEncoding
sMailEncoding
=
::
osl_getThreadTextEncoding
();
bool
bNoError
=
true
;
// Setup for dumping debugging documents
// Setup for dumping debugging documents
static
const
char
*
sMaxDumpDocs
=
nullptr
;
static
const
char
*
sMaxDumpDocs
=
nullptr
;
static
sal_Int32
nMaxDumpDocs
=
0
;
static
sal_Int32
nMaxDumpDocs
=
0
;
...
@@ -970,27 +964,23 @@ bool SwDBManager::MergeMailFiles(SwWrtShell* pSourceShell,
...
@@ -970,27 +964,23 @@ bool SwDBManager::MergeMailFiles(SwWrtShell* pSourceShell,
nMaxDumpDocs
=
rtl_ustr_toInt32
(
reinterpret_cast
<
const
sal_Unicode
*>
(
sMaxDumpDocs
),
10
);
nMaxDumpDocs
=
rtl_ustr_toInt32
(
reinterpret_cast
<
const
sal_Unicode
*>
(
sMaxDumpDocs
),
10
);
}
}
if
(
bMT_EMAIL
)
::
rtl
::
Reference
<
MailDispatcher
>
xMailDispatcher
;
{
OUString
sMailBodyMimeType
;
xMailDispatcher
.
set
(
new
MailDispatcher
(
rMergeDescriptor
.
xSmtpServer
));
rtl_TextEncoding
sMailEncoding
=
::
osl_getThreadTextEncoding
();
if
(
!
rMergeDescriptor
.
bSendAsAttachment
&&
rMergeDescriptor
.
bSendAsHTML
)
{
bool
bNoError
=
true
;
sMailBodyMimeType
=
"text/html; charset="
;
sMailBodyMimeType
+=
OUString
::
createFromAscii
(
rtl_getBestMimeCharsetFromTextEncoding
(
sMailEncoding
));
SvxHtmlOptions
&
rHtmlOptions
=
SvxHtmlOptions
::
Get
();
sMailEncoding
=
rHtmlOptions
.
GetTextEncoding
();
}
else
sMailBodyMimeType
=
"text/plain; charset=UTF-8; format=flowed"
;
}
uno
::
Reference
<
beans
::
XPropertySet
>
xColumnProp
;
uno
::
Reference
<
beans
::
XPropertySet
>
xColumnProp
;
{
{
// Check for (mandatory) email or (optional) filename column
// Check for (mandatory) email or (optional) filename column
SwDBFormatData
aColumnDBFormat
;
SwDBFormatData
aColumnDBFormat
;
bool
bColumnName
=
!
rMergeDescriptor
.
sDBcolumn
.
isEmpty
();
bool
bColumnName
=
!
rMergeDescriptor
.
sDBcolumn
.
isEmpty
();
if
(
bColumnName
)
if
(
!
bColumnName
)
{
if
(
bMT_EMAIL
)
return
false
;
}
else
{
{
uno
::
Reference
<
sdbcx
::
XColumnsSupplier
>
xColsSupp
(
pImpl
->
pMergeData
->
xResultSet
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
sdbcx
::
XColumnsSupplier
>
xColsSupp
(
pImpl
->
pMergeData
->
xResultSet
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
container
::
XNameAccess
>
xCols
=
xColsSupp
->
getColumns
();
uno
::
Reference
<
container
::
XNameAccess
>
xCols
=
xColsSupp
->
getColumns
();
...
@@ -1001,6 +991,21 @@ bool SwDBManager::MergeMailFiles(SwWrtShell* pSourceShell,
...
@@ -1001,6 +991,21 @@ bool SwDBManager::MergeMailFiles(SwWrtShell* pSourceShell,
aColumnDBFormat
.
xFormatter
=
pImpl
->
pMergeData
->
xFormatter
;
aColumnDBFormat
.
xFormatter
=
pImpl
->
pMergeData
->
xFormatter
;
aColumnDBFormat
.
aNullDate
=
pImpl
->
pMergeData
->
aNullDate
;
aColumnDBFormat
.
aNullDate
=
pImpl
->
pMergeData
->
aNullDate
;
if
(
bMT_EMAIL
)
{
xMailDispatcher
.
set
(
new
MailDispatcher
(
rMergeDescriptor
.
xSmtpServer
));
if
(
!
rMergeDescriptor
.
bSendAsAttachment
&&
rMergeDescriptor
.
bSendAsHTML
)
{
sMailBodyMimeType
=
"text/html; charset="
;
sMailBodyMimeType
+=
OUString
::
createFromAscii
(
rtl_getBestMimeCharsetFromTextEncoding
(
sMailEncoding
));
SvxHtmlOptions
&
rHtmlOptions
=
SvxHtmlOptions
::
Get
();
sMailEncoding
=
rHtmlOptions
.
GetTextEncoding
();
}
else
sMailBodyMimeType
=
"text/plain; charset=UTF-8; format=flowed"
;
}
}
}
// Try saving the source document
// Try saving the source document
...
...
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