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) | |
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 |
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 (sal_uLong nSttIdx) |
const SwTableBox * | GetTableBox (sal_uLong nSttIdx) const |
bool | IsTableComplex () const |
bool | IsTableComplexForChart (const OUString &rSel) 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 () |
![]() | |
SwClient () | |
SwClient (SwClient &&) noexcept | |
virtual | ~SwClient () override |
std::unique_ptr< sw::ModifyChangedHint > | CheckRegistration (const SfxPoolItem *pOldValue) |
void | CheckRegistrationFormat (SwFormat &rOld) |
const SwModify * | GetRegisteredIn () const |
SwModify * | GetRegisteredIn () |
void | EndListeningAll () |
void | StartListeningToSameModifyAs (const SwClient &) |
![]() | |
bool | IsLast () 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 |
![]() | |
WriterListener () | |
virtual | ~WriterListener () COVERITY_NOEXCEPT_FALSE |
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::unique_ptr< 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 111 of file swtable.hxx.
enum SwTable::SearchType |
Enumerator | |
---|---|
SEARCH_NONE | |
SEARCH_ROW | |
SEARCH_COL |
Definition at line 143 of file swtable.hxx.
|
explicit |
Definition at line 178 of file swtable.cxx.
References GetTableChgDefaultMode(), and m_eTableChgMode.
Referenced by SwDDETable::NoDDETable().
|
overridevirtual |
Definition at line 210 of file swtable.cxx.
References o3tl::sorted_vector< Value, Compare, Find, class >::clear(), sfx2::SvLinkSource::Closed(), DelBoxNode(), SwDoc::DelTableFrameFormat(), tools::SvRef< T >::get(), SwFormat::GetDoc(), GetFrameFormat(), SwDoc::getIDocumentLinksAdministration(), IDocumentLinksAdministration::GetLinkManager(), SwModify::HasWriterListeners(), tools::SvRef< T >::is(), SwDoc::IsInDtor(), m_TabSortContentBoxes, m_xRefObj, SwModify::Remove(), and sfx2::LinkManager::RemoveServer().
SwTable::SwTable | ( | const SwTable & | rTable | ) |
Definition at line 190 of file swtable.cxx.
|
private |
Definition at line 351 of file swtable.cxx.
References lcl_ModifyLines(), m_aLines, and size.
Referenced by NewInsertCol(), and SwClientNotify().
bool SwTable::CanConvertSubtables | ( | ) | const |
Definition at line 2283 of file swnewtable.cxx.
References assert(), SwFieldType::GatherFields(), SwDoc::GetAttrPool(), SwNodes::GetEndOfAutotext(), IDocumentFieldsAccess::GetFieldType(), GetFrameFormat(), SwDoc::getIDocumentFieldsAccess(), SfxItemPool::GetItemCount2(), SwDoc::GetNodes(), SwNode::GetStartNode(), GetTabLines(), RES_BOXATR_FORMULA(), SwNode::StartOfSectionNode(), Table, and tableName.
void SwTable::CheckConsistency | ( | ) | const |
Definition at line 2404 of file swnewtable.cxx.
References assert(), SwNode::EndOfSectionNode(), GetFrameFormat(), SwTableBox::GetFrameFormat(), SwFormat::GetFrameSize(), SwNodeIndex::GetIndex(), SwNodeIndex::GetNode(), SwTableBox::getRowSpan(), SwTableLine::GetTabBoxes(), GetTableNode(), GetTabLines(), SvxSizeItem::GetWidth(), index, IsNewModel(), SwNode::IsStartNode(), nLineWidth, nTabSize, SAL_WARN_IF, SwTableLines::size(), and USHRT_MAX.
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(), SwNodeIndex::GetNode(), SwTableLines::GetPos(), SwTableBox::getRowSpan(), SwTableBox::GetSttNd(), SwTableLine::GetTabBoxes(), GetTabLines(), SwTableBox::GetUpper(), SvxSizeItem::GetWidth(), o3tl::sorted_vector< Value, Compare, Find, class >::insert(), lcl_CheckMinMax(), m_aLines, m_bNewModel, nCount, SwPosition::nNode, 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 assert(), begin, SwNodes::Delete(), DeleteBox_(), SwDoc::GetDfltTextFormatColl(), GetFrameFormat(), SwTableLine::GetFrameFormat(), SwFormat::GetFrameSize(), SvxSizeItem::GetHeight(), SwFormatFrameSize::GetHeightSizeType(), SwDoc::getIDocumentContentOperations(), SwDoc::GetNodes(), SwTableLine::GetTabBoxes(), GetTableNode(), GetTabLines(), i, SwTableLines::insert(), InsTableBox(), lcl_ChangeRowSpan(), SwNodes::MakeTextNode(), Minimum, IDocumentContentOperations::MoveNodeRange(), SwNodes::MoveNodes(), NO_DELFRMS, REDLINES, RES_BACKGROUND(), RES_FRM_SIZE(), SwFormat::SetFormatAttr(), SvxSizeItem::SetHeight(), size, Variable, and void().
Referenced by ConvertSubtables().
void SwTable::ConvertSubtables | ( | ) |
Definition at line 2360 of file swnewtable.cxx.
References IDocumentMarkAccess::assureSortedMarkContainers(), CHECK_TABLE, ConvertSubtableBox(), GCLines(), SwDoc::GetFootnoteIdxs(), GetFrameFormat(), SwDoc::getIDocumentMarkAccess(), SwDoc::getIDocumentRedlineAccess(), IDocumentRedlineAccess::GetRedlineTable(), SwTableLine::GetTabBoxes(), GetTabLines(), i, m_bNewModel, SwRedlineTable::Resort(), SwTableLines::size(), and SwFootnoteIdxs::UpdateAllFootnote().
void SwTable::CopyHeadlineIntoTable | ( | SwTableNode & | rTableNd | ) |
Definition at line 2000 of file tblrwcl.cxx.
References ForEach_FndLineCopyCol(), GetFrameFormat(), SwFormat::GetFrameSize(), SwNode::GetIndex(), FndBox_::GetLines(), SwTableBox::GetSttNd(), SwTableLine::GetTabBoxes(), SwTableNode::GetTable(), GetTabLines(), SvxSizeItem::GetWidth(), IsNewModel(), lcl_CalcNewWidths(), lcl_CopyLineToDoc(), SwTableFormulaUpdate::m_eFlags, SwNode::StartOfSectionNode(), and TBL_RELBOXNAME.
Referenced by SwDoc::SplitTable().
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 SwTableLines::empty(), SwNode::FindTableBoxStartNode(), SwPaM::GetMark(), SwNodeIndex::GetNode(), SwPaM::GetPoint(), m_aLines, m_bNewModel, and SwPosition::nNode.
Referenced by GetTableSel(), SwTableCursor::NewTableSelection(), and SwCursorShell::SelTableRowOrCol().
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< Value, Compare, Find, class >::clear(), SwTableBox::GetFrameFormat(), SwFormat::GetProtect(), SwTableBox::getRowSpan(), SwTableBox::GetSttNd(), SwTableLine::GetTabBoxes(), i, o3tl::sorted_vector< Value, Compare, Find, class >::insert(), SvxProtectItem::IsContentProtected(), lcl_CheckMinMax(), lcl_SearchSelBox(), m_aLines, nCount, SEARCH_COL, SEARCH_ROW, and SwTableLines::size().
|
inline |
Definition at line 181 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 933 of file tblrwcl.cxx.
References FndBox_::AreLinesToRestore(), CHECK_TABLE, CHECKTABLELAYOUT, SwChartDataProvider::DeleteBox(), DeleteBox_(), FndBox_::DelFrames(), o3tl::sorted_vector< Value, Compare, Find, class >::empty(), IDocumentChartDataProviderAccess::GetChartDataProvider(), SwDoc::getIDocumentChartDataProviderAccess(), SwTableNode::GetTable(), lcl_SaveUpperLowerBorder(), FndBox_::MakeFrames(), n, FndBox_::SetTableLines(), o3tl::sorted_vector< Value, Compare, Find, class >::size(), and SwDoc::UpdateCharts().
Referenced by SwDoc::DeleteRowCol(), NewMerge(), SwUndoTableNdsChg::RedoImpl(), and SwUndoSplitTable::UndoImpl().
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< Value, Compare, Find, class >::empty(), SwTableLines::empty(), SwTableBox::GetFrameFormat(), SwFormat::GetFrameSize(), SwTableLine::GetTabBoxes(), SvxSizeItem::GetWidth(), o3tl::sorted_vector< Value, Compare, Find, class >::insert(), lcl_CheckMinMax(), m_aLines, m_bNewModel, o3tl::sorted_vector< Value, Compare, Find, class >::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< Value, Compare, Find, class >::size().
|
inline |
Definition at line 257 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 986 of file swnewtable.cxx.
References o3tl::sorted_vector< Value, Compare, Find, class >::back(), o3tl::sorted_vector< Value, Compare, Find, class >::empty(), o3tl::sorted_vector< Value, Compare, Find, class >::end(), o3tl::sorted_vector< Value, Compare, Find, class >::find(), SwTableLines::GetPos(), SwTableBox::getRowSpan(), SwTableLine::GetTabBoxes(), GetTabLines(), SwTableBox::GetUpper(), o3tl::sorted_vector< Value, Compare, Find, class >::insert(), and m_aLines.
Referenced by PrepareMerge().
|
static |
Definition at line 1906 of file swtable.cxx.
References SwIterator< TElementType, TSource, eMode >::First().
Referenced by MSWordExportBase::AddLinkTarget(), SwXTextTable::autoFormat(), SwDoc::ChgTableStyle(), SwChartDataProvider::convertRangeToXML(), SwXText::convertToTable(), SwXTextTable::createCursorByCellName(), SwXCell::CreateXCell(), SwChartDataSequence::DeleteBox(), SwDoc::DelTableStyle(), SwXTextTable::dispose(), SwChartDataSequence::dispose(), SwDoc::DoUpdateAllCharts(), SwXMLTextParagraphExport::exportTable(), SwChartDataSequence::ExtendTo(), 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(), sw_setValue(), SwChartDataSequence::SwChartDataSequence(), SwXTextRange::SwXTextRange(), SwDoc::UnProtectCells(), SwDoc::UnProtectTables(), SwDoc::UpdateCharts(), and SwTOXBaseSection::UpdateTable().
void SwTable::GCLines | ( | ) |
Definition at line 454 of file gctable.cxx.
References GetTabLines(), lcl_MergeGCLine(), n, and SwTableLines::size().
Referenced by ConvertSubtables(), InsertCnt_(), and MakeCopy().
|
static |
Definition at line 1268 of file swtable.cxx.
References lcl_IsValidRowName(), nPos, and SAL_MAX_UINT16.
Referenced by GetTableBox(), lcl_BoxNmToRel(), and lcl_RelToBox().
|
inline |
Definition at line 203 of file swtable.hxx.
References SwClient::GetRegisteredIn().
Referenced by SwDoc::AdjustCellWidth(), WW8TabDesc::AdjustNewBand(), SwDoc::AppendDoc(), FndBox_::AreLinesToRestore(), SwXTextTable::attach(), 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_(), sw::DocumentContentOperationsManager::DelFullPara(), SwChartDataProvider::DisposeAllDataSequences(), SwStartNode::dumpAsXml(), RtfExport::ExportDocument_Impl(), SwXMLExport::ExportTable(), SwXMLExport::ExportTableAutoStyles(), SwViewShell::FillPrtDoc(), SwHTMLTableLayout::GetBrowseWidthByTable(), SwUnoCursorHelper::getCursorPropertyValue(), ww8::WW8TableNodeInfoInner::getGridColsOfRow(), GetInfo(), SwXRedline::getPropertyValue(), SwXTextTableCursor::getPropertyValue(), GetTabCols(), GetTableBox(), SwXMLTableInfo_Impl::GetTableFormat(), SwEditShell::GetTableFormat(), AttributeOutputBase::GetTablePageSize(), SwTOXTable::GetText_Impl(), GiveNodePageDesc(), HasLayout(), sw::util::HasPageBreak(), SwRootFrame::Init(), DocxAttributeOutput::InitTableHelper(), RtfAttributeOutput::InitTableHelper(), SwUndoTableCpyTable::InsertRow(), InsNewTable(), InsTable(), SwAccessibleMap::InvalidateShapeInParaSelection(), SwChartDataProvider::InvalidateTable(), 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(), PrepareDeleteCol(), PrepareMerge(), SwUndoInsTable::RedoImpl(), SwUndoDelete::RedoImpl(), SwUndoTextToTable::RedoImpl(), SwUndoInsertLabel::RedoImpl(), SaveTable::RestoreAttr(), SwTableAutoFormat::RestoreTableProperties(), SaveTable::SaveTable(), SwTableFormula::ScanString(), RtfAttributeOutput::SectionBreaks(), DocxAttributeOutput::SectionBreaks(), SwXTextTable::setName(), SwXTextTableCursor::setPropertyValue(), SwDoc::SetRowsToRepeat(), WW8TabDesc::SetSizePosition(), SetTabCols(), SwDoc::SetTabCols(), SwTableCellInfo::Impl::setTable(), SwTableFormula::SplitMergeBoxNm_(), sw::DocumentContentOperationsManager::SplitNode(), SwNodes::SplitTable(), SwDoc::SplitTable(), SwTableAutoFormat::StoreTableProperties(), SwNode2LayImpl::SwNode2LayImpl(), SwUndoMergeTable::SwUndoMergeTable(), SwUndoTableToText::SwUndoTableToText(), WW8AttributeOutput::TableBackgrounds(), RtfAttributeOutput::TableBackgrounds(), DocxAttributeOutput::TableBackgrounds(), WW8AttributeOutput::TableBidi(), RtfAttributeOutput::TableBidi(), DocxAttributeOutput::TableBidi(), WW8AttributeOutput::TableDefinition(), RtfAttributeOutput::TableDefinition(), DocxAttributeOutput::TableDefinition(), WW8AttributeOutput::TableOrientation(), RtfAttributeOutput::TableOrientation(), WW8AttributeOutput::TableSpacing(), SwUndoSplitNode::UndoImpl(), SwUndoInsertLabel::UndoImpl(), SwUndoCpyTable::UndoImpl(), SwUndoMergeTable::UndoImpl(), UpdateCharts(), SwDoc::UpdateCharts_(), SwDDETable::~SwDDETable(), ~SwTable(), and SwTableNode::~SwTableNode().
|
inline |
Definition at line 204 of file swtable.hxx.
References SwClient::GetRegisteredIn().
|
inline |
Definition at line 176 of file swtable.hxx.
Referenced by SwHTMLTableLayout::AutoLayoutPass1(), SwContentFrame::GrowFrame(), DocxAttributeOutput::InitTableHelper(), RtfAttributeOutput::InitTableHelper(), SwHTMLParser::InsertTableSection(), lcl_MinMaxNode(), SwTabFrame::MakeAll(), OutHTML_SwTableNode(), SwDoc::SetBoxAttr(), SetGrfFlySize(), SwDoc::SetTabBorders(), SwDoc::SetTabLineStyle(), and SwContentFrame::ShrinkFrame().
|
inline |
Definition at line 177 of file swtable.hxx.
|
overridevirtual |
Reimplemented from SwClient.
Definition at line 1872 of file swtable.cxx.
References o3tl::sorted_vector< Value, Compare, Find, class >::empty(), First, SwFormat::GetDoc(), GetFrameFormat(), SwNode::GetNodes(), SwDoc::GetNodes(), GetTableNode(), SwNodes::GoNext(), m_TabSortContentBoxes, pObject, RES_AUTOFMT_DOCNODE(), RES_CONTENT_VISIBLE(), RES_FINDNEARESTNODE(), RES_PAGEDESC(), and SfxPoolItem::Which().
|
inline |
Definition at line 326 of file swtable.hxx.
References tools::SvRef< T >::get().
|
inline |
Definition at line 327 of file swtable.hxx.
References tools::SvRef< T >::get().
|
inline |
Definition at line 195 of file swtable.hxx.
References size.
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(), FndBox_::MakeFrames(), FndBox_::MakeNewFrames(), SwNodes::MergeTable(), OutHTML_SwTableNode(), SwFEShell::SetRowsToRepeat(), SwDoc::SetRowsToRepeat(), SwTabFrame::Split(), DocxAttributeOutput::StartTableRow(), SwTableAutoFormat::StoreTableProperties(), 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 510 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 1328 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(), 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_(), SwNodes::SplitTable(), SwDoc::SplitTable(), SwUndoSort::UndoImpl(), SwUndoTextToTable::UndoImpl(), SwUndoTableNumFormat::UndoImpl(), SwUndoTableCpyTable::UndoImpl(), and SwUndoSplitTable::UndoImpl().
SwTableBox * SwTable::GetTableBox | ( | sal_uLong | nSttIdx | ) |
Definition at line 1375 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< Value, Compare, Find, class >::size().
|
inline |
Definition at line 294 of file swtable.hxx.
|
inline |
Definition at line 332 of file swtable.hxx.
Referenced by SwEditShell::GetTableChgMode(), SwNodes::MergeTable(), and SwFEShell::SetColRowWidthHeight().
SwTableNode * SwTable::GetTableNode | ( | ) | const |
Definition at line 1913 of file swtable.cxx.
References o3tl::sorted_vector< Value, Compare, Find, class >::empty(), GetTabSortBoxes(), and m_pTableNode.
Referenced by CheckConsistency(), SwDoc::ChgTableStyle(), SwLayoutCache::CompareLayout(), ConvertSubtableBox(), WW8TabDesc::CreateSwTable(), SwXMLTextParagraphExport::exportTable(), GetInfo(), SwXCell::getPropertyValue(), SwXTextTable::getPropertyValue(), SwXTextRange::getText(), SwDoc::InsCopyOfTable(), SwXText::insertTextContentAfter(), SwXText::insertTextContentBefore(), lcl_GetSpecialProperty(), UnfloatTableButton::MouseButtonDown(), NewInsertCol(), SwHTMLParser::PendingObjectsInPaM(), ww8::WW8TableInfo::processSwTable(), SwXText::removeTextContentAfter(), SwXText::removeTextContentBefore(), 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 190 of file swtable.hxx.
Referenced by SwDoc::ChgTableStyle(), SwDoc::DelTableStyle(), SwXMLExport::ExportTable(), SwXTextTable::getPropertyValue(), SwXTextTableStyle::isInUse(), SwDoc::IsUsed(), MakeCopy(), SwNodes::SplitTable(), SwDocShell::StateStyleSheet(), SwUndoTableAutoFormat::UndoRedo(), and SwFEShell::UpdateTableStyleFormatting().
|
inline |
Definition at line 200 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(), 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(), GetTableBox(), GetTableSel(), SwVbaTableHelper::getTabRowIndex(), SwChartDataProvider::Impl_createDataSource(), DocxAttributeOutput::InitTableHelper(), RtfAttributeOutput::InitTableHelper(), SwNodes::InsBoxen(), SwXTableRows::insertByIndex(), SwXTableColumns::insertByIndex(), 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_(), SwXMLTableContext::MakeTableLine(), HTMLTable::MakeTableLine(), SwFEShell::MergeTab(), SwNodes::MergeTable(), NewSetTabCols(), NewSplitRow(), SwDDETable::NoDDETable(), OutHTML_SwTableNode(), MSWordExportBase::OutputTextNode(), PrepareDelBoxes(), ww8::WW8TableInfo::processSwTable(), SaveTable::RestoreAttr(), RestoreRowSpan(), SaveTable::SaveTable(), SwAccessibleTable::selectAccessibleChild(), SwXTextTable::setPropertyValue(), SetTabCols(), FndBox_::SetTableLines(), SwNodes::SplitTable(), SwDoc::SplitTable(), SwDDETable::SwDDETable(), SwTabFrame::SwTabFrame(), SwNodes::TextToTable(), SwDoc::TextToTable(), SwNodes::UndoTableToText(), and WW8TabDesc::UseSwTable().
|
inline |
Definition at line 201 of file swtable.hxx.
|
inline |
Definition at line 261 of file swtable.hxx.
Referenced by MSWordExportBase::AddLinkTarget(), SwXTextTable::autoFormat(), SwHTMLParser::BuildTable(), SwDDETable::ChangeContent(), CheckTable(), SwEditShell::CopySelToDoc(), SwXCell::CreateXCell(), 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(), SwUndoTableCpyTable::InsertRow(), SwDoc::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(), SwDoc::UnProtectTableCells(), and SwFEShell::UpdateTableStyleFormatting().
|
inline |
Definition at line 262 of file swtable.hxx.
bool SwTable::HasLayout | ( | ) | const |
Definition at line 2739 of file swtable.cxx.
References SwIterator< TElementType, TSource, eMode >::First(), and GetFrameFormat().
Referenced by ww8::WW8TableInfo::processSwTable().
|
inline |
Definition at line 180 of file swtable.hxx.
bool SwTable::InsertCol | ( | SwDoc & | rDoc, |
const SwSelBoxes & | rBoxes, | ||
sal_uInt16 | nCnt, | ||
bool | bBehind | ||
) |
Definition at line 451 of file tblrwcl.cxx.
References SwChartDataProvider::AddRowCols(), CHECKBOXWIDTH, CHECKTABLELAYOUT, FndBox_::DelFrames(), o3tl::sorted_vector< Value, Compare, Find, class >::empty(), ForEach_FndLineCopyCol(), IDocumentChartDataProviderAccess::GetChartDataProvider(), SwDoc::GetDocShell(), SwDocShell::GetFEShell(), SwDoc::getIDocumentChartDataProviderAccess(), FndBox_::GetLines(), lcl_InsCol(), FndBox_::MakeFrames(), 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 1491 of file swnewtable.cxx.
References CHECK_TABLE, FndBox_::DelFrames(), SwDoc::DelNumRules(), SwNode::GetContentNode(), SwTableBox::GetSttNd(), SwTableLine::GetTabBoxes(), GetTabLines(), InsertRow_(), IsNewModel(), lcl_ChangeRowSpan(), lcl_FillSelBoxes(), lcl_LineIndex(), FndBox_::MakeFrames(), n, FndBox_::SetTableLines(), and USHRT_MAX.
Referenced by SwUndoTableCpyTable::InsertRow(), SwDoc::InsertRow(), InsNewTable(), and InsTable().
|
private |
Definition at line 510 of file tblrwcl.cxx.
References SwChartDataProvider::AddRowCols(), CHECKBOXWIDTH, CHECKTABLELAYOUT, FndBox_::DelFrames(), o3tl::sorted_vector< Value, Compare, Find, class >::empty(), First, ForEach_FndLineCopyCol(), FndBox_::GetBox(), FndLine_::GetBoxes(), IDocumentChartDataProviderAccess::GetChartDataProvider(), SwDoc::GetDocShell(), SwDocShell::GetFEShell(), SwDoc::getIDocumentChartDataProviderAccess(), FndBox_::GetLines(), SwTableLines::GetPos(), SwTableBox::GetTabLines(), SwDoc::IsInReading(), lcl_CopyRow(), FndBox_::MakeFrames(), FndBox_::MakeNewFrames(), FndBox_::SetTableLines(), SwDoc::UpdateCharts(), and SwFEShell::UpdateTableStyleFormatting().
Referenced by InsertRow(), and InsertSpannedRow().
SwTable::InsertSpannedRow(..) inserts "superfluous" rows, i.e.
rows containing overlapped cells only. This is a preparation for an upcoming split.
Definition at line 1170 of file swnewtable.cxx.
References CHECK_TABLE, SwTableLine::ClaimFrameFormat(), SwTableLine::GetFrameFormat(), SwFormat::GetFrameSize(), SwTableLine::GetTabBoxes(), GetTabLines(), InsertRow_(), lcl_ChangeRowSpan(), lcl_FillSelBoxes(), n, SwFormat::SetFormatAttr(), 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< Value, Compare, Find, class >::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< Value, Compare, Find, class >::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< Value, Compare, Find, class >::size(), SwTableLines::size(), TBL_RELBOXNAME, and IDocumentFieldsAccess::UpdateTableFields().
bool SwTable::IsHeadline | ( | const SwTableLine & | rLine | ) | const |
Definition at line 5574 of file tabfrm.cxx.
References GetRowsToRepeat(), GetTabLines(), and i.
Referenced by SwTableFormula::GetBoxes(), and SwTabFrame::IsInHeadline().
|
inline |
Definition at line 187 of file swtable.hxx.
Referenced by SwEditShell::CanMergeTable(), CheckConsistency(), CheckRowSpan(), CleanUpBottomRowSpan(), CleanUpTopRowSpan(), CopyHeadlineIntoTable(), SwDoc::DeleteRowCol(), FndBox_::DelFrames(), SwCellFrame::Format(), GetTableSel(), SwDoc::InsCopyOfTable(), 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 1429 of file swtable.cxx.
References m_TabSortContentBoxes, n, and o3tl::sorted_vector< Value, Compare, Find, class >::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 | ( | const OUString & | rSel | ) | const |
Definition at line 39 of file docchart.cxx.
References SwTableLines::back(), ChkChartSel(), SwTableLines::front(), SwTableBox::GetSttNd(), SwTableLine::GetTabBoxes(), GetTableBox(), GetTabLines(), SwTableBox::GetTabLines(), and nLength.
Referenced by SwCursorShell::IsTableComplexForChart().
|
inline |
Definition at line 183 of file swtable.hxx.
Referenced by SetTabCols().
bool SwTable::MakeCopy | ( | SwDoc & | rInsDoc, |
const SwPosition & | rPos, | ||
const SwSelBoxes & | rSelBoxes, | ||
bool | bCpyName = false |
||
) | const |
Definition at line 2045 of file tblrwcl.cxx.
References SwTableLines::back(), BorderCopy, CHECKTABLELAYOUT, SwFormat::CopyAttrs(), SwDoc::CopyTextColl(), DeleteBox_(), SwTableNode::DelFrames(), SwNode::FindTableNode(), ForEach_FndLineCopyCol(), GCLines(), GetFrameFormat(), SwDoc::getIDocumentFieldsAccess(), SwDoc::getIDocumentStylePoolAccess(), FndLine_::GetLine(), FndBox_::GetLines(), SwNodeIndex::GetNode(), SwTableLine::GetTabBoxes(), SwTableNode::GetTable(), GetTableStyleName(), GetTabLines(), IDocumentStylePoolAccess::GetTextCollFromPool(), HeadlineNoBorder, IDocumentFieldsAccess::InsertFieldType(), SwDoc::InsertTable(), IsNewModel(), lcl_CalcNewWidths(), lcl_CheckRowSpan(), lcl_CopyLineToDoc(), lcl_GetBoxOffset(), lcl_GetLineWidth(), SwTableFormulaUpdate::m_eFlags, SwTableNode::MakeOwnFrames(), SwPosition::nNode, RES_POOLCOLL_TABLE, RES_POOLCOLL_TABLE_HDLN, SwCollectTableLineBoxes::Resize(), SwFrameFormat::SetName(), SwTableNode::SetNewTable(), SetRowsToRepeat(), SetTableChgMode(), SetTableStyleName(), SwCollectTableLineBoxes::SetValues(), size, sw_Box_CollectBox(), sw_BoxSetSplitBoxFormats(), TBL_RELBOXNAME, IDocumentFieldsAccess::UpdateTableFields(), and USHRT_MAX.
Referenced by SwDoc::InsCopyOfTable(), SwDoc::MakeFlyAndMove(), and SwWriter::Write().
|
inline |
Definition at line 231 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(), assert(), 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(), SwTableLines::size(), and USHRT_MAX.
|
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 1149 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, SwTableLines::size(), and USHRT_MAX.
Referenced by SetTabCols().
|
private |
SwTable::NewSplitRow(..) splits all selected boxes horizontally.
Definition at line 1408 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(), SwFormatFrameSize::SetHeightSizeType(), FndBox_::SetTableLines(), and o3tl::sorted_vector< Value, Compare, Find, class >::size().
|
private |
Definition at line 1519 of file tblrwcl.cxx.
References SwUndoTableMerge::AddNewBox(), SwTableLines::begin(), CHECKBOXWIDTH, CHECKTABLELAYOUT, SwTableLine::ClaimFrameFormat(), SwTableBox::ClaimFrameFormat(), IDocumentChartDataProviderAccess::CreateChartInternalDataProviders(), DeleteBox_(), FndBox_::DelFrames(), o3tl::sorted_vector< Value, Compare, Find, class >::empty(), SwTableLines::empty(), ForEach_FndLineCopyCol(), FndBox_::GetBox(), SwTableBox::GetFrameFormat(), SwDoc::getIDocumentChartDataProviderAccess(), FndBox_::GetLines(), SwTableLines::GetPos(), SwTableBox::GetSttIdx(), SwTableBox::GetSttNd(), SwTableLine::GetTabBoxes(), SwTableBox::GetTabLines(), FndBox_::GetUpper(), SwTableLines::insert(), lcl_BoxSetHeadCondColl(), lcl_CalcWidth(), lcl_Merge_MoveBox(), lcl_Merge_MoveLine(), FndBox_::MakeFrames(), RES_FRM_SIZE(), SwFormat::ResetFormatAttr(), SwUndoTableMerge::SetSelBoxes(), FndBox_::SetTableLines(), and SwTableBox::SetUpper().
|
private |
Definition at line 1008 of file tblrwcl.cxx.
References SwTableLines::begin(), CHECKBOXWIDTH, CHECKTABLELAYOUT, SwTableLine::ClaimFrameFormat(), SwTableBox::ClaimFrameFormat(), IDocumentChartDataProviderAccess::CreateChartInternalDataProviders(), SwNodes::Delete(), FndBox_::DelFrames(), o3tl::sorted_vector< Value, Compare, Find, class >::empty(), SwNode::EndOfSectionIndex(), SwNode::EndOfSectionNode(), SwFormat::GetBox(), SwTableLine::GetBoxPos(), SwFrameAreaDefinition::getFrameArea(), SwTableLine::GetFrameFormat(), SwTableBox::GetFrameFormat(), SwFormat::GetFrameSize(), SwRectFnSet::GetHeight(), SwDoc::getIDocumentChartDataProviderAccess(), SwNode::GetIndex(), 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(), SwFormatFrameSize::SetHeightSizeType(), SvxBoxItem::SetLine(), FndBox_::SetTableLines(), SwTableBox::SetUpper(), o3tl::sorted_vector< Value, Compare, Find, class >::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, o3tl::sorted_vector< Value, Compare, Find, class >::size(), and USHRT_MAX.
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(), IDocumentContentOperations::AppendTextNode(), SwIndex::Assign(), SwNodeIndex::Assign(), CHECK_TABLE, SwTableBox::ChgFrameFormat(), SwTableBox::ClaimFrameFormat(), CollectBoxSelection(), IDocumentUndoRedo::DoesUndo(), IDocumentUndoRedo::DoUndo(), o3tl::sorted_vector< Value, Compare, Find, class >::empty(), SwNode::EndOfSectionNode(), FindSuperfluousRows_(), SvxBoxItem::GetBottom(), SwFormat::GetBox(), SwPaM::GetContentNode(), SwFormat::GetDoc(), GetFrameFormat(), SwTableBox::GetFrameFormat(), SwDoc::getIDocumentContentOperations(), SwDoc::GetIDocumentUndoRedo(), GetMergeSel(), SwPaM::GetPoint(), SvxBoxItem::GetRight(), SwTableBox::getRowSpan(), SwTableBox::GetSttIdx(), SwTableBox::GetSttNd(), SwNode::GetTextNode(), SwTableBox::GetUpper(), o3tl::sorted_vector< Value, Compare, Find, class >::insert(), IsEmptyBox(), SwContentNode::Len(), m_bNewModel, SwUndoTableMerge::MoveBoxContent(), IDocumentContentOperations::MoveNodeRange(), SwPosition::nContent, SwPosition::nNode, NO_DELFRMS, SwTextNode::SetCountedInList(), SwFormat::SetFormatAttr(), SvxBoxItem::SetLine(), SwTableBox::setRowSpan(), o3tl::sorted_vector< Value, Compare, Find, class >::size(), and Variable.
Referenced by SwDoc::MergeTable().
Definition at line 2734 of file swtable.cxx.
References SwModify::Add().
Referenced by SwDoc::InsertTable(), SwTableNode::MakeCopy(), SwNodes::SplitTable(), and SwDoc::TextToTable().
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< Value, Compare, Find, class >::clear(), FndContentBox(), SwTableLine::GetTabBoxes(), SwTableLine::GetUpper(), and SwTableBox::GetUpper().
Referenced by 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 2592 of file tblrwcl.cxx.
References BROWSE_MODE, CellLeft, CellRight, CHECKBOXWIDTH, CHECKTABLELAYOUT, COLFUZZY, ColLeft, ColRight, extractPosition(), SwNode::FindTableNode(), First, FixedWidthChangeAbs, FixedWidthChangeProp, SwTableLine::GetBoxPos(), SwTableBox::GetFrameFormat(), SwFrameAreaDefinition::getFramePrintArea(), SwFormatHoriOrient::GetHoriOrient(), SvxLRSpaceItem::GetLeft(), SvxLRSpaceItem::GetRight(), SwTableBox::GetSttNd(), SwTableLine::GetTabBoxes(), SwTableLine::GetUpper(), SwTableBox::GetUpper(), SvxSizeItem::GetWidth(), SwFormatFrameSize::GetWidthPercent(), lcl_AjustLines(), lcl_GetDistance(), lcl_SetOtherBoxWidth(), lcl_SetSelBoxWidth(), LONG_MAX, n, SwPostItHelper::NONE, nPos, SwFormatHoriOrient::SetHoriOrient(), SvxLRSpaceItem::SetLeft(), SvxLRSpaceItem::SetRight(), SvxSizeItem::SetWidth(), SwFormatFrameSize::SetWidthPercent(), USHRT_MAX, VarWidthChangeAbs, and SwRect::Width().
Referenced by SwDoc::SetColRowWidthHeight().
void SwTable::SetHTMLTableLayout | ( | std::shared_ptr< SwHTMLTableLayout > const & | r | ) |
Definition at line 1928 of file swtable.cxx.
References m_xHTMLLayout.
Referenced by InsTable(), SwDoc::MergeTable(), SetTabCols(), SwFEShell::SetTableAttr(), SwDoc::SetTableAutoFormat(), and SwDoc::SplitTable().
void SwTable::SetRefObject | ( | SwServerObject * | pObj | ) |
Definition at line 1920 of file swtable.cxx.
References sfx2::SvLinkSource::Closed(), tools::SvRef< T >::is(), and m_xRefObj.
bool SwTable::SetRowHeight | ( | SwTableBox & | rCurrentBox, |
TableChgWidthHeightType | eType, | ||
SwTwips | nAbsDiff, | ||
SwTwips | nRelDiff, | ||
std::unique_ptr< SwUndo > * | ppUndo | ||
) |
Definition at line 3033 of file tblrwcl.cxx.
References CalcRowRstHeight(), CellBottom, CellTop, CHECKTABLELAYOUT, extractPosition(), SwNode::FindTableNode(), FixedWidthChangeProp, SwFrameAreaDefinition::getFrameArea(), SwTableLines::GetPos(), GetRowFrame(), SwTableBox::GetSttNd(), SwTableBox::GetTabLines(), SwTableLine::GetUpper(), SwTableBox::GetUpper(), SwRect::Height(), lcl_SetOtherLineHeight(), lcl_SetSelLineHeight(), n, RowBottom, SwTableLines::size(), and VarWidthChangeAbs.
Referenced by SwDoc::SetColRowWidthHeight().
|
inline |
Definition at line 196 of file swtable.hxx.
Referenced by SwDoc::InsertTable(), SwTabFrame::MakeAll(), MakeCopy(), SwTableNode::MakeCopy(), SwXMLTableContext::MakeTable(), SwNodes::MergeTable(), SwTableAutoFormat::RestoreTableProperties(), SwDoc::SetRowsToRepeat(), SwTabFrame::Split(), SwDoc::SplitTable(), SwDoc::TextToTable(), SwUndoTableAutoFormat::UndoRedo(), and WW8TabDesc::UseSwTable().
void SwTable::SetTabCols | ( | const SwTabCols & | rNew, |
const SwTabCols & | rOld, | ||
const SwTableBox * | pStart, | ||
bool | bCurRowOnly | ||
) |
Definition at line 815 of file swtable.cxx.
References Parm::aBoxArr, SvxShadowItem::CalcShadowSpace(), CHECK_TABLE, CheckBoxWidth(), SwTabCols::Count(), GetFrameFormat(), SwFormat::GetFrameSize(), SwTabCols::GetLeft(), SwTabCols::GetRight(), SwTabCols::GetRightMax(), 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, SetHTMLTableLayout(), SvxSizeItem::SetWidth(), SwTableLines::size(), UnlockModify(), and USHRT_MAX.
Referenced by SwVbaTableHelper::SetColWidth(), and SwDoc::SetTabCols().
|
inline |
Definition at line 333 of file swtable.hxx.
Referenced by MakeCopy(), SwTableNode::MakeCopy(), and SwNodes::MergeTable().
|
inline |
Definition at line 186 of file swtable.hxx.
Referenced by SwDoc::InsertTable(), SwTableNode::MakeCopy(), SwXMLTableContext::MakeTable(), SwNodes::SplitTable(), and SwUndoTableToText::UndoImpl().
|
inline |
Definition at line 322 of file swtable.hxx.
Referenced by SwTableNode::MakeCopy().
|
inline |
Set the new table style name for this table.
Definition at line 193 of file swtable.hxx.
Referenced by SwDoc::DelTableStyle(), InsertTableImpl(), MakeCopy(), SwXMLTableContext::MakeTable(), SwXTextTable::setPropertyValue(), SwNodes::SplitTable(), and SwUndoTableAutoFormat::UndoRedo().
bool SwTable::SplitCol | ( | SwDoc & | rDoc, |
const SwSelBoxes & | rBoxes, | ||
sal_uInt16 | nCnt | ||
) |
Definition at line 1151 of file tblrwcl.cxx.
References o3tl::sorted_vector< Value, Compare, Find, class >::begin(), CHECKBOXWIDTH, CHECKTABLELAYOUT, SwTableBox::ChgFrameFormat(), SwTableBox::ClaimFrameFormat(), IDocumentChartDataProviderAccess::CreateChartInternalDataProviders(), FndBox_::DelFrames(), o3tl::sorted_vector< Value, Compare, Find, class >::empty(), o3tl::sorted_vector< Value, Compare, Find, class >::end(), o3tl::sorted_vector< Value, Compare, Find, class >::erase(), SwTableLine::GetBoxPos(), SwTableBox::GetFrameFormat(), SwFormat::GetFrameSize(), SwDoc::getIDocumentChartDataProviderAccess(), SvxBoxItem::GetRight(), SwTableLine::GetTabBoxes(), SwTableBox::GetUpper(), SvxSizeItem::GetWidth(), i, o3tl::sorted_vector< Value, Compare, Find, class >::insert(), InsTableBox(), o3tl::sorted_vector< Value, Compare, Find, class >::lower_bound(), FndBox_::MakeFrames(), n, SwFormat::SetFormatAttr(), SvxBoxItem::SetLine(), FndBox_::SetTableLines(), o3tl::sorted_vector< Value, Compare, Find, class >::size(), and Variable.
Referenced by SwDoc::SplitTable().
|
inline |
Definition at line 237 of file swtable.hxx.
Referenced by SwDoc::SplitTable().
Reimplemented from SwClient.
Reimplemented in SwDDETable.
Definition at line 316 of file swtable.cxx.
References AdjustWidths(), SwClient::CheckRegistration(), sw::LegacyModifyHint::GetWhich(), SvxSizeItem::GetWidth(), m_bModifyLocked, RES_ATTRSET_CHG(), and RES_FRM_SIZE().
Referenced by SwDDETable::SwClientNotify().
|
inline |
Definition at line 184 of file swtable.hxx.
Referenced by SetTabCols().
void SwTable::UpdateCharts | ( | ) | const |
Definition at line 34 of file docchart.cxx.
References SwFormat::GetDoc(), GetFrameFormat(), and SwDoc::UpdateCharts().
Referenced by SwDoc::ChkBoxNumFormat(), and SwNodes::SplitTable().
|
protected |
Definition at line 115 of file swtable.hxx.
Referenced by AdjustWidths(), SwDDETable::ChangeContent(), CollectBoxSelection(), CreateSelection(), ExpandColumnSelection(), FindSuperfluousRows_(), GetTabCols(), NewInsertCol(), SwDDETable::NoDDETable(), PrepareDeleteCol(), SetTabCols(), SwDDETable::SwDDETable(), and SwDDETable::~SwDDETable().
|
protected |
Definition at line 137 of file swtable.hxx.
Referenced by SwClientNotify().
|
protected |
Definition at line 138 of file swtable.hxx.
Referenced by CollectBoxSelection(), ConvertSubtables(), CreateSelection(), ExpandColumnSelection(), PrepareDeleteCol(), and PrepareMerge().
|
protected |
Definition at line 128 of file swtable.hxx.
Referenced by SwTable().
|
protected |
Definition at line 130 of file swtable.hxx.
|
protected |
Definition at line 132 of file swtable.hxx.
|
protected |
Definition at line 125 of file swtable.hxx.
Referenced by GetTableNode(), and SwDDETable::~SwDDETable().
|
protected |
Definition at line 116 of file swtable.hxx.
Referenced by GetInfo(), GetTableBox(), IsTableComplex(), SwDDETable::SwDDETable(), and ~SwTable().
|
protected |
Definition at line 119 of file swtable.hxx.
Referenced by SetHTMLTableLayout().
|
protected |
Definition at line 117 of file swtable.hxx.
Referenced by SetRefObject(), and ~SwTable().
|
protected |
Name of the table style to be applied on this table.
Definition at line 135 of file swtable.hxx.