LibreOffice Module svx (master) 1
Public Member Functions | Public Attributes | Static Private Attributes | List of all members
sdr::table::SdrTableObjImpl Class Reference

#include <sdrtableobjimpl.hxx>

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 ()
 
bool isInUse ()
 
void dumpAsXml (xmlTextWriterPtr pWriter) const
 

Public Attributes

CellRef mxActiveCell
 
TableModelRef mxTable
 
SdrTableObjmpTableObj
 
std::unique_ptr< TableLayoutermpLayouter
 
CellPos maEditPos
 
TableStyleSettings maTableStyle
 
css::uno::Reference< css::container::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 css::text::WritingMode lastLayoutMode
 
static sal_Int32 lastRowCount
 
static sal_Int32 lastColCount
 
static std::vector< sal_Int32 > lastColWidths
 
static bool rowSizeChanged = false
 

Detailed Description

Definition at line 40 of file sdrtableobjimpl.hxx.

Constructor & Destructor Documentation

◆ SdrTableObjImpl()

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

Definition at line 203 of file svdotable.cxx.

◆ ~SdrTableObjImpl()

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

Definition at line 210 of file svdotable.cxx.

References lastLayoutTable.

Member Function Documentation

◆ ApplyCellStyles()

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

◆ connectTableStyle()

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

Definition at line 654 of file svdotable.cxx.

References mxTableStyle.

Referenced by operator=().

◆ CropTableModelToSelection()

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

◆ disconnectTableStyle()

void sdr::table::SdrTableObjImpl::disconnectTableStyle ( )

Definition at line 668 of file svdotable.cxx.

References mxTableStyle.

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

◆ dispose()

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

Definition at line 516 of file svdotable.cxx.

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

◆ disposing()

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

◆ DragEdge()

void sdr::table::SdrTableObjImpl::DragEdge ( bool  mbHorizontal,
int  nEdge,
sal_Int32  nOffset 
)

◆ dumpAsXml()

void sdr::table::SdrTableObjImpl::dumpAsXml ( xmlTextWriterPtr  pWriter) const

Definition at line 687 of file svdotable.cxx.

References mpLayouter, and mxTable.

◆ getCell()

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

◆ getColumnCount()

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().

◆ getColumnWidths()

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().

◆ getRowCount()

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().

◆ init()

void sdr::table::SdrTableObjImpl::init ( SdrTableObj pTable,
sal_Int32  nColumns,
sal_Int32  nRows 
)

◆ isInUse()

bool sdr::table::SdrTableObjImpl::isInUse ( )

Definition at line 682 of file svdotable.cxx.

References SdrObject::IsInserted(), and mpTableObj.

◆ LayoutTable()

void sdr::table::SdrTableObjImpl::LayoutTable ( tools::Rectangle rArea,
bool  bFitWidth,
bool  bFitHeight 
)

◆ modified()

void SAL_CALL sdr::table::SdrTableObjImpl::modified ( const css::lang::EventObject &  aEvent)
overridevirtual

Definition at line 615 of file svdotable.cxx.

References aEvent, SdrObject::GetProperties(), mpTableObj, mxTableStyle, and update().

◆ operator=()

SdrTableObjImpl & sdr::table::SdrTableObjImpl::operator= ( const SdrTableObjImpl rSource)

◆ update()

void sdr::table::SdrTableObjImpl::update ( )

◆ UpdateCells()

void sdr::table::SdrTableObjImpl::UpdateCells ( tools::Rectangle const &  rArea)

Definition at line 799 of file svdotable.cxx.

References mpLayouter, and mxTable.

Member Data Documentation

◆ lastColCount

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

Definition at line 96 of file sdrtableobjimpl.hxx.

Referenced by LayoutTable().

◆ lastColWidths

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

Definition at line 97 of file sdrtableobjimpl.hxx.

Referenced by LayoutTable().

◆ lastLayoutFitHeight

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

Definition at line 93 of file sdrtableobjimpl.hxx.

Referenced by LayoutTable().

◆ lastLayoutFitWidth

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

Definition at line 92 of file sdrtableobjimpl.hxx.

Referenced by LayoutTable().

◆ lastLayoutInputRectangle

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

Definition at line 90 of file sdrtableobjimpl.hxx.

Referenced by LayoutTable().

◆ lastLayoutMode

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

Definition at line 94 of file sdrtableobjimpl.hxx.

Referenced by LayoutTable().

◆ lastLayoutResultRectangle

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

Definition at line 91 of file sdrtableobjimpl.hxx.

Referenced by LayoutTable().

◆ lastLayoutTable

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

Definition at line 89 of file sdrtableobjimpl.hxx.

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

◆ lastRowCount

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

Definition at line 95 of file sdrtableobjimpl.hxx.

Referenced by LayoutTable().

◆ maEditPos

CellPos sdr::table::SdrTableObjImpl::maEditPos

Definition at line 47 of file sdrtableobjimpl.hxx.

Referenced by update().

◆ maTableStyle

TableStyleSettings sdr::table::SdrTableObjImpl::maTableStyle

Definition at line 48 of file sdrtableobjimpl.hxx.

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

◆ maUndos

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

Definition at line 50 of file sdrtableobjimpl.hxx.

◆ mbSkipChangeLayout

bool sdr::table::SdrTableObjImpl::mbSkipChangeLayout

Definition at line 51 of file sdrtableobjimpl.hxx.

◆ mpLayouter

std::unique_ptr<TableLayouter> sdr::table::SdrTableObjImpl::mpLayouter

◆ mpTableObj

SdrTableObj* sdr::table::SdrTableObjImpl::mpTableObj

◆ mxActiveCell

CellRef sdr::table::SdrTableObjImpl::mxActiveCell

Definition at line 43 of file sdrtableobjimpl.hxx.

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

◆ mxTable

TableModelRef sdr::table::SdrTableObjImpl::mxTable

◆ mxTableStyle

css::uno::Reference< css::container::XIndexAccess > sdr::table::SdrTableObjImpl::mxTableStyle

◆ rowSizeChanged

bool sdr::table::SdrTableObjImpl::rowSizeChanged = false
staticprivate

Definition at line 98 of file sdrtableobjimpl.hxx.

Referenced by DragEdge(), and LayoutTable().


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