30#include <osl/diagnose.h> 
   59    if ( !bCreate || 
mpPrt )
 
   69    assert ( !pP || !pP->isDisposed() );
 
   82            mpPrt->SetMapMode( aMapMode );
 
   89    if ( bCallPrtDataChanged &&
 
  130        if ( bCreate && !
mpPrt->IsValid() )
 
  183    return mpPrt ? &
mpPrt->GetJobSetup() : 
nullptr;
 
  188    bool bCheckPageDescs = !
mpPrt;
 
  189    bool bDataChanged = 
false;
 
  195            if ( 
mpPrt->GetJobSetup() != rJobSetup )
 
  197                mpPrt->SetJobSetup( rJobSetup );
 
  209                SID_PRINTER_NOTFOUND_WARN, SID_PRINTER_NOTFOUND_WARN,
 
  210                SID_PRINTER_CHANGESTODOC, SID_PRINTER_CHANGESTODOC,
 
  211                SID_HTML_MODE, SID_HTML_MODE,
 
  214        if ( bCheckPageDescs )
 
  237        OSL_ENSURE( pDocSh, 
"pDocSh is 0, can't determine if this is a WebDoc or not" );
 
  238        bool bWeb = 
dynamic_cast< const SwWebDocShell * 
>(pDocSh) !=  
nullptr;
 
  242    assert(
mpPrtData && 
"this will always be set by now");
 
  272        pNewVir->Compat_ZeroExtleadBug();
 
  274    MapMode aMapMode( pNewVir->GetMapMode() );
 
  276    pNewVir->SetMapMode( aMapMode );
 
  284    OSL_ENSURE( ! 
mpPrt, 
"Do not call CreatePrinter_(), call getPrinter() instead" );
 
  289            SID_PRINTER_NOTFOUND_WARN, SID_PRINTER_NOTFOUND_WARN,
 
  290            SID_PRINTER_CHANGESTODOC, SID_PRINTER_CHANGESTODOC,
 
  291            SID_HTML_MODE, SID_HTML_MODE,
 
  300    aOptions.
Put(aAddPrinterItem);
 
  301    pNewPrt->SetOptions(aOptions);
 
  313            nullptr != 
getPrinter( 
false ), 
"PrtDataChanged will be called recursively!" );
 
  315    std::optional<SwWait> oWait;
 
  316    bool bEndAction = 
false;
 
@ USE_HIRES_VIRTUAL_DEVICE
@ UNIX_FORCE_ZERO_EXT_LEADING
virtual const SwDrawModel * GetDrawModel() const =0
Draw Model and id accessors.
virtual const SwRootFrame * GetCurrentLayout() const =0
virtual const SwViewShell * GetCurrentViewShell() const =0
Returns the layout set at the document.
virtual bool get(DocumentSettingId id) const =0
Return the specified document setting.
virtual void SetModified()=0
Must be called manually at changes of format.
OUString const & GetPrinterName() const
void SetMapUnit(MapUnit eUnit)
void SetRefDevice(OutputDevice *pDev)
void SetAddExtLeading(bool bEnabled)
bool IsAddExtLeading() const
OutputDevice * GetRefDevice() const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
IDocumentState const & getIDocumentState() const
o3tl::sorted_vector< SwRootFrame * > GetAllLayouts()
void PrtOLENotify(bool bAll)
IDocumentLayoutAccess const & getIDocumentLayoutAccess() const
IDocumentSettingAccess const & getIDocumentSettingAccess() const
const SwAttrPool & GetAttrPool() const
IDocumentDrawModelAccess const & getIDocumentDrawModelAccess() const
::sw::DocumentSettingManager & GetDocumentSettingManager()
SwDocShell * GetDocShell()
The root element of a Writer document layout.
void StartAllAction()
Set up Start-/EndAction for all Shells on an as high as possible (Shell section) level.
bool getBrowseMode() const
const SwViewOption * GetViewOptions() const
reference_type * get() const
static VclPtr< reference_type > Create(Arg &&... arg)
void SetReferenceDevice(RefDevMode)
SfxPrinter * getPrinter(bool bCreate) const override
Return the printer set at the document.
VirtualDevice & CreateVirtualDevice_() const
void setReferenceDeviceType(bool bNewVirtual, bool bNewHiRes) override
Sets the type of the reference device used for formatting the document.
SfxPrinter & CreatePrinter_() const
void setVirtualDevice(VirtualDevice *pVd) override
Sets the current virtual device.
void setPrintData(const SwPrintData &rPrtData) override
Sets the PrintData.
OutputDevice * getReferenceDevice(bool bCreate) const override
Returns the current reference device.
const SwPrintData & getPrintData() const override
Returns the PrintData.
std::unique_ptr< SwPrintData > mpPrtData
VirtualDevice * getVirtualDevice(bool bCreate) const override
Return the virtual device set at the document.
VclPtr< VirtualDevice > mpVirDev
VclPtr< SfxPrinter > mpPrt
virtual ~DocumentDeviceManager() override
DocumentDeviceManager(SwDoc &i_rSwdoc)
void setPrinter(SfxPrinter *pP, bool bDeleteOld, bool bCallPrtDataChanged) override
Set the printer at the document.
void PrtDataChanged()
Printer or JobSetup altered.
const JobSetup * getJobsetup() const override
Returns the Jobsetup.
void setJobsetup(const JobSetup &rJobSetup) override
Sets the Jobsetup.
virtual bool get(DocumentSettingId id) const override
Return the specified document setting.
virtual void set(DocumentSettingId id, bool value) override
Set the specified document setting.
ring_container GetRingContainer()
#define FN_PARAM_ADDPRINTER
Dialog to specify the properties of date form field.
VclPtr< VirtualDevice > mpVirDev