LibreOffice Module sw (master) 1
|
#include <algorithm>
#include <string_view>
#include <com/sun/star/chart/ChartDataRowSource.hpp>
#include <com/sun/star/chart2/data/LabelOrigin.hpp>
#include <com/sun/star/embed/XEmbeddedObject.hpp>
#include <com/sun/star/frame/XModel.hpp>
#include <comphelper/diagnose_ex.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <o3tl/deleter.hxx>
#include <o3tl/string_view.hxx>
#include <mutex>
#include <vcl/svapp.hxx>
#include "XMLRangeHelper.hxx"
#include <unochart.hxx>
#include <swtable.hxx>
#include <unoprnms.hxx>
#include <unomap.hxx>
#include <unocrsr.hxx>
#include <unotbl.hxx>
#include <doc.hxx>
#include <IDocumentChartDataProviderAccess.hxx>
#include <frmfmt.hxx>
#include <ndole.hxx>
#include <swtypes.hxx>
#include <strings.hrc>
#include <comphelper/servicehelper.hxx>
#include <comphelper/string.hxx>
#include <svl/itemprop.hxx>
Go to the source code of this file.
Functions | |
IMPL_LINK_NOARG (SwChartLockController_Helper, DoUnlockAllCharts, Timer *, void) | |
static std::mutex & | GetChartMutex () |
static void | LaunchModifiedEvent (::comphelper::OInterfaceContainerHelper4< util::XModifyListener > &rICH, const uno::Reference< uno::XInterface > &rxI) |
bool | FillRangeDescriptor (SwRangeDescriptor &rDesc, std::u16string_view rCellRangeName) |
rCellRangeName needs to be of one of the following formats: More... | |
static OUString | GetCellRangeName (const SwFrameFormat &rTableFormat, SwUnoCursor &rTableCursor) |
static OUString | GetRangeRepFromTableAndCells (std::u16string_view rTableName, std::u16string_view rStartCell, std::u16string_view rEndCell, bool bForceEndCellName) |
static bool | GetTableAndCellsFromRangeRep (std::u16string_view rRangeRepresentation, OUString &rTableName, OUString &rStartCell, OUString &rEndCell, bool bSortStartEndCells=true) |
static void | GetTableByName (const SwDoc &rDoc, std::u16string_view rTableName, SwFrameFormat **ppTableFormat, SwTable **ppTable) |
static void | GetFormatAndCreateCursorFromRangeRep (const SwDoc *pDoc, std::u16string_view rRangeRepresentation, SwFrameFormat **ppTableFormat, std::shared_ptr< SwUnoCursor > &rpUnoCursor) |
static bool | GetSubranges (std::u16string_view rRangeRepresentation, uno::Sequence< OUString > &rSubRanges, bool bNormalize) |
static void | SortSubranges (uno::Sequence< OUString > &rSubRanges, bool bCmpByColumn) |
bool FillRangeDescriptor | ( | SwRangeDescriptor & | rDesc, |
std::u16string_view | rCellRangeName | ||
) |
rCellRangeName needs to be of one of the following formats:
Definition at line 175 of file unochart.cxx.
References SwXTextTable::GetCellPosition(), o3tl::getToken(), SwRangeDescriptor::nBottom, SwRangeDescriptor::nLeft, SwRangeDescriptor::Normalize(), SwRangeDescriptor::nRight, nToken, and SwRangeDescriptor::nTop.
Referenced by SwChartDataSequence::ExtendTo(), SwChartDataSequence::FillRangeDesc(), SwChartDataSequence::generateLabel(), SwChartDataSequence::GetCells(), SwChartDataProvider::Impl_createDataSequenceByRangeRepresentation(), SwChartDataProvider::Impl_createDataSource(), and SwTableFUNC::InsertChart().
|
static |
! see also SwXTextTableCursor::getRangeName
Definition at line 200 of file unochart.cxx.
References SwTableCursor::DeleteBox(), SwTable::FindTable(), SwNode::FindTableBoxStartNode(), SwNode::GetIndex(), SwPaM::GetMark(), SwTableBox::GetName(), SwPosition::GetNode(), SwPaM::GetPoint(), SwTableCursor::GetSelectedBoxesCount(), SwTable::GetTableBox(), SwPaM::HasMark(), SwUnoTableCursor::MakeBoxSels(), and nCount.
Referenced by SwChartDataSequence::FillRangeDesc(), SwChartDataSequence::generateLabel(), SwChartDataSequence::GetCells(), SwChartDataSequence::getSourceRangeRepresentation(), and SwChartDataProvider::Impl_createDataSequenceByRangeRepresentation().
|
static |
Definition at line 155 of file unochart.cxx.
References aMutex.
Referenced by SwChartDataProvider::addEventListener(), SwChartDataSequence::addEventListener(), SwChartLabeledDataSequence::addEventListener(), SwChartDataSequence::addModifyListener(), SwChartLabeledDataSequence::addModifyListener(), SwChartDataProvider::dispose(), SwChartDataSequence::dispose(), SwChartLabeledDataSequence::dispose(), SwChartLabeledDataSequence::disposing(), LaunchModifiedEvent(), SwChartDataProvider::removeEventListener(), SwChartDataSequence::removeEventListener(), SwChartLabeledDataSequence::removeEventListener(), SwChartDataSequence::removeModifyListener(), and SwChartLabeledDataSequence::removeModifyListener().
|
static |
see also SwXTextTable::GetRangeByName
Definition at line 348 of file unochart.cxx.
References SwDoc::CreateUnoCursor(), SwTable::FindTable(), fnMoveForward, SwFormat::GetDoc(), SwFormat::GetName(), SwTableBox::GetSttNd(), GetTableAndCellsFromRangeRep(), SwTable::GetTableBox(), GetTableByName(), GoInNode(), and SwUnoTableCursor::MakeBoxSels().
Referenced by SwChartDataProvider::convertRangeToXML(), SwChartDataProvider::Impl_createDataSequenceByRangeRepresentation(), and SwChartDataProvider::Impl_createDataSource().
|
static |
Definition at line 257 of file unochart.cxx.
Referenced by SwChartDataProvider::GetBrokenCellRangeForExport(), GetSubranges(), and SwChartDataProvider::Impl_createDataSource().
|
static |
Definition at line 416 of file unochart.cxx.
References GetRangeRepFromTableAndCells(), GetTableAndCellsFromRangeRep(), o3tl::getToken(), comphelper::string::getTokenCount(), i, nPos, and sw_NormalizeRange().
Referenced by SwChartDataProvider::detectArguments(), and SwChartDataProvider::Impl_createDataSource().
|
static |
Definition at line 277 of file unochart.cxx.
References nPos, and sw_CompareCellsByColFirst().
Referenced by SwChartDataProvider::convertRangeToXML(), SwChartDataProvider::detectArguments(), SwChartDataProvider::GetBrokenCellRangeForExport(), GetFormatAndCreateCursorFromRangeRep(), GetSubranges(), SwChartDataProvider::Impl_createDataSource(), and SortSubranges().
|
static |
Definition at line 326 of file unochart.cxx.
References SwTable::FindTable(), SwFormat::GetName(), SwDoc::GetTableFrameFormat(), SwDoc::GetTableFrameFormatCount(), i, and nCount.
Referenced by SwChartDataProvider::detectArguments(), and GetFormatAndCreateCursorFromRangeRep().
IMPL_LINK_NOARG | ( | SwChartLockController_Helper | , |
DoUnlockAllCharts | , | ||
Timer * | , | ||
void | |||
) |
Definition at line 150 of file unochart.cxx.
|
static |
Definition at line 161 of file unochart.cxx.
References GetChartMutex(), and comphelper::OInterfaceContainerHelper4< class ListenerT >::notifyEach().
Referenced by SwChartLabeledDataSequence::modified(), SwChartLabeledDataSequence::setLabel(), SwChartDataSequence::setModified(), and SwChartLabeledDataSequence::setValues().
|
static |
Definition at line 464 of file unochart.cxx.
References GetTableAndCellsFromRangeRep(), i, and sw_CompareCellRanges().
Referenced by SwChartDataProvider::detectArguments(), and SwChartDataProvider::Impl_createDataSource().