LibreOffice Module vcl (master)  1
Public Member Functions | Private Attributes | List of all members
vcl::OldStylePrintAdaptor Class Reference

#include <oldprintadaptor.hxx>

Inheritance diagram for vcl::OldStylePrintAdaptor:
[legend]
Collaboration diagram for vcl::OldStylePrintAdaptor:
[legend]

Public Member Functions

 OldStylePrintAdaptor (const VclPtr< Printer > &, weld::Window *)
 
virtual ~OldStylePrintAdaptor () override
 
void StartPage ()
 
void EndPage ()
 
virtual int getPageCount () const override
 App must override this. More...
 
virtual css::uno::Sequence< css::beans::PropertyValue > getPageParameters (int i_nPage) const override
 Get the page parameters. More...
 
virtual void printPage (int i_nPage) const override
 App must override this. More...
 
- Public Member Functions inherited from vcl::PrinterController
virtual ~PrinterController ()
 
const VclPtr< Printer > & getPrinter () const
 
weld::WindowgetWindow () const
 
css::uno::Sequence< css::beans::PropertyValue > getJobProperties (const css::uno::Sequence< css::beans::PropertyValue > &i_rMergeList) const
 For implementations: get current job properties as changed by e.g. More...
 
css::beans::PropertyValue * getValue (const OUString &i_rPropertyName)
 Get the PropertyValue of a Property. More...
 
const css::beans::PropertyValue * getValue (const OUString &i_rPropertyName) const
 
bool getBoolProperty (const OUString &i_rPropertyName, bool i_bFallback) const
 Get a bool property. More...
 
sal_Int32 getIntProperty (const OUString &i_rPropertyName, sal_Int32 i_nFallback) const
 Get an int property. More...
 
void setValue (const OUString &i_rPropertyName, const css::uno::Any &i_rValue)
 Set a property value - can also be used to add another UI property. More...
 
void setValue (const css::beans::PropertyValue &i_rValue)
 
const css::uno::Sequence< css::beans::PropertyValue > & getUIOptions () const
 
void setUIOptions (const css::uno::Sequence< css::beans::PropertyValue > &)
 Set possible UI options. More...
 
bool isUIOptionEnabled (const OUString &rPropName) const
 Enable/disable an option; this can be used to implement dialog logic. More...
 
bool isUIChoiceEnabled (const OUString &rPropName, sal_Int32 nChoice) const
 
OUString makeEnabled (const OUString &rPropName)
 MakeEnabled will change the property rPropName depends on to the value. More...
 
virtual void jobStarted ()
 Will be called after a possible dialog has been shown and the real printjob starts. More...
 
virtual void jobFinished (css::view::PrintableState)
 
css::view::PrintableState getJobState () const
 
void abortJob ()
 
bool isShowDialogs () const
 
bool isDirectPrint () const
 
int getFilteredPageCount () const
 
VCL_DLLPRIVATE PageSize getPageFile (int i_inUnfilteredPage, GDIMetaFile &rMtf, bool i_bMayUseCache=false)
 
PageSize getFilteredPageFile (int i_nFilteredPage, GDIMetaFile &o_rMtf, bool i_bMayUseCache=false)
 
void printFilteredPage (int i_nPage)
 
VCL_DLLPRIVATE void setPrinter (const VclPtr< Printer > &)
 
void createProgressDialog ()
 
bool isProgressCanceled () const
 
VCL_DLLPRIVATE void setMultipage (const MultiPageSetup &)
 
VCL_DLLPRIVATE const MultiPageSetupgetMultipage () const
 
void setLastPage (bool i_bLastPage)
 
VCL_DLLPRIVATE void setReversePrint (bool i_bReverse)
 
VCL_DLLPRIVATE void setPapersizeFromSetup (bool i_bPapersizeFromSetup)
 
VCL_DLLPRIVATE bool getPapersizeFromSetup () const
 
VCL_DLLPRIVATE SizegetPaperSizeSetup () const
 
VCL_DLLPRIVATE void setPaperSizeFromUser (Size i_aUserSize)
 
VCL_DLLPRIVATE SizegetPaperSizeFromUser () const
 
VCL_DLLPRIVATE bool isPaperSizeFromUser () const
 
void setPrinterModified (bool i_bPapersizeFromSetup)
 
bool getPrinterModified () const
 
VCL_DLLPRIVATE void pushPropertiesToPrinter ()
 
VCL_DLLPRIVATE void resetPaperToLastConfigured ()
 
void setJobState (css::view::PrintableState)
 
VCL_DLLPRIVATE void setupPrinter (weld::Window *i_pDlgParent)
 
VCL_DLLPRIVATE int getPageCountProtected () const
 
VCL_DLLPRIVATE css::uno::Sequence< css::beans::PropertyValue > getPageParametersProtected (int i_nPage) const
 
VCL_DLLPRIVATE DrawModeFlags removeTransparencies (GDIMetaFile const &i_rIn, GDIMetaFile &o_rOut)
 
VCL_DLLPRIVATE void resetPrinterOptions (bool i_bFileOutput)
 

Private Attributes

std::unique_ptr< ImplOldStyleAdaptorDatampData
 

Additional Inherited Members

- Protected Member Functions inherited from vcl::PrinterController
 PrinterController (const VclPtr< Printer > &, weld::Window *)
 

Detailed Description

Definition at line 34 of file oldprintadaptor.hxx.

Constructor & Destructor Documentation

OldStylePrintAdaptor::OldStylePrintAdaptor ( const VclPtr< Printer > &  i_xPrinter,
weld::Window i_pWindow 
)

Definition at line 47 of file oldprintadaptor.cxx.

OldStylePrintAdaptor::~OldStylePrintAdaptor ( )
overridevirtual

Definition at line 53 of file oldprintadaptor.cxx.

Member Function Documentation

void OldStylePrintAdaptor::EndPage ( )
int OldStylePrintAdaptor::getPageCount ( ) const
overridevirtual

App must override this.

Implements vcl::PrinterController.

Definition at line 80 of file oldprintadaptor.cxx.

References mpData.

Sequence< PropertyValue > OldStylePrintAdaptor::getPageParameters ( int  i_nPage) const
overridevirtual

Get the page parameters.

namely the jobsetup that should be active for the page (describing among others the physical page size) and the "page size". In writer case this would probably be the same as the JobSetup since writer sets the page size draw/impress for example print their page on the paper set on the printer, possibly adjusting the page size to fit. That means the page size can be different from the paper size.

App must override this

Returns
Page size in 1/100th mm

Implements vcl::PrinterController.

Definition at line 85 of file oldprintadaptor.cxx.

References mpData.

void OldStylePrintAdaptor::printPage ( int  i_nPage) const
overridevirtual

App must override this.

Implements vcl::PrinterController.

Definition at line 99 of file oldprintadaptor.cxx.

References vcl::PrinterController::getPrinter(), and mpData.

void OldStylePrintAdaptor::StartPage ( )

Member Data Documentation

std::unique_ptr<ImplOldStyleAdaptorData> vcl::OldStylePrintAdaptor::mpData
private

Definition at line 36 of file oldprintadaptor.hxx.

Referenced by EndPage(), getPageCount(), getPageParameters(), printPage(), and StartPage().


The documentation for this class was generated from the following files: