summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-03-20 11:58:25 +0000
committerMichael Meeks <michael.meeks@collabora.com>2015-04-10 13:01:46 +0100
commit98586079c3961f32d9eaee9731ee053bc8bf1887 (patch)
tree90d696fa10470545e0a50f929ac87f23e0b7e45a /sw
parent395ae19356a8128ec47e2526e0342ca2905ea707 (diff)
Convert last vestiges of OutputDevice* and VirtualDevice* members.
Change-Id: I2353d8e9f2b30bf00cf5229613793d9605854b76
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/hints.hxx2
-rw-r--r--sw/source/core/inc/drawfont.hxx2
-rw-r--r--sw/source/core/inc/fntcache.hxx4
-rw-r--r--sw/source/core/layout/virtoutp.hxx4
-rw-r--r--sw/source/core/text/inftxt.hxx4
-rw-r--r--sw/source/core/text/itratr.hxx2
-rw-r--r--sw/source/core/text/itrtxt.hxx2
-rw-r--r--sw/source/core/text/txtpaint.hxx4
-rw-r--r--sw/source/ui/dbui/mmoutputpage.hxx2
-rw-r--r--sw/source/ui/envelp/envprt.hxx2
-rw-r--r--sw/source/ui/envelp/labprt.hxx2
-rw-r--r--sw/source/uibase/inc/envlop.hxx2
-rw-r--r--sw/source/uibase/inc/optpage.hxx2
-rw-r--r--sw/source/uibase/uno/SwXDocumentSettings.hxx2
14 files changed, 18 insertions, 18 deletions
diff --git a/sw/inc/hints.hxx b/sw/inc/hints.hxx
index 3e659452fe7c..c34a95b87f30 100644
--- a/sw/inc/hints.hxx
+++ b/sw/inc/hints.hxx
@@ -132,7 +132,7 @@ public:
class SwRefMarkFldUpdate : public SwMsgPoolItem
{
public:
- const OutputDevice* pOut; ///< pointer to the current output device
+ VclPtr<OutputDevice> pOut; ///< pointer to the current output device
/** Is sent if reference marks should be updated.
To get the page/chapter number, the frame has to be asked. For that we need
diff --git a/sw/source/core/inc/drawfont.hxx b/sw/source/core/inc/drawfont.hxx
index fee34b12737e..b78d2db45bd5 100644
--- a/sw/source/core/inc/drawfont.hxx
+++ b/sw/source/core/inc/drawfont.hxx
@@ -41,7 +41,7 @@ class SwUnderlineFont;
class SwDrawTextInfo
{
const SwTxtFrm* pFrm;
- OutputDevice* pOut;
+ VclPtr<OutputDevice> pOut;
SwViewShell const * pSh;
const SwScriptInfo* pScriptInfo;
Point m_aPos;
diff --git a/sw/source/core/inc/fntcache.hxx b/sw/source/core/inc/fntcache.hxx
index dfc4c7c2aa34..5cf565c08654 100644
--- a/sw/source/core/inc/fntcache.hxx
+++ b/sw/source/core/inc/fntcache.hxx
@@ -63,7 +63,7 @@ class SwFntObj : public SwCacheObj
vcl::Font aFont;
vcl::Font *pScrFont;
vcl::Font *pPrtFont;
- OutputDevice* pPrinter;
+ VclPtr<OutputDevice> pPrinter;
sal_uInt16 nGuessedLeading;
sal_uInt16 nExtLeading;
sal_uInt16 nScrAscent;
@@ -77,7 +77,7 @@ class SwFntObj : public SwCacheObj
static long nPixWidth;
static MapMode *pPixMap;
- static OutputDevice *pPixOut;
+ static VclPtr<OutputDevice> pPixOut;
void calcLinePos(SwDrawTextInfo& rInf, Point& aStart, Point& aEnd, sal_Int32 nStart,
sal_Int32 nWrLen, sal_Int32 nCnt, const bool bSwitchH2V, const bool bSwitchL2R,
diff --git a/sw/source/core/layout/virtoutp.hxx b/sw/source/core/layout/virtoutp.hxx
index f3b007375bd1..287cfaf10355 100644
--- a/sw/source/core/layout/virtoutp.hxx
+++ b/sw/source/core/layout/virtoutp.hxx
@@ -32,8 +32,8 @@ class SwLayVout
friend void _FrmFinit(); //deletes Vout
private:
SwViewShell* pSh;
- OutputDevice* pOut;
- VirtualDevice* pVirDev;
+ VclPtr<OutputDevice> pOut;
+ VclPtr<VirtualDevice> pVirDev;
SwRect aRect;
SwRect aOrgRect;
Size aSize;
diff --git a/sw/source/core/text/inftxt.hxx b/sw/source/core/text/inftxt.hxx
index 45680164e43a..aa896af8df09 100644
--- a/sw/source/core/text/inftxt.hxx
+++ b/sw/source/core/text/inftxt.hxx
@@ -155,8 +155,8 @@ protected:
SwViewShell *m_pVsh;
// m_pOut is the output device, m_pRef is the device used for formatting
- OutputDevice* m_pOut;
- OutputDevice* m_pRef;
+ VclPtr<OutputDevice> m_pOut;
+ VclPtr<OutputDevice> m_pRef;
// performance hack - this is only used by SwTxtFormatInfo but
// because it's not even possible to dynamic_cast these things
diff --git a/sw/source/core/text/itratr.hxx b/sw/source/core/text/itratr.hxx
index 81aa9fd489ba..7fb9ada2e7ad 100644
--- a/sw/source/core/text/itratr.hxx
+++ b/sw/source/core/text/itratr.hxx
@@ -47,7 +47,7 @@ protected:
SwScriptInfo* pScriptInfo;
private:
- OutputDevice *pLastOut;
+ VclPtr<OutputDevice> pLastOut;
short nChgCnt;
SwRedlineItr *pRedln;
size_t nStartIndex;
diff --git a/sw/source/core/text/itrtxt.hxx b/sw/source/core/text/itrtxt.hxx
index 85890254dfbc..2008fefcff30 100644
--- a/sw/source/core/text/itrtxt.hxx
+++ b/sw/source/core/text/itrtxt.hxx
@@ -305,7 +305,7 @@ public:
class SwHookOut
{
SwTxtSizeInfo* pInf;
- OutputDevice* pOut;
+ VclPtr<OutputDevice> pOut;
bool bOnWin;
public:
SwHookOut( SwTxtSizeInfo& rInfo );
diff --git a/sw/source/core/text/txtpaint.hxx b/sw/source/core/text/txtpaint.hxx
index c14c6560cf81..607d6c5cf3a1 100644
--- a/sw/source/core/text/txtpaint.hxx
+++ b/sw/source/core/text/txtpaint.hxx
@@ -29,7 +29,7 @@ class SwSaveClip
const bool bOn;
bool bChg;
protected:
- OutputDevice* pOut;
+ VclPtr<OutputDevice> pOut;
void _ChgClip( const SwRect &rRect, const SwTxtFrm* pFrm,
bool bEnlargeRect );
public:
@@ -60,7 +60,7 @@ inline SwSaveClip::~SwSaveClip()
class SwDbgOut
{
protected:
- OutputDevice* pOut;
+ VclPtr<OutputDevice> pOut;
public:
inline SwDbgOut( OutputDevice* pOutDev, const bool bOn = true );
};
diff --git a/sw/source/ui/dbui/mmoutputpage.hxx b/sw/source/ui/dbui/mmoutputpage.hxx
index 41e318884a15..470a72e04689 100644
--- a/sw/source/ui/dbui/mmoutputpage.hxx
+++ b/sw/source/ui/dbui/mmoutputpage.hxx
@@ -100,7 +100,7 @@ class SwMailMergeOutputPage : public svt::OWizardPage
VclPtr<SwMailMergeWizard> m_pWizard;
//some dialog data
- Printer* m_pTempPrinter;
+ VclPtr<Printer> m_pTempPrinter;
OUString m_sCC;
OUString m_sBCC;
diff --git a/sw/source/ui/envelp/envprt.hxx b/sw/source/ui/envelp/envprt.hxx
index e0f37dff6eef..ba57573e8483 100644
--- a/sw/source/ui/envelp/envprt.hxx
+++ b/sw/source/ui/envelp/envprt.hxx
@@ -45,7 +45,7 @@ class SwEnvPrtPage : public SfxTabPage
sal_uInt16 m_aIds[ENV_VER_RGHT-ENV_HOR_LEFT+1];
- Printer* pPrt;
+ VclPtr<Printer> pPrt;
SwEnvPrtPage(vcl::Window* pParent, const SfxItemSet& rSet);
diff --git a/sw/source/ui/envelp/labprt.hxx b/sw/source/ui/envelp/labprt.hxx
index 1953c29ffceb..123ffe098514 100644
--- a/sw/source/ui/envelp/labprt.hxx
+++ b/sw/source/ui/envelp/labprt.hxx
@@ -31,7 +31,7 @@ class SwLabItem;
class SwLabPrtPage : public SfxTabPage
{
- Printer* pPrinter; // for the shaft setting - unfortunately
+ VclPtr<Printer> pPrinter; // for the shaft setting - unfortunately
VclPtr<RadioButton> m_pPageButton;
VclPtr<RadioButton> m_pSingleButton;
diff --git a/sw/source/uibase/inc/envlop.hxx b/sw/source/uibase/inc/envlop.hxx
index 84d369bfd624..134c84a93af9 100644
--- a/sw/source/uibase/inc/envlop.hxx
+++ b/sw/source/uibase/inc/envlop.hxx
@@ -62,7 +62,7 @@ friend class SwEnvPreview;
SwEnvItem aEnvItem;
SwWrtShell *pSh;
- Printer *pPrinter;
+ VclPtr<Printer> pPrinter;
SfxItemSet *pAddresseeSet;
SfxItemSet *pSenderSet;
sal_uInt16 m_nEnvPrintId;
diff --git a/sw/source/uibase/inc/optpage.hxx b/sw/source/uibase/inc/optpage.hxx
index a586243ca71f..28f3c33d29b3 100644
--- a/sw/source/uibase/inc/optpage.hxx
+++ b/sw/source/uibase/inc/optpage.hxx
@@ -156,7 +156,7 @@ class SwStdFontTabPage : public SfxTabPage
OUString sShellLabel;
OUString sShellIndex;
- SfxPrinter* pPrt;
+ VclPtr<SfxPrinter> pPrt;
FontList* pFontList;
SwStdFontConfig* pFontConfig;
SwWrtShell* pWrtShell;
diff --git a/sw/source/uibase/uno/SwXDocumentSettings.hxx b/sw/source/uibase/uno/SwXDocumentSettings.hxx
index 5485a1b971c6..20f30410f8ae 100644
--- a/sw/source/uibase/uno/SwXDocumentSettings.hxx
+++ b/sw/source/uibase/uno/SwXDocumentSettings.hxx
@@ -47,7 +47,7 @@ protected:
/** the printer should be set only once; since there are several
* printer-related properties, remember the last printer and set it in
* _postSetValues */
- SfxPrinter* mpPrinter;
+ VclPtr<SfxPrinter> mpPrinter;
virtual void _preSetValues ()
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException ) SAL_OVERRIDE;