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 >, SwNodeIndex * > 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 279 of file msfilter.hxx.

Constructor & Destructor Documentation

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

Definition at line 879 of file writerhelper.cxx.

Member Function Documentation

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

Definition at line 906 of file writerhelper.cxx.

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

Referenced by WW8TabDesc::FinishSwTable().

Member Data Documentation

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

Definition at line 287 of file msfilter.hxx.

Referenced by DelAndMakeTableFrames(), and InsertTable().

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

Definition at line 286 of file msfilter.hxx.

Referenced by DelAndMakeTableFrames(), and InsertTable().


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