LibreOffice Module sw (master) 1
|
SwTable is one table in the document model, containing rows (which contain cells). More...
#include <swtable.hxx>
Public Types | |
enum | SearchType { SEARCH_NONE , SEARCH_ROW , SEARCH_COL } |
Public Member Functions | |
SwTable () | |
virtual | ~SwTable () override |
SwTable (const SwTable &rTable) | |
virtual const SwTable * | DynCastTable () const override |
SwHTMLTableLayout * | GetHTMLTableLayout () |
const SwHTMLTableLayout * | GetHTMLTableLayout () const |
void | SetHTMLTableLayout (std::shared_ptr< SwHTMLTableLayout > const &r) |
sal_uInt16 | IncGrfsThatResize () |
sal_uInt16 | DecGrfsThatResize () |
void | LockModify () |
void | UnlockModify () |
void | SetTableModel (bool bNew) |
bool | IsNewModel () const |
const OUString & | GetTableStyleName () const |
Return the table style name of this table. More... | |
void | SetTableStyleName (const OUString &rName) |
Set the new table style name for this table. More... | |
sal_uInt16 | GetRowsToRepeat () const |
void | SetRowsToRepeat (sal_uInt16 nNumOfRows) |
bool | IsHeadline (const SwTableLine &rLine) const |
SwTableLines & | GetTabLines () |
const SwTableLines & | GetTabLines () const |
SwTableFormat * | GetFrameFormat () |
SwTableFormat * | GetFrameFormat () const |
void | GetTabCols (SwTabCols &rToFill, const SwTableBox *pStart, bool bHidden=false, bool bCurRowOnly=false) const |
void | SetTabCols (const SwTabCols &rNew, const SwTabCols &rOld, const SwTableBox *pStart, bool bCurRowOnly) |
void | CreateSelection (const SwPaM &rPam, SwSelBoxes &rBoxes, const SearchType eSearchType, bool bProtect) const |
void SwTable::CreateSelection(..) fills the selection structure with table cells for a given SwPaM, ie. More... | |
void | CreateSelection (const SwNode *pStart, const SwNode *pEnd, SwSelBoxes &rBoxes, const SearchType eSearchType, bool bProtect) const |
void SwTable::CreateSelection(..) fills the selection structure with table cells for given start and end nodes inside a table More... | |
void | ExpandSelection (SwSelBoxes &rBoxes) const |
SwTable::ExpandSelection(..) adds all boxes to the box selections which are overlapped by it. More... | |
std::unique_ptr< SwSaveRowSpan > | CleanUpTopRowSpan (sal_uInt16 nSplitLine) |
void | RestoreRowSpan (const SwSaveRowSpan &) |
void | CleanUpBottomRowSpan (sal_uInt16 nDelLines) |
bool | Merge (SwDoc *pDoc, const SwSelBoxes &rBoxes, const SwSelBoxes &rMerged, SwTableBox *pMergeBox, SwUndoTableMerge *pUndo) |
bool | SplitRow (SwDoc &rDoc, const SwSelBoxes &rBoxes, sal_uInt16 nCnt, bool bSameHeight) |
bool | PrepareMerge (const SwPaM &rPam, SwSelBoxes &rBoxes, SwSelBoxes &rMerged, SwTableBox **ppMergeBox, SwUndoTableMerge *pUndo) |
SwTable::PrepareMerge(..) some preparation for the coming Merge(..) More... | |
void | ExpandColumnSelection (SwSelBoxes &rBoxes, tools::Long &rMin, tools::Long &rMax) const |
void SwTable::ExpandColumnSelection(..) adds cell to the give selection to assure that at least one cell of every row is part of the selection. More... | |
void | PrepareDeleteCol (tools::Long nMin, tools::Long nMax) |
SwTable::PrepareDeleteCol(..) adjusts the widths of the neighbour cells of a cell selection for an upcoming (column) deletion. More... | |
bool | InsertCol (SwDoc &, const SwSelBoxes &rBoxes, sal_uInt16 nCnt, bool bBehind) |
bool | InsertRow (SwDoc *, const SwSelBoxes &rBoxes, sal_uInt16 nCnt, bool bBehind) |
SwTable::InsertRow(..) inserts one or more rows before or behind the selected boxes. More... | |
void | PrepareDelBoxes (const SwSelBoxes &rBoxes) |
SwTable::PrepareDelBoxes(..) adjusts the row span attributes for an upcoming deletion of table cells and invalidates the layout of these cells. More... | |
bool | DeleteSel (SwDoc *, const SwSelBoxes &rBoxes, const SwSelBoxes *pMerged, SwUndo *pUndo, const bool bDelMakeFrames, const bool bCorrBorder) |
bool | SplitCol (SwDoc &rDoc, const SwSelBoxes &rBoxes, sal_uInt16 nCnt) |
void | FindSuperfluousRows (SwSelBoxes &rBoxes) |
void | CheckRowSpan (SwTableLine *&rpLine, bool bUp) const |
SwTable::CheckRowSpan(..) looks for the next line without an overlapping to the previous line. More... | |
SwTableSortBoxes & | GetTabSortBoxes () |
const SwTableSortBoxes & | GetTabSortBoxes () const |
const SwTableBox * | GetTableBox (const OUString &rName, const bool bPerformValidCheck=false) const |
bool | MakeCopy (SwDoc &, const SwPosition &, const SwSelBoxes &, bool bCpyName=false, const OUString &rStyleName="") const |
bool | InsTable (const SwTable &rCpyTable, const SwNodeIndex &, SwUndoTableCpyTable *pUndo) |
Copy Table into this Box. More... | |
bool | InsTable (const SwTable &rCpyTable, const SwSelBoxes &, SwUndoTableCpyTable *pUndo) |
bool | InsNewTable (const SwTable &rCpyTable, const SwSelBoxes &, SwUndoTableCpyTable *pUndo) |
void | CopyHeadlineIntoTable (SwTableNode &rTableNd) |
SwTableBox * | GetTableBox (SwNodeOffset nSttIdx) |
const SwTableBox * | GetTableBox (SwNodeOffset nSttIdx) const |
bool | IsTableComplex () const |
bool | IsTableComplexForChart (std::u16string_view aSel) const |
virtual bool | GetInfo (SfxPoolItem &) const override |
void | GCLines () |
SwTableNode * | GetTableNode () const |
void | SetTableNode (SwTableNode *pNode) |
void | SetRefObject (SwServerObject *) |
const SwServerObject * | GetObject () const |
SwServerObject * | GetObject () |
void | UpdateCharts () const |
TableChgMode | GetTableChgMode () const |
void | SetTableChgMode (TableChgMode eMode) |
bool | SetColWidth (SwTableBox &rCurrentBox, TableChgWidthHeightType eType, SwTwips nAbsDiff, SwTwips nRelDiff, std::unique_ptr< SwUndo > *ppUndo) |
bool | SetRowHeight (SwTableBox &rCurrentBox, TableChgWidthHeightType eType, SwTwips nAbsDiff, SwTwips nRelDiff, std::unique_ptr< SwUndo > *ppUndo) |
void | RegisterToFormat (SwFormat &rFormat) |
void | CheckConsistency () const |
bool | HasLayout () const |
bool | CanConvertSubtables () const |
void | ConvertSubtables () |
bool | IsDeleted () const |
bool | HasDeletedRow () const |
bool | IsEmpty () const |
![]() | |
SwClient () | |
SwClient (SwClient &&) noexcept | |
virtual | ~SwClient () override |
std::optional< sw::ModifyChangedHint > | CheckRegistration (const SfxPoolItem *pOldValue) |
void | CheckRegistrationFormat (SwFormat &rOld) |
const SwModify * | GetRegisteredIn () const |
SwModify * | GetRegisteredIn () |
void | EndListeningAll () |
void | StartListeningToSameModifyAs (const SwClient &) |
virtual bool | GetInfo (SfxPoolItem &) const |
![]() | |
bool | IsLast () const |
virtual const SwCellFrame * | DynCastCellFrame () const |
virtual const SwTabFrame * | DynCastTabFrame () const |
virtual const SwRowFrame * | DynCastRowFrame () const |
virtual const SwTable * | DynCastTable () const |
Static Public Member Functions | |
static sal_uInt16 | GetBoxNum (OUString &rStr, bool bFirst=false, const bool bPerformValidCheck=false) |
static SwSelBoxes & | SelLineFromBox (const SwTableBox *pBox, SwSelBoxes &rBoxes, bool bToTop=true) |
static SwTable * | FindTable (SwFrameFormat const *const pFormat) |
Protected Member Functions | |
virtual void | SwClientNotify (const SwModify &, const SfxHint &) override |
![]() | |
SwClient (SwModify *pToRegisterIn) | |
SwModify * | GetRegisteredInNonConst () const |
virtual void | SwClientNotify (const SwModify &, const SfxHint &rHint) override |
![]() | |
WriterListener () | |
virtual | ~WriterListener () COVERITY_NOEXCEPT_FALSE |
virtual void | SwClientNotify (const SwModify &, const SfxHint &rHint)=0 |
Protected Attributes | |
SwTableLines | m_aLines |
SwTableSortBoxes | m_TabSortContentBoxes |
tools::SvRef< SwServerObject > | m_xRefObj |
std::shared_ptr< SwHTMLTableLayout > | m_xHTMLLayout |
SwTableNode * | m_pTableNode |
TableChgMode | m_eTableChgMode |
sal_uInt16 | m_nGraphicsThatResize |
sal_uInt16 | m_nRowsToRepeat |
OUString | maTableStyleName |
Name of the table style to be applied on this table. More... | |
bool | m_bModifyLocked:1 |
bool | m_bNewModel:1 |
Private Member Functions | |
SwTable & | operator= (const SwTable &)=delete |
bool | OldMerge (SwDoc *, const SwSelBoxes &, SwTableBox *, SwUndoTableMerge *) |
bool | OldSplitRow (SwDoc &, const SwSelBoxes &, sal_uInt16, bool) |
bool | NewMerge (SwDoc *, const SwSelBoxes &, const SwSelBoxes &rMerged, SwUndoTableMerge *) |
NewMerge(..) removes the superfluous cells after cell merge. More... | |
bool | NewSplitRow (SwDoc &, const SwSelBoxes &, sal_uInt16, bool) |
SwTable::NewSplitRow(..) splits all selected boxes horizontally. More... | |
std::optional< SwBoxSelection > | CollectBoxSelection (const SwPaM &rPam) const |
CollectBoxSelection(..) create a rectangulare selection based on the given SwPaM and prepares the selected cells for merging. More... | |
void | InsertSpannedRow (SwDoc &rDoc, sal_uInt16 nIdx, sal_uInt16 nCnt) |
SwTable::InsertSpannedRow(..) inserts "superfluous" rows, i.e. More... | |
bool | InsertRow_ (SwDoc *, const SwSelBoxes &, sal_uInt16 nCnt, bool bBehind) |
bool | NewInsertCol (SwDoc &, const SwSelBoxes &rBoxes, sal_uInt16 nCnt, bool) |
SwTable::NewInsertCol(..) insert new column(s) into a table. More... | |
void | FindSuperfluousRows_ (SwSelBoxes &rBoxes, SwTableLine *, SwTableLine *) |
SwTable::FindSuperfluousRows_(..) is looking for superfluous rows, i.e. More... | |
void | AdjustWidths (const tools::Long nOld, const tools::Long nNew) |
void | NewSetTabCols (Parm &rP, const SwTabCols &rNew, const SwTabCols &rOld, const SwTableBox *pStart, bool bCurRowOnly) |
void | ConvertSubtableBox (sal_uInt16 const nRow, sal_uInt16 const nBox) |
This is kind of similar to InsertSpannedRow()/InsertRow() but that one would recursively copy subtables, which would kind of defeat the purpose; this function directly moves the subtable rows's cells into the newly created rows. More... | |
SwTable is one table in the document model, containing rows (which contain cells).
Definition at line 112 of file swtable.hxx.
enum SwTable::SearchType |
Enumerator | |
---|---|
SEARCH_NONE | |
SEARCH_ROW | |
SEARCH_COL |
Definition at line 144 of file swtable.hxx.
|
explicit |
Definition at line 183 of file swtable.cxx.
References GetTableChgDefaultMode(), and m_eTableChgMode.
Referenced by SwDDETable::NoDDETable().
|
overridevirtual |
Definition at line 215 of file swtable.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::clear(), DelBoxNode(), SwDoc::DelTableFrameFormat(), tools::SvRef< typename T >::get(), SwFormat::GetDoc(), GetFrameFormat(), SwDoc::getIDocumentLinksAdministration(), IDocumentLinksAdministration::GetLinkManager(), tools::SvRef< typename T >::is(), SwDoc::IsInDtor(), m_TabSortContentBoxes, m_xRefObj, and sfx2::LinkManager::RemoveServer().
SwTable::SwTable | ( | const SwTable & | rTable | ) |
Definition at line 195 of file swtable.cxx.
|
private |
Definition at line 355 of file swtable.cxx.
References lcl_ModifyLines(), m_aLines, and size.
Referenced by NewInsertCol(), and SwClientNotify().
bool SwTable::CanConvertSubtables | ( | ) | const |
Definition at line 2286 of file swnewtable.cxx.
References SwNodeIndex::Assign(), Fixed, SwFieldType::GatherFields(), SwDoc::GetAttrPool(), SwOLENode::GetChartTableName(), SwNodes::GetEndOfAutotext(), IDocumentFieldsAccess::GetFieldType(), GetFrameFormat(), SwDoc::getIDocumentFieldsAccess(), SfxItemPool::GetItemCount2(), SwFormat::GetItemIfSet(), GetName(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), SwNode::GetOLENode(), SwNode::GetStartNode(), GetTabLines(), SwFormat::makeBackgroundBrushItem(), RES_BOXATR_FORMULA(), RES_FRM_SIZE(), SwNode::StartOfSectionNode(), Table, tableName, and Variable.
void SwTable::CheckConsistency | ( | ) | const |
Definition at line 2433 of file swnewtable.cxx.
References abs(), GetFrameFormat(), SwTableBox::GetFrameFormat(), SwFormat::GetFrameSize(), SwTableBox::getRowSpan(), SwTableLine::GetTabBoxes(), GetTableNode(), GetTabLines(), SvxSizeItem::GetWidth(), index, IsNewModel(), nLineWidth, nTabSize, SAL_WARN_IF, and SwTableLines::size().
void SwTable::CheckRowSpan | ( | SwTableLine *& | rpLine, |
bool | bUp | ||
) | const |
SwTable::CheckRowSpan(..) looks for the next line without an overlapping to the previous line.
Definition at line 1934 of file swnewtable.cxx.
References SwTableLines::GetPos(), SwTableBox::getRowSpan(), SwTableLine::GetTabBoxes(), GetTabLines(), IsNewModel(), size, and SwTableLines::size().
Referenced by FndBox_::DelFrames().
void SwTable::CleanUpBottomRowSpan | ( | sal_uInt16 | nDelLines | ) |
Definition at line 2086 of file swnewtable.cxx.
References SwTableBox::getRowSpan(), SwTableLine::GetTabBoxes(), GetTabLines(), IsNewModel(), lcl_ChangeRowSpan(), and SwTableLines::size().
Referenced by SwNodes::SplitTable().
std::unique_ptr< SwSaveRowSpan > SwTable::CleanUpTopRowSpan | ( | sal_uInt16 | nSplitLine | ) |
Definition at line 2076 of file swnewtable.cxx.
References GetTabLines(), and IsNewModel().
Referenced by SwDoc::SplitTable().
|
private |
CollectBoxSelection(..) create a rectangulare selection based on the given SwPaM and prepares the selected cells for merging.
Definition at line 329 of file swnewtable.cxx.
References SwTableLines::empty(), SwPaM::End(), SwTableBox::FindStartOfRowSpan(), SwNode::FindTableBoxStartNode(), SwTableBox::GetFrameFormat(), SwFormat::GetFrameSize(), SwPosition::GetNode(), SwTableLines::GetPos(), SwTableBox::getRowSpan(), SwTableBox::GetSttNd(), SwTableLine::GetTabBoxes(), GetTabLines(), SwTableBox::GetUpper(), SvxSizeItem::GetWidth(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), lcl_CheckMinMax(), m_aLines, m_bNewModel, nCount, SwFormat::SetFormatAttr(), SwTableLines::size(), SwPaM::Start(), and Variable.
Referenced by PrepareMerge().
|
private |
This is kind of similar to InsertSpannedRow()/InsertRow() but that one would recursively copy subtables, which would kind of defeat the purpose; this function directly moves the subtable rows's cells into the newly created rows.
For the non-subtable boxes, covered-cells are created.
Outer row heights are adjusted to match the inner row heights, and the last row's height is tweaked to ensure the sum of the heights is at least the original outer row's minimal height.
Inner row backgrounds are copied to its cells, if they lack a background.
This currently can't handle more than 1 subtable in a row; the inner rows of all subtables would need to be sorted by their height to create the correct outer row structure, which is tricky and probably requires a layout for the typical variable-height case.
Definition at line 2128 of file swnewtable.cxx.
References begin, SwTableLine::ClaimFrameFormat(), SwTableBox::ClaimFrameFormat(), SwNodes::Delete(), DeleteBox_(), SwTableLines::empty(), SwNode::EndOfSectionNode(), SwDoc::GetDfltTextFormatColl(), GetFrameFormat(), SwTableLine::GetFrameFormat(), SwTableBox::GetFrameFormat(), SwFormat::GetFrameSize(), SvxSizeItem::GetHeight(), SwFormatFrameSize::GetHeightSizeType(), SwDoc::getIDocumentContentOperations(), SwFormat::GetItemIfSet(), SwFormat::GetItemState(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), SwTableBox::getRowSpan(), SwTableBox::GetSttNd(), SwTableLine::GetTabBoxes(), GetTableNode(), GetTabLines(), SwTableBox::GetTabLines(), SwFormatFrameSize::GetWidthPercent(), i, SwTableLines::insert(), InsTableBox(), lcl_ChangeRowSpan(), SwNodes::MakeTextNode(), Minimum, IDocumentContentOperations::MoveNodeRange(), SwNodes::MoveNodes(), NO_DELFRMS, REDLINES, RES_BACKGROUND(), RES_FRM_SIZE(), SwFormat::ResetFormatAttr(), SwFormat::SetFormatAttr(), SvxSizeItem::SetHeight(), SwFormatFrameSize::SetHeightSizeType(), SwTableBox::setRowSpan(), size, SwTableLines::size(), and Variable.
Referenced by ConvertSubtables().
void SwTable::ConvertSubtables | ( | ) |
Definition at line 2386 of file swnewtable.cxx.
References IDocumentMarkAccess::assureSortedMarkContainers(), CHECK_TABLE, ConvertSubtableBox(), FndBox_::DelFrames(), SwTableLines::empty(), GCLines(), SwDoc::GetFootnoteIdxs(), GetFrameFormat(), SwDoc::getIDocumentMarkAccess(), SwDoc::getIDocumentRedlineAccess(), IDocumentRedlineAccess::GetRedlineTable(), SwTableLine::GetTabBoxes(), GetTabLines(), SwTableBox::GetTabLines(), i, m_bNewModel, FndBox_::MakeFrames(), SwRedlineTable::Resort(), size, SwTableLines::size(), and SwFootnoteIdxs::UpdateAllFootnote().
void SwTable::CopyHeadlineIntoTable | ( | SwTableNode & | rTableNd | ) |
Definition at line 2014 of file tblrwcl.cxx.
References ForEach_FndLineCopyCol(), SwFormat::GetDoc(), GetFrameFormat(), SwFormat::GetFrameSize(), SwDoc::getIDocumentFieldsAccess(), SwNode::GetIndex(), FndBox_::GetLines(), SwTableBox::GetSttNd(), SwTableLine::GetTabBoxes(), SwTableNode::GetTable(), GetTableBox(), GetTabLines(), GetTabSortBoxes(), SvxSizeItem::GetWidth(), IsNewModel(), lcl_CalcNewWidths(), lcl_CopyLineToDoc(), SwTableFormulaUpdate::m_eFlags, SelLineFromBox(), SwNode::StartOfSectionNode(), TBL_RELBOXNAME, and IDocumentFieldsAccess::UpdateTableFields().
Referenced by SwDoc::SplitTable().
void SwTable::CreateSelection | ( | const SwNode * | pStart, |
const SwNode * | pEnd, | ||
SwSelBoxes & | rBoxes, | ||
const SearchType | eSearchType, | ||
bool | bProtect | ||
) | const |
void SwTable::CreateSelection(..) fills the selection structure with table cells for given start and end nodes inside a table
Definition at line 1688 of file swnewtable.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::clear(), SwTableBox::GetFrameFormat(), SwFormat::GetProtect(), SwTableBox::getRowSpan(), SwTableBox::GetSttNd(), SwTableLine::GetTabBoxes(), i, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), SvxProtectItem::IsContentProtected(), lcl_CheckMinMax(), lcl_SearchSelBox(), m_aLines, min(), nCount, SEARCH_COL, SEARCH_ROW, and SwTableLines::size().
void SwTable::CreateSelection | ( | const SwPaM & | rPam, |
SwSelBoxes & | rBoxes, | ||
const SearchType | eSearch, | ||
bool | bChkProtected | ||
) | const |
void SwTable::CreateSelection(..) fills the selection structure with table cells for a given SwPaM, ie.
start and end position inside a table
Definition at line 1672 of file swnewtable.cxx.
References CreateSelection(), SwTableLines::empty(), SwNode::FindTableBoxStartNode(), SwPaM::GetMark(), SwPosition::GetNode(), SwPaM::GetPoint(), m_aLines, and m_bNewModel.
Referenced by CreateSelection(), GetTableSel(), SwTableCursor::NewTableSelection(), and SwCursorShell::SelTableRowOrCol().
|
inline |
Definition at line 185 of file swtable.hxx.
Referenced by SetGrfFlySize().
bool SwTable::DeleteSel | ( | SwDoc * | pDoc, |
const SwSelBoxes & | rBoxes, | ||
const SwSelBoxes * | pMerged, | ||
SwUndo * | pUndo, | ||
const bool | bDelMakeFrames, | ||
const bool | bCorrBorder | ||
) |
Definition at line 948 of file tblrwcl.cxx.
References FndBox_::AreLinesToRestore(), CHECK_TABLE, CHECKTABLELAYOUT, SwChartDataProvider::DeleteBox(), DeleteBox_(), FndBox_::DelFrames(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::empty(), GCLines(), IDocumentChartDataProviderAccess::GetChartDataProvider(), GetFrameFormat(), SwDoc::getIDocumentChartDataProviderAccess(), GetName(), SwTableNode::GetTable(), lcl_SaveUpperLowerBorder(), FndBox_::MakeFrames(), n, PrepareDelBoxes(), SetHTMLTableLayout(), FndBox_::SetTableLines(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size(), and SwDoc::UpdateCharts().
Referenced by SwDoc::DeleteRowCol(), NewMerge(), OldMerge(), SwUndoTableNdsChg::RedoImpl(), and SwUndoSplitTable::UndoImpl().
|
inlineoverridevirtual |
Reimplemented from sw::WriterListener.
Definition at line 158 of file swtable.hxx.
void SwTable::ExpandColumnSelection | ( | SwSelBoxes & | rBoxes, |
tools::Long & | rMin, | ||
tools::Long & | rMax | ||
) | const |
void SwTable::ExpandColumnSelection(..) adds cell to the give selection to assure that at least one cell of every row is part of the selection.
Definition at line 1819 of file swnewtable.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::empty(), SwTableLines::empty(), SwTableBox::GetFrameFormat(), SwFormat::GetFrameSize(), SwTableLine::GetTabBoxes(), SvxSizeItem::GetWidth(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), lcl_CheckMinMax(), m_aLines, m_bNewModel, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size(), and SwTableLines::size().
Referenced by SwDoc::DeleteRowCol().
void SwTable::ExpandSelection | ( | SwSelBoxes & | rBoxes | ) | const |
SwTable::ExpandSelection(..) adds all boxes to the box selections which are overlapped by it.
Definition at line 1915 of file swnewtable.cxx.
References SwTableBox::FindStartOfRowSpan(), SwTableBox::getRowSpan(), i, lcl_getAllMergedBoxes(), and o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size().
Referenced by SplitCol().
|
inline |
Definition at line 261 of file swtable.hxx.
Referenced by SwDoc::DeleteRowCol().
|
private |
SwTable::FindSuperfluousRows_(..) is looking for superfluous rows, i.e.
rows containing overlapped cells only.
Definition at line 987 of file swnewtable.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::back(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::empty(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::end(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::find(), SwTableLines::GetPos(), SwTableBox::getRowSpan(), SwTableLine::GetTabBoxes(), GetTabLines(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), and m_aLines.
Referenced by PrepareMerge().
|
static |
Definition at line 2135 of file swtable.cxx.
References SwIterator< TElementType, TSource, eMode >::First().
Referenced by MSWordExportBase::AddLinkTarget(), SwXTextTable::autoFormat(), SwContentTree::BringEntryToAttention(), SwDoc::ChgTableStyle(), SwChartDataProvider::convertRangeToXML(), SwXText::convertToTable(), SwXTextTable::createCursorByCellName(), SwXCell::CreateXCell(), SwChartDataSequence::DeleteBox(), SwDoc::DelTableStyle(), SwChartDataSequence::dispose(), SwXTextTable::dispose(), SwDoc::DoUpdateAllCharts(), SwXMLTextParagraphExport::exportTable(), SwChartDataSequence::ExtendTo(), SwContentType::FillMemberList(), SwChartDataSequence::FillRangeDesc(), SwTableFormula::FindTable(), SwChartDataSequence::generateLabel(), SwXTableRows::getByIndex(), SwXTextTable::getCellByName(), SwXTextTable::getCellNames(), SwXTextTable::getCellRangeByName(), SwXTextTable::getCellRangeByPosition(), SwXCellRange::getCellRangeByPosition(), GetCellRangeName(), SwChartDataSequence::GetCells(), SwXTextTable::Impl::GetColumnCount(), SwXTableRows::getCount(), SwXTableColumns::getCount(), GetFormatAndCreateCursorFromRangeRep(), SwXCell::getFormula(), SwXCell::getPropertyValue(), SwXTextTableRow::getPropertyValue(), SwXTextTable::getPropertyValue(), SwXTextTableCursor::getRangeName(), SwXTextTable::Impl::GetRowCount(), SwUnoCursorHelper::GetSelectableFromAny(), SwVbaTableHelper::GetSwTable(), GetTableByName(), SwXTextRange::getText(), SwCursor::GotoTable(), SwDoc::HasTableAnyProtection(), SwChartDataProvider::Impl_createDataSource(), SwXTableRows::insertByIndex(), SwXTableColumns::insertByIndex(), SwXText::insertTextContentAfter(), SwXText::insertTextContentBefore(), SwXTextTableStyle::isInUse(), SwDoc::IsUsed(), SwXCell::IsValid(), lcl_CreateXCell(), lcl_GetSpecialProperty(), lcl_SetSpecialProperty(), SwXTableRows::removeByIndex(), SwXTableColumns::removeByIndex(), SwXText::removeTextContentAfter(), SwXText::removeTextContentBefore(), SwXCell::setFormula(), SwXTextTable::setName(), SwXTextTableRow::setPropertyValue(), SwXTextTable::setPropertyValue(), SwDoc::SetTableName(), SwXTextTable::sort(), SwChartDataSequence::SwChartDataSequence(), SwXTextRange::SwXTextRange(), SwDoc::UnProtectCells(), SwDoc::UnProtectTables(), SwDoc::UpdateCharts(), and SwTOXBaseSection::UpdateTable().
void SwTable::GCLines | ( | ) |
Definition at line 452 of file gctable.cxx.
References GetTabLines(), lcl_MergeGCLine(), n, and SwTableLines::size().
Referenced by ConvertSubtables(), DeleteSel(), InsertCnt_(), InsertCol(), InsertRow_(), MakeCopy(), OldMerge(), and OldSplitRow().
|
static |
Definition at line 1280 of file swtable.cxx.
References lcl_IsValidRowName(), nPos, SAL_MAX_UINT16, and o3tl::toInt32().
Referenced by GetTableBox(), lcl_BoxNmToRel(), and lcl_RelToBox().
|
inline |
Definition at line 207 of file swtable.hxx.
References SwClient::GetRegisteredIn().
Referenced by SwDoc::AdjustCellWidth(), WW8TabDesc::AdjustNewBand(), SwDoc::AppendDoc(), FndBox_::AreLinesToRestore(), SwXTextTable::attach(), SwHTMLParser::BuildTableCell(), CalculateFlySize(), CanConvertSubtables(), SwDDETable::ChangeContent(), checkAndWriteFloatingTables(), CheckConsistency(), CheckTable(), ConvertSubtableBox(), ConvertSubtables(), SwXText::convertToTable(), CopyHeadlineIntoTable(), SwEditShell::CopySelToDoc(), sw::DocumentChartDataProviderManager::CreateChartInternalDataProviders(), SaveTable::CreateNew(), sw::CreateParentXText(), WW8TabDesc::CreateSwTable(), sw::util::InsertedTablesManager::DelAndMakeTableFrames(), SwChartDataProvider::DeleteBox(), DeleteBox_(), SwDoc::DeleteRowCol(), DeleteSel(), sw::DocumentContentOperationsManager::DelFullPara(), SwChartDataProvider::DisposeAllDataSequences(), RtfExport::ExportDocument_Impl(), SwXMLExport::ExportTable(), SwXMLExport::ExportTableAutoStyles(), SwViewShell::FillPrtDoc(), SwHTMLTableLayout::GetBrowseWidthByTable(), SwUnoCursorHelper::getCursorPropertyValue(), ww8::WW8TableNodeInfoInner::getGridColsOfRow(), GetInfo(), SwXRedline::getPropertyValue(), SwXTextTableCursor::getPropertyValue(), GetTabCols(), GetTableBox(), SwEditShell::GetTableFormat(), SwXMLTableInfo_Impl::GetTableFormat(), AttributeOutputBase::GetTablePageSize(), SwTOXTable::GetText_Impl(), GiveNodePageDesc(), HasDeletedRow(), HasLayout(), sw::util::HasPageBreak(), SwRootFrame::Init(), RtfAttributeOutput::InitTableHelper(), DocxAttributeOutput::InitTableHelper(), InsertCol(), SwUndoTableCpyTable::InsertRow(), InsertRow_(), SwXMLTableContext::InsertTableSection(), InsNewTable(), InsTable(), SwAccessibleMap::InvalidateShapeInParaSelection(), SwChartDataProvider::InvalidateTable(), IsDeleted(), lcl_ChgTableSize(), lcl_CpyBox(), lcl_InsertLabel(), MakeCopy(), FndBox_::MakeFrames(), SwHTMLWriter::MakeHeader(), FndBox_::MakeNewFrames(), SwXMLTableContext::MakeTable(), HTMLTable::MakeTable(), SwNodes::MergeTable(), UnfloatTableButton::MouseButtonDown(), SwNodes::MoveNodes(), SwWW8ImplReader::MoveOutsideFly(), SwHTMLParser::MovePageDescAttrs(), MSWordSections::MSWordSections(), NewInsertCol(), SwDDETable::NoDDETable(), SwHTMLWriter::OutCSS1_FrameFormatBackground(), OutHTML_SwTableNode(), MSWordExportBase::OutputTextNode(), SwTransferable::Paste(), PrepareDeleteCol(), PrepareMerge(), SwUndoDelete::RedoImpl(), SwUndoInsertLabel::RedoImpl(), SwUndoInsTable::RedoImpl(), SwUndoTextToTable::RedoImpl(), SaveTable::RestoreAttr(), SaveTable::SaveTable(), SwTableFormula::ScanString(), DocxAttributeOutput::SectionBreaks(), RtfAttributeOutput::SectionBreaks(), MSWordExportBase::SectionProperties(), SetColWidth(), SwXTextTable::setName(), SwXTextTableCursor::setPropertyValue(), SwDoc::SetRowsToRepeat(), WW8TabDesc::SetSizePosition(), SwDoc::SetTabCols(), SetTabCols(), SwTableCellInfo::Impl::setTable(), SwDoc::SortTable(), SwTableFormula::SplitMergeBoxNm_(), sw::DocumentContentOperationsManager::SplitNode(), SwDoc::SplitTable(), SwNodes::SplitTable(), SwNode2LayImpl::SwNode2LayImpl(), SwUndoMergeTable::SwUndoMergeTable(), SwUndoTableToText::SwUndoTableToText(), WW8AttributeOutput::TableBackgrounds(), DocxAttributeOutput::TableBackgrounds(), RtfAttributeOutput::TableBackgrounds(), WW8AttributeOutput::TableBidi(), DocxAttributeOutput::TableBidi(), RtfAttributeOutput::TableBidi(), WW8AttributeOutput::TableDefinition(), DocxAttributeOutput::TableDefinition(), RtfAttributeOutput::TableDefinition(), RtfAttributeOutput::TableOrientation(), WW8AttributeOutput::TableOrientation(), WW8AttributeOutput::TableSpacing(), SwUndoDelete::UndoImpl(), SwUndoInsertLabel::UndoImpl(), SwUndoSplitNode::UndoImpl(), SwUndoInsTable::UndoImpl(), SwUndoTextToTable::UndoImpl(), SwUndoTableNdsChg::UndoImpl(), SwUndoTableMerge::UndoImpl(), SwUndoCpyTable::UndoImpl(), SwUndoMergeTable::UndoImpl(), UpdateCharts(), SwDoc::UpdateCharts_(), SwDDETable::~SwDDETable(), ~SwTable(), and SwTableNode::~SwTableNode().
|
inline |
Definition at line 208 of file swtable.hxx.
References SwClient::GetRegisteredIn().
|
inline |
Definition at line 180 of file swtable.hxx.
Referenced by SwHTMLTableLayout::AutoLayoutPass1(), SwContentFrame::GrowFrame(), RtfAttributeOutput::InitTableHelper(), DocxAttributeOutput::InitTableHelper(), SwHTMLParser::InsertTableSection(), lcl_MinMaxNode(), SwTabFrame::MakeAll(), OutHTML_SwTableNode(), SwDoc::SetBoxAttr(), SetGrfFlySize(), SwDoc::SetTabBorders(), SwDoc::SetTabLineStyle(), and SwContentFrame::ShrinkFrame().
|
inline |
Definition at line 181 of file swtable.hxx.
|
overridevirtual |
Reimplemented from SwClient.
Definition at line 2101 of file swtable.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::empty(), First, SwFormat::GetDoc(), GetFrameFormat(), SwDoc::GetNodes(), SwNode::GetNodes(), GetTableNode(), SwNodes::GoNext(), m_TabSortContentBoxes, SwAutoFormatGetDocNode::pNodes, pObject, RES_AUTOFMT_DOCNODE(), RES_CONTENT_VISIBLE(), RES_FINDNEARESTNODE(), RES_PAGEDESC(), and SfxPoolItem::Which().
|
inline |
Definition at line 331 of file swtable.hxx.
References tools::SvRef< typename T >::get().
|
inline |
Definition at line 330 of file swtable.hxx.
References tools::SvRef< typename T >::get().
Referenced by sw::DocumentLinksAdministrationManager::CreateLinkSource().
|
inline |
Definition at line 199 of file swtable.hxx.
Referenced by FndBox_::AreLinesToRestore(), SwRootFrame::CalcFrameRects(), SwTabFrame::CalcHeightOfFirstContentLine(), SwXMLExport::ExportTable(), GetBodyTextNode(), SwTableFormula::GetBoxes(), SwTabFrame::GetFirstNonHeadlineRow(), SwFEShell::GetRowsToRepeat(), IsHeadline(), SwRowFrame::IsRowSplitAllowed(), lcl_GetCellFrameForBorderAttrs(), lcl_GetSpecialProperty(), lcl_IsFirstRowInFollowTableWithoutRepeatedHeadlines(), lcl_UpdateRepeatedHeadlines(), SwTabFrame::MakeAll(), MakeCopy(), FndBox_::MakeFrames(), FndBox_::MakeNewFrames(), SwNodes::MergeTable(), OutHTML_SwTableNode(), SwFEShell::SetRowsToRepeat(), SwDoc::SetRowsToRepeat(), SwDoc::SortTable(), SwTabFrame::Split(), DocxAttributeOutput::StartTableRow(), WW8AttributeOutput::TableDefinition(), SwTabFrame::UpdateAttr_(), and SwCursorShell::UpdateCursor().
void SwTable::GetTabCols | ( | SwTabCols & | rToFill, |
const SwTableBox * | pStart, | ||
bool | bHidden = false , |
||
bool | bCurRowOnly = false |
||
) | const |
Definition at line 514 of file swtable.cxx.
References SwTabCols::Count(), SwTabCols::GetEntry(), GetFrameFormat(), SwTabCols::GetLeft(), SwTableLine::GetTabBoxes(), SwTableLine::GetUpper(), SwTableBox::GetUpper(), i, lcl_ProcessBoxGet(), lcl_ProcessLineGet(), lcl_SortedTabColInsert(), m_aLines, SwTabColsEntry::nMax, SwTabColsEntry::nMin, SwTabColsEntry::nPos, SwTabCols::Remove(), SwTabCols::SetHidden(), and SwTableLines::size().
Referenced by SwDoc::GetTabCols(), SwFEShell::GetTabCols_(), SwVbaTableHelper::InitTabCols(), lcl_GetTableSeparators(), lcl_SetTableSeparators(), and SwDoc::SetTabCols().
const SwTableBox * SwTable::GetTableBox | ( | const OUString & | rName, |
const bool | bPerformValidCheck = false |
||
) | const |
Definition at line 1340 of file swtable.cxx.
References SwTableLines::empty(), SwTableLines::front(), GetBoxNum(), SwTableBox::GetSttNd(), SwTableLine::GetTabBoxes(), GetTabLines(), SwTableBox::GetTabLines(), and SwTableLines::size().
Referenced by SwTableFormula::BoxNmsToPtr(), SwTableFormula::BoxNmsToRelNm(), SwCursorShell::CheckTableBoxContent(), CopyHeadlineIntoTable(), SwXTextTable::createCursorByCellName(), SwChartDataSequence::DeleteBox(), SwChartDataSequence::ExtendTo(), SwXTextTable::getCellByName(), SwXCellRange::getCellRangeByPosition(), GetCellRangeName(), SwCursorShell::GetContentAtPos(), SwUndoFormatAttr::GetFormat(), GetFormatAndCreateCursorFromRangeRep(), SwXTextTableCursor::getRangeName(), SwVbaTableHelper::getTabColIndex(), SwNode::GetTableBox(), GetTableSel(), SwVbaTableHelper::getTabRowIndex(), SwCursorShell::GoNextCell(), SwCursor::GotoTableBox(), SwTableFormula::HasValidBoxes_(), SwDoc::InsCopyOfTable(), SwXTableRows::insertByIndex(), SwXTableColumns::insertByIndex(), InsTable(), SwCursor::IsInProtectTable(), IsTableComplexForChart(), lcl_CreateXCell(), lcl_RelToBox(), SwUnoTableCursor::MakeBoxSels(), SwHTMLWriter::OutCSS1_FrameFormatBackground(), OutHTML_SwTextNode(), SwFEShell::Paste(), SwUndoSort::RedoImpl(), SwUndoTableNdsChg::RedoImpl(), SwUndoTableNumFormat::RedoImpl(), SwUndoTableCpyTable::RedoImpl(), SwTableFormula::RelBoxNmsToPtr(), SwTableFormula::RelNmsToBoxNms(), SwXTableRows::removeByIndex(), SwXTableColumns::removeByIndex(), SwCursorShell::SaveTableBoxContent(), SwHistorySetFormat::SetInDoc(), SwTableFormula::SplitMergeBoxNm_(), SwDoc::SplitTable(), SwNodes::SplitTable(), SwUndoSort::UndoImpl(), SwUndoTextToTable::UndoImpl(), SwUndoTableNdsChg::UndoImpl(), SwUndoTableMerge::UndoImpl(), SwUndoTableNumFormat::UndoImpl(), SwUndoTableCpyTable::UndoImpl(), and SwUndoSplitTable::UndoImpl().
SwTableBox * SwTable::GetTableBox | ( | SwNodeOffset | nSttIdx | ) |
Definition at line 1387 of file swtable.cxx.
References SwNodes::Count(), SwIterator< TElementType, TSource, eMode >::First(), SwFormat::GetDoc(), GetFrameFormat(), SwDoc::GetNodes(), SwTableNode::GetTable(), SwFrame::GetUpper(), SwFrame::IsCellFrame(), m_TabSortContentBoxes, n, nIndex, and o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size().
|
inline |
Definition at line 298 of file swtable.hxx.
|
inline |
Definition at line 336 of file swtable.hxx.
Referenced by SwEditShell::GetTableChgMode(), MakeCopy(), SwNodes::MergeTable(), and SwFEShell::SetColRowWidthHeight().
SwTableNode * SwTable::GetTableNode | ( | ) | const |
Definition at line 2142 of file swtable.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::empty(), GetTabSortBoxes(), and m_pTableNode.
Referenced by SwContentTree::BringEntryToAttention(), CheckConsistency(), SwDoc::ChgTableStyle(), SwLayoutCache::CompareLayout(), ConvertSubtableBox(), WW8TabDesc::CreateSwTable(), SwXMLTextParagraphExport::exportTable(), WW8TabDesc::FinishSwTable(), GetInfo(), SwXCell::getPropertyValue(), SwXTextTable::getPropertyValue(), SwXTextRange::getText(), SwDoc::InsCopyOfTable(), SwXText::insertTextContentAfter(), SwXText::insertTextContentBefore(), lcl_GetSpecialProperty(), UnfloatTableButton::MouseButtonDown(), NewInsertCol(), ww8::WW8TableInfo::processSwTable(), SwXText::removeTextContentAfter(), SwXText::removeTextContentBefore(), SaveTable::RestoreAttr(), SwCursorShell::SelTable(), SwXTextTable::setPropertyValue(), SwDoc::SetTabCols(), SwUndoTableToText::SwUndoTableToText(), SwXTextRange::SwXTextRange(), WW8AttributeOutput::TableSpacing(), SwDoc::UnProtectTableCells(), SwDoc::UnProtectTables(), and SwLayoutCache::Write().
|
inline |
Return the table style name of this table.
Definition at line 194 of file swtable.hxx.
Referenced by SwDoc::ChgTableStyle(), SwEditShell::CopySelToDoc(), SwDoc::DelTableStyle(), SwXMLExport::ExportTable(), SwXTextTable::getPropertyValue(), SwXTextTableStyle::isInUse(), SwDoc::IsUsed(), MakeCopy(), SwNodes::SplitTable(), SwDocShell::StateStyleSheet(), and SwFEShell::UpdateTableStyleFormatting().
|
inline |
Definition at line 204 of file swtable.hxx.
Referenced by FndBox_::AreLinesToRestore(), CanConvertSubtables(), CheckConsistency(), SwLayHelper::CheckInsert(), CheckMergeSel(), CheckRowSpan(), CleanUpBottomRowSpan(), CleanUpTopRowSpan(), CollectBoxSelection(), ConvertSubtableBox(), ConvertSubtables(), ConvertTableToText(), CopyHeadlineIntoTable(), SaveTable::CreateNew(), DeleteBox_(), SwFEShell::DeleteRow(), SwDoc::DeleteRow(), FndBox_::DelFrames(), SwChartDataProvider::detectArguments(), SwXMLTextParagraphExport::exportTable(), SwXMLExport::ExportTable(), SwXMLExport::ExportTableAutoStyles(), SwTableBox::FindEndOfRowSpan(), SwXTextTableRow::FindLine(), SwTableLine::FindNextBox(), SwTableLine::FindPreviousBox(), SwTableBox::FindStartOfRowSpan(), FindSuperfluousRows_(), RtfAttributeOutput::FinishTableRowCell(), SwRowFrame::Format(), GCLines(), SwHTMLTableLayout::GetAnyBoxStartNode(), SwXTableRows::getByIndex(), SwXTextTable::getCellNames(), SwXTextTable::Impl::GetColumnCount(), ww8::WW8TableNodeInfoInner::getColumnWidthsBasedOnAllRows(), SwTableBox::GetCoordinates(), SwXTableRows::getCount(), SwXTableColumns::getCount(), SwTableFormula::GetLnPosInTable(), SwTableBox::GetName(), SwXTextTable::getPropertyValue(), SwXTextTable::Impl::GetRowCount(), SwVbaTableHelper::GetTabBox(), SwVbaTableHelper::getTabColumnsCount(), SwVbaTableHelper::getTabColumnsMaxCount(), SwDoc::GetTableAutoFormat(), GetTableBox(), GetTableSel(), SwVbaTableHelper::getTabRowIndex(), SwChartDataProvider::Impl_createDataSource(), RtfAttributeOutput::InitTableHelper(), DocxAttributeOutput::InitTableHelper(), SwNodes::InsBoxen(), SwXTableRows::insertByIndex(), SwXTableColumns::insertByIndex(), InsertCol(), InsertRow(), InsertRow_(), InsertSpannedRow(), SwDoc::InsertTable(), InsNewTable(), InsTable(), IsHeadline(), SwTableBox::IsInHeadline(), IsTableComplexForChart(), lcl_BalanceTable(), lcl_CalculateSplitLineHeights(), lcl_ChangeRowSpan(), lcl_CheckRowSpan(), lcl_ChgTableSize(), lcl_CollectLines(), lcl_CpyBox(), lcl_FindParentLines(), lcl_FindTableLine(), lcl_getAllMergedBoxes(), lcl_GetRowNumber(), lcl_GetSelTable(), lcl_InsertPosition(), lcl_LineIndex(), lcl_RelToBox(), lcl_SaveUpperLowerBorder(), lcl_SetTableBoxWidths(), lcl_SetTableBoxWidths2(), lcl_SophisticatedFillLineIndices(), lcl_UpdateRepeatedHeadlines(), SwTabFrame::MakeAll(), MakeCopy(), FndBox_::MakeFrames(), FndBox_::MakeNewFrames(), SwXMLTableContext::MakeTable(), HTMLTable::MakeTable(), SwXMLTableContext::MakeTable_(), HTMLTable::MakeTableLine(), SwXMLTableContext::MakeTableLine(), SwFEShell::MergeTab(), SwNodes::MergeTable(), NewSetTabCols(), NewSplitRow(), SwDDETable::NoDDETable(), OldMerge(), OutHTML_SwTableNode(), MSWordExportBase::OutputTextNode(), PrepareDelBoxes(), SwTransferable::PrivateDrop(), ww8::WW8TableInfo::processSwTable(), SaveTable::RestoreAttr(), RestoreRowSpan(), SaveTable::SaveTable(), SwAccessibleTable::selectAccessibleChild(), SwXTextTable::setPropertyValue(), SetRowHeight(), SwDoc::SetRowNotTracked(), SetTabCols(), SwDoc::SetTableAutoFormat(), FndBox_::SetTableLines(), SwDoc::SortTable(), SwTabFrame::Split(), SwDoc::SplitTable(), SwNodes::SplitTable(), SwDDETable::SwDDETable(), SwTabFrame::SwTabFrame(), SwDoc::TextToTable(), SwNodes::TextToTable(), SwNodes::UndoTableToText(), SwTabFrame::UpdateAttr_(), and WW8TabDesc::UseSwTable().
|
inline |
Definition at line 205 of file swtable.hxx.
|
inline |
Definition at line 265 of file swtable.hxx.
Referenced by MSWordExportBase::AddLinkTarget(), SwXTextTable::autoFormat(), SwHTMLParser::BuildTable(), SwDDETable::ChangeContent(), CheckTable(), CopyHeadlineIntoTable(), SwEditShell::CopySelToDoc(), SwXCell::CreateXCell(), SwDoc::DeleteRowCol(), DeleteTable(), SwXTextTable::dispose(), SwXCell::FindBox(), SwTableFormula::FindTable(), SwTableFormula::GetFormulaBoxes(), GetMergeSel(), SwFEShell::GetTableAutoFormat(), GetTableNode(), SwCursor::GotoTable(), SwDoc::HasTableAnyProtection(), SwTableFormula::HasValidBoxes_(), SwUndoFormatAttr::Init(), SwDoc::InsertCol(), SwEditShell::InsertDDETable(), SwFEShell::InsertLabel(), SwDoc::InsertRow(), SwUndoTableCpyTable::InsertRow(), InsTable(), lcl_BoxNmToRel(), lcl_IsInSameTableBox(), SwDoc::MakeFlyAndMove(), SwTableFormula::MakeFormula_(), SwNodes::MergeTable(), SwDDETable::NoDDETable(), SwTableFormula::PtrToBoxNms(), SwUndoTableNdsChg::SaveNewBoxes(), SwXTextTable::sort(), SwTableFormula::SplitMergeBoxNm_(), SwDoc::SplitTable(), SwDDETable::SwClientNotify(), SwDDETable::SwDDETable(), SwUndoTableHeadline::SwUndoTableHeadline(), SwUndoTableToText::SwUndoTableToText(), SwDoc::TextToTable(), SwUndoTableToText::UndoImpl(), SwUndoTableNdsChg::UndoImpl(), SwUndoTableMerge::UndoImpl(), SwDoc::UnProtectTableCells(), SwTOXBaseSection::UpdateTable(), and SwFEShell::UpdateTableStyleFormatting().
|
inline |
Definition at line 266 of file swtable.hxx.
bool SwTable::HasDeletedRow | ( | ) | const |
Definition at line 1583 of file swtable.cxx.
References SwRedlineTable::empty(), SwFormat::GetDoc(), GetFrameFormat(), SwDoc::getIDocumentRedlineAccess(), IDocumentRedlineAccess::GetRedlineTable(), i, IsDeleted(), m_aLines, and SwTableLines::size().
Referenced by SwDocShell::Execute(), and UnHideRedlines().
bool SwTable::HasLayout | ( | ) | const |
Definition at line 2969 of file swtable.cxx.
References SwIterator< TElementType, TSource, eMode >::First(), and GetFrameFormat().
Referenced by SwWrtShell::IsOutlineContentVisible(), and ww8::WW8TableInfo::processSwTable().
|
inline |
Definition at line 184 of file swtable.hxx.
bool SwTable::InsertCol | ( | SwDoc & | rDoc, |
const SwSelBoxes & | rBoxes, | ||
sal_uInt16 | nCnt, | ||
bool | bBehind | ||
) |
Definition at line 455 of file tblrwcl.cxx.
References SwChartDataProvider::AddRowCols(), CHECKBOXWIDTH, CHECKTABLELAYOUT, FndBox_::DelFrames(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::empty(), ForEach_FndLineCopyCol(), GCLines(), IDocumentChartDataProviderAccess::GetChartDataProvider(), SwDoc::GetDocShell(), SwDocShell::GetFEShell(), GetFrameFormat(), SwDoc::getIDocumentChartDataProviderAccess(), FndBox_::GetLines(), GetName(), GetTabLines(), IsNewModel(), lcl_InsCol(), FndBox_::MakeFrames(), NewInsertCol(), SetHTMLTableLayout(), FndBox_::SetTableLines(), SwDoc::UpdateCharts(), and SwFEShell::UpdateTableStyleFormatting().
Referenced by SwDoc::InsertCol().
bool SwTable::InsertRow | ( | SwDoc * | pDoc, |
const SwSelBoxes & | rBoxes, | ||
sal_uInt16 | nCnt, | ||
bool | bBehind | ||
) |
SwTable::InsertRow(..) inserts one or more rows before or behind the selected boxes.
Definition at line 1492 of file swnewtable.cxx.
References CHECK_TABLE, FndBox_::DelFrames(), SwDoc::DelNumRules(), SwNode::GetContentNode(), SwNodeIndex::GetNode(), SwTextNode::GetNumRule(), SwTableBox::GetSttNd(), SwTableLine::GetTabBoxes(), GetTabLines(), SwNode::GetTextNode(), InsertRow_(), IsNewModel(), SwNode::IsTextNode(), lcl_ChangeRowSpan(), lcl_FillSelBoxes(), lcl_LineIndex(), FndBox_::MakeFrames(), n, and FndBox_::SetTableLines().
Referenced by SwDoc::InsertRow(), SwUndoTableCpyTable::InsertRow(), InsNewTable(), and InsTable().
|
private |
Definition at line 514 of file tblrwcl.cxx.
References SwChartDataProvider::AddRowCols(), CH_TXT_TRACKED_DUMMY_CHAR, CHECKBOXWIDTH, CHECKTABLELAYOUT, FndBox_::DelFrames(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::empty(), SwIterator< TElementType, TSource, eMode >::First(), ForEach_FndLineCopyCol(), GCLines(), FndBox_::GetBox(), FndLine_::GetBoxes(), IDocumentChartDataProviderAccess::GetChartDataProvider(), SwDoc::GetDocShell(), SwDocShell::GetFEShell(), GetFrameFormat(), SwDoc::getIDocumentChartDataProviderAccess(), SwDoc::getIDocumentContentOperations(), SwDoc::getIDocumentRedlineAccess(), FndBox_::GetLines(), GetName(), SwTableLines::GetPos(), SwTableLine::GetTabBoxes(), GetTabLines(), SwTableBox::GetTabLines(), IDocumentContentOperations::InsertString(), SwDoc::IsInReading(), IsNewModel(), IDocumentRedlineAccess::IsRedlineOn(), lcl_CopyRow(), FndBox_::MakeFrames(), FndBox_::MakeNewFrames(), RES_PRINT(), SetHTMLTableLayout(), SwDoc::SetRowNotTracked(), FndBox_::SetTableLines(), SwDoc::UpdateCharts(), and SwFEShell::UpdateTableStyleFormatting().
Referenced by InsertRow(), and InsertSpannedRow().
|
private |
SwTable::InsertSpannedRow(..) inserts "superfluous" rows, i.e.
rows containing overlapped cells only. This is a preparation for an upcoming split.
Definition at line 1171 of file swnewtable.cxx.
References CHECK_TABLE, SwTableLine::ClaimFrameFormat(), SwTableLine::GetFrameFormat(), SwFormat::GetFrameSize(), SvxSizeItem::GetHeight(), SwFormatFrameSize::GetHeightSizeType(), SwTableLine::GetTabBoxes(), GetTabLines(), InsertRow_(), lcl_ChangeRowSpan(), lcl_FillSelBoxes(), n, SwFormat::SetFormatAttr(), SvxSizeItem::SetHeight(), size, and Variable.
Referenced by NewSplitRow().
bool SwTable::InsNewTable | ( | const SwTable & | rCpyTable, |
const SwSelBoxes & | rSelBoxes, | ||
SwUndoTableCpyTable * | pUndo | ||
) |
Definition at line 639 of file tblcpy.cxx.
References FndBox_::ClearLineBehind(), FndBox_::DelFrames(), ForEach_FndLineCopyCol(), SwFormat::GetDoc(), GetFrameFormat(), SwDoc::getIDocumentFieldsAccess(), GetTabLines(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), InsertRow(), SwUndoTableCpyTable::InsertRow(), IsNewModel(), SwTableFormulaUpdate::m_eFlags, FndBox_::MakeFrames(), FndBox_::SetTableLines(), TBL_RELBOXNAME, and IDocumentFieldsAccess::UpdateTableFields().
Referenced by InsTable().
bool SwTable::InsTable | ( | const SwTable & | rCpyTable, |
const SwNodeIndex & | rSttBox, | ||
SwUndoTableCpyTable * | pUndo | ||
) |
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 704 of file tblcpy.cxx.
References FndBox_::DelFrames(), SwTableLines::empty(), SwTableBox::FindNextBox(), SwNode::FindTableBoxStartNode(), SwTableLines::front(), SwFormat::GetDoc(), GetFrameFormat(), SwDoc::getIDocumentFieldsAccess(), SwNode::GetIndex(), SwNodeIndex::GetNode(), SwTableLines::GetPos(), SwTableLine::GetTabBoxes(), SwTableNode::GetTable(), GetTableBox(), GetTabLines(), SwTableBox::GetTabLines(), SwTableLine::GetUpper(), SwTableBox::GetUpper(), SwDoc::IsIdxInTable(), lcl_CpyBox(), SwTableFormulaUpdate::m_eFlags, FndBox_::MakeFrames(), nPos, SetHTMLTableLayout(), size, TBL_RELBOXNAME, and IDocumentFieldsAccess::UpdateTableFields().
Referenced by SwDoc::InsCopyOfTable().
bool SwTable::InsTable | ( | const SwTable & | rCpyTable, |
const SwSelBoxes & | rSelBoxes, | ||
SwUndoTableCpyTable * | pUndo | ||
) |
Definition at line 785 of file tblcpy.cxx.
References SwTableLines::back(), FndBox_::DelFrames(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::empty(), ForEach_FndLineCopyCol(), FndLine_::GetBoxes(), SwTableLine::GetBoxPos(), SwFormat::GetDoc(), GetFrameFormat(), SwDoc::getIDocumentFieldsAccess(), FndLine_::GetLine(), FndBox_::GetLines(), SwTableLines::GetPos(), SwTableBox::GetSttNd(), SwTableLine::GetTabBoxes(), GetTabLines(), GetTabSortBoxes(), InsertRow(), SwUndoTableCpyTable::InsertRow(), InsNewTable(), IsNewModel(), IsTableComplex(), lcl_CpyBox(), SwTableFormulaUpdate::m_eFlags, FndBox_::MakeFrames(), n, SelLineFromBox(), SetHTMLTableLayout(), FndBox_::SetTableLines(), size, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size(), SwTableLines::size(), TBL_RELBOXNAME, and IDocumentFieldsAccess::UpdateTableFields().
bool SwTable::IsDeleted | ( | ) | const |
Definition at line 1598 of file swtable.cxx.
References SwRedlineTable::empty(), SwFormat::GetDoc(), GetFrameFormat(), SwDoc::getIDocumentRedlineAccess(), IDocumentRedlineAccess::GetRedlineTable(), i, IsDeleted(), m_aLines, and SwTableLines::size().
Referenced by SwFEShell::DeleteRow(), HasDeletedRow(), IsDeleted(), lcl_CursorInDeletedTable(), and UnHideRedlines().
bool SwTable::IsEmpty | ( | ) | const |
Definition at line 1573 of file swtable.cxx.
References i, IsEmpty(), m_aLines, and SwTableLines::size().
Referenced by IsEmpty().
bool SwTable::IsHeadline | ( | const SwTableLine & | rLine | ) | const |
Definition at line 5818 of file tabfrm.cxx.
References GetRowsToRepeat(), GetTabLines(), and i.
Referenced by SwTableFormula::GetBoxes(), SwTabFrame::IsInHeadline(), SwFrame::IsInSplitTableRow(), and SwDoc::SortTable().
|
inline |
Definition at line 191 of file swtable.hxx.
Referenced by SwEditShell::CanMergeTable(), CheckConsistency(), CheckRowSpan(), CleanUpBottomRowSpan(), CleanUpTopRowSpan(), CopyHeadlineIntoTable(), SwFEShell::DeleteCol(), SwDoc::DeleteRowCol(), FndBox_::DelFrames(), SwCellFrame::Format(), GetTableSel(), SwDoc::InsCopyOfTable(), InsertCol(), InsertRow(), InsertRow_(), InsNewTable(), InsTable(), lcl_FindStartEndCol(), lcl_IsNewStyleTable(), MakeCopy(), SwDoc::MergeTable(), SwTableCursor::NewTableSelection(), SwLayoutFrame::PaintSubsidiaryLines(), SwFrame::PaintSwFrameShadowAndBorder(), SwFEShell::Paste(), PrepareDelBoxes(), SwUndoTableNdsChg::RedoImpl(), RestoreRowSpan(), SwUndoTableNdsChg::SaveNewBoxes(), SaveTable::SaveTable(), SwCursorShell::SelTableRowOrCol(), SetTabCols(), SwDoc::SetTabRows(), and SwNodes::SplitTable().
bool SwTable::IsTableComplex | ( | ) | const |
Definition at line 1441 of file swtable.cxx.
References m_TabSortContentBoxes, n, and o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size().
Referenced by SwChartDataProvider::AddRowCols(), SwChartDataProvider::convertRangeToXML(), SwChartDataProvider::detectArguments(), SwChartDataSequence::ExtendTo(), SwChartDataSequence::FillRangeDesc(), SwChartDataSequence::generateLabel(), SwXTextTable::getCellRangeByPosition(), SwXCellRange::getCellRangeByPosition(), SwXTextTable::Impl::GetColumnCount(), SwXTextTable::Impl::GetRowCount(), SwVbaTableHelper::getTabColumnsCount(), SwFEShell::GetTableAutoFormat(), GetTableSel(), SwChartDataProvider::Impl_createDataSource(), SwDoc::InsCopyOfTable(), InsTable(), SwFEShell::Paste(), ww8::WW8TableInfo::processSwTable(), and SwFEShell::UpdateTableStyleFormatting().
bool SwTable::IsTableComplexForChart | ( | std::u16string_view | aSel | ) | const |
Definition at line 39 of file docchart.cxx.
References SwTableLines::back(), ChkChartSel(), SwTableLines::front(), SwTableBox::GetSttNd(), SwTableLine::GetTabBoxes(), GetTableBox(), GetTabLines(), SwTableBox::GetTabLines(), nLength, and u.
Referenced by SwCursorShell::IsTableComplexForChart().
|
inline |
Definition at line 187 of file swtable.hxx.
Referenced by SetColWidth(), and SetTabCols().
bool SwTable::MakeCopy | ( | SwDoc & | rInsDoc, |
const SwPosition & | rPos, | ||
const SwSelBoxes & | rSelBoxes, | ||
bool | bCpyName = false , |
||
const OUString & | rStyleName = "" |
||
) | const |
Definition at line 2059 of file tblrwcl.cxx.
References SwTableLines::back(), BorderCopy, CHECKTABLELAYOUT, SwFormat::CopyAttrs(), SwDoc::CopyTextColl(), DeleteBox_(), SwTableNode::DelFrames(), SwNode::FindTableNode(), ForEach_FndLineCopyCol(), GCLines(), SwFormat::GetDoc(), GetFrameFormat(), SwFormat::GetFrameSize(), SwDoc::getIDocumentFieldsAccess(), SwDoc::getIDocumentStylePoolAccess(), FndLine_::GetLine(), FndBox_::GetLines(), GetName(), SwNodeIndex::GetNode(), SwPosition::GetNode(), SwTableLines::GetPos(), GetRowsToRepeat(), SwTableLine::GetTabBoxes(), SwTableNode::GetTable(), GetTableChgMode(), GetTableStyleName(), GetTabLines(), IDocumentStylePoolAccess::GetTextCollFromPool(), SvxSizeItem::GetWidth(), HeadlineNoBorder, IDocumentFieldsAccess::InsertFieldType(), SwDoc::InsertTable(), IsNewModel(), lcl_CalcNewWidths(), lcl_CheckRowSpan(), lcl_CopyLineToDoc(), lcl_GetBoxOffset(), lcl_GetLineWidth(), SwTableFormulaUpdate::m_eFlags, SwTableNode::MakeOwnFrames(), RES_POOLCOLL_TABLE, RES_POOLCOLL_TABLE_HDLN, SwCollectTableLineBoxes::Resize(), SwFrameFormat::SetFormatName(), SwTableNode::SetNewTable(), SetRowsToRepeat(), SetTableChgMode(), SetTableStyleName(), SwCollectTableLineBoxes::SetValues(), size, sw_Box_CollectBox(), sw_BoxSetSplitBoxFormats(), TBL_RELBOXNAME, and IDocumentFieldsAccess::UpdateTableFields().
Referenced by SwDoc::InsCopyOfTable(), SwDoc::MakeFlyAndMove(), and SwWriter::Write().
|
inline |
Definition at line 235 of file swtable.hxx.
Referenced by SwDoc::MergeTable().
|
private |
SwTable::NewInsertCol(..) insert new column(s) into a table.
pDoc | the document |
rBoxes | the selected boxes |
nCnt | the number of columns to insert |
bBehind | insertion behind (true) or before (false) the selected boxes |
Definition at line 653 of file swnewtable.cxx.
References AdjustWidths(), CHECK_TABLE, SwTableBox::ChgFrameFormat(), SwTableBox::ClaimFrameFormat(), FndBox_::DelFrames(), SwTableLines::empty(), SwFormat::GetBox(), GetFrameFormat(), SwTableBox::GetFrameFormat(), SwFormat::GetFrameSize(), SvxBoxItem::GetRight(), SwTableBox::getRowSpan(), SwTableLine::GetTabBoxes(), GetTableNode(), SvxSizeItem::GetWidth(), i, InsTableBox(), lcl_InsertPosition(), m_aLines, FndBox_::MakeFrames(), SwFormat::SetFormatAttr(), SvxBoxItem::SetLine(), SwTableBox::setRowSpan(), FndBox_::SetTableLines(), SvxSizeItem::SetWidth(), size, and SwTableLines::size().
Referenced by InsertCol().
|
private |
NewMerge(..) removes the superfluous cells after cell merge.
SwTable::NewMerge(..) does some cleaning up, it simply deletes the superfluous cells ("cell span") and notifies the Undo about it. The main work has been done by SwTable::PrepareMerge(..) already.
rBoxes | the boxes to remove |
pUndo | the undo object to notify, maybe empty |
Definition at line 90 of file swnewtable.cxx.
References CHECK_TABLE, DeleteSel(), and SwUndoTableMerge::SetSelBoxes().
|
private |
Definition at line 1161 of file swtable.cxx.
References CHECK_TABLE, COLFUZZY, SwTabCols::Count(), SwTabCols::GetLeft(), SwTableLines::GetPos(), SwTabCols::GetRight(), GetTabLines(), SwTableBox::GetUpper(), i, lcl_AdjustWidthsInLine(), lcl_CalcNewWidths(), nCount, Parm::nNewWish, Parm::nOldWish, nPos, Parm::rNew, Parm::rOld, and SwTableLines::size().
Referenced by SetTabCols().
|
private |
SwTable::NewSplitRow(..) splits all selected boxes horizontally.
Definition at line 1409 of file swnewtable.cxx.
References CHECK_TABLE, SwTableLine::ClaimFrameFormat(), FndBox_::DelFrames(), IDocumentLayoutAccess::GetCurrentViewShell(), SwFormat::GetFrameSize(), SwDoc::getIDocumentLayoutAccess(), GetTabLines(), i, InsertSpannedRow(), lcl_CalculateSplitLineHeights(), lcl_SophisticatedFillLineIndices(), lcl_UnMerge(), FndBox_::MakeFrames(), Minimum, SwFormat::SetFormatAttr(), SvxSizeItem::SetHeight(), SwFormatFrameSize::SetHeightSizeType(), FndBox_::SetTableLines(), and o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size().
|
private |
Definition at line 1534 of file tblrwcl.cxx.
References SwUndoTableMerge::AddNewBox(), SwTableLines::begin(), CHECKBOXWIDTH, CHECKTABLELAYOUT, SwTableLine::ClaimFrameFormat(), SwTableBox::ClaimFrameFormat(), IDocumentChartDataProviderAccess::CreateChartInternalDataProviders(), DeleteBox_(), DeleteSel(), FndBox_::DelFrames(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::empty(), SwTableLines::empty(), ForEach_FndLineCopyCol(), GCLines(), FndBox_::GetBox(), SwTableBox::GetFrameFormat(), SwDoc::getIDocumentChartDataProviderAccess(), FndBox_::GetLines(), SwTableLines::GetPos(), SwTableBox::GetSttIdx(), SwTableBox::GetSttNd(), SwTableLine::GetTabBoxes(), GetTabLines(), SwTableBox::GetTabLines(), FndBox_::GetUpper(), SwTableLines::insert(), lcl_BoxSetHeadCondColl(), lcl_CalcWidth(), lcl_Merge_MoveBox(), lcl_Merge_MoveLine(), FndBox_::MakeFrames(), RES_FRM_SIZE(), SwFormat::ResetFormatAttr(), SetHTMLTableLayout(), SwUndoTableMerge::SetSelBoxes(), FndBox_::SetTableLines(), and SwTableBox::SetUpper().
|
private |
Definition at line 1023 of file tblrwcl.cxx.
References SwTableLines::begin(), CHECKBOXWIDTH, CHECKTABLELAYOUT, SwTableLine::ClaimFrameFormat(), SwTableBox::ClaimFrameFormat(), IDocumentChartDataProviderAccess::CreateChartInternalDataProviders(), SwNodes::Delete(), FndBox_::DelFrames(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::empty(), SwNode::EndOfSectionIndex(), SwNode::EndOfSectionNode(), GCLines(), SwFormat::GetBox(), SwTableLine::GetBoxPos(), SwFrameAreaDefinition::getFrameArea(), SwTableLine::GetFrameFormat(), SwTableBox::GetFrameFormat(), SwFormat::GetFrameSize(), SvxSizeItem::GetHeight(), SwRectFnSet::GetHeight(), SwFormatFrameSize::GetHeightSizeType(), SwDoc::getIDocumentChartDataProviderAccess(), SwNode::GetIndex(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), GetRowFrame(), SwTableBox::GetSttIdx(), SwTableBox::GetSttNd(), SwTableLine::GetTabBoxes(), SwTableBox::GetTabLines(), SvxBoxItem::GetTop(), SwTableBox::GetUpper(), i, SwTableLines::insert(), InsTableBox(), FndBox_::MakeFrames(), Minimum, SwNodes::MoveNodes(), n, RES_BOXATR_BEGIN(), RES_BOXATR_END(), RES_FRMATR_END(), RES_LR_SPACE(), SwFormat::ResetFormatAttr(), SwFormat::SetFormatAttr(), SvxSizeItem::SetHeight(), SwFormatFrameSize::SetHeightSizeType(), SetHTMLTableLayout(), SvxBoxItem::SetLine(), FndBox_::SetTableLines(), SwTableBox::SetUpper(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size(), and Variable.
void SwTable::PrepareDelBoxes | ( | const SwSelBoxes & | rBoxes | ) |
SwTable::PrepareDelBoxes(..) adjusts the row span attributes for an upcoming deletion of table cells and invalidates the layout of these cells.
Definition at line 1568 of file swnewtable.cxx.
References SwTableBox::GetFrameFormat(), SwFormat::GetFrameSize(), SwTableLines::GetPos(), SwTableBox::getRowSpan(), GetTabLines(), SwTableBox::GetUpper(), SvxSizeItem::GetWidth(), i, IsNewModel(), lcl_Box2LeftBorder(), lcl_InvalidateCellFrame(), lcl_LeftBorder2Box(), SwTableBox::setRowSpan(), size, and o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size().
Referenced by DeleteSel().
void SwTable::PrepareDeleteCol | ( | tools::Long | nMin, |
tools::Long | nMax | ||
) |
SwTable::PrepareDeleteCol(..) adjusts the widths of the neighbour cells of a cell selection for an upcoming (column) deletion.
Definition at line 1866 of file swnewtable.cxx.
References SwTableBox::ClaimFrameFormat(), SwTableLines::empty(), GetFrameFormat(), SwTableBox::GetFrameFormat(), SwFormat::GetFrameSize(), SwTableLine::GetTabBoxes(), SvxSizeItem::GetWidth(), m_aLines, m_bNewModel, nTabSize, SwFormat::SetFormatAttr(), SvxSizeItem::SetWidth(), and SwTableLines::size().
Referenced by SwDoc::DeleteRowCol(), and SwUndoTableNdsChg::RedoImpl().
bool SwTable::PrepareMerge | ( | const SwPaM & | rPam, |
SwSelBoxes & | rBoxes, | ||
SwSelBoxes & | rMerged, | ||
SwTableBox ** | ppMergeBox, | ||
SwUndoTableMerge * | pUndo | ||
) |
SwTable::PrepareMerge(..) some preparation for the coming Merge(..)
For the old table model, GetMergeSel(..) is called only, for the new table model, PrepareMerge does the main work. It modifies all cells to merge (width, border, rowspan etc.) and collects the cells which have to be deleted by Merge(..) afterwards. If there are superfluous rows, these cells are put into the deletion list as well.
rPam | the selection to merge |
rBoxes | should be empty at the beginning, at the end it is filled with boxes to delete. |
ppMergeBox | will be set to the master cell box |
pUndo | the undo object to record all changes can be Null, e.g. when called by Redo(..) |
Definition at line 809 of file swnewtable.cxx.
References SwUndoTableMerge::AddNewBox(), SwPosition::Adjust(), IDocumentContentOperations::AppendTextNode(), SwPosition::Assign(), CHECK_TABLE, SwTableBox::ChgFrameFormat(), SwTableBox::ClaimFrameFormat(), CollectBoxSelection(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::empty(), SwNode::EndOfSectionNode(), FindSuperfluousRows_(), SvxBoxItem::GetBottom(), SwFormat::GetBox(), SwFormat::GetDoc(), GetFrameFormat(), SwTableBox::GetFrameFormat(), SwDoc::getIDocumentContentOperations(), SwDoc::GetIDocumentUndoRedo(), SvxBoxItem::GetLeft(), GetMergeSel(), SwNodeIndex::GetNode(), SwPosition::GetNode(), SwPaM::GetPoint(), SwPaM::GetPointContentNode(), SwPaM::GetPointNode(), SvxBoxItem::GetRight(), SwTableBox::getRowSpan(), SwTableBox::GetSttIdx(), SwTableBox::GetSttNd(), SwNode::GetTextNode(), SvxBoxItem::GetTop(), SwTableBox::GetUpper(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), IsEmptyBox(), SwContentNode::Len(), m_bNewModel, SwUndoTableMerge::MoveBoxContent(), IDocumentContentOperations::MoveNodeRange(), NO_DELFRMS, SwPosition::SetContent(), SwTextNode::SetCountedInList(), SwFormat::SetFormatAttr(), SvxBoxItem::SetLine(), SwTableBox::setRowSpan(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size(), and Variable.
Referenced by SwDoc::MergeTable().
void SwTable::RegisterToFormat | ( | SwFormat & | rFormat | ) |
Definition at line 2964 of file swtable.cxx.
Referenced by SwDoc::InsertTable(), SwTableNode::MakeCopy(), SwNodes::SplitTable(), SwDoc::TextToTable(), and SwUndoTableToText::UndoImpl().
void SwTable::RestoreRowSpan | ( | const SwSaveRowSpan & | rSave | ) |
Definition at line 2022 of file swnewtable.cxx.
References SwTableBox::getRowSpan(), SwTableLine::GetTabBoxes(), GetTabLines(), IsNewModel(), lcl_Box2LeftBorder(), lcl_LeftBorder2Box(), SwSaveRowSpan::mnRowSpans, SwSaveRowSpan::mnSplitLine, SwTableBox::setRowSpan(), and SwTableLines::size().
Referenced by SwUndoSplitTable::UndoImpl().
|
static |
Definition at line 1028 of file tblcpy.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::clear(), FndContentBox(), SwTableLine::GetTabBoxes(), SwTableLine::GetUpper(), and SwTableBox::GetUpper().
Referenced by CopyHeadlineIntoTable(), SwCursorShell::GoNextCell(), InsTable(), WW8TabDesc::TableCellEnd(), and SwUndoSplitTable::UndoImpl().
bool SwTable::SetColWidth | ( | SwTableBox & | rCurrentBox, |
TableChgWidthHeightType | eType, | ||
SwTwips | nAbsDiff, | ||
SwTwips | nRelDiff, | ||
std::unique_ptr< SwUndo > * | ppUndo | ||
) |
Definition at line 2607 of file tblrwcl.cxx.
References abs(), BROWSE_MODE, CellLeft, CellRight, CHECKBOXWIDTH, CHECKTABLELAYOUT, COLFUZZY, ColLeft, ColRight, eType, extractPosition(), SwNode::FindTableNode(), SwIterator< TElementType, TSource, eMode >::First(), FixedWidthChangeAbs, FixedWidthChangeProp, sw::proofreadingiterator::get(), SwTableLine::GetBoxPos(), GetFrameFormat(), SwTableBox::GetFrameFormat(), SwFrameAreaDefinition::getFramePrintArea(), SwFormat::GetFrameSize(), SwFormatHoriOrient::GetHoriOrient(), SwFormat::GetHoriOrient(), SvxLRSpaceItem::GetLeft(), SwFormat::GetLRSpace(), SvxLRSpaceItem::GetRight(), SwTableBox::GetSttNd(), SwTableLine::GetTabBoxes(), SwTableLine::GetUpper(), SwTableBox::GetUpper(), SvxSizeItem::GetWidth(), SwFormatFrameSize::GetWidthPercent(), lcl_AjustLines(), lcl_GetDistance(), lcl_SetOtherBoxWidth(), lcl_SetSelBoxWidth(), LockModify(), LONG_MAX, m_aLines, m_eTableChgMode, n, SwPostItHelper::NONE, nPos, SetColWidth(), SwFormat::SetFormatAttr(), SwFormatHoriOrient::SetHoriOrient(), SetHTMLTableLayout(), SvxLRSpaceItem::SetLeft(), SvxLRSpaceItem::SetRight(), SvxSizeItem::SetWidth(), SwFormatFrameSize::SetWidthPercent(), SwTableLines::size(), UnlockModify(), VarWidthChangeAbs, and SwRect::Width().
Referenced by SwDoc::SetColRowWidthHeight(), and SetColWidth().
void SwTable::SetHTMLTableLayout | ( | std::shared_ptr< SwHTMLTableLayout > const & | r | ) |
Definition at line 2157 of file swtable.cxx.
References m_xHTMLLayout.
Referenced by DeleteSel(), InsertCol(), InsertRow_(), InsTable(), SwDoc::MergeTable(), OldMerge(), OldSplitRow(), SetColWidth(), SetTabCols(), SwFEShell::SetTableAttr(), SwDoc::SortTable(), SplitCol(), and SwDoc::SplitTable().
void SwTable::SetRefObject | ( | SwServerObject * | pObj | ) |
Definition at line 2149 of file swtable.cxx.
References tools::SvRef< typename T >::is(), and m_xRefObj.
bool SwTable::SetRowHeight | ( | SwTableBox & | rCurrentBox, |
TableChgWidthHeightType | eType, | ||
SwTwips | nAbsDiff, | ||
SwTwips | nRelDiff, | ||
std::unique_ptr< SwUndo > * | ppUndo | ||
) |
Definition at line 3031 of file tblrwcl.cxx.
References CalcRowRstHeight(), CellBottom, CellTop, CHECKTABLELAYOUT, eType, extractPosition(), SwNode::FindTableNode(), FixedWidthChangeProp, SwFrameAreaDefinition::getFrameArea(), SwTableLines::GetPos(), GetRowFrame(), SwTableBox::GetSttNd(), GetTabLines(), SwTableBox::GetTabLines(), SwTableLine::GetUpper(), SwTableBox::GetUpper(), SwRect::Height(), lcl_SetOtherLineHeight(), lcl_SetSelLineHeight(), m_aLines, m_eTableChgMode, n, RowBottom, SetRowHeight(), SwTableLines::size(), and VarWidthChangeAbs.
Referenced by SwDoc::SetColRowWidthHeight(), and SetRowHeight().
|
inline |
Definition at line 200 of file swtable.hxx.
Referenced by SwDoc::InsertTable(), SwTabFrame::MakeAll(), SwTableNode::MakeCopy(), MakeCopy(), SwXMLTableContext::MakeTable(), SwNodes::MergeTable(), SwDoc::SetRowsToRepeat(), SwTabFrame::Split(), SwDoc::SplitTable(), SwDoc::TextToTable(), SwUndoTableToText::UndoImpl(), and WW8TabDesc::UseSwTable().
void SwTable::SetTabCols | ( | const SwTabCols & | rNew, |
const SwTabCols & | rOld, | ||
const SwTableBox * | pStart, | ||
bool | bCurRowOnly | ||
) |
Definition at line 819 of file swtable.cxx.
References Parm::aBoxArr, abs(), SvxShadowItem::CalcShadowSpace(), CHECK_TABLE, CheckBoxWidth(), COLFUZZY, SwTabCols::Count(), GetFrameFormat(), SwFormat::GetFrameSize(), SwFormatHoriOrient::GetHoriOrient(), SwFormat::GetHoriOrient(), SwTabCols::GetLeft(), SwFormat::GetLRSpace(), SwTabCols::GetRight(), SwTabCols::GetRightMax(), SwFormat::GetShadow(), SwTableLine::GetTabBoxes(), GetTabLines(), SwTableLine::GetUpper(), SwTableBox::GetUpper(), SvxSizeItem::GetWidth(), i, IsNewModel(), lcl_AdjustLines(), lcl_ProcessBoxPtr(), lcl_ProcessBoxSet(), lcl_ProcessLine(), LockModify(), m_aLines, n, NewSetTabCols(), Parm::nNewWish, Parm::nOldWish, SwPostItHelper::NONE, SwFormat::SetFormatAttr(), SwFormatHoriOrient::SetHoriOrient(), SetHTMLTableLayout(), SvxLRSpaceItem::SetLeft(), SvxLRSpaceItem::SetRight(), SvxSizeItem::SetWidth(), SwFormatFrameSize::SetWidthPercent(), SwTableLines::size(), and UnlockModify().
Referenced by SwVbaTableHelper::SetColWidth(), and SwDoc::SetTabCols().
|
inline |
Definition at line 337 of file swtable.hxx.
References eMode.
Referenced by SwTableNode::MakeCopy(), MakeCopy(), and SwNodes::MergeTable().
|
inline |
Definition at line 190 of file swtable.hxx.
Referenced by SwDoc::InsertTable(), SwTableNode::MakeCopy(), SwXMLTableContext::MakeTable(), SwNodes::SplitTable(), and SwUndoTableToText::UndoImpl().
|
inline |
Definition at line 326 of file swtable.hxx.
Referenced by SwTableNode::MakeCopy().
|
inline |
Set the new table style name for this table.
Definition at line 197 of file swtable.hxx.
Referenced by SwDoc::DelTableStyle(), InsertTableImpl(), SwTableNode::MakeCopy(), MakeCopy(), SwXMLTableContext::MakeTable(), SwXTextTable::setPropertyValue(), SwDoc::SetTableAutoFormat(), and SwNodes::SplitTable().
bool SwTable::SplitCol | ( | SwDoc & | rDoc, |
const SwSelBoxes & | rBoxes, | ||
sal_uInt16 | nCnt | ||
) |
Definition at line 1166 of file tblrwcl.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::begin(), CHECKBOXWIDTH, CHECKTABLELAYOUT, SwTableBox::ChgFrameFormat(), SwTableBox::ClaimFrameFormat(), IDocumentChartDataProviderAccess::CreateChartInternalDataProviders(), FndBox_::DelFrames(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::empty(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::end(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::erase(), ExpandSelection(), SwTableLine::GetBoxPos(), SwTableBox::GetFrameFormat(), SwFormat::GetFrameSize(), SwDoc::getIDocumentChartDataProviderAccess(), SvxBoxItem::GetRight(), SwTableLine::GetTabBoxes(), SwTableBox::GetUpper(), SvxSizeItem::GetWidth(), i, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), InsTableBox(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::lower_bound(), FndBox_::MakeFrames(), n, SwFormat::SetFormatAttr(), SetHTMLTableLayout(), SvxBoxItem::SetLine(), FndBox_::SetTableLines(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size(), and Variable.
Referenced by SwDoc::SplitTable().
|
inline |
Definition at line 241 of file swtable.hxx.
Referenced by SwDoc::SplitTable().
Reimplemented from SwClient.
Reimplemented in SwDDETable.
Definition at line 321 of file swtable.cxx.
References AdjustWidths(), SwClient::CheckRegistration(), SwAttrSetChg::GetChgSet(), SfxHint::GetId(), SfxItemSet::GetItemIfSet(), sw::LegacyModifyHint::GetWhich(), SvxSizeItem::GetWidth(), m_bModifyLocked, RES_ATTRSET_CHG(), and RES_FRM_SIZE().
Referenced by SwDDETable::SwClientNotify().
|
inline |
Definition at line 188 of file swtable.hxx.
Referenced by SetColWidth(), and SetTabCols().
void SwTable::UpdateCharts | ( | ) | const |
Definition at line 34 of file docchart.cxx.
References SwFormat::GetDoc(), GetFrameFormat(), GetName(), and SwDoc::UpdateCharts().
Referenced by SwDoc::ChkBoxNumFormat(), and SwNodes::SplitTable().
|
protected |
Definition at line 116 of file swtable.hxx.
Referenced by AdjustWidths(), SwDDETable::ChangeContent(), CollectBoxSelection(), CreateSelection(), ExpandColumnSelection(), FindSuperfluousRows_(), GetTabCols(), HasDeletedRow(), IsDeleted(), IsEmpty(), NewInsertCol(), SwDDETable::NoDDETable(), PrepareDeleteCol(), SetColWidth(), SetRowHeight(), SetTabCols(), SwDDETable::SwDDETable(), and SwDDETable::~SwDDETable().
|
protected |
Definition at line 138 of file swtable.hxx.
Referenced by SwClientNotify().
|
protected |
Definition at line 139 of file swtable.hxx.
Referenced by CollectBoxSelection(), ConvertSubtables(), CreateSelection(), ExpandColumnSelection(), PrepareDeleteCol(), and PrepareMerge().
|
protected |
Definition at line 129 of file swtable.hxx.
Referenced by SetColWidth(), SetRowHeight(), and SwTable().
|
protected |
Definition at line 131 of file swtable.hxx.
|
protected |
Definition at line 133 of file swtable.hxx.
|
protected |
Definition at line 126 of file swtable.hxx.
Referenced by GetTableNode(), and SwDDETable::~SwDDETable().
|
protected |
Definition at line 117 of file swtable.hxx.
Referenced by GetInfo(), GetTableBox(), IsTableComplex(), SwDDETable::SwDDETable(), and ~SwTable().
|
protected |
Definition at line 120 of file swtable.hxx.
Referenced by SetHTMLTableLayout().
|
protected |
Definition at line 118 of file swtable.hxx.
Referenced by SetRefObject(), and ~SwTable().
|
protected |
Name of the table style to be applied on this table.
Definition at line 136 of file swtable.hxx.