32 #include <osl/diagnose.h>
42 if( 2 < rSelection.getLength() )
44 const sal_Int32 nSeparator {rSelection.indexOf(
':' )};
45 OSL_ENSURE( -1 != nSeparator,
"no valid selection" );
48 const sal_Int32 nOffset {
'<' == rSelection[0] ? 1 : 0};
49 const sal_Int32
nLength {
'>' == rSelection[ rSelection.getLength()-1 ]
50 ? rSelection.getLength()-1 : rSelection.getLength()};
52 pSttBox =
GetTableBox(rSelection.copy( nOffset, nSeparator - nOffset ));
58 pSttBox = (*pLns)[ 0 ]->GetTabBoxes().front();
64 pEndBox = pBoxes->back();
70 pEndBox = pBoxes->back();
85 for(
size_t n = 0;
n < rTableFormats.
size(); ++
n )
90 if( pTableNd->GetNodes().IsDocNodes() )
116 aIdx.
Assign( *pStNd->EndOfSectionNode(), + 1 );
134 const OUString aOldName( rTableFormat.
GetName() );
136 bool bNameFound = rNewName.isEmpty();
140 for(
size_t i = rTable.
size();
i; )
153 rTableFormat.
SetName( rNewName,
true );
const SwEndNode * EndOfSectionNode() const
Starts a section of nodes in the document model.
bool IsUsed(const sw::BroadcastingModify &) const
const SwTableBox * GetTableBox(const OUString &rName, const bool bPerformValidCheck=false) const
SwOLENode * GetOLENode()
Inline methods from Node.hxx.
void UpdateCharts() const
const SwFrameFormats * GetTableFrameFormats() const
virtual void SetModified()=0
Must be called manually at changes of format.
OUString GetUniqueTableName() const
const OUString & GetChartTableName() const
SwContentFrame * getLayoutFrame(const SwRootFrame *, const SwPosition *pPos=nullptr, std::pair< Point, bool > const *pViewPosAndCalcFrame=nullptr) const
bool ChkChartSel(const SwNode &rSttNd, const SwNode &rEndNd)
void UpdateCharts_(const SwTable &rTable, SwViewShell const &rVSh) const
bool IsTableComplexForChart(const OUString &rSel) const
void InvalidateTable(const SwTable *pTable)
SwTableLine * front() const
SwTableFormat * GetFrameFormat()
void UpdateCharts(std::u16string_view rName) const
SwTableLine * back() const
SwTableNode * GetTableNode()
static SwTable * FindTable(SwFrameFormat const *const pFormat)
virtual SwChartDataProvider * GetChartDataProvider(bool bCreate=false) const =0
returns or creates the data-provider for chart
IDocumentState const & getIDocumentState() const
Marks a node in the document model.
SwStartNode * GetStartNode()
IDocumentChartDataProviderAccess const & getIDocumentChartDataProviderAccess() const
SwTableLines & GetTabLines()
IDocumentLayoutAccess const & getIDocumentLayoutAccess() const
SwTable is one table in the document model, containing rows (which contain cells).
SwTableLines & GetTabLines()
SwTableFormat * FindTableFormatByName(std::u16string_view rName, bool bAll=false) const
void SetChartTableName(const OUString &rNm)
SwTableBoxes & GetTabBoxes()
std::vector< SwTableBox * > SwTableBoxes
const SwStartNode * GetSttNd() const
virtual const SwViewShell * GetCurrentViewShell() const =0
Returns the layout set at the document.
SwTableBox is one table cell in the document model.
void SetTableName(SwFrameFormat &rTableFormat, const OUString &rNewName)
SwRootFrame * GetLayout() const
SwNodeIndex & Assign(SwNodes const &rNds, sal_uLong)