20#ifndef INCLUDED_SVX_SDR_TABLE_TABLECONTROLLER_HXX
21#define INCLUDED_SVX_SDR_TABLE_TABLECONTROLLER_HXX
23#include <com/sun/star/util/XModifyListener.hpp>
66 virtual void Execute(
SfxRequest& rReq )
override;
71 SVX_DLLPRIVATE virtual bool ApplyFormatPaintBrush(
SfxItemSet& rFormatSet,
bool bNoCharacterFormats,
bool bNoParagraphFormats )
override;
80 SVX_DLLPRIVATE void DistributeColumns(
const bool bOptimize,
const bool bMinimize );
81 SVX_DLLPRIVATE void DistributeRows(
const bool bOptimize,
const bool bMinimize );
95 void SetAttrToSelectedShape(
const SfxItemSet& rAttr);
111 SVX_DLLPRIVATE virtual bool setCursorLogicPosition(
const Point& rPosition,
bool bPoint)
override;
114 void getSelectedCells(
CellPos& rFirstPos,
CellPos& rLastPos )
override;
115 void setSelectedCells(
const CellPos& rFirstPos,
const CellPos& rLastPos );
117 virtual bool ChangeFontSize(
bool bGrow,
const FontList* pFontList)
override;
119 void clearSelection();
124 bool selectRow( sal_Int32 row );
125 bool selectColumn( sal_Int32 column );
126 bool deselectRow( sal_Int32 row );
127 bool deselectColumn( sal_Int32 column );
128 bool isRowSelected( sal_Int32 nRow );
129 bool isColumnSelected( sal_Int32 nColumn );
131 bool isColumnHeader();
141 GotoFirstCell, GotoFirstColumn, GotoFirstRow,
142 GotoLeftCell, GotoUpCell, GotoRightCell, GotoDownCell,
143 GotoLastCell, GotoLastColumn, GotoLastRow,
144 EditCell, StopTextEdit,
162 SVX_DLLPRIVATE void MergeRange( sal_Int32 nFirstCol, sal_Int32 nFirstRow, sal_Int32 nLastCol, sal_Int32 nLastRow );
SvxTableController(SvxTableController const &)=delete
sdr::table::SdrTableObj * GetTableObj()
std::optional< sdr::overlay::OverlayObjectList > mpSelectionOverlay
ImplSVEvent * mnUpdateEvent
css::uno::Reference< css::util::XModifyListener > mxModifyListener
rtl::Reference< TableModel > mxTable
unotools::WeakReference< SdrTableObj > mxTableObj
virtual SVX_DLLPRIVATE bool hasSelectedCells() const override
This is a table object, and one or more of its cells are selected.
DECL_DLLPRIVATE_LINK(UpdateHdl, void *, void)
css::uno::Reference< css::deployment::XPackageRegistry > create(css::uno::Reference< css::deployment::XPackageRegistry > const &xRootRegistry, OUString const &context, OUString const &cachePath, css::uno::Reference< css::uno::XComponentContext > const &xComponentContext)
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.
rtl::Reference< sdr::SelectionController > CreateTableController(SdrView &rView, const SdrTableObj &rObj, const rtl::Reference< sdr::SelectionController > &xRefController)
#define SVXCORE_DLLPUBLIC