summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2011-10-28 15:01:58 +0200
committerMichael Stahl <mstahl@redhat.com>2011-10-28 17:33:43 +0200
commit436a1a1a9a79113825b1946f9aa83303a475b00e (patch)
treecd87e73e57754ae68b068052b625a9137bec70db /sw/inc
parent43b116147f66c9abceaae6177a2930b6266e6cad (diff)
SwRenderData: more cleanup
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/printdata.hxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/sw/inc/printdata.hxx b/sw/inc/printdata.hxx
index dc292a4cc7d1..5a3d83b6ea5d 100644
--- a/sw/inc/printdata.hxx
+++ b/sw/inc/printdata.hxx
@@ -245,9 +245,9 @@ class SwRenderData
rtl::OUString m_aPageRange;
// 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:
@@ -273,11 +273,9 @@ public:
void ViewOptionAdjustStop();
bool HasSwPrtOptions() const { return m_pPrtOptions != 0; }
- void SetSwPrtOptions(SwPrintData *const pOpt) { m_pPrtOptions = pOpt; }
- SwPrintData const* GetSwPrtOptions() const { return m_pPrtOptions; }
- SwPrintData & GetSwPrtOptionsRef() { return *m_pPrtOptions; }
- void MakeSwPrtOptions( SwPrintData & rOptions, const SwDocShell *pDocShell,
- const SwPrintUIOptions *pOpt, const SwRenderData *pData, bool bIsPDFExport );
+ SwPrintData const* GetSwPrtOptions() const { return m_pPrtOptions.get(); }
+ void MakeSwPrtOptions( SwDocShell const*const pDocShell,
+ SwPrintUIOptions const*const pOpt, bool const bIsPDFExport );
typedef std::vector< std::pair< sal_Int32, sal_Int32 > > PagePairsVec_t;