LibreOffice Module sw (master) 1
|
Provides access to the formatting devices of a document. More...
#include <IDocumentDeviceAccess.hxx>
Public Member Functions | |
virtual SfxPrinter * | getPrinter (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 VirtualDevice * | getVirtualDevice (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 OutputDevice * | getReferenceDevice (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 JobSetup * | getJobsetup () const =0 |
Returns the Jobsetup. More... | |
virtual void | setJobsetup (const JobSetup &rJobSetup)=0 |
Sets the Jobsetup. More... | |
virtual const SwPrintData & | getPrintData () const =0 |
Returns the PrintData. More... | |
virtual void | setPrintData (const SwPrintData &rPrtData)=0 |
Sets the PrintData. More... | |
Protected Member Functions | |
virtual | ~IDocumentDeviceAccess () |
Provides access to the formatting devices of a document.
Definition at line 30 of file IDocumentDeviceAccess.hxx.
|
inlineprotectedvirtual |
Definition at line 128 of file IDocumentDeviceAccess.hxx.
|
pure virtual |
Returns the Jobsetup.
Implemented in sw::DocumentDeviceManager.
Referenced by SwXTextView::BuildTmpSelectionDoc(), SwModule::InsertEnv(), and lcl_CreateWorkingDocument().
|
pure virtual |
Returns the PrintData.
Implemented in sw::DocumentDeviceManager.
Referenced by SwXDocumentSettings::_postSetValues(), SwXPrintSettings::_preGetValues(), SwXPrintSettings::_preSetValues(), SwMailMergeDlg::ExecQryShell(), SwXMailMerge::execute(), IMPL_LINK_NOARG(), lcl_CreateWorkingDocument(), lcl_GetPrintUIOptions(), lcl_SavePrintUIOptionsToDocumentPrintData(), SetAppPrintOptions(), and SwPagePreviewLayout::SwPagePreviewLayout().
|
pure virtual |
Return the printer set at the document.
bCreate | [in] if set, a printer will be created if not already done. |
Implemented in sw::DocumentDeviceManager.
Referenced by SwXDocumentSettings::_getSingleValue(), SwXDocumentSettings::_setSingleValue(), SwXTextView::BuildTmpSelectionDoc(), SwModule::CreateItemSet(), SwTextSizeInfo::CtorInitTextSizeInfo(), SwDocShell::Edit(), SwDocShell::Execute(), SwMMResultPrintDialog::FillInPrinterSettings(), SwStdFontTabPage::FillItemSet(), SwSpellDialogChildWindow::FindNextDrawTextError_Impl(), SwView::GetPrinter(), SwSrcView::GetPrinter(), SwXTextDocument::getRenderer(), IMPL_LINK_NOARG(), SwModule::InsertEnv(), SwModule::InsertLab(), SwFlyFrame::IsPaint(), SwNoTextFrame::PaintPicture(), SdrHHCWrapper::SdrHHCWrapper(), SetAppPrintOptions(), SwXMLImport::SetConfigurationSettings(), SwView::SetPrinter(), SwPagePreview::SetPrinter(), SwAsciiFilterDlg::SwAsciiFilterDlg(), and SwWriter::Write().
|
pure virtual |
Returns the current reference device.
bCreate | [in] if set, the reference device will be created if not already done. |
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().
|
pure virtual |
Return the virtual device set at the document.
bCreate | [in] if set, a virtual device will be created if not already done. |
Implemented in sw::DocumentDeviceManager.
|
pure virtual |
Sets the Jobsetup.
rJobSetup | [in] the new Jobsetup. |
Implemented in sw::DocumentDeviceManager.
Referenced by SwXTextView::BuildTmpSelectionDoc(), SwModule::InsertEnv(), SwModule::InsertLab(), lcl_CreateWorkingDocument(), and SwDocShell::OnDocumentPrinterChanged().
|
pure virtual |
Sets the PrintData.
rPrtData | [in] the new PrintData. |
Implemented in sw::DocumentDeviceManager.
Referenced by SwMailMergeDlg::ExecQryShell(), SwXMailMerge::execute(), lcl_CreateWorkingDocument(), lcl_SavePrintUIOptionsToDocumentPrintData(), and SetPrinter().
|
pure virtual |
Set the printer at the document.
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().
|
pure virtual |
Sets the type of the reference device used for formatting the document.
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().
|
pure virtual |
Sets the current virtual device.
pVd | [in] the new virtual device. |
The old virtual device will be deleted. Triggers all necessary invalidations.
Implemented in sw::DocumentDeviceManager.