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

SwFrameFormatGetFrameFormat ()
 
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 rtl::Reference< SwXTextTableCreateXTextTable (SwFrameFormat *pFrameFormat)
 
static void GetCellPosition (std::u16string_view aCellName, 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 247 of file unotbl.hxx.

Constructor & Destructor Documentation

◆ SwXTextTable() [1/2]

SwXTextTable::SwXTextTable ( )
private

Definition at line 1939 of file unotbl.cxx.

References m_pImpl.

Referenced by CreateXTextTable().

◆ SwXTextTable() [2/2]

SwXTextTable::SwXTextTable ( SwFrameFormat rFrameFormat)
private

Definition at line 1944 of file unotbl.cxx.

References m_pImpl.

◆ ~SwXTextTable()

SwXTextTable::~SwXTextTable ( )
overrideprivatevirtual

Definition at line 1949 of file unotbl.cxx.

Member Function Documentation

◆ addChartDataChangeEventListener()

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

Definition at line 2337 of file unotbl.cxx.

References m_pImpl.

◆ addEventListener()

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

Definition at line 2131 of file unotbl.cxx.

References m_pImpl.

◆ addPropertyChangeListener()

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

Definition at line 2928 of file unotbl.cxx.

◆ addVetoableChangeListener()

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

Definition at line 2934 of file unotbl.cxx.

◆ attach()

void SAL_CALL SwXTextTable::attach ( const css::uno::Reference< css::text::XTextRange > &  xTextRange)
overridevirtual

◆ autoFormat()

void SwXTextTable::autoFormat ( const OUString &  aName)
overridevirtual

◆ createCursorByCellName()

uno::Reference< text::XTextTableCursor > SwXTextTable::createCursorByCellName ( const OUString &  aCellName)
overridevirtual

◆ createSortDescriptor()

uno::Sequence< beans::PropertyValue > SwXTextTable::createSortDescriptor ( )
overridevirtual

Definition at line 2367 of file unotbl.cxx.

References SwUnoCursorHelper::CreateSortDescriptor().

◆ CreateXTextTable()

rtl::Reference< SwXTextTable > SwXTextTable::CreateXTextTable ( SwFrameFormat pFrameFormat)
static

◆ dispose()

void SwXTextTable::dispose ( void  )
overridevirtual

◆ getAnchor()

uno::Reference< text::XTextRange > SwXTextTable::getAnchor ( )
overridevirtual

Definition at line 2112 of file unotbl.cxx.

References GetFrameFormat().

◆ getCellByName()

uno::Reference< table::XCell > SwXTextTable::getCellByName ( const OUString &  aCellName)
overridevirtual

◆ getCellByPosition()

uno::Reference< table::XCell > SwXTextTable::getCellByPosition ( sal_Int32  nColumn,
sal_Int32  nRow 
)
overridevirtual

Definition at line 2147 of file unotbl.cxx.

References GetFrameFormat(), and lcl_CreateXCell().

◆ getCellNames()

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

◆ GetCellPosition()

void SwXTextTable::GetCellPosition ( std::u16string_view  aCellName,
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 352 of file unotbl.cxx.

References i, SAL_WARN, and o3tl::toInt32().

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().

◆ getCellRangeByName()

uno::Reference< table::XCellRange > SwXTextTable::getCellRangeByName ( const OUString &  aRange)
overridevirtual

◆ getCellRangeByPosition()

uno::Reference< table::XCellRange > SwXTextTable::getCellRangeByPosition ( sal_Int32  nLeft,
sal_Int32  nTop,
sal_Int32  nRight,
sal_Int32  nBottom 
)
overridevirtual

◆ getColumnDescriptions()

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

◆ getColumns()

uno::Reference< table::XTableColumns > SAL_CALL SwXTextTable::getColumns ( )
overridevirtual

Definition at line 1994 of file unotbl.cxx.

References GetFrameFormat(), and m_pImpl.

◆ getData()

uno::Sequence< uno::Sequence< double > > SwXTextTable::getData ( )
overridevirtual

◆ getDataArray()

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

Definition at line 2242 of file unotbl.cxx.

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

◆ GetFrameFormat()

SwFrameFormat * SwXTextTable::GetFrameFormat ( )

◆ getImplementationName()

OUString SAL_CALL SwXTextTable::getImplementationName ( )
overridevirtual

Definition at line 3061 of file unotbl.cxx.

◆ getName()

OUString SwXTextTable::getName ( )
overridevirtual

Definition at line 2940 of file unotbl.cxx.

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

Referenced by getPropertyValue().

◆ getNotANumber()

double SwXTextTable::getNotANumber ( )
overridevirtual

Definition at line 2360 of file unotbl.cxx.

◆ getPropertySetInfo()

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

Definition at line 2418 of file unotbl.cxx.

References m_pImpl.

◆ getPropertyValue()

uno::Any SwXTextTable::getPropertyValue ( const OUString &  PropertyName)
overridevirtual

Definition at line 2682 of file unotbl.cxx.

References convertTwipToMm100(), SwDoc::CreateUnoCursor(), SwStyleNameMapper::FillProgName(), SwNode::FindSectionNode(), SwTable::FindTable(), FN_UNO_ANCHOR_TYPE, FN_UNO_ANCHOR_TYPES, FN_UNO_RANGE_COL_LABEL, FN_UNO_RANGE_ROW_LABEL, FN_UNO_TABLE_BORDER, FN_UNO_TABLE_BORDER2, FN_UNO_TABLE_BORDER_DISTANCES, FN_UNO_TABLE_COLUMN_RELATIVE_SUM, FN_UNO_TABLE_COLUMN_SEPARATORS, FN_UNO_TABLE_NAME, FN_UNO_TABLE_TEMPLATE_NAME, FN_UNO_TEXT_SECTION, FN_UNO_TEXT_WRAP, fnMoveForward, SwDoc::GetAttrPool(), SwFormat::GetAttrSet(), SvxBoxItem::GetBottom(), SwFormat::GetBox(), sw::GetDefaultTextContentValue(), SvxBoxItem::GetDistance(), SwFormat::GetDoc(), SwSection::GetFormat(), SwTableBox::GetFrameFormat(), GetFrameFormat(), SvxBoxInfoItem::GetHori(), SvxBoxItem::GetLeft(), getName(), SwXTextSections::GetObject(), SvxBoxItem::GetRight(), SwSectionNode::GetSection(), SvxBoxItem::GetSmallestDistance(), SwTableBox::GetSttNd(), SwDoc::GetTabBorders(), SwTableLine::GetTabBoxes(), SwTable::GetTableNode(), SwTable::GetTableStyleName(), SwTable::GetTabLines(), SvxBoxItem::GetTop(), SvxBoxInfoItem::GetVert(), GoInNode(), i, SvxBoxInfoItem::IsValid(), lcl_FindCornerTableBox(), lcl_FormatTable(), lcl_GetSpecialProperty(), lcl_GetTableSeparators(), m_pImpl, SwUnoTableCursor::MakeBoxSels(), SfxItemPropertyMapEntry::nMemberId, SfxItemPropertyMapEntry::nWID, rBoxInfoItem, RES_ANCHOR(), RES_BOX(), rSet, SwTableLines::size(), sName, SvxBoxItem::SvxLineToLine(), TabStyle, u, and UNO_TABLE_COLUMN_SUM.

◆ getRowDescriptions()

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

◆ getRows()

uno::Reference< table::XTableRows > SAL_CALL SwXTextTable::getRows ( )
overridevirtual

Definition at line 1981 of file unotbl.cxx.

References GetFrameFormat(), and m_pImpl.

◆ getSupportedServiceNames()

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

Definition at line 3067 of file unotbl.cxx.

◆ initialize()

void SwXTextTable::initialize ( sal_Int32  nRows,
sal_Int32  nColumns 
)
overridevirtual

Definition at line 1973 of file unotbl.cxx.

References m_pImpl, and SAL_MAX_UINT16.

◆ isNotANumber()

sal_Bool SwXTextTable::isNotANumber ( double  nNumber)
overridevirtual

Definition at line 2353 of file unotbl.cxx.

◆ removeChartDataChangeEventListener()

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

Definition at line 2345 of file unotbl.cxx.

References m_pImpl.

◆ removeEventListener()

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

Definition at line 2139 of file unotbl.cxx.

References m_pImpl.

◆ removePropertyChangeListener()

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

Definition at line 2931 of file unotbl.cxx.

◆ removeVetoableChangeListener()

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

Definition at line 2937 of file unotbl.cxx.

◆ setColumnDescriptions()

void SwXTextTable::setColumnDescriptions ( const css::uno::Sequence< OUString > &  aColumnDescriptions)
overridevirtual

◆ setData()

void SwXTextTable::setData ( const css::uno::Sequence< css::uno::Sequence< double > > &  aData)
overridevirtual

◆ setDataArray()

void SAL_CALL SwXTextTable::setDataArray ( const css::uno::Sequence< css::uno::Sequence< css::uno::Any > > &  aArray)
overridevirtual

Definition at line 2252 of file unotbl.cxx.

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

◆ setName()

void SwXTextTable::setName ( const OUString &  Name_)
overridevirtual

◆ setPropertyValue()

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

◆ setRowDescriptions()

void SwXTextTable::setRowDescriptions ( const css::uno::Sequence< OUString > &  aRowDescriptions)
overridevirtual

◆ sort()

void SwXTextTable::sort ( const css::uno::Sequence< css::beans::PropertyValue > &  xDescriptor)
overridevirtual

◆ supportsService()

sal_Bool SwXTextTable::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 3064 of file unotbl.cxx.

References cppu::supportsService().

Member Data Documentation

◆ m_pImpl

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

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