diff options
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/outdev.hxx | 6 | ||||
-rw-r--r-- | include/vcl/print.hxx | 2 | ||||
-rw-r--r-- | include/vcl/virdev.hxx | 1 | ||||
-rw-r--r-- | include/vcl/window.hxx | 1 |
4 files changed, 9 insertions, 1 deletions
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx index c53955650ad3..67b7a1f435e8 100644 --- a/include/vcl/outdev.hxx +++ b/include/vcl/outdev.hxx @@ -352,6 +352,10 @@ private: mutable bool mbRefPoint : 1; mutable bool mbEnableRTL : 1; + +protected: + virtual void ImplReleaseFonts(); + public: /** @name Initialization and accessor functions */ @@ -393,7 +397,7 @@ public: @param bRelease Determines whether to release the fonts of the physically released graphics device. */ - SAL_DLLPRIVATE void ImplReleaseGraphics( bool bRelease = true ); + virtual void ImplReleaseGraphics( bool bRelease = true ) = 0; /** Initialize the graphics device's data structures. */ diff --git a/include/vcl/print.hxx b/include/vcl/print.hxx index 2e8098d38376..0f5897d241c3 100644 --- a/include/vcl/print.hxx +++ b/include/vcl/print.hxx @@ -248,6 +248,8 @@ private: Link maErrorHdl; bool ImplInitGraphics() const; + void ImplReleaseGraphics( bool bRelease = true ); + void ImplReleaseFonts(); SAL_DLLPRIVATE void ImplInitData(); SAL_DLLPRIVATE void ImplInit( SalPrinterQueueInfo* pInfo ); SAL_DLLPRIVATE void ImplInitDisplay( const Window* pWindow ); diff --git a/include/vcl/virdev.hxx b/include/vcl/virdev.hxx index b78495d24e16..72cc3fe95e84 100644 --- a/include/vcl/virdev.hxx +++ b/include/vcl/virdev.hxx @@ -62,6 +62,7 @@ private: { return ((meRefDevMode & REFDEV_FORCE_ZERO_EXTLEAD) != 0); } public: bool ImplInitGraphics() const; + void ImplReleaseGraphics( bool bRelease = true ); public: /** Create a virtual device of size 1x1 diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx index 62aa5c8b3219..8d76850eb7fc 100644 --- a/include/vcl/window.hxx +++ b/include/vcl/window.hxx @@ -375,6 +375,7 @@ private: public: SAL_DLLPRIVATE void ImplInit( Window* pParent, WinBits nStyle, SystemParentData* pSystemParentData ); bool ImplInitGraphics() const; + void ImplReleaseGraphics( bool bRelease = true ); SAL_DLLPRIVATE WinBits ImplInitRes( const ResId& rResId ); SAL_DLLPRIVATE WindowResHeader ImplLoadResHeader( const ResId& rResId ); SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId ); |