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 31 of file IDocumentDeviceAccess.hxx.

Constructor & Destructor Documentation

virtual IDocumentDeviceAccess::~IDocumentDeviceAccess ( )
inlineprotectedvirtual

Definition at line 128 of file IDocumentDeviceAccess.hxx.

Member Function Documentation

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

Returns the Jobsetup.

Returns
the current Jobsetup

Implemented in sw::DocumentDeviceManager.

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

virtual const SwPrintData& IDocumentDeviceAccess::getPrintData ( ) const
pure virtual
virtual SfxPrinter* IDocumentDeviceAccess::getPrinter ( bool  bCreate) const
pure virtual
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(), and sw::DocumentDrawModelManager::InitDrawModel().

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.

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

Sets the Jobsetup.

Parameters
rJobSetup[in] the new Jobsetup.

Implemented in sw::DocumentDeviceManager.

Referenced by SwXTextView::BuildTmpSelectionDoc(), SwModule::InsertEnv(), SwModule::InsertLab(), and SwDocShell::OnDocumentPrinterChanged().

virtual void IDocumentDeviceAccess::setPrintData ( const SwPrintData rPrtData)
pure virtual
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(), SwGlossaries::EditGroupDoc(), SwDocShell::Execute(), SwViewShell::FillPrtDoc(), SwDocShell::OnDocumentPrinterChanged(), SwSrcView::SetPrinter(), SwPagePreview::SetPrinter(), and SwView::SetPrinter().

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(), and SwViewShell::SetUseVirDev().

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: