20 #ifndef INCLUDED_SVX_SDR_TABLE_TABLECONTROLLER_HXX
21 #define INCLUDED_SVX_SDR_TABLE_TABLECONTROLLER_HXX
23 #include <com/sun/star/util/XModifyListener.hpp>
24 #include <rtl/ref.hxx>
67 SVX_DLLPRIVATE virtual bool ApplyFormatPaintBrush(
SfxItemSet& rFormatSet,
bool bNoCharacterFormats,
bool bNoParagraphFormats )
override;
76 SVX_DLLPRIVATE void DistributeColumns(
const bool bOptimize,
const bool bMinimize );
77 SVX_DLLPRIVATE void DistributeRows(
const bool bOptimize,
const bool bMinimize );
88 void SetAttrToSelectedShape(
const SfxItemSet& rAttr);
104 SVX_DLLPRIVATE virtual bool setCursorLogicPosition(
const Point& rPosition,
bool bPoint)
override;
107 void getSelectedCells(
CellPos& rFirstPos,
CellPos& rLastPos )
override;
108 void setSelectedCells(
const CellPos& rFirstPos,
const CellPos& rLastPos );
110 virtual bool ChangeFontSize(
bool bGrow,
const FontList* pFontList)
override;
112 void clearSelection();
117 bool selectRow( sal_Int32 row );
118 bool selectColumn( sal_Int32 column );
119 bool deselectRow( sal_Int32 row );
120 bool deselectColumn( sal_Int32 column );
121 bool isRowSelected( sal_Int32 nRow );
122 bool isColumnSelected( sal_Int32 nColumn );
124 bool isColumnHeader();
127 SvxTableController(SvxTableController
const &) =
delete;
128 SvxTableController& operator =(SvxTableController
const &) =
delete;
134 GotoFirstCell, GotoFirstColumn, GotoFirstRow,
135 GotoLeftCell, GotoUpCell, GotoRightCell, GotoDownCell,
136 GotoLastCell, GotoLastColumn, GotoLastRow,
137 EditCell, StopTextEdit,
155 SVX_DLLPRIVATE void MergeRange( sal_Int32 nFirstCol, sal_Int32 nFirstRow, sal_Int32 nLastCol, sal_Int32 nLastRow );
197 #endif // INCLUDED_SVX_SDR_TABLE_TABLECONTROLLER_HXX
bool findMergeOrigin(const TableModelRef &xTable, sal_Int32 nMergedX, sal_Int32 nMergedY, sal_Int32 &rOriginX, sal_Int32 &rOriginY)
returns true if the cell(nMergedX,nMergedY) is merged with other cells.
#define DECL_LINK(Member, ArgType, RetType)
css::uno::Reference< css::util::XModifyListener > mxModifyListener
rtl::Reference< sdr::SelectionController > CreateTableController(SdrView &rView, const SdrTableObj &rObj, const rtl::Reference< sdr::SelectionController > &xRefController)
virtual SVX_DLLPRIVATE bool hasSelectedCells() const override
This is a table object, and one or more of its cells are selected.
ImplSVEvent * mnUpdateEvent
tools::WeakReference< SdrTableObj > mxTableObj
sdr::table::SdrTableObj * GetTableObj()
Reference< deployment::XPackageRegistry > create(Reference< deployment::XPackageRegistry > const &xRootRegistry, OUString const &context, OUString const &cachePath, Reference< XComponentContext > const &xComponentContext)
rtl::Reference< TableModel > mxTable
std::unique_ptr< sdr::overlay::OverlayObjectList > mpSelectionOverlay
#define SVXCORE_DLLPUBLIC