LibreOffice Module sw (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SwChartDataSequence Class Referencefinal

#include <unochart.hxx>

Inheritance diagram for SwChartDataSequence:
[legend]
Collaboration diagram for SwChartDataSequence:
[legend]

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
 
SwFrameFormatGetFrameFormat () 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)
 
SwChartDataSequenceoperator= (const SwChartDataSequence &)=delete
 

Private Attributes

SwFrameFormatm_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< SwChartDataProviderm_xDataProvider
 
sw::UnoCursorPointer m_pTableCursor
 
const SfxItemPropertySetm_pPropSet
 
bool m_bDisposed
 

Detailed Description

Definition at line 222 of file unochart.hxx.

Constructor & Destructor Documentation

◆ SwChartDataSequence() [1/2]

SwChartDataSequence::SwChartDataSequence ( const SwChartDataSequence rObj)
private

◆ SwChartDataSequence() [2/2]

SwChartDataSequence::SwChartDataSequence ( SwChartDataProvider rProvider,
SwFrameFormat rTableFormat,
const std::shared_ptr< SwUnoCursor > &  pTableCursor 
)

◆ ~SwChartDataSequence()

SwChartDataSequence::~SwChartDataSequence ( )
overridevirtual

Definition at line 1854 of file unochart.cxx.

Member Function Documentation

◆ addEventListener()

void SAL_CALL SwChartDataSequence::addEventListener ( const css::uno::Reference< css::lang::XEventListener > &  xListener)
overridevirtual

◆ addModifyListener()

void SAL_CALL SwChartDataSequence::addModifyListener ( const css::uno::Reference< css::util::XModifyListener > &  aListener)
overridevirtual

◆ addPropertyChangeListener()

void SAL_CALL SwChartDataSequence::addPropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  xListener 
)
overridevirtual

Definition at line 2089 of file unochart.cxx.

◆ addVetoableChangeListener()

void SAL_CALL SwChartDataSequence::addVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

Definition at line 2103 of file unochart.cxx.

◆ createClone()

uno::Reference< util::XCloneable > SAL_CALL SwChartDataSequence::createClone ( )
overridevirtual

Definition at line 2043 of file unochart.cxx.

References m_bDisposed, and SwChartDataSequence().

◆ DeleteBox()

bool SwChartDataSequence::DeleteBox ( const SwTableBox rBox)

◆ dispose()

void SAL_CALL SwChartDataSequence::dispose ( void  )
overridevirtual

◆ disposing()

void SAL_CALL SwChartDataSequence::disposing ( const css::lang::EventObject &  Source)
overridevirtual

Definition at line 2184 of file unochart.cxx.

References m_bDisposed, and m_xDataProvider.

◆ ExtendTo()

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.

Returns
true if the data-sequence was changed.
Parameters
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 2398 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().

◆ FillRangeDesc()

void SwChartDataSequence::FillRangeDesc ( SwRangeDescriptor rRangeDesc) const

◆ generateLabel()

uno::Sequence< OUString > SAL_CALL SwChartDataSequence::generateLabel ( css::chart2::data::LabelOrigin  eLabelOrigin)
overridevirtual

◆ GetCells()

std::vector< css::uno::Reference< css::table::XCell > > SwChartDataSequence::GetCells ( )

◆ getData()

uno::Sequence< uno::Any > SAL_CALL SwChartDataSequence::getData ( )
overridevirtual

Definition at line 2017 of file unochart.cxx.

References GetCells().

◆ GetFrameFormat()

SwFrameFormat * SwChartDataSequence::GetFrameFormat ( ) const
inline

◆ getImplementationName()

OUString SAL_CALL SwChartDataSequence::getImplementationName ( )
overridevirtual

Definition at line 2117 of file unochart.cxx.

◆ getNumberFormatKeyByIndex()

sal_Int32 SAL_CALL SwChartDataSequence::getNumberFormatKeyByIndex ( ::sal_Int32  nIndex)
override

Definition at line 1982 of file unochart.cxx.

◆ getNumericalData()

uno::Sequence< double > SAL_CALL SwChartDataSequence::getNumericalData ( )
overridevirtual

Definition at line 2030 of file unochart.cxx.

References GetCells().

◆ getPropertySetInfo()

uno::Reference< beans::XPropertySetInfo > SAL_CALL SwChartDataSequence::getPropertySetInfo ( )
overridevirtual

Definition at line 2051 of file unochart.cxx.

References SfxItemPropertySet::getPropertySetInfo(), m_bDisposed, and m_pPropSet.

◆ getPropertyValue()

uno::Any SAL_CALL SwChartDataSequence::getPropertyValue ( const OUString &  PropertyName)
overridevirtual

Definition at line 2076 of file unochart.cxx.

References m_aRole, m_bDisposed, and UNO_NAME_ROLE.

◆ getSourceRangeRepresentation()

OUString SAL_CALL SwChartDataSequence::getSourceRangeRepresentation ( )
overridevirtual

◆ getSupportedServiceNames()

uno::Sequence< OUString > SAL_CALL SwChartDataSequence::getSupportedServiceNames ( )
overridevirtual

Definition at line 2127 of file unochart.cxx.

◆ getTextualData()

uno::Sequence< OUString > SAL_CALL SwChartDataSequence::getTextualData ( )
overridevirtual

Definition at line 2004 of file unochart.cxx.

References GetCells().

◆ isModified()

sal_Bool SAL_CALL SwChartDataSequence::isModified ( )
overridevirtual

Definition at line 2148 of file unochart.cxx.

References m_bDisposed.

◆ Notify()

void SwChartDataSequence::Notify ( const SfxHint rHint)
overridevirtual

Reimplemented from SvtListener.

Definition at line 2132 of file unochart.cxx.

References dispose(), SfxHint::GetId(), m_pFormat, m_pTableCursor, sw::UnoCursorPointer::reset(), and setModified().

◆ operator=()

SwChartDataSequence & SwChartDataSequence::operator= ( const SwChartDataSequence )
privatedelete

◆ removeEventListener()

void SAL_CALL SwChartDataSequence::removeEventListener ( const css::uno::Reference< css::lang::XEventListener > &  aListener)
overridevirtual

◆ removeModifyListener()

void SAL_CALL SwChartDataSequence::removeModifyListener ( const css::uno::Reference< css::util::XModifyListener > &  aListener)
overridevirtual

◆ removePropertyChangeListener()

void SAL_CALL SwChartDataSequence::removePropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  aListener 
)
overridevirtual

Definition at line 2096 of file unochart.cxx.

◆ removeVetoableChangeListener()

void SAL_CALL SwChartDataSequence::removeVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

Definition at line 2110 of file unochart.cxx.

◆ setModified()

void SAL_CALL SwChartDataSequence::setModified ( sal_Bool  bModified)
overridevirtual

Definition at line 2157 of file unochart.cxx.

References LaunchModifiedEvent(), m_aModifyListeners, and m_bDisposed.

Referenced by Notify().

◆ setPropertyValue()

void SAL_CALL SwChartDataSequence::setPropertyValue ( const OUString &  aPropertyName,
const css::uno::Any &  aValue 
)
overridevirtual

Definition at line 2061 of file unochart.cxx.

References m_aRole, m_bDisposed, and UNO_NAME_ROLE.

◆ supportsService()

sal_Bool SAL_CALL SwChartDataSequence::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 2122 of file unochart.cxx.

References cppu::supportsService().

Member Data Documentation

◆ m_aColLabelText

OUString SwChartDataSequence::m_aColLabelText
private

Definition at line 232 of file unochart.hxx.

Referenced by generateLabel().

◆ m_aEvtListeners

::comphelper::OInterfaceContainerHelper4<css::lang::XEventListener> SwChartDataSequence::m_aEvtListeners
private

Definition at line 227 of file unochart.hxx.

Referenced by addEventListener(), dispose(), and removeEventListener().

◆ m_aModifyListeners

::comphelper::OInterfaceContainerHelper4<css::util::XModifyListener> SwChartDataSequence::m_aModifyListeners
private

Definition at line 228 of file unochart.hxx.

Referenced by addModifyListener(), dispose(), removeModifyListener(), and setModified().

◆ m_aRole

css::chart2::data::DataSequenceRole SwChartDataSequence::m_aRole
private

Definition at line 229 of file unochart.hxx.

Referenced by getPropertyValue(), and setPropertyValue().

◆ m_aRowLabelText

OUString SwChartDataSequence::m_aRowLabelText
private

Definition at line 231 of file unochart.hxx.

Referenced by generateLabel().

◆ m_bDisposed

bool SwChartDataSequence::m_bDisposed
private

◆ m_pFormat

SwFrameFormat* SwChartDataSequence::m_pFormat
private

Definition at line 226 of file unochart.hxx.

Referenced by dispose(), GetFrameFormat(), Notify(), and SwChartDataSequence().

◆ m_pPropSet

const SfxItemPropertySet* SwChartDataSequence::m_pPropSet
private

Definition at line 238 of file unochart.hxx.

Referenced by getPropertySetInfo().

◆ m_pTableCursor

sw::UnoCursorPointer SwChartDataSequence::m_pTableCursor
private

◆ m_xDataProvider

rtl::Reference<SwChartDataProvider> SwChartDataSequence::m_xDataProvider
private

Definition at line 234 of file unochart.hxx.

Referenced by dispose(), disposing(), and SwChartDataSequence().


The documentation for this class was generated from the following files: