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

#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 sal_Int64 SAL_CALL getSomething (const css::uno::Sequence< sal_Int8 > &aIdentifier) 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 ()
 
 SvtListener (const SvtListener &r)
 
virtual ~SvtListener () COVERITY_NOEXCEPT_FALSE
 
bool StartListening (SvtBroadcaster &rBroadcaster)
 
bool EndListening (SvtBroadcaster &rBroadcaster)
 
void EndListeningAll ()
 
void CopyAllBroadcasters (const SvtListener &r)
 
bool HasBroadcaster () const
 
virtual void Query (QueryBase &rQuery) const
 

Static Public Member Functions

static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId ()
 

Private Member Functions

 SwChartDataSequence (const SwChartDataSequence &rObj)
 
SwChartDataSequenceoperator= (const SwChartDataSequence &)=delete
 

Private Attributes

SwFrameFormatm_pFormat
 
::comphelper::OInterfaceContainerHelper2 m_aEvtListeners
 
::comphelper::OInterfaceContainerHelper2 m_aModifyListeners
 
css::chart2::data::DataSequenceRole m_aRole
 
OUString const m_aRowLabelText
 
OUString const m_aColLabelText
 
rtl::Reference< SwChartDataProviderm_xDataProvider
 
sw::UnoCursorPointer m_pTableCursor
 
const SfxItemPropertySetm_pPropSet
 
bool m_bDisposed
 

Detailed Description

Definition at line 230 of file unochart.hxx.

Constructor & Destructor Documentation

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

Definition at line 1888 of file unochart.cxx.

Member Function Documentation

void SAL_CALL SwChartDataSequence::addEventListener ( const css::uno::Reference< css::lang::XEventListener > &  xListener)
overridevirtual
void SAL_CALL SwChartDataSequence::addModifyListener ( const css::uno::Reference< css::util::XModifyListener > &  aListener)
overridevirtual
void SAL_CALL SwChartDataSequence::addPropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  xListener 
)
overridevirtual

Definition at line 2145 of file unochart.cxx.

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

Definition at line 2159 of file unochart.cxx.

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

Definition at line 2099 of file unochart.cxx.

References m_bDisposed, and SwChartDataSequence().

bool SwChartDataSequence::DeleteBox ( const SwTableBox rBox)
void SAL_CALL SwChartDataSequence::dispose ( void  )
overridevirtual
void SAL_CALL SwChartDataSequence::disposing ( const css::lang::EventObject &  Source)
overridevirtual

Definition at line 2240 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.

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 2455 of file unochart.cxx.

References FillRangeDescriptor(), SwTable::FindTable(), SwNode::FindTableBoxStartNode(), fnMoveForward, GetFrameFormat(), SwNode::GetIndex(), SwPaM::GetMark(), SwTableBox::GetName(), SwNodeIndex::GetNode(), SwPaM::GetPoint(), SwTableBox::GetSttNd(), SwTable::GetTableBox(), GoInNode(), SwTable::IsTableComplex(), SwUnoTableCursor::MakeBoxSels(), SwPaM::Move(), SwPosition::nNode, SwPaM::SetMark(), and sw_GetCellName().

Referenced by SwChartDataProvider::AddRowCols().

void SwChartDataSequence::FillRangeDesc ( SwRangeDescriptor rRangeDesc) const
uno::Sequence< OUString > SAL_CALL SwChartDataSequence::generateLabel ( css::chart2::data::LabelOrigin  eLabelOrigin)
overridevirtual
std::vector< css::uno::Reference< css::table::XCell > > SwChartDataSequence::GetCells ( )
uno::Sequence< uno::Any > SAL_CALL SwChartDataSequence::getData ( )
overridevirtual

Definition at line 2073 of file unochart.cxx.

References GetCells().

SwFrameFormat* SwChartDataSequence::GetFrameFormat ( ) const
inline
OUString SAL_CALL SwChartDataSequence::getImplementationName ( )
overridevirtual

Definition at line 2173 of file unochart.cxx.

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

Definition at line 2038 of file unochart.cxx.

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

Definition at line 2086 of file unochart.cxx.

References GetCells().

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

Definition at line 2107 of file unochart.cxx.

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

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

Definition at line 2132 of file unochart.cxx.

References m_aRole, m_bDisposed, and UNO_NAME_ROLE.

sal_Int64 SAL_CALL SwChartDataSequence::getSomething ( const css::uno::Sequence< sal_Int8 > &  aIdentifier)
overridevirtual

Definition at line 1902 of file unochart.cxx.

References getUnoTunnelId().

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

Definition at line 2183 of file unochart.cxx.

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

Definition at line 2060 of file unochart.cxx.

References GetCells(), and getString().

const uno::Sequence< sal_Int8 > & SwChartDataSequence::getUnoTunnelId ( )
static

Definition at line 1897 of file unochart.cxx.

References sw::proofreadingiterator::get().

Referenced by SwChartDataProvider::AddRowCols(), and getSomething().

sal_Bool SAL_CALL SwChartDataSequence::isModified ( )
overridevirtual

Definition at line 2204 of file unochart.cxx.

References m_bDisposed.

void SwChartDataSequence::Notify ( const SfxHint rHint)
overridevirtual

Reimplemented from SvtListener.

Definition at line 2188 of file unochart.cxx.

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

SwChartDataSequence& SwChartDataSequence::operator= ( const SwChartDataSequence )
privatedelete
void SAL_CALL SwChartDataSequence::removeEventListener ( const css::uno::Reference< css::lang::XEventListener > &  aListener)
overridevirtual
void SAL_CALL SwChartDataSequence::removeModifyListener ( const css::uno::Reference< css::util::XModifyListener > &  aListener)
overridevirtual
void SAL_CALL SwChartDataSequence::removePropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  aListener 
)
overridevirtual

Definition at line 2152 of file unochart.cxx.

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

Definition at line 2166 of file unochart.cxx.

void SAL_CALL SwChartDataSequence::setModified ( sal_Bool  bModified)
overridevirtual

Definition at line 2213 of file unochart.cxx.

References LaunchModifiedEvent(), m_aModifyListeners, and m_bDisposed.

Referenced by Notify().

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

Definition at line 2117 of file unochart.cxx.

References m_aRole, m_bDisposed, and UNO_NAME_ROLE.

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

Definition at line 2178 of file unochart.cxx.

References cppu::supportsService().

Member Data Documentation

OUString const SwChartDataSequence::m_aColLabelText
private

Definition at line 240 of file unochart.hxx.

Referenced by generateLabel().

::comphelper::OInterfaceContainerHelper2 SwChartDataSequence::m_aEvtListeners
private

Definition at line 235 of file unochart.hxx.

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

::comphelper::OInterfaceContainerHelper2 SwChartDataSequence::m_aModifyListeners
private

Definition at line 236 of file unochart.hxx.

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

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

Definition at line 237 of file unochart.hxx.

Referenced by getPropertyValue(), and setPropertyValue().

OUString const SwChartDataSequence::m_aRowLabelText
private

Definition at line 239 of file unochart.hxx.

Referenced by generateLabel().

bool SwChartDataSequence::m_bDisposed
private
SwFrameFormat* SwChartDataSequence::m_pFormat
private

Definition at line 234 of file unochart.hxx.

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

const SfxItemPropertySet* SwChartDataSequence::m_pPropSet
private

Definition at line 246 of file unochart.hxx.

Referenced by getPropertySetInfo().

sw::UnoCursorPointer SwChartDataSequence::m_pTableCursor
private
rtl::Reference<SwChartDataProvider> SwChartDataSequence::m_xDataProvider
private

Definition at line 242 of file unochart.hxx.

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


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