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
d1b8dcd5
Kaydet (Commit)
d1b8dcd5
authored
Mar 25, 2016
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:defaultparams,staticcall,literaltoboolconversion
Change-Id: Ie758fc9d7d8546f7631bb865b307be56386a2057
üst
7e7a156b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
12 deletions
+15
-12
dbmgr.cxx
sw/source/uibase/dbui/dbmgr.cxx
+15
-12
No files found.
sw/source/uibase/dbui/dbmgr.cxx
Dosyayı görüntüle @
d1b8dcd5
...
...
@@ -158,11 +158,14 @@ const sal_Char cActiveConnection[] = "ActiveConnection";
SfxGetpApp()->NotifyEvent(SfxEventHint(SW_EVENT_##type, \
SwDocShell::GetEventName(STR_SW_EVENT_##type), shell))
#define RESCHEDULE_GUI \
do { \
for( sal_uInt16 i = 0; i < 25; i++) \
Application::Reschedule(); \
} while( 0 )
namespace
{
void
rescheduleGui
()
{
for
(
sal_uInt16
i
=
0
;
i
<
25
;
i
++
)
Application
::
Reschedule
();
}
}
enum
class
SwDBNextRecord
{
NEXT
,
FIRST
};
static
bool
lcl_ToNextRecord
(
SwDSParam
*
pParam
,
const
SwDBNextRecord
action
=
SwDBNextRecord
::
NEXT
);
...
...
@@ -1224,7 +1227,7 @@ bool SwDBManager::MergeMailFiles(SwWrtShell* pSourceShell,
pProgressDlg
->
SetCancelHdl
(
LINK
(
this
,
SwDBManager
,
PrtCancelHdl
)
);
pProgressDlg
->
Show
();
RESCHEDULE_GUI
;
rescheduleGui
()
;
}
if
(
bCreateSingleFile
&&
!
pTargetView
)
...
...
@@ -1347,7 +1350,7 @@ bool SwDBManager::MergeMailFiles(SwWrtShell* pSourceShell,
pProgressDlg
->
Update
();
}
RESCHEDULE_GUI
;
rescheduleGui
()
;
// Create a copy of the source document and work with that one instead of the source.
// If we're not in the single file mode (which requires modifying the document for the merging),
...
...
@@ -1439,8 +1442,8 @@ bool SwDBManager::MergeMailFiles(SwWrtShell* pSourceShell,
pWorkView
->
StartPrint
(
aOptions
,
bIsMergeSilent
,
rMergeDescriptor
.
bPrintAsync
);
// some GetPrinter functions have a true default, so keep the false
SfxPrinter
*
pDocPrt
=
pWorkView
->
GetPrinter
(
false
);
JobSetup
aJobSetup
=
pDocPrt
?
pDocPrt
->
GetJobSetup
()
:
pWorkView
->
GetJobSetup
();
SfxPrinter
*
pDocPrt
=
pWorkView
->
GetPrinter
();
JobSetup
aJobSetup
=
pDocPrt
?
pDocPrt
->
GetJobSetup
()
:
SfxViewShell
::
GetJobSetup
();
if
(
!
Printer
::
PreparePrintJob
(
pWorkView
->
GetPrinterController
(),
aJobSetup
)
)
MergeCancel
();
}
...
...
@@ -1534,7 +1537,7 @@ bool SwDBManager::MergeMailFiles(SwWrtShell* pSourceShell,
}
else
if
(
IsMergeOk
()
)
// && bCreateSingleFile
{
RESCHEDULE_GUI
;
rescheduleGui
()
;
// sw::DocumentLayoutManager::CopyLayoutFormat() did not generate
// unique fly names, do it here once.
...
...
@@ -1549,7 +1552,7 @@ bool SwDBManager::MergeMailFiles(SwWrtShell* pSourceShell,
aLayout
->
AllCheckPageDescs
();
}
RESCHEDULE_GUI
;
rescheduleGui
()
;
if
(
IsMergeOk
()
&&
bMT_FILE
)
{
...
...
@@ -1586,7 +1589,7 @@ bool SwDBManager::MergeMailFiles(SwWrtShell* pSourceShell,
xTargetDocShell
->
DoClose
();
}
RESCHEDULE_GUI
;
rescheduleGui
()
;
pProgressDlg
.
disposeAndClear
();
...
...
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