LibreOffice Module sw (master) 1
Public Member Functions | Protected Member Functions | List of all members
IDocumentDeviceAccess Class Referenceabstract

Provides access to the formatting devices of a document. More...

#include <IDocumentDeviceAccess.hxx>

Inheritance diagram for IDocumentDeviceAccess:
[legend]

Public Member Functions

virtual SfxPrintergetPrinter (bool bCreate) const =0
 Return the printer set at the document. More...
 
virtual void setPrinter (SfxPrinter *pP, bool bDeleteOld, bool bCallPrtDataChanged)=0
 Set the printer at the document. More...
 
virtual VirtualDevicegetVirtualDevice (bool bCreate) const =0
 Return the virtual device set at the document. More...
 
virtual void setVirtualDevice (VirtualDevice *pVd)=0
 Sets the current virtual device. More...
 
virtual OutputDevicegetReferenceDevice (bool bCreate) const =0
 Returns the current reference device. More...
 
virtual void setReferenceDeviceType (bool bNewVirtual, bool bNewHiRes)=0
 Sets the type of the reference device used for formatting the document. More...
 
virtual const JobSetupgetJobsetup () const =0
 Returns the Jobsetup. More...
 
virtual void setJobsetup (const JobSetup &rJobSetup)=0
 Sets the Jobsetup. More...
 
virtual const SwPrintDatagetPrintData () const =0
 Returns the PrintData. More...
 
virtual void setPrintData (const SwPrintData &rPrtData)=0
 Sets the PrintData. More...
 

Protected Member Functions

virtual ~IDocumentDeviceAccess ()
 

Detailed Description

Provides access to the formatting devices of a document.

Definition at line 30 of file IDocumentDeviceAccess.hxx.

Constructor & Destructor Documentation

◆ ~IDocumentDeviceAccess()

virtual IDocumentDeviceAccess::~IDocumentDeviceAccess ( )
inlineprotectedvirtual

Definition at line 128 of file IDocumentDeviceAccess.hxx.

Member Function Documentation

◆ getJobsetup()

virtual const JobSetup * IDocumentDeviceAccess::getJobsetup ( ) const
pure virtual

Returns the Jobsetup.

Returns
the current Jobsetup

Implemented in sw::DocumentDeviceManager.

Referenced by SwXTextView::BuildTmpSelectionDoc(), SwModule::InsertEnv(), and lcl_CreateWorkingDocument().

◆ getPrintData()

virtual const SwPrintData & IDocumentDeviceAccess::getPrintData ( ) const
pure virtual

◆ getPrinter()

virtual SfxPrinter * IDocumentDeviceAccess::getPrinter ( bool  bCreate) const
pure virtual

◆ getReferenceDevice()

virtual OutputDevice * IDocumentDeviceAccess::getReferenceDevice ( bool  bCreate) const
pure virtual

Returns the current reference device.

Parameters
bCreate[in] if set, the reference device will be created if not already done.
Returns
the current reference device

Implemented in sw::DocumentDeviceManager.

Referenced by SwView::BeginTextEdit(), SwTextFrame::CalcHeightOfLastLine(), SwTextFrame::EmptyHeight(), SwTextFrame::FillCursorPos(), SwTextFrame::FillRegister(), SwViewShell::GetRefDev(), sw::DocumentDrawModelManager::InitDrawModel(), and sw::sidebarwindows::SidebarTextControl::SetDrawingArea().

◆ getVirtualDevice()

virtual VirtualDevice * IDocumentDeviceAccess::getVirtualDevice ( bool  bCreate) const
pure virtual

Return the virtual device set at the document.

Parameters
bCreate[in] if set, a virtual device will be created if not already done.
Returns
the virtual device set at the document.

Implemented in sw::DocumentDeviceManager.

◆ setJobsetup()

virtual void IDocumentDeviceAccess::setJobsetup ( const JobSetup rJobSetup)
pure virtual

◆ setPrintData()

virtual void IDocumentDeviceAccess::setPrintData ( const SwPrintData rPrtData)
pure virtual

Sets the PrintData.

Parameters
rPrtData[in] the new PrintData.

Implemented in sw::DocumentDeviceManager.

Referenced by SwMailMergeDlg::ExecQryShell(), SwXMailMerge::execute(), lcl_CreateWorkingDocument(), lcl_SavePrintUIOptionsToDocumentPrintData(), and SetPrinter().

◆ setPrinter()

virtual void IDocumentDeviceAccess::setPrinter ( SfxPrinter pP,
bool  bDeleteOld,
bool  bCallPrtDataChanged 
)
pure virtual

Set the printer at the document.

Parameters
pP[in] the new printer or 0.
bDeleteOld[in] if set, the old printer will be deleted.
bCallPrtDataChanged[in] if set, triggers all necessary invalidations.

Implemented in sw::DocumentDeviceManager.

Referenced by SwXDocumentSettings::_postSetValues(), SwDocShell::Execute(), SwViewShell::FillPrtDoc(), SwDocShell::OnDocumentPrinterChanged(), SwView::SetPrinter(), SwSrcView::SetPrinter(), and SwPagePreview::SetPrinter().

◆ setReferenceDeviceType()

virtual void IDocumentDeviceAccess::setReferenceDeviceType ( bool  bNewVirtual,
bool  bNewHiRes 
)
pure virtual

Sets the type of the reference device used for formatting the document.

Parameters
bNewVirtual[in] if set, the reference device will be a virtual device, otherwise the printer is used for formatting the document
bNewHiRes[in] if set, the virtual device will be the HiRes virtual device

Implemented in sw::DocumentDeviceManager.

Referenced by SwXDocumentSettings::_setSingleValue().

◆ setVirtualDevice()

virtual void IDocumentDeviceAccess::setVirtualDevice ( VirtualDevice pVd)
pure virtual

Sets the current virtual device.

Parameters
pVd[in] the new virtual device.

The old virtual device will be deleted. Triggers all necessary invalidations.

Implemented in sw::DocumentDeviceManager.


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