LibreOffice Module svx (master)
1
|
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 () |
virtual bool | isInUse () override |
void | dumpAsXml (xmlTextWriterPtr pWriter) const |
Public Attributes | |
CellRef | mxActiveCell |
TableModelRef | mxTable |
SdrTableObj * | mpTableObj |
std::unique_ptr< TableLayouter > | mpLayouter |
CellPos | maEditPos |
TableStyleSettings | maTableStyle |
Reference< 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 WritingMode | lastLayoutMode |
static sal_Int32 | lastRowCount |
static sal_Int32 | lastColCount |
static std::vector< sal_Int32 > | lastColWidths |
static bool | rowSizeChanged = false |
Additional Inherited Members | |
![]() | |
~TableDesignUser () | |
Definition at line 191 of file svdotable.cxx.
sdr::table::SdrTableObjImpl::SdrTableObjImpl | ( | ) |
Definition at line 263 of file svdotable.cxx.
References false.
|
overridevirtual |
Definition at line 270 of file svdotable.cxx.
References lastLayoutTable.
void sdr::table::SdrTableObjImpl::ApplyCellStyles | ( | ) |
Definition at line 478 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 277 of file svdotable.cxx.
References Any, ApplyCellStyles(), Exception, getColumnCount(), getRowCount(), LayoutTable(), SdrTextObj::maRect, sdr::table::CellPos::mnCol, sdr::table::CellPos::mnRow, mpLayouter, mpTableObj, mxTable, TOOLS_WARN_EXCEPTION, and u.
void sdr::table::SdrTableObjImpl::disconnectTableStyle | ( | ) |
Definition at line 717 of file svdotable.cxx.
References mxTableStyle.
Referenced by dispose(), and operator=().
Definition at line 570 of file svdotable.cxx.
References disconnectTableStyle(), mpLayouter, mxTable, and mxTableStyle.
|
overridevirtual |
Definition at line 749 of file svdotable.cxx.
References mpLayouter, mpTableObj, mxActiveCell, and mxTable.
Definition at line 587 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 736 of file svdotable.cxx.
References mpLayouter, mxTable, and void().
Definition at line 758 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 773 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 778 of file svdotable.cxx.
References mxTable.
Referenced by LayoutTable().
sal_Int32 sdr::table::SdrTableObjImpl::getRowCount | ( | ) | const |
Definition at line 788 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 367 of file svdotable.cxx.
References LayoutTable(), sdr::table::SdrTableObj::maLogicRect, SdrTextObj::maRect, mpLayouter, mpTableObj, and mxTable.
|
overridevirtual |
Implements sdr::table::TableDesignUser.
Definition at line 731 of file svdotable.cxx.
References SdrObject::IsInserted(), and mpTableObj.
void sdr::table::SdrTableObjImpl::LayoutTable | ( | tools::Rectangle & | rArea, |
bool | bFitWidth, | ||
bool | bFitHeight | ||
) |
Definition at line 793 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 669 of file svdotable.cxx.
References update().
SdrTableObjImpl & sdr::table::SdrTableObjImpl::operator= | ( | const SdrTableObjImpl & | rSource | ) |
Definition at line 380 of file svdotable.cxx.
References ApplyCellStyles(), connectTableStyle(), disconnectTableStyle(), Exception, SdrObject::getSdrModelFromSdrObject(), LayoutTable(), sdr::table::SdrTableObj::maLogicRect, SdrTextObj::maRect, maTableStyle, mpLayouter, mpTableObj, mxActiveCell, mxTable, mxTableStyle, and TOOLS_WARN_EXCEPTION.
void sdr::table::SdrTableObjImpl::update | ( | ) |
Definition at line 674 of file svdotable.cxx.
References SdrObject::ActionChanged(), ApplyCellStyles(), SdrObject::BroadcastObjectChange(), getCell(), getColumnCount(), getRowCount(), LayoutTable(), maEditPos, sdr::table::SdrTableObj::maLogicRect, SdrTextObj::maRect, sdr::table::CellPos::mnCol, sdr::table::CellPos::mnRow, mpTableObj, mxActiveCell, mxTable, sdr::table::SdrTableObj::setActiveCell(), and SdrObject::SetBoundAndSnapRectsDirty().
Referenced by modified().
void sdr::table::SdrTableObjImpl::UpdateCells | ( | tools::Rectangle const & | rArea | ) |
Definition at line 836 of file svdotable.cxx.
References mpLayouter, and mxTable.
|
staticprivate |
Definition at line 247 of file svdotable.cxx.
Referenced by LayoutTable().
|
staticprivate |
Definition at line 248 of file svdotable.cxx.
Referenced by LayoutTable().
|
staticprivate |
Definition at line 244 of file svdotable.cxx.
Referenced by LayoutTable().
|
staticprivate |
Definition at line 243 of file svdotable.cxx.
Referenced by LayoutTable().
|
staticprivate |
Definition at line 241 of file svdotable.cxx.
Referenced by LayoutTable().
|
staticprivate |
Definition at line 245 of file svdotable.cxx.
Referenced by LayoutTable().
|
staticprivate |
Definition at line 242 of file svdotable.cxx.
Referenced by LayoutTable().
|
staticprivate |
Definition at line 240 of file svdotable.cxx.
Referenced by LayoutTable(), and ~SdrTableObjImpl().
|
staticprivate |
Definition at line 246 of file svdotable.cxx.
Referenced by LayoutTable().
CellPos sdr::table::SdrTableObjImpl::maEditPos |
Definition at line 198 of file svdotable.cxx.
Referenced by update().
TableStyleSettings sdr::table::SdrTableObjImpl::maTableStyle |
Definition at line 199 of file svdotable.cxx.
Referenced by ApplyCellStyles(), and operator=().
std::vector<std::unique_ptr<SdrUndoAction> > sdr::table::SdrTableObjImpl::maUndos |
Definition at line 201 of file svdotable.cxx.
bool sdr::table::SdrTableObjImpl::mbSkipChangeLayout |
Definition at line 202 of file svdotable.cxx.
std::unique_ptr<TableLayouter> sdr::table::SdrTableObjImpl::mpLayouter |
Definition at line 197 of file svdotable.cxx.
Referenced by CropTableModelToSelection(), dispose(), disposing(), DragEdge(), dumpAsXml(), init(), LayoutTable(), operator=(), and UpdateCells().
SdrTableObj* sdr::table::SdrTableObjImpl::mpTableObj |
Definition at line 196 of file svdotable.cxx.
Referenced by CropTableModelToSelection(), disposing(), DragEdge(), init(), isInUse(), LayoutTable(), operator=(), and update().
CellRef sdr::table::SdrTableObjImpl::mxActiveCell |
Definition at line 194 of file svdotable.cxx.
Referenced by disposing(), operator=(), and update().
TableModelRef sdr::table::SdrTableObjImpl::mxTable |
Definition at line 195 of file svdotable.cxx.
Referenced by ApplyCellStyles(), CropTableModelToSelection(), dispose(), disposing(), DragEdge(), dumpAsXml(), getCell(), getColumnCount(), getColumnWidths(), getRowCount(), init(), LayoutTable(), operator=(), update(), and UpdateCells().
Reference< XIndexAccess > sdr::table::SdrTableObjImpl::mxTableStyle |
Definition at line 200 of file svdotable.cxx.
Referenced by ApplyCellStyles(), connectTableStyle(), disconnectTableStyle(), dispose(), and operator=().
|
staticprivate |
Definition at line 249 of file svdotable.cxx.
Referenced by DragEdge(), and LayoutTable().