21#include <com/sun/star/lang/DisposedException.hpp>
22#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
49, mxTableModel(
std::move( xTableModel ))
52, mbOptimalHeight( true )
54, mbIsStartOfNewPage( false )
88 throw DisposedException();
132 CellVector::iterator aBegin(
maCells.begin() );
133 std::advance(aBegin,
nIndex);
137 CellVector::iterator aEnd( aBegin );
165 throw IndexOutOfBoundsException();
174 if( (nLeft >= 0 ) && (nTop == 0) && (nRight >= nLeft) && (nBottom == 0) )
178 throw IndexOutOfBoundsException();
185 return Reference< XCellRange >();
216 std::unique_ptr<TableRowUndo> pUndo;
230 bOk = aValue >>= nHeight;
243 bOk = aValue >>= bOptimalHeight;
256 bOk = aValue >>= bIsVisible;
268 bOk = aValue >>= bIsStartOfNewPage;
277 throw UnknownPropertyException( OUString::number(
nHandle), getXWeak());
282 throw IllegalArgumentException();
289 rModel.
AddUndo( std::move(pUndo) );
304 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...
SdrModel & getSdrModelFromSdrObject() const
css::uno::Type const & get()
TableRow & operator=(const TableRow &)
virtual void SAL_CALL setName(const OUString &aName) override
virtual OUString SAL_CALL getName() override
virtual css::uno::Any SAL_CALL getFastPropertyValue(::sal_Int32 nHandle) override
virtual ~TableRow() 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()
void throwIfDisposed() const
virtual css::uno::Reference< css::table::XCellRange > SAL_CALL getCellRangeByName(const OUString &aRange) override
virtual css::uno::Reference< css::table::XCell > SAL_CALL getCellByPosition(sal_Int32 nColumn, sal_Int32 nRow) override
friend class TableRowUndo
TableModelRef mxTableModel
TableRow(TableModelRef xTableModel, sal_Int32 nRow, sal_Int32 nColumns)
void insertColumns(sal_Int32 nIndex, sal_Int32 nCount, CellVector::iterator const *pIter)
const TableModelRef & getModel() const
Reference to the table model containing this row.
void removeColumns(sal_Int32 nIndex, sal_Int32 nCount)
virtual void SAL_CALL setFastPropertyValue(::sal_Int32 nHandle, const css::uno::Any &aValue) override
std::vector< css::beans::Property > PropertyVector
std::vector< CellRef > CellVector
const sal_Int32 Property_OptimalHeight
const sal_Int32 Property_IsStartOfNewPage
const sal_Int32 Property_Height
const sal_Int32 Property_IsVisible