diff options
Diffstat (limited to 'include/vcl/jobset.hxx')
-rw-r--r-- | include/vcl/jobset.hxx | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/include/vcl/jobset.hxx b/include/vcl/jobset.hxx index 3c2c837919a2..7cc7a3dfc217 100644 --- a/include/vcl/jobset.hxx +++ b/include/vcl/jobset.hxx @@ -22,29 +22,19 @@ #include <vcl/dllapi.h> #include <vcl/prntypes.hxx> +#include <o3tl/cow_wrapper.hxx> class SvStream; -struct ImplJobSetup; +class ImplJobSetup; class VCL_DLLPUBLIC JobSetup { friend class Printer; -private: - ImplJobSetup* mpData; - -public: - SAL_DLLPRIVATE ImplJobSetup* ImplGetData(); - SAL_DLLPRIVATE ImplJobSetup* ImplGetConstData(); - SAL_DLLPRIVATE const ImplJobSetup* ImplGetConstData() const; - public: - JobSetup(); - JobSetup( const JobSetup& rJob ); - ~JobSetup(); - - OUString GetPrinterName() const; - OUString GetDriverName() const; + JobSetup(); + JobSetup( const JobSetup& rJob ); + ~JobSetup(); JobSetup& operator=( const JobSetup& rJob ); @@ -52,8 +42,19 @@ public: bool operator!=( const JobSetup& rJobSetup ) const { return !(JobSetup::operator==( rJobSetup )); } + SAL_DLLPRIVATE ImplJobSetup& ImplGetData(); + SAL_DLLPRIVATE const ImplJobSetup& ImplGetConstData() const; + + OUString GetPrinterName() const; + bool IsDefault() const; + friend VCL_DLLPUBLIC SvStream& ReadJobSetup( SvStream& rIStream, JobSetup& rJobSetup ); friend VCL_DLLPUBLIC SvStream& WriteJobSetup( SvStream& rOStream, const JobSetup& rJobSetup ); + + typedef o3tl::cow_wrapper< ImplJobSetup > ImplType; + +private: + ImplType mpData; }; #endif // INCLUDED_VCL_JOBSET_HXX |