21#include <com/sun/star/lang/DisposedException.hpp>
22#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
24#include <tablemodel.hxx>
53, mxTableModel(
std::move( xTableModel ))
56, mbOptimalWidth( true )
58, mbIsStartOfNewPage( false )
77 throw DisposedException();
101 throw IndexOutOfBoundsException();
110 if( (nTop >= 0 ) && (nLeft == 0) && (nBottom >= nTop) && (nRight == 0) )
114 throw IndexOutOfBoundsException();
120 return Reference< XCellRange >();
145 bool bChange =
false;
148 std::unique_ptr<TableColumnUndo> pUndo;
161 bOk = aValue >>= nWidth;
162 if( bOk && (nWidth !=
mnWidth) )
173 bOk = aValue >>= bOptimalWidth;
186 bOk = aValue >>= bIsVisible;
198 bOk = aValue >>= bIsStartOfNewPage;
207 throw UnknownPropertyException( OUString::number(
nHandle), getXWeak());
211 throw IllegalArgumentException();
218 rModel.
AddUndo( std::move(pUndo) );
233 default:
throw UnknownPropertyException( OUString::number(
nHandle), getXWeak());
PropertiesInfo aProperties
void AddUndo(std::unique_ptr< SdrUndoAction > pUndo)
bool IsUndoEnabled() const
returns true if undo is currently enabled This returns false if undo was disabled using EnableUndo( f...
css::uno::Type const & get()
virtual css::uno::Reference< css::table::XCell > SAL_CALL getCellByPosition(sal_Int32 nColumn, sal_Int32 nRow) override
virtual ~TableColumn() override
virtual css::uno::Reference< css::table::XCellRange > SAL_CALL getCellRangeByPosition(sal_Int32 nLeft, sal_Int32 nTop, sal_Int32 nRight, sal_Int32 nBottom) override
static rtl::Reference< FastPropertySetInfo > getStaticPropertySetInfo()
virtual void SAL_CALL setName(const OUString &aName) override
TableColumn & operator=(const TableColumn &)
TableColumn(TableModelRef xTableModel, sal_Int32 nColumn)
TableModelRef const & getModel() const
Get the table that owns this column.
friend class TableColumnUndo
virtual css::uno::Any SAL_CALL getFastPropertyValue(::sal_Int32 nHandle) override
void throwIfDisposed() const
virtual OUString SAL_CALL getName() override
sal_Int32 getWidth() const
Get the width of this column.
virtual void SAL_CALL setFastPropertyValue(::sal_Int32 nHandle, const css::uno::Any &aValue) override
virtual css::uno::Reference< css::table::XCellRange > SAL_CALL getCellRangeByName(const OUString &aRange) override
TableModelRef mxTableModel
std::vector< css::beans::Property > PropertyVector
const sal_Int32 Property_IsStartOfNewPage
const sal_Int32 Property_Width
const sal_Int32 Property_IsVisible
const sal_Int32 Property_OptimalWidth