LibreOffice Module svx (master) 1
|
#include <sdrtableobjimpl.hxx>
Public Member Functions | |
void | CropTableModelToSelection (const CellPos &rStart, const CellPos &rEnd) |
CellRef | getCell (const CellPos &rPos) const |
void | LayoutTable (tools::Rectangle &rArea, bool bFitWidth, bool bFitHeight) |
void | ApplyCellStyles () |
void | UpdateCells (tools::Rectangle const &rArea) |
SdrTableObjImpl () | |
virtual | ~SdrTableObjImpl () override |
void | init (SdrTableObj *pTable, sal_Int32 nColumns, sal_Int32 nRows) |
void | dispose () |
sal_Int32 | getColumnCount () const |
std::vector< sal_Int32 > | getColumnWidths () const |
Get widths of the columns in the table. More... | |
sal_Int32 | getRowCount () const |
void | DragEdge (bool mbHorizontal, int nEdge, sal_Int32 nOffset) |
SdrTableObjImpl & | operator= (const SdrTableObjImpl &rSource) |
virtual void SAL_CALL | modified (const css::lang::EventObject &aEvent) override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
void | update () |
void | connectTableStyle () |
void | disconnectTableStyle () |
bool | isInUse () |
void | dumpAsXml (xmlTextWriterPtr pWriter) const |
Public Attributes | |
CellRef | mxActiveCell |
TableModelRef | mxTable |
SdrTableObj * | mpTableObj |
std::unique_ptr< TableLayouter > | mpLayouter |
CellPos | maEditPos |
TableStyleSettings | maTableStyle |
css::uno::Reference< css::container::XIndexAccess > | mxTableStyle |
std::vector< std::unique_ptr< SdrUndoAction > > | maUndos |
bool | mbSkipChangeLayout |
Static Private Attributes | |
static SdrTableObjImpl * | lastLayoutTable = nullptr |
static tools::Rectangle | lastLayoutInputRectangle |
static tools::Rectangle | lastLayoutResultRectangle |
static bool | lastLayoutFitWidth |
static bool | lastLayoutFitHeight |
static css::text::WritingMode | lastLayoutMode |
static sal_Int32 | lastRowCount |
static sal_Int32 | lastColCount |
static std::vector< sal_Int32 > | lastColWidths |
static bool | rowSizeChanged = false |
Definition at line 40 of file sdrtableobjimpl.hxx.
sdr::table::SdrTableObjImpl::SdrTableObjImpl | ( | ) |
Definition at line 203 of file svdotable.cxx.
|
overridevirtual |
Definition at line 210 of file svdotable.cxx.
References lastLayoutTable.
void sdr::table::SdrTableObjImpl::ApplyCellStyles | ( | ) |
Definition at line 424 of file svdotable.cxx.
References sdr::table::body_style, sdr::table::even_columns_style, sdr::table::even_rows_style, sdr::table::first_column_style, sdr::table::first_row_style, getCell(), getColumnCount(), getRowCount(), SfxUnoStyleSheet::getUnoStyleSheet(), sdr::table::last_column_style, sdr::table::last_row_style, maTableStyle, sdr::table::TableStyleSettings::mbUseColumnBanding, sdr::table::TableStyleSettings::mbUseFirstColumn, sdr::table::TableStyleSettings::mbUseFirstRow, sdr::table::TableStyleSettings::mbUseLastColumn, sdr::table::TableStyleSettings::mbUseLastRow, sdr::table::TableStyleSettings::mbUseRowBanding, sdr::table::CellPos::mnCol, sdr::table::CellPos::mnRow, mxTable, mxTableStyle, sdr::table::odd_columns_style, and sdr::table::odd_rows_style.
Referenced by CropTableModelToSelection(), operator=(), and update().
void sdr::table::SdrTableObjImpl::connectTableStyle | ( | ) |
void sdr::table::SdrTableObjImpl::CropTableModelToSelection | ( | const CellPos & | rStart, |
const CellPos & | rEnd | ||
) |
Definition at line 217 of file svdotable.cxx.
References Any, ApplyCellStyles(), Exception, getColumnCount(), SdrTextObj::getRectangle(), getRowCount(), LayoutTable(), sdr::table::CellPos::mnCol, sdr::table::CellPos::mnRow, mpLayouter, mpTableObj, mxTable, SdrTextObj::setRectangle(), TOOLS_WARN_EXCEPTION, and u.
void sdr::table::SdrTableObjImpl::disconnectTableStyle | ( | ) |
Definition at line 668 of file svdotable.cxx.
References mxTableStyle.
Referenced by dispose(), and operator=().
void sdr::table::SdrTableObjImpl::dispose | ( | void | ) |
Definition at line 516 of file svdotable.cxx.
References disconnectTableStyle(), mpLayouter, mxTable, and mxTableStyle.
|
overridevirtual |
Definition at line 700 of file svdotable.cxx.
References Exception, SdrObject::getSdrModelFromSdrObject(), SdrModel::getUnoModel(), mpTableObj, mxTableStyle, sdr::table::SdrTableObj::setTableStyle(), Source, and TOOLS_WARN_EXCEPTION.
void sdr::table::SdrTableObjImpl::DragEdge | ( | bool | mbHorizontal, |
int | nEdge, | ||
sal_Int32 | nOffset | ||
) |
Definition at line 533 of file svdotable.cxx.
References Any, Exception, getColumnCount(), getRowCount(), sdr::table::SdrTableObj::GetWritingMode(), mpLayouter, mpTableObj, mxTable, rowSizeChanged, TOOLS_WARN_EXCEPTION, and u.
void sdr::table::SdrTableObjImpl::dumpAsXml | ( | xmlTextWriterPtr | pWriter | ) | const |
Definition at line 687 of file svdotable.cxx.
References mpLayouter, and mxTable.
Definition at line 721 of file svdotable.cxx.
References Exception, sdr::table::CellPos::mnCol, sdr::table::CellPos::mnRow, mxTable, and TOOLS_WARN_EXCEPTION.
Referenced by ApplyCellStyles(), and update().
sal_Int32 sdr::table::SdrTableObjImpl::getColumnCount | ( | ) | const |
Definition at line 736 of file svdotable.cxx.
References mxTable.
Referenced by ApplyCellStyles(), CropTableModelToSelection(), DragEdge(), LayoutTable(), and update().
std::vector< sal_Int32 > sdr::table::SdrTableObjImpl::getColumnWidths | ( | ) | const |
Get widths of the columns in the table.
Definition at line 741 of file svdotable.cxx.
References mxTable.
Referenced by LayoutTable().
sal_Int32 sdr::table::SdrTableObjImpl::getRowCount | ( | ) | const |
Definition at line 751 of file svdotable.cxx.
References mxTable.
Referenced by ApplyCellStyles(), CropTableModelToSelection(), DragEdge(), LayoutTable(), and update().
void sdr::table::SdrTableObjImpl::init | ( | SdrTableObj * | pTable, |
sal_Int32 | nColumns, | ||
sal_Int32 | nRows | ||
) |
Definition at line 309 of file svdotable.cxx.
References SdrTextObj::getRectangle(), LayoutTable(), sdr::table::SdrTableObj::maLogicRect, mpLayouter, mpTableObj, mxTable, and SdrTextObj::setRectangle().
bool sdr::table::SdrTableObjImpl::isInUse | ( | ) |
Definition at line 682 of file svdotable.cxx.
References SdrObject::IsInserted(), and mpTableObj.
void sdr::table::SdrTableObjImpl::LayoutTable | ( | tools::Rectangle & | rArea, |
bool | bFitWidth, | ||
bool | bFitHeight | ||
) |
Definition at line 756 of file svdotable.cxx.
References getColumnCount(), getColumnWidths(), getRowCount(), sdr::table::SdrTableObj::GetWritingMode(), sdr::table::SdrTableObj::IsAutoGrowHeight(), sdr::table::SdrTableObj::IsAutoGrowWidth(), utl::ConfigManager::IsFuzzing(), sdr::table::SdrTableObj::IsReallyEdited(), lastColCount, lastColWidths, lastLayoutFitHeight, lastLayoutFitWidth, lastLayoutInputRectangle, lastLayoutMode, lastLayoutResultRectangle, lastLayoutTable, lastRowCount, mpLayouter, mpTableObj, mxTable, rowSizeChanged, and WritingMode.
Referenced by CropTableModelToSelection(), init(), operator=(), and update().
|
overridevirtual |
Definition at line 615 of file svdotable.cxx.
References aEvent, SdrObject::GetProperties(), mpTableObj, mxTableStyle, and update().
SdrTableObjImpl & sdr::table::SdrTableObjImpl::operator= | ( | const SdrTableObjImpl & | rSource | ) |
Definition at line 324 of file svdotable.cxx.
References ApplyCellStyles(), connectTableStyle(), disconnectTableStyle(), Exception, SdrTextObj::getRectangle(), SdrObject::getSdrModelFromSdrObject(), SdrModel::getUnoModel(), LayoutTable(), sdr::table::SdrTableObj::maLogicRect, maTableStyle, mpLayouter, mpTableObj, mxActiveCell, mxTable, mxTableStyle, SdrTextObj::setRectangle(), and TOOLS_WARN_EXCEPTION.
void sdr::table::SdrTableObjImpl::update | ( | ) |
Definition at line 623 of file svdotable.cxx.
References SdrObject::ActionChanged(), ApplyCellStyles(), SdrObject::BroadcastObjectChange(), getCell(), getColumnCount(), SdrTextObj::getRectangle(), getRowCount(), LayoutTable(), maEditPos, sdr::table::SdrTableObj::maLogicRect, sdr::table::CellPos::mnCol, sdr::table::CellPos::mnRow, mpTableObj, mxActiveCell, mxTable, sdr::table::SdrTableObj::setActiveCell(), SdrObject::SetBoundAndSnapRectsDirty(), and SdrTextObj::setRectangle().
Referenced by modified().
void sdr::table::SdrTableObjImpl::UpdateCells | ( | tools::Rectangle const & | rArea | ) |
Definition at line 799 of file svdotable.cxx.
References mpLayouter, and mxTable.
|
staticprivate |
Definition at line 96 of file sdrtableobjimpl.hxx.
Referenced by LayoutTable().
|
staticprivate |
Definition at line 97 of file sdrtableobjimpl.hxx.
Referenced by LayoutTable().
|
staticprivate |
Definition at line 93 of file sdrtableobjimpl.hxx.
Referenced by LayoutTable().
|
staticprivate |
Definition at line 92 of file sdrtableobjimpl.hxx.
Referenced by LayoutTable().
|
staticprivate |
Definition at line 90 of file sdrtableobjimpl.hxx.
Referenced by LayoutTable().
|
staticprivate |
Definition at line 94 of file sdrtableobjimpl.hxx.
Referenced by LayoutTable().
|
staticprivate |
Definition at line 91 of file sdrtableobjimpl.hxx.
Referenced by LayoutTable().
|
staticprivate |
Definition at line 89 of file sdrtableobjimpl.hxx.
Referenced by LayoutTable(), and ~SdrTableObjImpl().
|
staticprivate |
Definition at line 95 of file sdrtableobjimpl.hxx.
Referenced by LayoutTable().
CellPos sdr::table::SdrTableObjImpl::maEditPos |
Definition at line 47 of file sdrtableobjimpl.hxx.
Referenced by update().
TableStyleSettings sdr::table::SdrTableObjImpl::maTableStyle |
Definition at line 48 of file sdrtableobjimpl.hxx.
Referenced by ApplyCellStyles(), and operator=().
std::vector<std::unique_ptr<SdrUndoAction> > sdr::table::SdrTableObjImpl::maUndos |
Definition at line 50 of file sdrtableobjimpl.hxx.
bool sdr::table::SdrTableObjImpl::mbSkipChangeLayout |
Definition at line 51 of file sdrtableobjimpl.hxx.
std::unique_ptr<TableLayouter> sdr::table::SdrTableObjImpl::mpLayouter |
Definition at line 46 of file sdrtableobjimpl.hxx.
Referenced by CropTableModelToSelection(), dispose(), DragEdge(), dumpAsXml(), init(), LayoutTable(), operator=(), and UpdateCells().
SdrTableObj* sdr::table::SdrTableObjImpl::mpTableObj |
Definition at line 45 of file sdrtableobjimpl.hxx.
Referenced by CropTableModelToSelection(), disposing(), DragEdge(), init(), isInUse(), LayoutTable(), modified(), operator=(), and update().
CellRef sdr::table::SdrTableObjImpl::mxActiveCell |
Definition at line 43 of file sdrtableobjimpl.hxx.
Referenced by operator=(), and update().
TableModelRef sdr::table::SdrTableObjImpl::mxTable |
Definition at line 44 of file sdrtableobjimpl.hxx.
Referenced by ApplyCellStyles(), CropTableModelToSelection(), dispose(), DragEdge(), dumpAsXml(), getCell(), getColumnCount(), getColumnWidths(), getRowCount(), init(), LayoutTable(), operator=(), update(), and UpdateCells().
css::uno::Reference< css::container::XIndexAccess > sdr::table::SdrTableObjImpl::mxTableStyle |
Definition at line 49 of file sdrtableobjimpl.hxx.
Referenced by ApplyCellStyles(), connectTableStyle(), disconnectTableStyle(), dispose(), disposing(), modified(), and operator=().
|
staticprivate |
Definition at line 98 of file sdrtableobjimpl.hxx.
Referenced by DragEdge(), and LayoutTable().