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

#include <unotbl.hxx>

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

Classes

class  Impl
 

Public Member Functions

SW_DLLPUBLIC SwFrameFormatGetFrameFormat ()
 
virtual sal_Int64 SAL_CALL getSomething (const css::uno::Sequence< sal_Int8 > &aIdentifier) override
 
virtual void SAL_CALL initialize (sal_Int32 nRows, sal_Int32 nColumns) override
 
virtual css::uno::Reference< css::table::XTableRows > SAL_CALL getRows () override
 
virtual css::uno::Reference< css::table::XTableColumns > SAL_CALL getColumns () override
 
virtual css::uno::Reference< css::table::XCell > SAL_CALL getCellByName (const OUString &aCellName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getCellNames () override
 
virtual css::uno::Reference< css::text::XTextTableCursor > SAL_CALL createCursorByCellName (const OUString &aCellName) override
 
virtual void SAL_CALL attach (const css::uno::Reference< css::text::XTextRange > &xTextRange) override
 
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getAnchor () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override
 
virtual css::uno::Reference< css::table::XCell > SAL_CALL getCellByPosition (sal_Int32 nColumn, sal_Int32 nRow) override
 
virtual css::uno::Reference< css::table::XCellRange > SAL_CALL getCellRangeByPosition (sal_Int32 nLeft, sal_Int32 nTop, sal_Int32 nRight, sal_Int32 nBottom) override
 
virtual css::uno::Reference< css::table::XCellRange > SAL_CALL getCellRangeByName (const OUString &aRange) override
 
virtual css::uno::Sequence< css::uno::Sequence< double > > SAL_CALL getData () override
 
virtual void SAL_CALL setData (const css::uno::Sequence< css::uno::Sequence< double > > &aData) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getRowDescriptions () override
 
virtual void SAL_CALL setRowDescriptions (const css::uno::Sequence< OUString > &aRowDescriptions) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getColumnDescriptions () override
 
virtual void SAL_CALL setColumnDescriptions (const css::uno::Sequence< OUString > &aColumnDescriptions) override
 
virtual void SAL_CALL addChartDataChangeEventListener (const css::uno::Reference< css::chart::XChartDataChangeEventListener > &aListener) override
 
virtual void SAL_CALL removeChartDataChangeEventListener (const css::uno::Reference< css::chart::XChartDataChangeEventListener > &aListener) override
 
virtual double SAL_CALL getNotANumber () override
 
virtual sal_Bool SAL_CALL isNotANumber (double nNumber) override
 
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL createSortDescriptor () override
 
virtual void SAL_CALL sort (const css::uno::Sequence< css::beans::PropertyValue > &xDescriptor) override
 
virtual void SAL_CALL autoFormat (const OUString &aName) 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 getName () override
 
virtual void SAL_CALL setName (const OUString &Name_) override
 
virtual css::uno::Sequence< css::uno::Sequence< css::uno::Any > > SAL_CALL getDataArray () override
 
virtual void SAL_CALL setDataArray (const css::uno::Sequence< css::uno::Sequence< css::uno::Any > > &aArray) 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
 

Static Public Member Functions

static css::uno::Reference< css::text::XTextTable > CreateXTextTable (SwFrameFormat *pFrameFormat)
 
static SW_DLLPUBLIC const css::uno::Sequence< sal_Int8 > & getUnoTunnelId ()
 
static SW_DLLPUBLIC void GetCellPosition (const OUString &rCellName, sal_Int32 &o_rColumn, sal_Int32 &o_rRow)
 get position of a cell with a given name More...
 

Private Member Functions

 SwXTextTable ()
 
 SwXTextTable (SwFrameFormat &rFrameFormat)
 
virtual ~SwXTextTable () override
 

Private Attributes

::sw::UnoImplPtr< Implm_pImpl
 

Detailed Description

Definition at line 254 of file unotbl.hxx.

Constructor & Destructor Documentation

SwXTextTable::SwXTextTable ( )
private

Definition at line 2036 of file unotbl.cxx.

Referenced by CreateXTextTable().

SwXTextTable::SwXTextTable ( SwFrameFormat rFrameFormat)
private

Definition at line 2041 of file unotbl.cxx.

SwXTextTable::~SwXTextTable ( )
overrideprivatevirtual

Definition at line 2046 of file unotbl.cxx.

Member Function Documentation

void SAL_CALL SwXTextTable::addChartDataChangeEventListener ( const css::uno::Reference< css::chart::XChartDataChangeEventListener > &  aListener)
overridevirtual

Definition at line 2438 of file unotbl.cxx.

References m_pImpl.

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

Definition at line 2233 of file unotbl.cxx.

References m_pImpl.

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

Definition at line 3023 of file unotbl.cxx.

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

Definition at line 3029 of file unotbl.cxx.

void SAL_CALL SwXTextTable::attach ( const css::uno::Reference< css::text::XTextRange > &  xTextRange)
overridevirtual
void SwXTextTable::autoFormat ( const OUString &  aName)
overridevirtual
uno::Reference< text::XTextTableCursor > SwXTextTable::createCursorByCellName ( const OUString &  aCellName)
overridevirtual
uno::Sequence< beans::PropertyValue > SwXTextTable::createSortDescriptor ( )
overridevirtual

Definition at line 2468 of file unotbl.cxx.

References SwUnoCursorHelper::CreateSortDescriptor().

uno::Reference< text::XTextTable > SwXTextTable::CreateXTextTable ( SwFrameFormat pFrameFormat)
static
void SwXTextTable::dispose ( void  )
overridevirtual
uno::Reference< text::XTextRange > SwXTextTable::getAnchor ( )
overridevirtual

Definition at line 2215 of file unotbl.cxx.

References GetFrameFormat().

uno::Reference< table::XCell > SwXTextTable::getCellByName ( const OUString &  aCellName)
overridevirtual
uno::Reference< table::XCell > SwXTextTable::getCellByPosition ( sal_Int32  nColumn,
sal_Int32  nRow 
)
overridevirtual

Definition at line 2249 of file unotbl.cxx.

References GetFrameFormat(), and lcl_CreateXCell().

uno::Sequence< OUString > SwXTextTable::getCellNames ( )
overridevirtual
void SwXTextTable::GetCellPosition ( const OUString &  rCellName,
sal_Int32 &  o_rColumn,
sal_Int32 &  o_rRow 
)
static

get position of a cell with a given name

If everything was OK, the indices for column and row are changed (both >= 0). In case of errors, at least one of them is < 0.

Also since the implementations of tables does not really have columns using this function is appropriate only for tables that are not complex (i.e. where IsTableComplex() returns false).

Parameters
rCellNamee.g. A1..Z1, a1..z1, AA1..AZ1, Aa1..Az1, BA1..BZ1, Ba1..Bz1, ...
[IN,OUT]o_rColumn (0-based)
[IN,OUT]o_rRow (0-based)

Definition at line 371 of file unotbl.cxx.

References i, and SAL_WARN.

Referenced by SwChartDataProvider::AddRowCols(), SwChartDataProvider::convertRangeToXML(), SwChartDataSequence::DeleteBox(), SwChartDataProvider::detectArguments(), FillRangeDescriptor(), SwChartDataProvider::GetBrokenCellRangeForExport(), getCellRangeByName(), SwXCellRange::getCellRangeByName(), SwChartDataProvider::Impl_createDataSource(), sw_CompareCellsByColFirst(), sw_CompareCellsByRowFirst(), and sw_NormalizeRange().

uno::Reference< table::XCellRange > SwXTextTable::getCellRangeByName ( const OUString &  aRange)
overridevirtual
uno::Reference< table::XCellRange > SwXTextTable::getCellRangeByPosition ( sal_Int32  nLeft,
sal_Int32  nTop,
sal_Int32  nRight,
sal_Int32  nBottom 
)
overridevirtual
uno::Sequence< OUString > SwXTextTable::getColumnDescriptions ( )
overridevirtual
uno::Reference< table::XTableColumns > SAL_CALL SwXTextTable::getColumns ( )
overridevirtual

Definition at line 2092 of file unotbl.cxx.

References GetFrameFormat(), and m_pImpl.

uno::Sequence< uno::Sequence< double > > SwXTextTable::getData ( )
overridevirtual
uno::Sequence< uno::Sequence< uno::Any > > SAL_CALL SwXTextTable::getDataArray ( )
overridevirtual

Definition at line 2344 of file unotbl.cxx.

References getCellRangeByPosition(), and SwXTextTable::Impl::ThrowIfComplex().

SwFrameFormat * SwXTextTable::GetFrameFormat ( )
OUString SAL_CALL SwXTextTable::getImplementationName ( )
overridevirtual

Definition at line 3152 of file unotbl.cxx.

OUString SwXTextTable::getName ( )
overridevirtual

Definition at line 3035 of file unotbl.cxx.

References GetFrameFormat(), SwFormat::GetName(), and m_pImpl.

Referenced by getPropertyValue().

double SwXTextTable::getNotANumber ( )
overridevirtual

Definition at line 2461 of file unotbl.cxx.

uno::Reference< beans::XPropertySetInfo > SwXTextTable::getPropertySetInfo ( )
overridevirtual

Definition at line 2519 of file unotbl.cxx.

References m_pImpl.

uno::Any SwXTextTable::getPropertyValue ( const OUString &  PropertyName)
overridevirtual
uno::Sequence< OUString > SwXTextTable::getRowDescriptions ( )
overridevirtual
uno::Reference< table::XTableRows > SAL_CALL SwXTextTable::getRows ( )
overridevirtual

Definition at line 2079 of file unotbl.cxx.

References GetFrameFormat(), and m_pImpl.

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

Definition at line 2026 of file unotbl.cxx.

uno::Sequence< OUString > SwXTextTable::getSupportedServiceNames ( )
overridevirtual

Definition at line 3158 of file unotbl.cxx.

const uno::Sequence< sal_Int8 > & SwXTextTable::getUnoTunnelId ( )
static
void SwXTextTable::initialize ( sal_Int32  nRows,
sal_Int32  nColumns 
)
overridevirtual

Definition at line 2071 of file unotbl.cxx.

References m_pImpl, and SAL_MAX_UINT16.

sal_Bool SwXTextTable::isNotANumber ( double  nNumber)
overridevirtual

Definition at line 2454 of file unotbl.cxx.

void SAL_CALL SwXTextTable::removeChartDataChangeEventListener ( const css::uno::Reference< css::chart::XChartDataChangeEventListener > &  aListener)
overridevirtual

Definition at line 2446 of file unotbl.cxx.

References m_pImpl.

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

Definition at line 2241 of file unotbl.cxx.

References m_pImpl.

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

Definition at line 3026 of file unotbl.cxx.

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

Definition at line 3032 of file unotbl.cxx.

void SwXTextTable::setColumnDescriptions ( const css::uno::Sequence< OUString > &  aColumnDescriptions)
overridevirtual
void SwXTextTable::setData ( const css::uno::Sequence< css::uno::Sequence< double > > &  aData)
overridevirtual
void SAL_CALL SwXTextTable::setDataArray ( const css::uno::Sequence< css::uno::Sequence< css::uno::Any > > &  aArray)
overridevirtual

Definition at line 2354 of file unotbl.cxx.

References getCellRangeByPosition(), and SwXTextTable::Impl::ThrowIfComplex().

void SwXTextTable::setName ( const OUString &  Name_)
overridevirtual
void SwXTextTable::setPropertyValue ( const OUString &  aPropertyName,
const css::uno::Any &  aValue 
)
overridevirtual
void SwXTextTable::setRowDescriptions ( const css::uno::Sequence< OUString > &  aRowDescriptions)
overridevirtual
void SwXTextTable::sort ( const css::uno::Sequence< css::beans::PropertyValue > &  xDescriptor)
overridevirtual
sal_Bool SwXTextTable::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 3155 of file unotbl.cxx.

References cppu::supportsService().

Member Data Documentation

::sw::UnoImplPtr<Impl> SwXTextTable::m_pImpl
private

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