LibreOffice Module sfx2 (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SfxPrinterController Class Reference
Inheritance diagram for SfxPrinterController:
[legend]
Collaboration diagram for SfxPrinterController:
[legend]

Public Member Functions

 SfxPrinterController (const VclPtr< Printer > &i_rPrinter, Any i_Complete, Any i_Selection, const Any &i_rViewProp, const Reference< view::XRenderable > &i_xRender, bool i_bApi, bool i_bDirect, SfxViewShell *pView, const uno::Sequence< beans::PropertyValue > &rProps)
 
virtual void Notify (SfxBroadcaster &, const SfxHint &) override
 
virtual int getPageCount () const override
 
virtual Sequence< beans::PropertyValue > getPageParameters (int i_nPage) const override
 
virtual void printPage (int i_nPage) const override
 
virtual void jobStarted () override
 
virtual void jobFinished (css::view::PrintableState) override
 
- 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
 
css::beans::PropertyValue * getValue (const OUString &i_rPropertyName)
 
const css::beans::PropertyValue * getValue (const OUString &i_rPropertyName) const
 
bool getBoolProperty (const OUString &i_rPropertyName, bool i_bFallback) const
 
sal_Int32 getIntProperty (const OUString &i_rPropertyName, sal_Int32 i_nFallback) const
 
void setValue (const OUString &i_rPropertyName, const css::uno::Any &i_rValue)
 
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 > &)
 
bool isUIOptionEnabled (const OUString &rPropName) const
 
bool isUIChoiceEnabled (const OUString &rPropName, sal_Int32 nChoice) const
 
OUString makeEnabled (const OUString &rPropName)
 
virtual int getPageCount () const=0
 
virtual css::uno::Sequence< css::beans::PropertyValue > getPageParameters (int i_nPage) const=0
 
virtual void printPage (int i_nPage) const=0
 
virtual void jobStarted ()
 
virtual void jobFinished (css::view::PrintableState)
 
css::view::PrintableState getJobState () const
 
void abortJob ()
 
bool isShowDialogs () const
 
bool isDirectPrint () const
 
void dialogsParentClosing ()
 
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 MultiPageSetup & getMultipage () 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 void setPaperSizeFromUser (Size i_aUserSize)
 
VCL_DLLPRIVATE void setOrientationFromUser (Orientation eOrientation, bool set)
 
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)
 
- Public Member Functions inherited from SfxListener
 SfxListener ()
 
 SfxListener (const SfxListener &rCopy)
 
virtual ~SfxListener () COVERITY_NOEXCEPT_FALSE
 
void StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected)
 
void EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false)
 
void EndListeningAll ()
 
bool IsListening (SfxBroadcaster &rBroadcaster) const
 
sal_uInt16 GetBroadcasterCount () const
 
SfxBroadcasterGetBroadcasterJOE (sal_uInt16 nNo) const
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint)
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 
virtual bool IsSdrView () const
 

Private Member Functions

Sequence< beans::PropertyValue > getMergedOptions () const
 
const AnygetSelectionObject () const
 

Private Attributes

Any maCompleteSelection
 
Any maSelection
 
Reference< view::XRenderable > mxRenderable
 
VclPtr< PrintermpLastPrinter
 
Reference< awt::XDevice > mxDevice
 
SfxViewShellmpViewShell
 
SfxObjectShellmpObjectShell
 
bool m_bOrigStatus
 
bool m_bNeedsChange
 
bool m_bApi
 
bool m_bTempPrinter
 
util::DateTime m_aLastPrinted
 
OUString m_aLastPrintedBy
 

Additional Inherited Members

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

Detailed Description

Definition at line 62 of file viewprn.cxx.

Constructor & Destructor Documentation

◆ SfxPrinterController()

SfxPrinterController::SfxPrinterController ( const VclPtr< Printer > &  i_rPrinter,
Any  i_Complete,
Any  i_Selection,
const Any i_rViewProp,
const Reference< view::XRenderable > &  i_xRender,
bool  i_bApi,
bool  i_bDirect,
SfxViewShell pView,
const uno::Sequence< beans::PropertyValue > &  rProps 
)

Member Function Documentation

◆ getMergedOptions()

Sequence< beans::PropertyValue > SfxPrinterController::getMergedOptions ( ) const
private

◆ getPageCount()

int SfxPrinterController::getPageCount ( ) const
overridevirtual

◆ getPageParameters()

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

◆ getSelectionObject()

const Any & SfxPrinterController::getSelectionObject ( ) const
private

◆ jobFinished()

void SfxPrinterController::jobFinished ( css::view::PrintableState  nState)
overridevirtual

◆ jobStarted()

void SfxPrinterController::jobStarted ( )
overridevirtual

◆ Notify()

void SfxPrinterController::Notify ( SfxBroadcaster ,
const SfxHint rHint 
)
overridevirtual

◆ printPage()

void SfxPrinterController::printPage ( int  i_nPage) const
overridevirtual

Member Data Documentation

◆ m_aLastPrinted

util::DateTime SfxPrinterController::m_aLastPrinted
private

Definition at line 75 of file viewprn.cxx.

Referenced by jobFinished(), and jobStarted().

◆ m_aLastPrintedBy

OUString SfxPrinterController::m_aLastPrintedBy
private

Definition at line 76 of file viewprn.cxx.

Referenced by jobFinished(), and jobStarted().

◆ m_bApi

bool SfxPrinterController::m_bApi
private

Definition at line 73 of file viewprn.cxx.

Referenced by jobFinished().

◆ m_bNeedsChange

bool SfxPrinterController::m_bNeedsChange
private

Definition at line 72 of file viewprn.cxx.

Referenced by jobFinished(), and jobStarted().

◆ m_bOrigStatus

bool SfxPrinterController::m_bOrigStatus
private

Definition at line 71 of file viewprn.cxx.

Referenced by jobFinished(), and jobStarted().

◆ m_bTempPrinter

bool SfxPrinterController::m_bTempPrinter
private

Definition at line 74 of file viewprn.cxx.

Referenced by jobFinished().

◆ maCompleteSelection

Any SfxPrinterController::maCompleteSelection
private

Definition at line 64 of file viewprn.cxx.

Referenced by getSelectionObject().

◆ maSelection

Any SfxPrinterController::maSelection
private

Definition at line 65 of file viewprn.cxx.

Referenced by getSelectionObject().

◆ mpLastPrinter

VclPtr<Printer> SfxPrinterController::mpLastPrinter
mutableprivate

Definition at line 67 of file viewprn.cxx.

Referenced by getMergedOptions().

◆ mpObjectShell

SfxObjectShell* SfxPrinterController::mpObjectShell
private

Definition at line 70 of file viewprn.cxx.

Referenced by jobFinished(), jobStarted(), Notify(), and SfxPrinterController().

◆ mpViewShell

SfxViewShell* SfxPrinterController::mpViewShell
private

Definition at line 69 of file viewprn.cxx.

Referenced by jobFinished(), jobStarted(), Notify(), and SfxPrinterController().

◆ mxDevice

Reference<awt::XDevice> SfxPrinterController::mxDevice
mutableprivate

Definition at line 68 of file viewprn.cxx.

Referenced by getMergedOptions().

◆ mxRenderable

Reference< view::XRenderable > SfxPrinterController::mxRenderable
private

Definition at line 66 of file viewprn.cxx.

Referenced by getPageCount(), getPageParameters(), printPage(), and SfxPrinterController().


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