LibreOffice Module sw (master) 1
Public Member Functions | Private Attributes | List of all members
sw::util::InsertedTablesManager Class Reference

Handle requirements for table formatting in insert->file mode. More...

#include <msfilter.hxx>

Public Member Functions

void DelAndMakeTableFrames ()
 
void InsertTable (SwTableNode &rTableNode, SwPaM &rPaM)
 
 InsertedTablesManager (const SwDoc &rDoc)
 

Private Attributes

bool mbHasRoot
 
std::map< std::unique_ptr< InsertedTableListener >, SwPosition * > maTables
 

Detailed Description

Handle requirements for table formatting in insert->file mode.

When inserting a table into a document which already has been formatted and laid out (e.g using insert->file) then tables must be handled in a special way, (or so previous comments and code in the filters leads me to believe).

Before the document is finalized the new tables need to have their layout frms deleted and recalculated. This TableManager detects the necessity to do this, and all tables inserted into a document should be registered with this manager with InsertTable, and before finalization DelAndMakeTableFrames should be called.

See also
#i25782# for examples

Definition at line 284 of file msfilter.hxx.

Constructor & Destructor Documentation

◆ InsertedTablesManager()

sw::util::InsertedTablesManager::InsertedTablesManager ( const SwDoc rDoc)
explicit

Definition at line 872 of file writerhelper.cxx.

Member Function Documentation

◆ DelAndMakeTableFrames()

void sw::util::InsertedTablesManager::DelAndMakeTableFrames ( )

◆ InsertTable()

void sw::util::InsertedTablesManager::InsertTable ( SwTableNode rTableNode,
SwPaM rPaM 
)

Definition at line 899 of file writerhelper.cxx.

References SwPaM::GetPoint(), maTables, and mbHasRoot.

Referenced by WW8TabDesc::FinishSwTable().

Member Data Documentation

◆ maTables

std::map<std::unique_ptr<InsertedTableListener>, SwPosition*> sw::util::InsertedTablesManager::maTables
private

Definition at line 292 of file msfilter.hxx.

Referenced by DelAndMakeTableFrames(), and InsertTable().

◆ mbHasRoot

bool sw::util::InsertedTablesManager::mbHasRoot
private

Definition at line 291 of file msfilter.hxx.

Referenced by DelAndMakeTableFrames(), and InsertTable().


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