LibreOffice Module sw (master) 1
|
#include <DocumentLayoutManager.hxx>
Public Member Functions | |
DocumentLayoutManager (SwDoc &i_rSwdoc) | |
virtual const SwViewShell * | GetCurrentViewShell () const override |
Returns the layout set at the document. More... | |
virtual SwViewShell * | GetCurrentViewShell () override |
virtual void | SetCurrentViewShell (SwViewShell *pNew) override |
!!!The old layout must be deleted!!! More... | |
virtual const SwRootFrame * | GetCurrentLayout () const override |
virtual SwRootFrame * | GetCurrentLayout () override |
virtual bool | HasLayout () const override |
virtual const SwLayouter * | GetLayouter () const override |
virtual SwLayouter * | GetLayouter () override |
virtual void | SetLayouter (SwLayouter *pNew) override |
virtual SwFrameFormat * | MakeLayoutFormat (RndStdIds eRequest, const SfxItemSet *pSet) override |
Create a new format whose settings fit to the Request by default. More... | |
virtual void | DelLayoutFormat (SwFrameFormat *pFormat) override |
Deletes the denoted format and its content. More... | |
virtual SwFrameFormat * | CopyLayoutFormat (const SwFrameFormat &rSrc, const SwFormatAnchor &rNewAnchor, bool bSetTextFlyAtt, bool bMakeFrames) override |
Copies the stated format (pSrc) to pDest and returns pDest. More... | |
void | ClearSwLayouterEntries () |
virtual | ~DocumentLayoutManager () override |
virtual const SwViewShell * | GetCurrentViewShell () const =0 |
Returns the layout set at the document. More... | |
virtual SwViewShell * | GetCurrentViewShell ()=0 |
virtual const SwRootFrame * | GetCurrentLayout () const =0 |
virtual SwRootFrame * | GetCurrentLayout ()=0 |
virtual bool | HasLayout () const =0 |
virtual void | SetCurrentViewShell (SwViewShell *pNew)=0 |
!!!The old layout must be deleted!!! More... | |
virtual SwFrameFormat * | MakeLayoutFormat (RndStdIds eRequest, const SfxItemSet *pSet)=0 |
virtual SwLayouter * | GetLayouter ()=0 |
virtual const SwLayouter * | GetLayouter () const =0 |
virtual void | SetLayouter (SwLayouter *pNew)=0 |
virtual void | DelLayoutFormat (SwFrameFormat *pFormat)=0 |
virtual SwFrameFormat * | CopyLayoutFormat (const SwFrameFormat &rSrc, const SwFormatAnchor &rNewAnchor, bool bSetTextFlyAtt, bool bMakeFrames)=0 |
Private Member Functions | |
DocumentLayoutManager (DocumentLayoutManager const &)=delete | |
DocumentLayoutManager & | operator= (DocumentLayoutManager const &)=delete |
Private Attributes | |
SwDoc & | m_rDoc |
SwViewShell * | mpCurrentView |
std::unique_ptr< SwLayouter > | mpLayouter |
css::frame::Controller for complex layout formatting like footnote/endnote in sections More... | |
Additional Inherited Members | |
Protected Member Functions inherited from IDocumentLayoutAccess | |
virtual | ~IDocumentLayoutAccess () |
Definition at line 32 of file DocumentLayoutManager.hxx.
sw::DocumentLayoutManager::DocumentLayoutManager | ( | SwDoc & | i_rSwdoc | ) |
Definition at line 52 of file DocumentLayoutManager.cxx.
|
overridevirtual |
Definition at line 491 of file DocumentLayoutManager.cxx.
|
privatedelete |
void sw::DocumentLayoutManager::ClearSwLayouterEntries | ( | ) |
Definition at line 483 of file DocumentLayoutManager.cxx.
References SwLayouter::ClearMoveBwdLayoutInfo(), SwLayouter::ClearMovedFwdFrames(), SwLayouter::ClearObjsTmpConsiderWrapInfluence(), and m_rDoc.
Referenced by SwRootFrame::DestroyImpl(), and sw::DocumentStateManager::SetModified().
|
overridevirtual |
Copies the stated format (pSrc) to pDest and returns pDest.
If there's no pDest, it is created. If the source format is located in another document, also copy correctly in this case. The Anchor attribute's position is always set to 0!
Implements IDocumentLayoutAccess.
Definition at line 319 of file DocumentLayoutManager.cxx.
References SwNodeRange::aStart, SwFormat::CopyAttrs(), SwDoc::CopyFrameFormat(), sw::DocumentContentOperationsManager::CopyWithFlyInFly(), SwNode::EndOfSectionNode(), SwDoc::FindFlyByName(), SwFrameFormat::FindSdrObject(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorContentOffset(), SwFormatAnchor::GetAnchorId(), SwFormatAnchor::GetAnchorNode(), SwFormat::GetContent(), SwFormatContent::GetContentIdx(), SwDoc::GetDfltFrameFormat(), SwFormat::GetDoc(), SwDoc::GetDocumentContentOperationsManager(), SwNodes::GetEndOfAutotext(), SwDoc::GetIDocumentUndoRedo(), SdrObject::GetName(), SwFormat::GetName(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), SwNode::GetNodeType(), SwFrameFormat::GetOtherTextBoxFormats(), SwNode::GetTextNode(), SwDoc::GetUniqueFrameName(), SwDoc::GetUniqueGrfName(), SwDoc::GetUniqueOLEName(), Grf, SwDoc::IsCopyIsMove(), SwDoc::IsInHeaderFooter(), SwDoc::IsInMailMerge(), SwDoc::IsInReading(), m_rDoc, sw::MAKE_FRAMES, SwDoc::MakeDrawFrameFormat(), SwNodes::MakeEmptySection(), SwDoc::MakeFlyFrameFormat(), SwFrameFormat::MakeFrames(), Ole, RES_CHAIN(), RES_DRAWFRMFMT(), RES_FLYFRMFMT(), SwFormat::ResetFormatAttr(), SwFormat::SetFormatAttr(), SwFrameFormat::SetFormatName(), SwFormatContent::SetNewContentIdx(), SwFlyStartNode, and SwFormat::Which().
|
overridevirtual |
Deletes the denoted format and its content.
Implements IDocumentLayoutAccess.
Definition at line 192 of file DocumentLayoutManager.cxx.
References IDocumentContentOperations::DeleteSection(), SwDoc::DelFrameFormat(), SwFrameFormat::DelFrames(), IDocumentLayoutAccess::DelLayoutFormat(), SwTextNode::EraseText(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorContentOffset(), SwFormatAnchor::GetAnchorId(), SwFormatAnchor::GetAnchorNode(), SwFormat::GetChain(), SwFormat::GetContent(), SwFormatAnchor::GetContentAnchor(), SwFormatContent::GetContentIdx(), SwFormat::GetDoc(), SwTextAttr::GetFlyCnt(), SwFormat::GetFormatAttr(), SwFormatFlyCnt::GetFrameFormat(), SwDoc::getIDocumentContentOperations(), SwDoc::getIDocumentLayoutAccess(), SwDoc::getIDocumentState(), SwDoc::GetIDocumentUndoRedo(), SwNodeIndex::GetIndex(), SwNode::GetIndex(), SwFormatChain::GetNext(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), SwOLENode::GetOLEObj(), SwOLEObj::GetOleRef(), SwFormatChain::GetPrev(), SwDoc::GetSpzFrameFormats(), SwTextNode::GetTextAttrForCharAt(), SwNode::GetTextNode(), SwOLEObj::IsOleRef(), m_rDoc, RES_CNTNT(), RES_DRAWFRMFMT(), RES_FLYFRMFMT(), RES_TXTATR_FLYCNT(), SwDoc::SetAttr(), IDocumentState::SetModified(), SwFormatChain::SetNext(), SwFormatChain::SetPrev(), and SwFormat::Which().
|
overridevirtual |
Implements IDocumentLayoutAccess.
Definition at line 74 of file DocumentLayoutManager.cxx.
References GetCurrentViewShell(), and SwViewShell::GetLayout().
|
overridevirtual |
Implements IDocumentLayoutAccess.
Definition at line 81 of file DocumentLayoutManager.cxx.
References GetCurrentViewShell(), and SwViewShell::GetLayout().
|
overridevirtual |
Returns the layout set at the document.
Implements IDocumentLayoutAccess.
Definition at line 58 of file DocumentLayoutManager.cxx.
References mpCurrentView.
Referenced by GetCurrentLayout().
|
overridevirtual |
Implements IDocumentLayoutAccess.
Definition at line 63 of file DocumentLayoutManager.cxx.
References mpCurrentView.
|
overridevirtual |
Implements IDocumentLayoutAccess.
Definition at line 99 of file DocumentLayoutManager.cxx.
References mpLayouter.
|
overridevirtual |
Implements IDocumentLayoutAccess.
Definition at line 94 of file DocumentLayoutManager.cxx.
References mpLayouter.
|
overridevirtual |
Implements IDocumentLayoutAccess.
Definition at line 88 of file DocumentLayoutManager.cxx.
References mpCurrentView.
|
overridevirtual |
Create a new format whose settings fit to the Request by default.
The format is put into the respective format array. If there already is a fitting format, it is returned instead.
Implements IDocumentLayoutAccess.
Definition at line 113 of file DocumentLayoutManager.cxx.
References SwDoc::GetAttrPool(), SwDoc::GetDfltFrameFormat(), SwNodes::GetEndOfAutotext(), SwDoc::getIDocumentState(), SwDoc::getIDocumentStylePoolAccess(), SwDoc::GetIDocumentUndoRedo(), SwDoc::GetNodes(), IDocumentStylePoolAccess::GetTextCollFromPool(), IDocumentState::IsModified(), m_rDoc, SwDoc::MakeDrawFrameFormat(), SwNodes::MakeTextSection(), RES_POOLCOLL_FOOTER, RES_POOLCOLL_HEADER, RES_POOLCOLL_HEADERL, RES_POOLCOLL_HEADERR, IDocumentState::ResetModified(), SwFormat::SetFormatAttr(), SwFooterStartNode, and SwHeaderStartNode.
|
privatedelete |
|
overridevirtual |
!!!The old layout must be deleted!!!
Implements IDocumentLayoutAccess.
Definition at line 68 of file DocumentLayoutManager.cxx.
References mpCurrentView.
|
overridevirtual |
Implements IDocumentLayoutAccess.
Definition at line 104 of file DocumentLayoutManager.cxx.
References mpLayouter.
|
private |
Definition at line 65 of file DocumentLayoutManager.hxx.
Referenced by ClearSwLayouterEntries(), CopyLayoutFormat(), DelLayoutFormat(), and MakeLayoutFormat().
|
private |
Definition at line 67 of file DocumentLayoutManager.hxx.
Referenced by GetCurrentViewShell(), HasLayout(), and SetCurrentViewShell().
|
private |
css::frame::Controller for complex layout formatting like footnote/endnote in sections
Definition at line 68 of file DocumentLayoutManager.hxx.
Referenced by GetLayouter(), and SetLayouter().