LibreOffice Module sw (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
sw::DocumentLayoutManager Class Referencefinal

#include <DocumentLayoutManager.hxx>

Inheritance diagram for sw::DocumentLayoutManager:
[legend]
Collaboration diagram for sw::DocumentLayoutManager:
[legend]

Public Member Functions

 DocumentLayoutManager (SwDoc &i_rSwdoc)
 
virtual const SwViewShellGetCurrentViewShell () const override
 Returns the layout set at the document. More...
 
virtual SwViewShellGetCurrentViewShell () override
 
virtual void SetCurrentViewShell (SwViewShell *pNew) override
 !!!The old layout must be deleted!!! More...
 
virtual const SwRootFrameGetCurrentLayout () const override
 
virtual SwRootFrameGetCurrentLayout () override
 
virtual bool HasLayout () const override
 
virtual const SwLayouterGetLayouter () const override
 
virtual SwLayouterGetLayouter () override
 
virtual void SetLayouter (SwLayouter *pNew) override
 
virtual SwFrameFormatMakeLayoutFormat (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 SwFrameFormatCopyLayoutFormat (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 SwViewShellGetCurrentViewShell () const =0
 Returns the layout set at the document. More...
 
virtual SwViewShellGetCurrentViewShell ()=0
 
virtual const SwRootFrameGetCurrentLayout () const =0
 
virtual SwRootFrameGetCurrentLayout ()=0
 
virtual bool HasLayout () const =0
 
virtual void SetCurrentViewShell (SwViewShell *pNew)=0
 !!!The old layout must be deleted!!! More...
 
virtual SwFrameFormatMakeLayoutFormat (RndStdIds eRequest, const SfxItemSet *pSet)=0
 
virtual SwLayouterGetLayouter ()=0
 
virtual const SwLayouterGetLayouter () const =0
 
virtual void SetLayouter (SwLayouter *pNew)=0
 
virtual void DelLayoutFormat (SwFrameFormat *pFormat)=0
 
virtual SwFrameFormatCopyLayoutFormat (const SwFrameFormat &rSrc, const SwFormatAnchor &rNewAnchor, bool bSetTextFlyAtt, bool bMakeFrames)=0
 

Private Member Functions

 DocumentLayoutManager (DocumentLayoutManager const &)=delete
 
DocumentLayoutManageroperator= (DocumentLayoutManager const &)=delete
 

Private Attributes

SwDocm_rDoc
 
SwViewShellmpCurrentView
 
std::unique_ptr< SwLayoutermpLayouter
 css::frame::Controller for complex layout formatting like footnote/endnote in sections More...
 

Additional Inherited Members

- Protected Member Functions inherited from IDocumentLayoutAccess
virtual ~IDocumentLayoutAccess ()
 

Detailed Description

Definition at line 32 of file DocumentLayoutManager.hxx.

Constructor & Destructor Documentation

◆ DocumentLayoutManager() [1/2]

sw::DocumentLayoutManager::DocumentLayoutManager ( SwDoc i_rSwdoc)

Definition at line 52 of file DocumentLayoutManager.cxx.

◆ ~DocumentLayoutManager()

sw::DocumentLayoutManager::~DocumentLayoutManager ( )
overridevirtual

Definition at line 491 of file DocumentLayoutManager.cxx.

◆ DocumentLayoutManager() [2/2]

sw::DocumentLayoutManager::DocumentLayoutManager ( DocumentLayoutManager const &  )
privatedelete

Member Function Documentation

◆ ClearSwLayouterEntries()

void sw::DocumentLayoutManager::ClearSwLayouterEntries ( )

◆ CopyLayoutFormat()

SwFrameFormat * sw::DocumentLayoutManager::CopyLayoutFormat ( const SwFrameFormat rSource,
const SwFormatAnchor rNewAnchor,
bool  bSetTextFlyAtt,
bool  bMakeFrames 
)
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().

◆ DelLayoutFormat()

void sw::DocumentLayoutManager::DelLayoutFormat ( SwFrameFormat pFormat)
overridevirtual

◆ GetCurrentLayout() [1/2]

const SwRootFrame * sw::DocumentLayoutManager::GetCurrentLayout ( ) const
overridevirtual

Implements IDocumentLayoutAccess.

Definition at line 74 of file DocumentLayoutManager.cxx.

References GetCurrentViewShell(), and SwViewShell::GetLayout().

◆ GetCurrentLayout() [2/2]

SwRootFrame * sw::DocumentLayoutManager::GetCurrentLayout ( )
overridevirtual

Implements IDocumentLayoutAccess.

Definition at line 81 of file DocumentLayoutManager.cxx.

References GetCurrentViewShell(), and SwViewShell::GetLayout().

◆ GetCurrentViewShell() [1/2]

const SwViewShell * sw::DocumentLayoutManager::GetCurrentViewShell ( ) const
overridevirtual

Returns the layout set at the document.

Implements IDocumentLayoutAccess.

Definition at line 58 of file DocumentLayoutManager.cxx.

References mpCurrentView.

Referenced by GetCurrentLayout().

◆ GetCurrentViewShell() [2/2]

SwViewShell * sw::DocumentLayoutManager::GetCurrentViewShell ( )
overridevirtual

Implements IDocumentLayoutAccess.

Definition at line 63 of file DocumentLayoutManager.cxx.

References mpCurrentView.

◆ GetLayouter() [1/2]

const SwLayouter * sw::DocumentLayoutManager::GetLayouter ( ) const
overridevirtual

Implements IDocumentLayoutAccess.

Definition at line 99 of file DocumentLayoutManager.cxx.

References mpLayouter.

◆ GetLayouter() [2/2]

SwLayouter * sw::DocumentLayoutManager::GetLayouter ( )
overridevirtual

Implements IDocumentLayoutAccess.

Definition at line 94 of file DocumentLayoutManager.cxx.

References mpLayouter.

◆ HasLayout()

bool sw::DocumentLayoutManager::HasLayout ( ) const
overridevirtual

Implements IDocumentLayoutAccess.

Definition at line 88 of file DocumentLayoutManager.cxx.

References mpCurrentView.

◆ MakeLayoutFormat()

SwFrameFormat * sw::DocumentLayoutManager::MakeLayoutFormat ( RndStdIds  eRequest,
const SfxItemSet pSet 
)
overridevirtual

◆ operator=()

DocumentLayoutManager & sw::DocumentLayoutManager::operator= ( DocumentLayoutManager const &  )
privatedelete

◆ SetCurrentViewShell()

void sw::DocumentLayoutManager::SetCurrentViewShell ( SwViewShell pNew)
overridevirtual

!!!The old layout must be deleted!!!

Implements IDocumentLayoutAccess.

Definition at line 68 of file DocumentLayoutManager.cxx.

References mpCurrentView.

◆ SetLayouter()

void sw::DocumentLayoutManager::SetLayouter ( SwLayouter pNew)
overridevirtual

Implements IDocumentLayoutAccess.

Definition at line 104 of file DocumentLayoutManager.cxx.

References mpLayouter.

Member Data Documentation

◆ m_rDoc

SwDoc& sw::DocumentLayoutManager::m_rDoc
private

◆ mpCurrentView

SwViewShell* sw::DocumentLayoutManager::mpCurrentView
private

Definition at line 67 of file DocumentLayoutManager.hxx.

Referenced by GetCurrentViewShell(), HasLayout(), and SetCurrentViewShell().

◆ mpLayouter

std::unique_ptr<SwLayouter> sw::DocumentLayoutManager::mpLayouter
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().


The documentation for this class was generated from the following files: