32#include <osl/diagnose.h>
42 if( 2 < aSelection.size() )
44 const size_t nSeparator = aSelection.find(
u':' );
45 OSL_ENSURE( std::u16string_view::npos != nSeparator,
"no valid selection" );
48 const sal_Int32 nOffset =
'<' == aSelection[0] ? 1 : 0;
49 const sal_Int32
nLength =
'>' == aSelection[ aSelection.size()-1 ]
50 ? aSelection.size()-1 : aSelection.size();
52 pSttBox =
GetTableBox(OUString(aSelection.substr( nOffset, nSeparator - nOffset )));
53 pEndBox =
GetTableBox(OUString(aSelection.substr( nSeparator+1,
nLength - (nSeparator+1) )));
58 pSttBox = (*pLns)[ 0 ]->GetTabBoxes().front();
64 pEndBox = pBoxes->back();
70 pEndBox = pBoxes->back();
88 if( pTableNd->GetNodes().IsDocNodes() )
111 bool bImmediateMode(
false);
118 const_cast<SwViewShell &
>(rVSh).InvalidateWindows(aChartRect);
126 bImmediateMode =
true;
153 const OUString aOldName( rTableFormat.
GetName() );
155 bool bNameFound = rNewName.isEmpty();
160 if( !pFormat->IsDefault() &&
161 pFormat->GetName() == rNewName &&
IsUsed( *pFormat ) )
virtual SwChartDataProvider * GetChartDataProvider(bool bCreate=false) const =0
returns or creates the data-provider for chart
virtual const SwViewShell * GetCurrentViewShell() const =0
Returns the layout set at the document.
virtual void SetModified()=0
Must be called manually at changes of format.
void InvalidateTable(const SwTable *pTable, bool bImmediate=false)
SwContentFrame * getLayoutFrame(const SwRootFrame *, const SwPosition *pPos=nullptr, std::pair< Point, bool > const *pViewPosAndCalcFrame=nullptr) const
SwRect FindLayoutRect(const bool bPrtArea=false, const Point *pPoint=nullptr) const
void UpdateCharts(const OUString &rName) const
IDocumentState const & getIDocumentState() const
IDocumentChartDataProviderAccess const & getIDocumentChartDataProviderAccess() const
const sw::TableFrameFormats * GetTableFrameFormats() const
bool IsUsed(const sw::BroadcastingModify &) const
void SetTableName(SwFrameFormat &rTableFormat, const OUString &rNewName)
void UpdateCharts_(const SwTable &rTable, SwViewShell const &rVSh) const
IDocumentLayoutAccess const & getIDocumentLayoutAccess() const
SwTableFormat * FindTableFormatByName(const OUString &rName, bool bAll=false) const
OUString GetUniqueTableName() const
Marks a node in the document model.
SwNodeIndex & Assign(SwNodes const &rNds, SwNodeOffset nIdx)
SwStartNode * GetStartNode()
SwOLENode * GetOLENode()
Inline methods from Node.hxx.
SwTableNode * GetTableNode()
const SwEndNode * EndOfSectionNode() const
const SwOLEObj & GetOLEObj() const
void SetChartTableName(const OUString &rNm)
const OUString & GetChartTableName() const
Of course Writer needs its own rectangles.
Starts a section of nodes in the document model.
SwTableBox is one table cell in the document model.
SwTableLines & GetTabLines()
const SwStartNode * GetSttNd() const
SwTableBoxes & GetTabBoxes()
SwTableLine * back() const
SwTableLine * front() const
SwTable is one table in the document model, containing rows (which contain cells).
SwTableLines & GetTabLines()
SwTableFormat * GetFrameFormat()
bool IsTableComplexForChart(std::u16string_view aSel) const
const SwTableBox * GetTableBox(const OUString &rName, const bool bPerformValidCheck=false) const
static SwTable * FindTable(SwFrameFormat const *const pFormat)
void UpdateCharts() const
SwRootFrame * GetLayout() const
virtual OUString GetName() const override
std::vector< SwTableBox * > SwTableBoxes
bool ChkChartSel(const SwNode &rSttNd, const SwNode &rEndNd)