LibreOffice Module svx (master)  1
Public Member Functions | Public Attributes | Static Private Attributes | List of all members
sdr::table::SdrTableObjImpl Class Reference
Inheritance diagram for sdr::table::SdrTableObjImpl:
[legend]
Collaboration diagram for sdr::table::SdrTableObjImpl:
[legend]

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)
 
SdrTableObjImploperator= (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
 
SdrTableObjmpTableObj
 
std::unique_ptr< TableLayoutermpLayouter
 
CellPos maEditPos
 
TableStyleSettings maTableStyle
 
Reference< XIndexAccess > mxTableStyle
 
std::vector< std::unique_ptr< SdrUndoAction > > maUndos
 
bool mbSkipChangeLayout
 

Static Private Attributes

static SdrTableObjImpllastLayoutTable = 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
 

Additional Inherited Members

- Protected Member Functions inherited from sdr::table::TableDesignUser
 ~TableDesignUser ()
 

Detailed Description

Definition at line 189 of file svdotable.cxx.

Constructor & Destructor Documentation

sdr::table::SdrTableObjImpl::SdrTableObjImpl ( )

Definition at line 259 of file svdotable.cxx.

sdr::table::SdrTableObjImpl::~SdrTableObjImpl ( )
overridevirtual

Definition at line 266 of file svdotable.cxx.

References lastLayoutTable.

Member Function Documentation

void sdr::table::SdrTableObjImpl::ApplyCellStyles ( )
void sdr::table::SdrTableObjImpl::connectTableStyle ( )

Definition at line 693 of file svdotable.cxx.

References mxTableStyle.

Referenced by operator=().

void sdr::table::SdrTableObjImpl::CropTableModelToSelection ( const CellPos rStart,
const CellPos rEnd 
)
void sdr::table::SdrTableObjImpl::disconnectTableStyle ( )

Definition at line 707 of file svdotable.cxx.

References mxTableStyle.

Referenced by dispose(), and operator=().

void sdr::table::SdrTableObjImpl::dispose ( void  )

Definition at line 564 of file svdotable.cxx.

References disconnectTableStyle(), mpLayouter, mxTable, and mxTableStyle.

void SAL_CALL sdr::table::SdrTableObjImpl::disposing ( const css::lang::EventObject &  Source)
overridevirtual

Definition at line 739 of file svdotable.cxx.

References mpLayouter, mpTableObj, mxActiveCell, and mxTable.

void sdr::table::SdrTableObjImpl::DragEdge ( bool  mbHorizontal,
int  nEdge,
sal_Int32  nOffset 
)
void sdr::table::SdrTableObjImpl::dumpAsXml ( xmlTextWriterPtr  pWriter) const

Definition at line 726 of file svdotable.cxx.

References mpLayouter, and mxTable.

CellRef sdr::table::SdrTableObjImpl::getCell ( const CellPos rPos) const

Definition at line 748 of file svdotable.cxx.

References Exception, sdr::table::CellPos::mnCol, sdr::table::CellPos::mnRow, and mxTable.

Referenced by ApplyCellStyles(), and update().

sal_Int32 sdr::table::SdrTableObjImpl::getColumnCount ( ) const

Definition at line 763 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 768 of file svdotable.cxx.

References mxTable.

Referenced by LayoutTable().

sal_Int32 sdr::table::SdrTableObjImpl::getRowCount ( ) const

Definition at line 778 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 
)
bool sdr::table::SdrTableObjImpl::isInUse ( )
overridevirtual

Implements sdr::table::TableDesignUser.

Definition at line 721 of file svdotable.cxx.

References SdrObject::IsInserted(), and mpTableObj.

void sdr::table::SdrTableObjImpl::LayoutTable ( tools::Rectangle rArea,
bool  bFitWidth,
bool  bFitHeight 
)
void SAL_CALL sdr::table::SdrTableObjImpl::modified ( const css::lang::EventObject &  aEvent)
overridevirtual

Definition at line 659 of file svdotable.cxx.

References update().

SdrTableObjImpl & sdr::table::SdrTableObjImpl::operator= ( const SdrTableObjImpl rSource)
void sdr::table::SdrTableObjImpl::update ( )
void sdr::table::SdrTableObjImpl::UpdateCells ( tools::Rectangle const &  rArea)

Definition at line 822 of file svdotable.cxx.

References mpLayouter, and mxTable.

Member Data Documentation

sal_Int32 sdr::table::SdrTableObjImpl::lastColCount
staticprivate

Definition at line 245 of file svdotable.cxx.

Referenced by LayoutTable().

std::vector< sal_Int32 > sdr::table::SdrTableObjImpl::lastColWidths
staticprivate

Definition at line 246 of file svdotable.cxx.

Referenced by LayoutTable().

bool sdr::table::SdrTableObjImpl::lastLayoutFitHeight
staticprivate

Definition at line 242 of file svdotable.cxx.

Referenced by LayoutTable().

bool sdr::table::SdrTableObjImpl::lastLayoutFitWidth
staticprivate

Definition at line 241 of file svdotable.cxx.

Referenced by LayoutTable().

tools::Rectangle sdr::table::SdrTableObjImpl::lastLayoutInputRectangle
staticprivate

Definition at line 239 of file svdotable.cxx.

Referenced by LayoutTable().

WritingMode sdr::table::SdrTableObjImpl::lastLayoutMode
staticprivate

Definition at line 243 of file svdotable.cxx.

Referenced by LayoutTable().

tools::Rectangle sdr::table::SdrTableObjImpl::lastLayoutResultRectangle
staticprivate

Definition at line 240 of file svdotable.cxx.

Referenced by LayoutTable().

SdrTableObjImpl * sdr::table::SdrTableObjImpl::lastLayoutTable = nullptr
staticprivate

Definition at line 238 of file svdotable.cxx.

Referenced by LayoutTable(), and ~SdrTableObjImpl().

sal_Int32 sdr::table::SdrTableObjImpl::lastRowCount
staticprivate

Definition at line 244 of file svdotable.cxx.

Referenced by LayoutTable().

CellPos sdr::table::SdrTableObjImpl::maEditPos

Definition at line 196 of file svdotable.cxx.

Referenced by update().

TableStyleSettings sdr::table::SdrTableObjImpl::maTableStyle

Definition at line 197 of file svdotable.cxx.

Referenced by ApplyCellStyles(), and operator=().

std::vector<std::unique_ptr<SdrUndoAction> > sdr::table::SdrTableObjImpl::maUndos

Definition at line 199 of file svdotable.cxx.

bool sdr::table::SdrTableObjImpl::mbSkipChangeLayout

Definition at line 200 of file svdotable.cxx.

std::unique_ptr<TableLayouter> sdr::table::SdrTableObjImpl::mpLayouter
SdrTableObj* sdr::table::SdrTableObjImpl::mpTableObj
CellRef sdr::table::SdrTableObjImpl::mxActiveCell

Definition at line 192 of file svdotable.cxx.

Referenced by disposing(), and update().

TableModelRef sdr::table::SdrTableObjImpl::mxTable
Reference< XIndexAccess > sdr::table::SdrTableObjImpl::mxTableStyle

The documentation for this class was generated from the following file: