|
LibreOffice Module sw (master) 1
|
#include <libxml/xmlwriter.h>#include <hintids.hxx>#include <hints.hxx>#include <editeng/lrspitem.hxx>#include <editeng/shaditem.hxx>#include <editeng/adjustitem.hxx>#include <editeng/colritem.hxx>#include <osl/diagnose.h>#include <sfx2/linkmgr.hxx>#include <fmtfsize.hxx>#include <fmtornt.hxx>#include <fmtpdsc.hxx>#include <fldbas.hxx>#include <fmtfld.hxx>#include <frmatr.hxx>#include <doc.hxx>#include <IDocumentLinksAdministration.hxx>#include <IDocumentRedlineAccess.hxx>#include <IDocumentFieldsAccess.hxx>#include <docary.hxx>#include <frame.hxx>#include <swtable.hxx>#include <ndtxt.hxx>#include <tabcol.hxx>#include <tabfrm.hxx>#include <cellfrm.hxx>#include <rowfrm.hxx>#include <swserv.hxx>#include <expfld.hxx>#include <mdiexp.hxx>#include <cellatr.hxx>#include <txatbase.hxx>#include <htmltbl.hxx>#include <swtblfmt.hxx>#include <ndindex.hxx>#include <tblrwcl.hxx>#include <shellres.hxx>#include <viewsh.hxx>#include <redline.hxx>#include <vector>#include <calbck.hxx>#include <o3tl/string_view.hxx>#include <svl/numformat.hxx>#include <txtfld.hxx>#include <rolbck.hxx>Go to the source code of this file.
Classes | |
| struct | Parm |
| struct | SwTableCellInfo::Impl |
Macros | |
| #define | CHECK_TABLE(t) (t).CheckConsistency(); |
| #define | COLFUZZY 20 |
Typedefs | |
| typedef std::pair< sal_uInt16, sal_uInt16 > | ColChange |
| typedef std::list< ColChange > | ChangeList |
Functions | |
| static void | ChgTextToNum (SwTableBox &rBox, const OUString &rText, const Color *pCol, bool bChgAlign, SwNodeOffset nNdPos) |
| static OUString & | lcl_TabToBlankAtSttEnd (OUString &rText) |
| static OUString & | lcl_DelTabsAtSttEnd (OUString &rText) |
| void | InsTableBox (SwDoc &rDoc, SwTableNode *pTableNd, SwTableLine *pLine, SwTableBoxFormat *pBoxFrameFormat, SwTableBox *pBox, sal_uInt16 nInsPos, sal_uInt16 nCnt) |
| void | DelBoxNode (SwTableSortBoxes const &rSortCntBoxes) |
| static void | FormatInArr (std::vector< SwFormat * > &rFormatArr, SwFormat *pBoxFormat) |
| static void | lcl_ModifyBoxes (SwTableBoxes &rBoxes, const tools::Long nOld, const tools::Long nNew, std::vector< SwFormat * > &rFormatArr) |
| static void | lcl_ModifyLines (SwTableLines &rLines, const tools::Long nOld, const tools::Long nNew, std::vector< SwFormat * > &rFormatArr, const bool bCheckSum) |
| static void | lcl_RefreshHidden (SwTabCols &rToFill, size_t nPos) |
| static void | lcl_SortedTabColInsert (SwTabCols &rToFill, const SwTableBox *pBox, const SwFrameFormat *pTabFormat, const bool bHidden, const bool bRefreshHidden) |
| static void | lcl_ProcessBoxGet (const SwTableBox *pBox, SwTabCols &rToFill, const SwFrameFormat *pTabFormat, bool bRefreshHidden) |
| static void | lcl_ProcessLineGet (const SwTableLine *pLine, SwTabCols &rToFill, const SwFrameFormat *pTabFormat) |
| static void | lcl_ProcessBoxSet (SwTableBox *pBox, Parm &rParm) |
| static void | lcl_ProcessLine (SwTableLine *pLine, Parm &rParm) |
| static void | lcl_ProcessBoxPtr (SwTableBox *pBox, std::deque< SwTableBox * > &rBoxArr, bool bBefore) |
| static void | lcl_AdjustBox (SwTableBox *pBox, const tools::Long nDiff, Parm &rParm) |
| static void | lcl_AdjustLines (SwTableLines &rLines, const tools::Long nDiff, Parm &rParm) |
| static void | lcl_AdjustWidthsInLine (SwTableLine *pLine, ChangeList &rOldNew, Parm &rParm, sal_uInt16 nColFuzzy) |
| static void | lcl_CalcNewWidths (std::vector< sal_uInt16 > &rSpanPos, ChangeList &rChanges, SwTableLine *pLine, tools::Long nWish, tools::Long nWidth, bool bTop) |
| static bool | lcl_IsValidRowName (std::u16string_view rStr) |
| void | sw_GetTableBoxColStr (sal_uInt16 nCol, OUString &rNm) |
| static void | ChgTextToNum (SwTableBox &rBox, const OUString &rText, const Color *pCol, bool bChgAlign) |
| static void | ChgNumToText (SwTableBox &rBox, sal_uLong nFormat) |
Definition at line 68 of file swtable.cxx.
| #define COLFUZZY 20 |
Definition at line 76 of file swtable.cxx.
| typedef std::list< ColChange > ChangeList |
Definition at line 991 of file swtable.cxx.
| typedef std::pair<sal_uInt16, sal_uInt16> ColChange |
Definition at line 990 of file swtable.cxx.
|
static |
Definition at line 2469 of file swtable.cxx.
References SwTextNode::DontExpandFormat(), EMPTYEXPAND, SwTextNode::EraseText(), SvxAdjustItem::GetAdjust(), SwFormat::GetDoc(), SwTableBox::GetFrameFormat(), SfxItemSet::GetItemIfSet(), SwFormat::GetItemIfSet(), SwDoc::GetNodes(), SwDoc::GetNumberFormatter(), SvNumberFormatter::GetOutputString(), SwContentNode::GetpSwAttrSet(), SwTableBox::GetSaveNumFormatColor(), SwTableBox::GetSaveUserColor(), getSwDefaultTextFormat(), SwTextNode::GetText(), SvxColorItem::GetValue(), SwFormatVertOrient::GetVertOrient(), SwTextNode::InsertText(), SwDoc::IsInsTableAlignNum(), SwTableBox::IsValidNumTextNd(), NODE_OFFSET_MAX(), RES_CHRATR_COLOR(), RES_PARATR_ADJUST(), RES_VERT_ORIENT(), SwTextNode::ResetAttr(), SAL_MAX_INT32, SwTextNode::SetAttr(), SwFormat::SetFormatAttr(), SwTableBox::SetSaveNumFormatColor(), and SwTableBox::SetSaveUserColor().
Referenced by SwTableBoxFormat::BoxAttributeChanged().
|
static |
Definition at line 2335 of file swtable.cxx.
References ChgTextToNum(), and SwTableBox::IsValidNumTextNd().
|
static |
Definition at line 2341 of file swtable.cxx.
References IDocumentRedlineAccess::AppendRedline(), CH_TXTATR_INWORD, IDocumentRedlineAccess::DeleteRedline(), SwTextNode::DontExpandFormat(), SwRedlineTable::empty(), EMPTYEXPAND, SwTextNode::EraseText(), SwFormat::GetDoc(), SwTableBox::GetFrameFormat(), SwDoc::getIDocumentRedlineAccess(), SwContentIndex::GetIndex(), SfxItemSet::GetItemIfSet(), SwFormat::GetItemIfSet(), SwDoc::GetNodes(), SwContentNode::GetpSwAttrSet(), IDocumentRedlineAccess::GetRedlineTable(), SwTableBox::GetSaveNumFormatColor(), SwTableBox::GetSaveUserColor(), SwTextNode::GetText(), SvxColorItem::GetValue(), SwFormatVertOrient::GetVertOrient(), SwTextNode::InsertText(), IDocumentRedlineAccess::IsIgnoreRedline(), IDocumentRedlineAccess::IsRedlineOn(), n, NODE_OFFSET_MAX(), RES_CHRATR_COLOR(), RES_PARATR_ADJUST(), RES_VERT_ORIENT(), SwTextNode::ResetAttr(), SvxAdjustItem::SetAdjust(), SwTextNode::SetAttr(), SwFormat::SetFormatAttr(), SwTableBox::SetSaveNumFormatColor(), and SwTableBox::SetSaveUserColor().
Referenced by SwTableBox::ActualiseValueBox(), SwTableBoxFormat::BoxAttributeChanged(), and ChgTextToNum().
| void DelBoxNode | ( | SwTableSortBoxes const & | rSortCntBoxes | ) |
Definition at line 211 of file swtable.cxx.
Referenced by SwTable::~SwTable().
Definition at line 257 of file swtable.cxx.
Referenced by lcl_ModifyBoxes().
| void InsTableBox | ( | SwDoc & | rDoc, |
| SwTableNode * | pTableNd, | ||
| SwTableLine * | pLine, | ||
| SwTableBoxFormat * | pBoxFrameFormat, | ||
| SwTableBox * | pBox, | ||
| sal_uInt16 | nInsPos, | ||
| sal_uInt16 | nCnt | ||
| ) |
Definition at line 131 of file swtable.cxx.
References SfxItemSet::ClearItem(), SfxItemSet::Get(), SwNode::GetContentNode(), SwDoc::GetDfltTextFormatColl(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), SwContentNode::GetpSwAttrSet(), SwTableBox::getRowSpan(), SwTableBox::GetSaveNumFormatColor(), SwTableBox::GetSaveUserColor(), SwTableBox::GetSttNd(), SwFormatAutoFormat::GetStyleHandle(), SwContentNode::GetSwAttrSet(), SwTableLine::GetTabBoxes(), SwNodes::GoNext(), SfxItemSet::HasItem(), i, SwNodes::InsBoxen(), SwNode::IsTextNode(), SfxItemSet::Put(), RES_CHRATR_COLOR(), RES_PARATR_LIST_AUTOFMT(), and SwTableBox::setRowSpan().
Referenced by SwTable::ConvertSubtableBox(), lcl_CopyCol(), SwTable::NewInsertCol(), SwTable::OldSplitRow(), and SwTable::SplitCol().
|
static |
Definition at line 811 of file swtable.cxx.
References Parm::aShareFormats, SwTableLines::empty(), SwTableBox::GetFrameFormat(), SwFormat::GetFrameSize(), SwTableBox::GetTabLines(), SvxSizeItem::GetWidth(), lcl_AdjustLines(), SwShareBoxFormats::SetSize(), and SvxSizeItem::SetWidth().
Referenced by lcl_AdjustLines().
|
static |
Definition at line 801 of file swtable.cxx.
References i, lcl_AdjustBox(), and SwTableLines::size().
Referenced by lcl_AdjustBox(), and SwTable::SetTabCols().
|
static |
Definition at line 993 of file swtable.cxx.
References Parm::aShareFormats, SwTableBox::GetFrameFormat(), SwFormat::GetFrameSize(), SwTableLine::GetTabBoxes(), SvxSizeItem::GetWidth(), i, nBorder, nCount, SwShareBoxFormats::SetSize(), and SvxSizeItem::SetWidth().
Referenced by SwTable::NewSetTabCols().
|
static |
Definition at line 1042 of file swtable.cxx.
References SwTableBox::GetFrameFormat(), SwFormat::GetFrameSize(), SwTableBox::getRowSpan(), SwTableLine::GetTabBoxes(), SvxSizeItem::GetWidth(), nCount, and nPos.
Referenced by SwTable::NewSetTabCols().
|
static |
Definition at line 111 of file swtable.cxx.
References n.
Referenced by SwTableBox::IsNumberChanged().
|
static |
|
static |
Definition at line 285 of file swtable.cxx.
References SwTableBox::ClaimFrameFormat(), SwTableLines::empty(), FormatInArr(), SwTableBox::GetFrameFormat(), SwFormat::GetFrameSize(), SwTableBox::GetTabLines(), SvxSizeItem::GetWidth(), i, lcl_ModifyLines(), SwFormat::SetFormatAttr(), and Variable.
Referenced by lcl_ModifyLines().
|
static |
Definition at line 267 of file swtable.cxx.
References lcl_ModifyBoxes(), and Variable.
Referenced by SwTable::AdjustWidths(), and lcl_ModifyBoxes().
|
static |
Definition at line 487 of file swtable.cxx.
References SwTableLines::empty(), SwTableBox::GetTabLines(), i, lcl_ProcessBoxGet(), lcl_SortedTabColInsert(), and SwTableLines::size().
Referenced by SwTable::GetTabCols(), and lcl_ProcessBoxGet().
|
static |
Definition at line 780 of file swtable.cxx.
References SwTableLines::empty(), SwTableBox::GetTabLines(), i, lcl_ProcessBoxPtr(), and SwTableLines::size().
Referenced by lcl_ProcessBoxPtr(), and SwTable::SetTabCols().
|
static |
Definition at line 628 of file swtable.cxx.
References Parm::aShareFormats, SwTableLines::back(), COLFUZZY, SwTabCols::Count(), SwTableLines::empty(), SwTableLine::GetBoxPos(), SwTableBox::GetFrameFormat(), SwFormat::GetFrameSize(), SwTabCols::GetLeft(), SwTabCols::GetRight(), SwTableBox::getRowSpan(), SwTableLine::GetTabBoxes(), SwTableBox::GetTabLines(), SwTableLine::GetUpper(), SwTableBox::GetUpper(), SvxSizeItem::GetWidth(), i, lcl_ProcessLine(), Parm::nNewWish, Parm::nOldWish, nPos, Parm::rNew, Parm::rOld, SwShareBoxFormats::SetSize(), SvxSizeItem::SetWidth(), and SwTableLines::size().
Referenced by lcl_ProcessLine(), and SwTable::SetTabCols().
|
static |
Definition at line 618 of file swtable.cxx.
References SwTableLine::GetTabBoxes(), i, and lcl_ProcessBoxSet().
Referenced by lcl_ProcessBoxSet(), and SwTable::SetTabCols().
|
static |
Definition at line 504 of file swtable.cxx.
References SwTableBox::GetSttNd(), SwTableLine::GetTabBoxes(), SwTableBox::GetTabLines(), i, lcl_ProcessLineGet(), lcl_SortedTabColInsert(), and size.
Referenced by SwTable::GetTabCols(), and lcl_ProcessLineGet().
|
static |
Definition at line 366 of file swtable.cxx.
References abs(), COLFUZZY, SwTabCols::Count(), i, nPos, and SwTabCols::SetHidden().
Referenced by lcl_SortedTabColInsert().
|
static |
Definition at line 378 of file swtable.cxx.
References COLFUZZY, SwTabCols::Count(), SwTabCols::GetEntry(), SwFormat::GetFrameSize(), SwTabCols::GetLeft(), SwTabCols::GetRight(), SwTableLine::GetTabBoxes(), SwTableLine::GetUpper(), SwTableBox::GetUpper(), SvxSizeItem::GetWidth(), i, SwTabCols::Insert(), lcl_RefreshHidden(), SwTabColsEntry::nMax, SwTabColsEntry::nMin, and nPos.
Referenced by SwTable::GetTabCols(), lcl_ProcessBoxGet(), and lcl_ProcessLineGet().
|
static |
Definition at line 97 of file swtable.cxx.
Referenced by SwTableBoxFormat::BoxAttributeChanged(), and SwTableBox::HasNumContent().
| void sw_GetTableBoxColStr | ( | sal_uInt16 | nCol, |
| OUString & | rNm | ||
| ) |
Definition at line 2146 of file swtable.cxx.
Referenced by SwXMLExport::ExportTableLinesAutoStyles(), SwTableBox::GetName(), lcl_xmltble_appendBoxPrefix(), and sw_GetCellName().