LibreOffice Module sw (master)
1
|
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 |
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.
Definition at line 279 of file msfilter.hxx.
|
explicit |
Definition at line 877 of file writerhelper.cxx.
void sw::util::InsertedTablesManager::DelAndMakeTableFrames | ( | ) |
Definition at line 881 of file writerhelper.cxx.
References SwTableNode::DelFrames(), SwTable::GetFrameFormat(), SwTableNode::GetTable(), SwNode::GetTableNode(), SwTableNode::MakeOwnFrames(), maTables, and mbHasRoot.
Referenced by SwWW8ImplReader::CoreLoad().
void sw::util::InsertedTablesManager::InsertTable | ( | SwTableNode & | rTableNode, |
SwPaM & | rPaM | ||
) |
Definition at line 904 of file writerhelper.cxx.
References SwPaM::GetPoint(), maTables, mbHasRoot, and SwPosition::nNode.
Referenced by WW8TabDesc::FinishSwTable().
|
private |
Definition at line 287 of file msfilter.hxx.
Referenced by DelAndMakeTableFrames(), and InsertTable().
|
private |
Definition at line 286 of file msfilter.hxx.
Referenced by DelAndMakeTableFrames(), and InsertTable().