LibreOffice Module sw (master) 1
|
#include <unochart.hxx>
Public Member Functions | |
SwChartDataSequence (SwChartDataProvider &rProvider, SwFrameFormat &rTableFormat, const std::shared_ptr< SwUnoCursor > &pTableCursor) | |
virtual | ~SwChartDataSequence () override |
virtual css::uno::Sequence< css::uno::Any > SAL_CALL | getData () override |
virtual OUString SAL_CALL | getSourceRangeRepresentation () override |
virtual css::uno::Sequence< OUString > SAL_CALL | generateLabel (css::chart2::data::LabelOrigin eLabelOrigin) override |
virtual ::sal_Int32 SAL_CALL | getNumberFormatKeyByIndex (::sal_Int32 nIndex) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getTextualData () override |
virtual css::uno::Sequence< double > SAL_CALL | getNumericalData () override |
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL | createClone () override |
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
virtual void SAL_CALL | setPropertyValue (const OUString &aPropertyName, const css::uno::Any &aValue) override |
virtual css::uno::Any SAL_CALL | getPropertyValue (const OUString &PropertyName) override |
virtual void SAL_CALL | addPropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override |
virtual void SAL_CALL | removePropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override |
virtual void SAL_CALL | addVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override |
virtual void SAL_CALL | removeVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual sal_Bool SAL_CALL | isModified () override |
virtual void SAL_CALL | setModified (sal_Bool bModified) override |
virtual void SAL_CALL | addModifyListener (const css::uno::Reference< css::util::XModifyListener > &aListener) override |
virtual void SAL_CALL | removeModifyListener (const css::uno::Reference< css::util::XModifyListener > &aListener) override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
virtual void SAL_CALL | dispose () override |
virtual void SAL_CALL | addEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override |
virtual void SAL_CALL | removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override |
SwFrameFormat * | GetFrameFormat () const |
bool | DeleteBox (const SwTableBox &rBox) |
void | FillRangeDesc (SwRangeDescriptor &rRangeDesc) const |
void | ExtendTo (bool bExtendCol, sal_Int32 nFirstNew, sal_Int32 nCount) |
Extends the data-sequence by new cells added at the end of the direction the data-sequence points to. More... | |
std::vector< css::uno::Reference< css::table::XCell > > | GetCells () |
virtual void | Notify (const SfxHint &rHint) override |
Public Member Functions inherited from SvtListener | |
SvtListener ()=default | |
SvtListener (const SvtListener &r)=default | |
virtual | ~SvtListener () COVERITY_NOEXCEPT_FALSE |
bool | StartListening (SvtBroadcaster &rBroadcaster) |
void | EndListening (SvtBroadcaster &rBroadcaster) |
void | EndListeningAll () |
void | CopyAllBroadcasters (const SvtListener &r) |
bool | HasBroadcaster () const |
virtual void | Notify (const SfxHint &rHint) |
virtual void | Query (QueryBase &rQuery) const |
Private Member Functions | |
SwChartDataSequence (const SwChartDataSequence &rObj) | |
SwChartDataSequence & | operator= (const SwChartDataSequence &)=delete |
Private Attributes | |
SwFrameFormat * | m_pFormat |
::comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > | m_aEvtListeners |
::comphelper::OInterfaceContainerHelper4< css::util::XModifyListener > | m_aModifyListeners |
css::chart2::data::DataSequenceRole | m_aRole |
OUString | m_aRowLabelText |
OUString | m_aColLabelText |
rtl::Reference< SwChartDataProvider > | m_xDataProvider |
sw::UnoCursorPointer | m_pTableCursor |
const SfxItemPropertySet * | m_pPropSet |
bool | m_bDisposed |
Definition at line 222 of file unochart.hxx.
|
private |
Definition at line 1815 of file unochart.cxx.
References SwTable::FindTable(), GetFrameFormat(), m_aRole, m_bDisposed, m_pFormat, m_xDataProvider, and SvtListener::StartListening().
Referenced by createClone().
SwChartDataSequence::SwChartDataSequence | ( | SwChartDataProvider & | rProvider, |
SwFrameFormat & | rTableFormat, | ||
const std::shared_ptr< SwUnoCursor > & | pTableCursor | ||
) |
Definition at line 1770 of file unochart.cxx.
References SwTable::FindTable(), m_bDisposed, m_xDataProvider, and SvtListener::StartListening().
|
overridevirtual |
Definition at line 1861 of file unochart.cxx.
|
overridevirtual |
Definition at line 2264 of file unochart.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::addInterface(), GetChartMutex(), m_aEvtListeners, and m_bDisposed.
|
overridevirtual |
Definition at line 2183 of file unochart.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::addInterface(), GetChartMutex(), m_aModifyListeners, and m_bDisposed.
|
overridevirtual |
Definition at line 2104 of file unochart.cxx.
|
overridevirtual |
Definition at line 2118 of file unochart.cxx.
|
overridevirtual |
Definition at line 2058 of file unochart.cxx.
References m_bDisposed, and SwChartDataSequence().
bool SwChartDataSequence::DeleteBox | ( | const SwTableBox & | rBox | ) |
Definition at line 2280 of file unochart.cxx.
References SwTable::FindTable(), SwNode::FindTableBoxStartNode(), SwXTextTable::GetCellPosition(), SwNode::GetContentNode(), SwFormat::GetDoc(), GetFrameFormat(), SwNode::GetIndex(), SwPaM::GetMark(), SwTableBox::GetName(), SwNodeIndex::GetNode(), SwPosition::GetNode(), SwDoc::GetNodes(), SwPaM::GetPoint(), SwTableBox::GetSttNd(), SwTable::GetTableBox(), SwNodes::GoNext(), SwPaM::HasMark(), m_bDisposed, m_pTableCursor, SwPaM::SetMark(), and sw_GetCellName().
|
overridevirtual |
Definition at line 2209 of file unochart.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::disposeAndClear(), SvtListener::EndListeningAll(), SwTable::FindTable(), GetChartMutex(), GetFrameFormat(), m_aEvtListeners, m_aModifyListeners, m_bDisposed, m_pFormat, m_pTableCursor, m_xDataProvider, and sw::UnoCursorPointer::reset().
Referenced by Notify().
|
overridevirtual |
Definition at line 2199 of file unochart.cxx.
References m_bDisposed, and m_xDataProvider.
void SwChartDataSequence::ExtendTo | ( | bool | bExtendCol, |
sal_Int32 | nFirstNew, | ||
sal_Int32 | nCount | ||
) |
Extends the data-sequence by new cells added at the end of the direction the data-sequence points to.
If the cells are already within the range of the sequence nothing needs to be done. If the cells are beyond the end of the sequence (are not adjacent to the current last cell) nothing can be done. Only if the cells are adjacent to the last cell they can be added.
bExtendCols | - specifies if columns or rows are to be extended |
nFirstNew | - index of first new row/col to be included in data-sequence |
nLastNew | - index of last new row/col to be included in data-sequence |
Definition at line 2413 of file unochart.cxx.
References SwPosition::Assign(), FillRangeDescriptor(), SwTable::FindTable(), SwNode::FindTableBoxStartNode(), fnMoveForward, GetFrameFormat(), SwNode::GetIndex(), SwPaM::GetMark(), SwTableBox::GetName(), SwPosition::GetNode(), SwPaM::GetPoint(), SwTableBox::GetSttNd(), SwTable::GetTableBox(), GoInNode(), SwTable::IsTableComplex(), SwUnoTableCursor::MakeBoxSels(), SwPaM::Move(), SwRangeDescriptor::nBottom, nCount, SwRangeDescriptor::nLeft, SwRangeDescriptor::nRight, SwRangeDescriptor::nTop, SwPaM::SetMark(), and sw_GetCellName().
void SwChartDataSequence::FillRangeDesc | ( | SwRangeDescriptor & | rRangeDesc | ) | const |
Definition at line 2386 of file unochart.cxx.
References FillRangeDescriptor(), SwTable::FindTable(), GetCellRangeName(), GetFrameFormat(), SwTable::IsTableComplex(), and m_pTableCursor.
|
overridevirtual |
Definition at line 1882 of file unochart.cxx.
References FillRangeDescriptor(), SwTable::FindTable(), GetCellRangeName(), GetFrameFormat(), i, SwTable::IsTableComplex(), m_aColLabelText, m_aRowLabelText, m_bDisposed, m_pTableCursor, SwRangeDescriptor::nBottom, SwRangeDescriptor::nLeft, SwRangeDescriptor::Normalize(), SwRangeDescriptor::nRight, SwRangeDescriptor::nTop, pLabels, and sw_GetCellName().
std::vector< css::uno::Reference< css::table::XCell > > SwChartDataSequence::GetCells | ( | ) |
Definition at line 1995 of file unochart.cxx.
References SwXCellRange::CreateXCellRange(), FillRangeDescriptor(), SwTable::FindTable(), GetCellRangeName(), GetFrameFormat(), m_bDisposed, and m_pTableCursor.
Referenced by getData(), getNumericalData(), and getTextualData().
|
overridevirtual |
Definition at line 2024 of file unochart.cxx.
References GetCells(), and TOOLS_WARN_EXCEPTION.
|
inline |
Definition at line 296 of file unochart.hxx.
References m_pFormat.
Referenced by DeleteBox(), dispose(), ExtendTo(), FillRangeDesc(), generateLabel(), GetCells(), getSourceRangeRepresentation(), and SwChartDataSequence().
|
overridevirtual |
Definition at line 2132 of file unochart.cxx.
|
override |
Definition at line 1989 of file unochart.cxx.
|
overridevirtual |
Definition at line 2045 of file unochart.cxx.
References GetCells().
|
overridevirtual |
Definition at line 2066 of file unochart.cxx.
References SfxItemPropertySet::getPropertySetInfo(), m_bDisposed, and m_pPropSet.
|
overridevirtual |
Definition at line 2091 of file unochart.cxx.
References m_aRole, m_bDisposed, and UNO_NAME_ROLE.
|
overridevirtual |
Definition at line 1865 of file unochart.cxx.
References GetCellRangeName(), GetFrameFormat(), SwFormat::GetName(), m_bDisposed, and m_pTableCursor.
|
overridevirtual |
Definition at line 2142 of file unochart.cxx.
|
overridevirtual |
Definition at line 2011 of file unochart.cxx.
References GetCells().
|
overridevirtual |
Definition at line 2163 of file unochart.cxx.
References m_bDisposed.
|
overridevirtual |
Reimplemented from SvtListener.
Definition at line 2147 of file unochart.cxx.
References dispose(), SfxHint::GetId(), m_pFormat, m_pTableCursor, sw::UnoCursorPointer::reset(), and setModified().
|
privatedelete |
|
overridevirtual |
Definition at line 2272 of file unochart.cxx.
References GetChartMutex(), m_aEvtListeners, m_bDisposed, and comphelper::OInterfaceContainerHelper4< class ListenerT >::removeInterface().
|
overridevirtual |
Definition at line 2191 of file unochart.cxx.
References GetChartMutex(), m_aModifyListeners, m_bDisposed, and comphelper::OInterfaceContainerHelper4< class ListenerT >::removeInterface().
|
overridevirtual |
Definition at line 2111 of file unochart.cxx.
|
overridevirtual |
Definition at line 2125 of file unochart.cxx.
|
overridevirtual |
Definition at line 2172 of file unochart.cxx.
References LaunchModifiedEvent(), m_aModifyListeners, and m_bDisposed.
Referenced by Notify().
|
overridevirtual |
Definition at line 2076 of file unochart.cxx.
References m_aRole, m_bDisposed, and UNO_NAME_ROLE.
|
overridevirtual |
Definition at line 2137 of file unochart.cxx.
References cppu::supportsService().
|
private |
Definition at line 232 of file unochart.hxx.
Referenced by generateLabel().
|
private |
Definition at line 227 of file unochart.hxx.
Referenced by addEventListener(), dispose(), and removeEventListener().
|
private |
Definition at line 228 of file unochart.hxx.
Referenced by addModifyListener(), dispose(), removeModifyListener(), and setModified().
|
private |
Definition at line 229 of file unochart.hxx.
Referenced by getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 231 of file unochart.hxx.
Referenced by generateLabel().
|
private |
Definition at line 240 of file unochart.hxx.
Referenced by addEventListener(), addModifyListener(), createClone(), DeleteBox(), dispose(), disposing(), generateLabel(), GetCells(), getPropertySetInfo(), getPropertyValue(), getSourceRangeRepresentation(), isModified(), removeEventListener(), removeModifyListener(), setModified(), setPropertyValue(), and SwChartDataSequence().
|
private |
Definition at line 226 of file unochart.hxx.
Referenced by dispose(), GetFrameFormat(), Notify(), and SwChartDataSequence().
|
private |
Definition at line 238 of file unochart.hxx.
Referenced by getPropertySetInfo().
|
private |
Definition at line 236 of file unochart.hxx.
Referenced by DeleteBox(), dispose(), FillRangeDesc(), generateLabel(), GetCells(), getSourceRangeRepresentation(), and Notify().
|
private |
Definition at line 234 of file unochart.hxx.
Referenced by dispose(), disposing(), and SwChartDataSequence().