22#include <osl/diagnose.h>
44#include <accessibilityoptions.hxx>
74 mpWin->SetMapMode( aMode );
85 mpOpt->SetReadonly(
true );
87 SAL_INFO(
"sw.core",
"View::Init - before InitPrt" );
94 const bool bBrowseMode =
mpOpt->getBrowseMode();
102 mxDoc->CheckDefaultPageFormat();
105 SAL_INFO(
"sw.core",
"View::Init - after InitPrt" );
136 if(
GetDoc()->isXForms() )
149 mpSfxViewShell( nullptr ),
152 mpOut( pOutput ? pOutput
153 : pWindow ? pWindow->GetOutDev()
154 : static_cast<
OutputDevice*>(rDocument.getIDocumentDeviceAccess().getPrinter( true ))),
156 mbShowHeaderSeparator( false ),
157 mbShowFooterSeparator( false ),
158 mbHeaderFooterEdit( false ),
159 mpTargetPaintWindow(nullptr),
160 mpBufferedOut(nullptr),
165 mbOutputToWindow(false),
166 mpPrePostOutDev(nullptr)
178 const bool bIsDocModified(
mxDoc->getIDocumentState().IsModified() );
188 mpImp->InitPagePreviewLayout();
194 SetHiddenFlag( !
mpOpt->IsShowHiddenField() );
197 if ( !
mxDoc->GetIDocumentUndoRedo().IsUndoNoResetModified()
200 mxDoc->getIDocumentState().ResetModified();
216 maBrowseBorder( rShell.maBrowseBorder ),
217 mpSfxViewShell( nullptr ),
220 mpOut( pOutput ? pOutput
221 : pWindow ? pWindow->GetOutDev()
222 : static_cast<
OutputDevice*>(rShell.GetDoc()->getIDocumentDeviceAccess().getPrinter( true ))),
224 mbShowHeaderSeparator( false ),
225 mbShowFooterSeparator( false ),
226 mbHeaderFooterEdit( false ),
227 mpTargetPaintWindow(nullptr),
228 mpBufferedOut(nullptr),
229 mxDoc( rShell.GetDoc() ),
233 mbOutputToWindow(false),
234 mpPrePostOutDev(nullptr)
249 bool bModified =
mxDoc->getIDocumentState().IsModified();
270 mpImp->InitPagePreviewLayout();
273 SetHiddenFlag( !
mpOpt->IsShowHiddenField() );
276 if( !bModified && !
mxDoc->GetIDocumentUndoRedo().IsUndoNoResetModified() )
278 mxDoc->getIDocumentState().ResetModified();
294 =
mxDoc ? &
mxDoc->getIDocumentLayoutAccess() :
nullptr;
313 if (
nullptr != pGNd )
320 OSL_ENSURE( pFrame->IsNoTextFrame(),
"GraphicNode with Text?" );
335 if(
mxDoc->getReferenceCount() > 1 )
virtual const SwDrawModel * GetDrawModel() const =0
Draw Model and id accessors.
Provides access to the layout of a document.
virtual void SetCurrentViewShell(SwViewShell *pNew)=0
!!!The old layout must be deleted!!!
virtual const SwViewShell * GetCurrentViewShell() const =0
Returns the layout set at the document.
void SetScaleY(const Fraction &rScaleY)
void SetScaleX(const Fraction &rScaleX)
sal_uInt16 GetCurMax() const
void IncreaseMax(const sal_uInt16 nAdd)
void DecreaseMax(const sal_uInt16 nSub)
void StopNumRuleAnimations(const OutputDevice *)
IDocumentLayoutAccess const & getIDocumentLayoutAccess() const
Base class of the Writer layout elements.
static void DestroyFrame(SwFrame *const pFrame)
this is the only way to delete a SwFrame instance
Marks a node in the document model.
SwNodeIndex & Assign(SwNodes const &rNds, SwNodeOffset nIdx)
SwStartNode * GetStartNode()
const SwStartNode * StartOfSectionNode() const
const SwEndNode * EndOfSectionNode() const
SwNode & GetEndOfAutotext() const
Section for all Flys/Header/Footers.
static void Remove(SwViewShell const *pSh)
The root element of a Writer document layout.
void DeRegisterShell(SwViewShell *pSh)
Starts a section of nodes in the document model.
static SwCache * GetTextCache()
static void Init(const OutputDevice *pWin)
void SetThemeName(const OUString &rThemeName)
bool HasDrawView() const
New Interface for StarView Drawing.
SwDrawView * GetDrawView()
VclPtr< vcl::Window > mpWin
= 0 during printing or pdf export
const SwViewOption * GetViewOptions() const
VclPtr< OutputDevice > mpOut
Window, Printer, VirtDev, ...
rtl::Reference< SwDoc > mxDoc
The document; never 0.
SwViewShell(SwViewShell &, vcl::Window *pWin, OutputDevice *pOut=nullptr, tools::Long nFlags=0)
CTor for further Shells on a document.
std::unique_ptr< SwViewOption > mpOpt
bool HasDrawViewDrag() const
SwRootFrame * GetLayout() const
std::unique_ptr< SwAccessibilityOptions > mpAccOptions
SdrView * GetDrawViewWithValidMarkList()
vcl::Window * GetWin() const
const IDocumentDrawModelAccess & getIDocumentDrawModelAccess() const
Provides access to the document draw model interface.
std::unique_ptr< SwViewShellImp > mpImp
sal_uInt16 mnStartAction
!= 0 if at least one Action is active.
virtual ~SwViewShell() override
SAL_DLLPRIVATE void Init(const SwViewOption *pNewOpt)
void InitPrt(OutputDevice *pOutDev)
ring_container GetRingContainer()
::OutputDevice const * GetOutDev() const
#define SAL_INFO(area, stream)
sal_uInt16 GetHtmlMode(const SwDocShell *pShell)
#define VSHELLFLAG_SHARELAYOUT
#define VSHELLFLAG_ISPREVIEW
std::shared_ptr< SwRootFrame > SwRootFramePtr