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
436a1a1a
Kaydet (Commit)
436a1a1a
authored
Eki 28, 2011
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SwRenderData: more cleanup
üst
43b11614
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
27 deletions
+18
-27
printdata.hxx
sw/inc/printdata.hxx
+5
-7
printdata.cxx
sw/source/core/view/printdata.cxx
+11
-17
unotxdoc.cxx
sw/source/ui/uno/unotxdoc.cxx
+2
-3
No files found.
sw/inc/printdata.hxx
Dosyayı görüntüle @
436a1a1a
...
@@ -245,9 +245,9 @@ class SwRenderData
...
@@ -245,9 +245,9 @@ class SwRenderData
rtl
::
OUString
m_aPageRange
;
rtl
::
OUString
m_aPageRange
;
// the view options to be applied for printing
// the view options to be applied for printing
SwViewOptionAdjust_Impl
*
m_pViewOptionAdjust
;
::
boost
::
scoped_ptr
<
SwViewOptionAdjust_Impl
>
m_pViewOptionAdjust
;
SwPrintData
*
m_pPrtOptions
;
::
boost
::
scoped_ptr
<
SwPrintData
>
m_pPrtOptions
;
public
:
public
:
...
@@ -273,11 +273,9 @@ public:
...
@@ -273,11 +273,9 @@ public:
void
ViewOptionAdjustStop
();
void
ViewOptionAdjustStop
();
bool
HasSwPrtOptions
()
const
{
return
m_pPrtOptions
!=
0
;
}
bool
HasSwPrtOptions
()
const
{
return
m_pPrtOptions
!=
0
;
}
void
SetSwPrtOptions
(
SwPrintData
*
const
pOpt
)
{
m_pPrtOptions
=
pOpt
;
}
SwPrintData
const
*
GetSwPrtOptions
()
const
{
return
m_pPrtOptions
.
get
();
}
SwPrintData
const
*
GetSwPrtOptions
()
const
{
return
m_pPrtOptions
;
}
void
MakeSwPrtOptions
(
SwDocShell
const
*
const
pDocShell
,
SwPrintData
&
GetSwPrtOptionsRef
()
{
return
*
m_pPrtOptions
;
}
SwPrintUIOptions
const
*
const
pOpt
,
bool
const
bIsPDFExport
);
void
MakeSwPrtOptions
(
SwPrintData
&
rOptions
,
const
SwDocShell
*
pDocShell
,
const
SwPrintUIOptions
*
pOpt
,
const
SwRenderData
*
pData
,
bool
bIsPDFExport
);
typedef
std
::
vector
<
std
::
pair
<
sal_Int32
,
sal_Int32
>
>
PagePairsVec_t
;
typedef
std
::
vector
<
std
::
pair
<
sal_Int32
,
sal_Int32
>
>
PagePairsVec_t
;
...
...
sw/source/core/view/printdata.cxx
Dosyayı görüntüle @
436a1a1a
...
@@ -58,15 +58,11 @@ using ::rtl::OUString;
...
@@ -58,15 +58,11 @@ using ::rtl::OUString;
SwRenderData
::
SwRenderData
()
SwRenderData
::
SwRenderData
()
{
{
m_pViewOptionAdjust
=
0
;
m_pPrtOptions
=
0
;
}
}
SwRenderData
::~
SwRenderData
()
SwRenderData
::~
SwRenderData
()
{
{
delete
m_pViewOptionAdjust
;
m_pViewOptionAdjust
=
0
;
delete
m_pPrtOptions
;
m_pPrtOptions
=
0
;
OSL_ENSURE
(
!
m_pPostItShell
,
"m_pPostItShell should already have been deleted"
);
OSL_ENSURE
(
!
m_pPostItShell
,
"m_pPostItShell should already have been deleted"
);
OSL_ENSURE
(
!
m_pPostItDoc
,
"m_pPostItDoc should already have been deleted"
);
OSL_ENSURE
(
!
m_pPostItDoc
,
"m_pPostItDoc should already have been deleted"
);
OSL_ENSURE
(
!
m_pPostItFields
,
" should already have been deleted"
);
OSL_ENSURE
(
!
m_pPostItFields
,
" should already have been deleted"
);
...
@@ -113,7 +109,8 @@ void SwRenderData::ViewOptionAdjustStart( ViewShell &rSh, const SwViewOption &rV
...
@@ -113,7 +109,8 @@ void SwRenderData::ViewOptionAdjustStart( ViewShell &rSh, const SwViewOption &rV
{
{
OSL_FAIL
(
"error: there should be no ViewOptionAdjust active when calling this function"
);
OSL_FAIL
(
"error: there should be no ViewOptionAdjust active when calling this function"
);
}
}
m_pViewOptionAdjust
=
new
SwViewOptionAdjust_Impl
(
rSh
,
rViewOptions
,
bIsTmpSelection
);
m_pViewOptionAdjust
.
reset
(
new
SwViewOptionAdjust_Impl
(
rSh
,
rViewOptions
,
bIsTmpSelection
));
}
}
...
@@ -125,24 +122,21 @@ void SwRenderData::ViewOptionAdjust(SwPrintData const*const pPrtOptions)
...
@@ -125,24 +122,21 @@ void SwRenderData::ViewOptionAdjust(SwPrintData const*const pPrtOptions)
void
SwRenderData
::
ViewOptionAdjustStop
()
void
SwRenderData
::
ViewOptionAdjustStop
()
{
{
if
(
m_pViewOptionAdjust
)
m_pViewOptionAdjust
.
reset
();
{
delete
m_pViewOptionAdjust
;
m_pViewOptionAdjust
=
0
;
}
}
}
void
SwRenderData
::
MakeSwPrtOptions
(
void
SwRenderData
::
MakeSwPrtOptions
(
SwPrintData
&
rOptions
,
SwDocShell
const
*
const
pDocShell
,
const
SwDocShell
*
pDocShell
,
SwPrintUIOptions
const
*
const
pOpt
,
const
SwPrintUIOptions
*
pOpt
,
bool
const
bIsPDFExport
)
const
SwRenderData
*
pData
,
bool
bIsPDFExport
)
{
{
if
(
!
pDocShell
||
!
pOpt
||
!
pData
)
if
(
!
pDocShell
||
!
pOpt
)
return
;
return
;
m_pPrtOptions
.
reset
(
new
SwPrintData
);
SwPrintData
&
rOptions
(
*
m_pPrtOptions
);
// get default print options
// get default print options
const
TypeId
aSwWebDocShellTypeId
=
TYPE
(
SwWebDocShell
);
const
TypeId
aSwWebDocShellTypeId
=
TYPE
(
SwWebDocShell
);
sal_Bool
bWeb
=
pDocShell
->
IsA
(
aSwWebDocShellTypeId
);
sal_Bool
bWeb
=
pDocShell
->
IsA
(
aSwWebDocShellTypeId
);
...
@@ -172,7 +166,7 @@ void SwRenderData::MakeSwPrtOptions(
...
@@ -172,7 +166,7 @@ void SwRenderData::MakeSwPrtOptions(
//! needs to be set after MakeOptions since the assignment operation in that
//! needs to be set after MakeOptions since the assignment operation in that
//! function will destroy the pointers
//! function will destroy the pointers
rOptions
.
SetPrintUIOptions
(
pOpt
);
rOptions
.
SetPrintUIOptions
(
pOpt
);
rOptions
.
SetRenderData
(
pData
);
rOptions
.
SetRenderData
(
this
);
}
}
...
...
sw/source/ui/uno/unotxdoc.cxx
Dosyayı görüntüle @
436a1a1a
...
@@ -2547,9 +2547,8 @@ sal_Int32 SAL_CALL SwXTextDocument::getRendererCount(
...
@@ -2547,9 +2547,8 @@ sal_Int32 SAL_CALL SwXTextDocument::getRendererCount(
m_pRenderData
->
ViewOptionAdjustStart
(
*
pViewShell
,
*
pViewShell
->
GetViewOptions
(),
rSelection
.
hasValue
()
);
m_pRenderData
->
ViewOptionAdjustStart
(
*
pViewShell
,
*
pViewShell
->
GetViewOptions
(),
rSelection
.
hasValue
()
);
}
}
m_pRenderData
->
SetSwPrtOptions
(
new
SwPrintData
);
m_pRenderData
->
MakeSwPrtOptions
(
pRenderDocShell
,
m_pRenderData
->
MakeSwPrtOptions
(
m_pRenderData
->
GetSwPrtOptionsRef
(),
pRenderDocShell
,
m_pPrintUIOptions
,
bIsPDFExport
);
m_pPrintUIOptions
,
m_pRenderData
,
bIsPDFExport
);
if
(
pSwView
)
if
(
pSwView
)
{
{
...
...
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