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
1d1c0632
Kaydet (Commit)
1d1c0632
authored
Haz 24, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SwViewShell::PrtOle2: take a vcl::RenderContext
Change-Id: I0d56649cf322b7769f77ccd99be367cd813570ea
üst
f25ee3ce
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
viewsh.hxx
sw/inc/viewsh.hxx
+1
-1
vprint.cxx
sw/source/core/view/vprint.cxx
+6
-6
docsh.cxx
sw/source/uibase/app/docsh.cxx
+1
-1
No files found.
sw/inc/viewsh.hxx
Dosyayı görüntüle @
1d1c0632
...
...
@@ -365,7 +365,7 @@ public:
// Printing for OLE 2.0.
static
void
PrtOle2
(
SwDoc
*
pDoc
,
const
SwViewOption
*
pOpt
,
const
SwPrintData
&
rOptions
,
OutputDevice
*
pOleOu
t
,
const
Rectangle
&
rRect
);
vcl
::
RenderContext
&
rRenderContex
t
,
const
Rectangle
&
rRect
);
// Fill temporary doc with selected text for Print or PDF export.
SwDoc
*
FillPrtDoc
(
SwDoc
*
pPrtDoc
,
const
SfxPrinter
*
pPrt
);
...
...
sw/source/core/view/vprint.cxx
Dosyayı görüntüle @
1d1c0632
...
...
@@ -583,15 +583,15 @@ bool SwViewShell::PrintOrPDFExport(
}
void
SwViewShell
::
PrtOle2
(
SwDoc
*
pDoc
,
const
SwViewOption
*
pOpt
,
const
SwPrintData
&
rOptions
,
OutputDevice
*
pOleOu
t
,
const
Rectangle
&
rRect
)
vcl
::
RenderContext
&
rRenderContex
t
,
const
Rectangle
&
rRect
)
{
// For printing a shell is needed. Either the Doc already has one, than we
// create a new view, or it has none, than we create the first view.
SwViewShell
*
pSh
;
if
(
pDoc
->
getIDocumentLayoutAccess
().
GetCurrentViewShell
()
)
pSh
=
new
SwViewShell
(
*
pDoc
->
getIDocumentLayoutAccess
().
GetCurrentViewShell
(),
0
,
pOleOu
t
,
VSHELLFLAG_SHARELAYOUT
);
pSh
=
new
SwViewShell
(
*
pDoc
->
getIDocumentLayoutAccess
().
GetCurrentViewShell
(),
0
,
&
rRenderContex
t
,
VSHELLFLAG_SHARELAYOUT
);
else
pSh
=
new
SwViewShell
(
*
pDoc
,
0
,
pOpt
,
pOleOu
t
);
pSh
=
new
SwViewShell
(
*
pDoc
,
0
,
pOpt
,
&
rRenderContex
t
);
{
SET_CURR_SHELL
(
pSh
);
...
...
@@ -614,11 +614,11 @@ void SwViewShell::PrtOle2( SwDoc *pDoc, const SwViewOption *pOpt, const SwPrintD
// document because the thumbnail creation will not trigger a complete
// formatting of the document.
pOleOut
->
Push
(
PushFlags
::
CLIPREGION
);
pOleOut
->
IntersectClipRegion
(
aSwRect
.
SVRect
()
);
rRenderContext
.
Push
(
PushFlags
::
CLIPREGION
);
rRenderContext
.
IntersectClipRegion
(
aSwRect
.
SVRect
()
);
pSh
->
GetLayout
()
->
Paint
(
aSwRect
);
pOleOut
->
Pop
();
rRenderContext
.
Pop
();
// first the CurrShell object needs to be destroyed!
}
delete
pSh
;
...
...
sw/source/uibase/app/docsh.cxx
Dosyayı görüntüle @
1d1c0632
...
...
@@ -831,7 +831,7 @@ void SwDocShell::Draw( OutputDevice* pDev, const JobSetup& rSetup,
pDev
->
SetBackground
();
const
bool
bWeb
=
this
->
ISA
(
SwWebDocShell
);
SwPrintData
aOpts
;
SwViewShell
::
PrtOle2
(
m_pDoc
,
SW_MOD
()
->
GetUsrPref
(
bWeb
),
aOpts
,
pDev
,
aRect
);
SwViewShell
::
PrtOle2
(
m_pDoc
,
SW_MOD
()
->
GetUsrPref
(
bWeb
),
aOpts
,
*
pDev
,
aRect
);
pDev
->
Pop
();
if
(
pOrig
)
...
...
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