LibreOffice Module sw (master)  1
Functions
tblcpy.cxx File Reference
#include <hintids.hxx>
#include <svl/zforlist.hxx>
#include <frmfmt.hxx>
#include <doc.hxx>
#include <IDocumentUndoRedo.hxx>
#include <DocumentContentOperationsManager.hxx>
#include <IDocumentRedlineAccess.hxx>
#include <IDocumentFieldsAccess.hxx>
#include <IDocumentLayoutAccess.hxx>
#include <IDocumentStylePoolAccess.hxx>
#include <cntfrm.hxx>
#include <pam.hxx>
#include <swtable.hxx>
#include <ndtxt.hxx>
#include <fldbas.hxx>
#include <tblsel.hxx>
#include <tabfrm.hxx>
#include <poolfmt.hxx>
#include <cellatr.hxx>
#include <mvsave.hxx>
#include <docary.hxx>
#include <fmtanchr.hxx>
#include <hints.hxx>
#include <UndoTable.hxx>
#include <redline.hxx>
#include <fmtfsize.hxx>
#include <deque>
#include <memory>
#include <numeric>
Include dependency graph for tblcpy.cxx:

Go to the source code of this file.

Functions

static void lcl_CpyBox (const SwTable &rCpyTable, const SwTableBox *pCpyBox, SwTable &rDstTable, SwTableBox *pDstBox, bool bDelContent, SwUndoTableCpyTable *pUndo)
 Copy Table into this Box. More...
 
static void FndContentLine (const SwTableLine *pLine, SwSelBoxes *pPara)
 
static void FndContentBox (const SwTableBox *pBox, SwSelBoxes *pPara)
 

Function Documentation

static void FndContentBox ( const SwTableBox pBox,
SwSelBoxes pPara 
)
static
static void FndContentLine ( const SwTableLine pLine,
SwSelBoxes pPara 
)
static

Definition at line 1022 of file tblcpy.cxx.

References FndContentBox(), and SwTableLine::GetTabBoxes().

Referenced by FndContentBox().

static void lcl_CpyBox ( const SwTable rCpyTable,
const SwTableBox pCpyBox,
SwTable rDstTable,
SwTableBox pDstBox,
bool  bDelContent,
SwUndoTableCpyTable pUndo 
)
static

Copy Table into this Box.

Copy all Boxes of a Line into the corresponding Boxes. The old content is deleted by doing this. If no Box is left the remaining content goes to the Box of a "BaseLine". If there's no Line anymore, put it also into the last Box of a "BaseLine".

Definition at line 493 of file tblcpy.cxx.

References SwUndoTableCpyTable::AddBoxAfter(), SwUndoTableCpyTable::AddBoxBefore(), SwIndex::Assign(), SwTableBox::ClaimFrameFormat(), SwDoc::CorrAbs(), SwNodes::Delete(), IDocumentLayoutAccess::DelLayoutFormat(), SwNode::EndOfSectionIndex(), SwNode::EndOfSectionNode(), fnMoveForward, SwTableLines::front(), SwFormatAnchor::GetAnchorId(), SwFormat::GetAttrSet(), SwFormatAnchor::GetContentAnchor(), SwNode::GetContentNode(), SwDoc::GetDfltTextFormatColl(), SwFormat::GetDoc(), SwContentNode::GetFormatColl(), SwTable::GetFrameFormat(), SwTableBox::GetFrameFormat(), SwDoc::getIDocumentLayoutAccess(), SwDoc::getIDocumentRedlineAccess(), SwDoc::getIDocumentStylePoolAccess(), SwDoc::GetIDocumentUndoRedo(), SwFormat::GetItemState(), SvNumberFormatter::GetMergeFormatIndex(), SwDoc::GetNodes(), SwDoc::GetNumberFormatter(), SwFormat::GetPoolFormatId(), SwDoc::GetSpzFrameFormats(), SwTableBox::GetSttIdx(), SwTableBox::GetSttNd(), SwTable::GetTabLines(), SwTextNode::GetTextColl(), IDocumentStylePoolAccess::GetTextCollFromPool(), SwNode::GetTextNode(), SwTableLine::GetUpper(), SwTableBox::GetUpper(), GetValue, GoInSection(), SwNodes::GoNext(), SwNodes::GoPrevious(), SvNumberFormatter::HasMergeFormatTable(), IDocumentRedlineAccess::IsRedlineOn(), SwContentNode::Len(), SwNodes::MakeTextNode(), SwPaM::Move(), SwPosition::nContent, SwPosition::nNode, RES_BOXATR_FORMAT, RES_BOXATR_FORMULA, RES_BOXATR_VALUE, RES_POOLCOLL_TABLE, RES_POOLCOLL_TABLE_HDLN, SwFormat::ResetFormatAttr(), SwFormat::SetFormatAttr(), SwPaM::SetMark(), SwDoc::SetTextFormatColl(), and SwTableLines::size().

Referenced by SwTable::InsTable().