LibreOffice Module sw (master) 1
|
#include <swddetbl.hxx>
Public Member Functions | |
SwDDETable (SwTable &rTable, SwDDEFieldType *pDDEType, bool bUpdate=true) | |
Ctor moves all lines/boxes from a SwTable into itself. More... | |
virtual | ~SwDDETable () override |
void | ChangeContent () |
void | NoDDETable () |
SwDDEFieldType * | GetDDEFieldType () |
const SwDDEFieldType * | GetDDEFieldType () const |
Public Member Functions inherited from SwTable | |
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 | HasDeletedRowOrCell () const |
bool | IsEmpty () const |
void | SwitchFormulasToExternalRepresentation () |
void | SwitchFormulasToRelativeRepresentation () |
void | SwitchFormulasToInternalRepresentation () |
void | Merge (SwTable &rTable, SwHistory *pHistory) |
void | Split (OUString sNewTableName, sal_uInt16 nSplitLine, SwHistory *pHistory) |
void | dumpAsXml (xmlTextWriterPtr pWriter) const |
Public Member Functions inherited from SwClient | |
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 |
Public Member Functions inherited from sw::WriterListener | |
bool | IsLast () const |
virtual const SwCellFrame * | DynCastCellFrame () const |
virtual const SwTabFrame * | DynCastTabFrame () const |
virtual const SwRowFrame * | DynCastRowFrame () const |
virtual const SwTable * | DynCastTable () const |
Private Member Functions | |
virtual void | SwClientNotify (const SwModify &, const SfxHint &) override |
Private Attributes | |
sw::WriterMultiListener | m_aDepends |
SwDDEFieldType * | m_pDDEType |
Additional Inherited Members | |
Public Types inherited from SwTable | |
enum | SearchType { SEARCH_NONE , SEARCH_ROW , SEARCH_COL } |
Static Public Member Functions inherited from SwTable | |
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) |
virtual void | SwClientNotify (const SwModify &, const SfxHint &) override |
Protected Member Functions inherited from SwClient | |
SwClient (SwModify *pToRegisterIn) | |
SwModify * | GetRegisteredInNonConst () const |
virtual void | SwClientNotify (const SwModify &, const SfxHint &rHint) override |
Protected Member Functions inherited from sw::WriterListener | |
WriterListener () | |
virtual | ~WriterListener () COVERITY_NOEXCEPT_FALSE |
virtual void | SwClientNotify (const SwModify &, const SfxHint &rHint)=0 |
Protected Attributes inherited from SwTable | |
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 |
Definition at line 26 of file swddetbl.hxx.
SwDDETable::SwDDETable | ( | SwTable & | rTable, |
SwDDEFieldType * | pDDEType, | ||
bool | bUpdate = true |
||
) |
Ctor moves all lines/boxes from a SwTable into itself.
Afterwards the SwTable is empty and must be deleted.
Definition at line 39 of file ddetbl.cxx.
References SwTableLines::begin(), ChangeContent(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::clear(), SwTableLines::clear(), SwTableLines::empty(), SwTableLines::end(), SwNode::GetNodes(), SwTable::GetTabLines(), SwTable::GetTabSortBoxes(), SwDDEFieldType::IncRefCnt(), SwTableLines::insert(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), SwNodes::IsDocNodes(), m_aDepends, SwTable::m_aLines, m_pDDEType, SwTable::m_TabSortContentBoxes, and sw::WriterMultiListener::StartListening().
|
overridevirtual |
Definition at line 65 of file ddetbl.cxx.
References SwDDEFieldType::DecRefCnt(), SwTableLines::empty(), sw::WriterMultiListener::EndListeningAll(), SwFormat::GetDoc(), SwTable::GetFrameFormat(), SwNode::GetNodes(), SwDDEFieldType::IsDeleted(), SwNodes::IsDocNodes(), SwDoc::IsInDtor(), m_aDepends, SwTable::m_aLines, m_pDDEType, and SwTable::m_pTableNode.
void SwDDETable::ChangeContent | ( | ) |
Definition at line 127 of file ddetbl.cxx.
References AUTOUPD_FIELD_AND_CHARTS, SwTableLines::empty(), SwTextNode::EraseText(), SwFormat::GetDoc(), SwDDEFieldType::GetExpansion(), IDocumentSettingAccess::getFieldUpdateFlags(), SwTable::GetFrameFormat(), SwTableBox::GetFrameFormat(), SwDoc::getIDocumentFieldsAccess(), SwFormat::getIDocumentSettingAccess(), SwNodeIndex::GetNode(), SwTableBox::GetSttIdx(), SwTableBox::GetSttNd(), SwTableLine::GetTabBoxes(), SwTable::GetTabSortBoxes(), SwNode::GetTextNode(), i, SwTextNode::InsertText(), SwTable::m_aLines, m_pDDEType, n, RES_BOXATR_VALUE(), SwFormat::ResetFormatAttr(), IDocumentFieldsAccess::SetFieldsDirty(), size, and SwTableLines::size().
Referenced by SwDDETable().
SwDDEFieldType * SwDDETable::GetDDEFieldType | ( | ) |
|
inline |
Definition at line 47 of file swddetbl.hxx.
References GetDDEFieldType().
void SwDDETable::NoDDETable | ( | ) |
Definition at line 176 of file ddetbl.cxx.
References begin, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::clear(), SwTableLines::clear(), SwDDEFieldType::DecRefCnt(), SwTableLines::empty(), end, SwNode::FindTableNode(), IDocumentLayoutAccess::GetCurrentViewShell(), SwFormat::GetDoc(), SwTable::GetFrameFormat(), SwDoc::getIDocumentLayoutAccess(), SwNode::GetNodes(), SwTable::GetTabLines(), SwTable::GetTabSortBoxes(), SwNodes::IsDocNodes(), SwTable::m_aLines, m_pDDEType, SwTableNode::SetNewTable(), and SwTable::SwTable().
Referenced by SwClientNotify().
|
overrideprivatevirtual |
Reimplemented from SwTable.
Definition at line 86 of file ddetbl.cxx.
References SwPaM::DeleteMark(), SwNode::EndOfSectionIndex(), SfxHint::GetId(), SwNode::GetIndex(), SwNode::GetNodes(), SwTable::GetTabSortBoxes(), SwNodes::IsDocNodes(), m_pDDEType, SwFieldHint::m_pPaM, NoDDETable(), and SwTable::SwClientNotify().
|
private |
Definition at line 28 of file swddetbl.hxx.
Referenced by SwDDETable(), and ~SwDDETable().
|
private |
Definition at line 29 of file swddetbl.hxx.
Referenced by ChangeContent(), GetDDEFieldType(), NoDDETable(), SwClientNotify(), SwDDETable(), and ~SwDDETable().