LibreOffice Module sw (master)
1
|
#include <unotbl.hxx>
Classes | |
class | Impl |
Public Member Functions | |
SW_DLLPUBLIC SwFrameFormat * | GetFrameFormat () |
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< Impl > | m_pImpl |
Definition at line 254 of file unotbl.hxx.
|
private |
|
private |
Definition at line 1978 of file unotbl.cxx.
References m_pImpl.
|
overrideprivatevirtual |
Definition at line 1983 of file unotbl.cxx.
|
overridevirtual |
Definition at line 2370 of file unotbl.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 2164 of file unotbl.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 2960 of file unotbl.cxx.
|
overridevirtual |
Definition at line 2966 of file unotbl.cxx.
|
overridevirtual |
Definition at line 2079 of file unotbl.cxx.
References DefaultBorder, IDocumentContentOperations::DeleteAndJoin(), SwPaM::DeleteMark(), EMPTY, END, IDocumentUndoRedo::EndUndo(), SwDoc::FindTableFormatByName(), FN_UNO_TABLE_NAME, OTextCursorHelper::GetDoc(), SwXTextRange::GetDoc(), SwTable::GetFrameFormat(), SwDoc::getIDocumentContentOperations(), SwDoc::GetIDocumentUndoRedo(), SwIndex::GetIndex(), SwPaM::GetPoint(), SwPaM::HasMark(), Headline, SwDoc::InsertTable(), lcl_FormatTable(), m_pImpl, SwPosition::nContent, nIndex, setName(), SwDoc::SetTableName(), SplitLayout, IDocumentContentOperations::SplitNode(), SwPaM::Start(), IDocumentUndoRedo::StartUndo(), and sw::XTextRangeToSwPaM().
|
overridevirtual |
Definition at line 2428 of file unotbl.cxx.
References SwTable::FindTable(), SwFormat::GetDoc(), GetFrameFormat(), GetName(), SwTable::GetTabSortBoxes(), i, o3tl::sorted_vector< Value, Compare, Find, class >::insert(), SwTableAutoFormatTable::Load(), n, SwDoc::SetTableAutoFormat(), o3tl::sorted_vector< Value, Compare, Find, class >::size(), and SwTableAutoFormatTable::size().
|
overridevirtual |
Definition at line 2067 of file unotbl.cxx.
References SwTable::FindTable(), GetFrameFormat(), SwTableBox::getRowSpan(), and SwTable::GetTableBox().
|
overridevirtual |
Definition at line 2400 of file unotbl.cxx.
References SwUnoCursorHelper::CreateSortDescriptor().
|
static |
Definition at line 1987 of file unotbl.cxx.
References SwFrameFormat::GetXObject(), m_pImpl, SwFrameFormat::SetXObject(), and SwXTextTable().
Referenced by SwXText::convertToTable(), SwXTextTables::GetObject(), SwXServiceProvider::MakeInstance(), and UnfloatTableButton::MouseButtonDown().
Definition at line 2153 of file unotbl.cxx.
References SwDoc::DeleteProtected, SwDoc::DeleteRowCol(), SwTable::FindTable(), SwFormat::GetDoc(), GetFrameFormat(), SwTable::GetTabSortBoxes(), and o3tl::sorted_vector< Value, Compare, Find, class >::insert().
|
overridevirtual |
Definition at line 2145 of file unotbl.cxx.
References GetFrameFormat().
|
overridevirtual |
Definition at line 2042 of file unotbl.cxx.
References SwXCell::CreateXCell(), SwTable::FindTable(), GetFrameFormat(), and SwTable::GetTableBox().
Referenced by SwXMLTextParagraphExport::exportTable().
|
overridevirtual |
Definition at line 2180 of file unotbl.cxx.
References GetFrameFormat(), and lcl_CreateXCell().
|
overridevirtual |
Definition at line 2053 of file unotbl.cxx.
References comphelper::containerToSequence(), SwTable::FindTable(), GetFrameFormat(), SwTable::GetTabLines(), and lcl_InspectLines().
Referenced by SwXMLTextParagraphExport::exportTable().
|
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).
rCellName | e.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 351 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().
|
overridevirtual |
Definition at line 2252 of file unotbl.cxx.
References SwTable::FindTable(), GetCellPosition(), GetFrameFormat(), SwRangeDescriptor::nBottom, SwRangeDescriptor::nLeft, SwRangeDescriptor::Normalize(), nPos, SwRangeDescriptor::nRight, and SwRangeDescriptor::nTop.
|
overridevirtual |
Definition at line 2226 of file unotbl.cxx.
References SwTable::FindTable(), GetFrameFormat(), SwTable::IsTableComplex(), SwRangeDescriptor::nBottom, SwRangeDescriptor::nLeft, SwRangeDescriptor::nRight, SwRangeDescriptor::nTop, and sw_GetCellName().
Referenced by getColumnDescriptions(), getData(), getDataArray(), getRowDescriptions(), setColumnDescriptions(), setData(), setDataArray(), and setRowDescriptions().
|
overridevirtual |
Definition at line 2346 of file unotbl.cxx.
References getCellRangeByPosition(), SwXCellRange::getColumnDescriptions(), m_pImpl, and SwXTextTable::Impl::ThrowIfComplex().
|
overridevirtual |
Definition at line 2029 of file unotbl.cxx.
References GetFrameFormat(), and m_pImpl.
|
overridevirtual |
Definition at line 2295 of file unotbl.cxx.
References getCellRangeByPosition(), SwXCellRange::getData(), m_pImpl, and SwXTextTable::Impl::ThrowIfComplex().
|
overridevirtual |
Definition at line 2275 of file unotbl.cxx.
References getCellRangeByPosition(), and SwXTextTable::Impl::ThrowIfComplex().
SwFrameFormat * SwXTextTable::GetFrameFormat | ( | ) |
Definition at line 2003 of file unotbl.cxx.
References m_pImpl.
Referenced by autoFormat(), SwXText::convertToTable(), createCursorByCellName(), dispose(), SwXMLTextParagraphExport::exportTable(), getAnchor(), getCellByName(), getCellByPosition(), getCellNames(), getCellRangeByName(), getCellRangeByPosition(), SwXTextTable::Impl::GetColumnCount(), getColumns(), getName(), getPropertyValue(), getRows(), SwUnoCursorHelper::GetSelectableFromAny(), SwVbaTableHelper::GetSwTable(), setName(), setPropertyValue(), and sort().
|
overridevirtual |
Definition at line 3092 of file unotbl.cxx.
|
overridevirtual |
Definition at line 2972 of file unotbl.cxx.
References GetFrameFormat(), SwFormat::GetName(), and m_pImpl.
Referenced by getPropertyValue().
|
overridevirtual |
Definition at line 2393 of file unotbl.cxx.
|
overridevirtual |
Definition at line 2451 of file unotbl.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 2714 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(), GetFrameFormat(), SwTableBox::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, SfxItemSet::Put(), rBoxInfoItem, RES_ANCHOR(), RES_BOX(), SwTableLines::size(), sName, SvxBoxItem::SvxLineToLine(), TabStyle, u, and UNO_TABLE_COLUMN_SUM.
|
overridevirtual |
Definition at line 2322 of file unotbl.cxx.
References getCellRangeByPosition(), SwXCellRange::getRowDescriptions(), m_pImpl, and SwXTextTable::Impl::ThrowIfComplex().
|
overridevirtual |
Definition at line 2016 of file unotbl.cxx.
References GetFrameFormat(), and m_pImpl.
|
overridevirtual |
Definition at line 1967 of file unotbl.cxx.
References comphelper::getSomethingImpl().
|
overridevirtual |
Definition at line 3098 of file unotbl.cxx.
|
static |
Definition at line 1961 of file unotbl.cxx.
References comphelper::UnoIdInit::getSeq().
|
overridevirtual |
Definition at line 2008 of file unotbl.cxx.
References m_pImpl, and SAL_MAX_UINT16.
|
overridevirtual |
Definition at line 2386 of file unotbl.cxx.
|
overridevirtual |
Definition at line 2378 of file unotbl.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 2172 of file unotbl.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 2963 of file unotbl.cxx.
|
overridevirtual |
Definition at line 2969 of file unotbl.cxx.
|
overridevirtual |
Definition at line 2358 of file unotbl.cxx.
References getCellRangeByPosition(), m_pImpl, SwXCellRange::setColumnDescriptions(), and SwXTextTable::Impl::ThrowIfComplex().
|
overridevirtual |
Definition at line 2307 of file unotbl.cxx.
References getCellRangeByPosition(), m_pImpl, rData, SwXCellRange::setData(), and SwXTextTable::Impl::ThrowIfComplex().
|
overridevirtual |
Definition at line 2285 of file unotbl.cxx.
References getCellRangeByPosition(), and SwXTextTable::Impl::ThrowIfComplex().
|
overridevirtual |
Definition at line 2985 of file unotbl.cxx.
References SwNode::EndOfSectionNode(), SwTable::FindTable(), SwFormat::GetDoc(), SwNodes::GetEndOfAutotext(), SwTable::GetFrameFormat(), GetFrameFormat(), SwDoc::getIDocumentState(), SwFormat::GetName(), SwDoc::GetNodes(), SwNode::GetStartNode(), SwDoc::GetTableFrameFormats(), i, SwFormat::IsDefault(), SwNode::IsOLENode(), SwDoc::IsUsed(), m_pImpl, IDocumentState::SetModified(), SwFrameFormat::SetName(), SwNode::StartOfSectionNode(), and SwDoc::UpdateCharts().
Referenced by attach(), and setPropertyValue().
|
overridevirtual |
Definition at line 2457 of file unotbl.cxx.
References SwTableBox::ClaimFrameFormat(), SwDoc::CreateUnoCursor(), END, IDocumentUndoRedo::EndUndo(), SwStyleNameMapper::FillUIName(), SwTable::FindTable(), 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, fnMoveForward, SwDoc::GetAttrPool(), SwFormat::GetAttrSet(), SwFormat::GetBox(), SvxBoxItem::GetDistance(), SwFormat::GetDoc(), SwDoc::GetDocShell(), SwDocShell::GetFEShell(), GetFrameFormat(), SwTableBox::GetFrameFormat(), SwDoc::GetIDocumentUndoRedo(), SwTableBox::GetSttNd(), SwTableLine::GetTabBoxes(), SwTable::GetTableNode(), SwTable::GetTabLines(), GoInNode(), uno::Any::hasValue(), i, lcl_FindCornerTableBox(), lcl_FormatTable(), lcl_LineToSvxLine(), lcl_SetSpecialProperty(), lcl_SetTableSeparators(), SvxBoxItem::LineToSvxLine(), m_pImpl, SwUnoTableCursor::MakeBoxSels(), o3tl::mm100, SfxItemPropertyMapEntry::nFlags, SfxItemPropertyMapEntry::nMemberId, SfxItemPropertyMapEntry::nWID, RES_BOX(), SwDoc::SetAttr(), SvxBoxItem::SetDistance(), SvxBoxInfoItem::SetLine(), setName(), SwDoc::SetTabBorders(), SwTable::SetTableStyleName(), SvxBoxInfoItem::SetValid(), SwTableLines::size(), sName, START, IDocumentUndoRedo::StartUndo(), TabStyle, o3tl::toTwips(), and SwFEShell::UpdateTableStyleFormatting().
|
overridevirtual |
Definition at line 2334 of file unotbl.cxx.
References getCellRangeByPosition(), m_pImpl, SwXCellRange::setRowDescriptions(), and SwXTextTable::Impl::ThrowIfComplex().
|
overridevirtual |
Definition at line 2407 of file unotbl.cxx.
References SwUnoCursorHelper::ConvertSortProperties(), SwTable::FindTable(), SwFormat::GetDoc(), GetFrameFormat(), SwTable::GetTabSortBoxes(), o3tl::sorted_vector< Value, Compare, Find, class >::insert(), n, o3tl::sorted_vector< Value, Compare, Find, class >::size(), and SwDoc::SortTable().
|
overridevirtual |
Definition at line 3095 of file unotbl.cxx.
References cppu::supportsService().
|
private |
Definition at line 269 of file unotbl.hxx.
Referenced by addChartDataChangeEventListener(), addEventListener(), attach(), CreateXTextTable(), getColumnDescriptions(), getColumns(), getData(), GetFrameFormat(), getName(), getPropertySetInfo(), getPropertyValue(), getRowDescriptions(), getRows(), initialize(), removeChartDataChangeEventListener(), removeEventListener(), setColumnDescriptions(), setData(), setName(), setPropertyValue(), setRowDescriptions(), and SwXTextTable::Impl::ThrowIfComplex().