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>
64 virtual void Execute(
SfxRequest& rReq )
override;
69 SVX_DLLPRIVATE virtual bool ApplyFormatPaintBrush(
SfxItemSet& rFormatSet,
bool bNoCharacterFormats,
bool bNoParagraphFormats )
override;
78 SVX_DLLPRIVATE void DistributeColumns(
const bool bOptimize,
const bool bMinimize );
79 SVX_DLLPRIVATE void DistributeRows(
const bool bOptimize,
const bool bMinimize );
90 void SetAttrToSelectedShape(
const SfxItemSet& rAttr);
106 SVX_DLLPRIVATE virtual bool setCursorLogicPosition(
const Point& rPosition,
bool bPoint)
override;
109 void getSelectedCells(
CellPos& rFirstPos,
CellPos& rLastPos )
override;
110 void setSelectedCells(
const CellPos& rFirstPos,
const CellPos& rLastPos );
112 virtual bool ChangeFontSize(
bool bGrow,
const FontList* pFontList)
override;
114 void clearSelection();
119 bool selectRow( sal_Int32 row );
120 bool selectColumn( sal_Int32 column );
121 bool deselectRow( sal_Int32 row );
122 bool deselectColumn( sal_Int32 column );
123 bool isRowSelected( sal_Int32 nRow );
124 bool isColumnSelected( sal_Int32 nColumn );
126 bool isColumnHeader();
129 SvxTableController(SvxTableController
const &) =
delete;
130 SvxTableController& operator =(SvxTableController
const &) =
delete;
136 GotoFirstCell, GotoFirstColumn, GotoFirstRow,
137 GotoLeftCell, GotoUpCell, GotoRightCell, GotoDownCell,
138 GotoLastCell, GotoLastColumn, GotoLastRow,
139 EditCell, StopTextEdit,
157 SVX_DLLPRIVATE void MergeRange( sal_Int32 nFirstCol, sal_Int32 nFirstRow, sal_Int32 nLastCol, sal_Int32 nLastRow );
199 #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.
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::optional< sdr::overlay::OverlayObjectList > mpSelectionOverlay
#define SVXCORE_DLLPUBLIC
#define DECL_DLLPRIVATE_LINK(Member, ArgType, RetType)