LibreOffice Module sw (master)  1
Public Types | 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 Types

typedef std::map< std::unique_ptr< InsertedTableListener >, SwNodeIndex * > TableMap
 

Public Member Functions

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

Private Attributes

bool const mbHasRoot
 
TableMap 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.

Member Typedef Documentation

Definition at line 282 of file msfilter.hxx.

Constructor & Destructor Documentation

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

Definition at line 857 of file writerhelper.cxx.

Member Function Documentation

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

Definition at line 884 of file writerhelper.cxx.

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

Referenced by WW8TabDesc::FinishSwTable().

Member Data Documentation

TableMap sw::util::InsertedTablesManager::maTables
private

Definition at line 288 of file msfilter.hxx.

Referenced by DelAndMakeTableFrames(), and InsertTable().

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

Definition at line 287 of file msfilter.hxx.

Referenced by DelAndMakeTableFrames(), and InsertTable().


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