LibreOffice Module sw (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
SwVbaTableHelper Class Reference

#include <vbatablehelper.hxx>

Collaboration diagram for SwVbaTableHelper:
[legend]

Public Member Functions

 SwVbaTableHelper (css::uno::Reference< css::text::XTextTable > xTextTable)
 
sal_Int32 getTabColumnsCount (sal_Int32 nRowIndex)
 
sal_Int32 getTabColumnsMaxCount ()
 
sal_Int32 getTabRowIndex (const OUString &sCellName)
 
sal_Int32 getTabColIndex (const OUString &sCellName)
 
sal_Int32 getTableWidth () const
 
sal_Int32 GetColWidth (sal_Int32 nCol, sal_Int32 nRow=0)
 
void SetColWidth (sal_Int32 _width, sal_Int32 nCol, sal_Int32 nRow=0, bool bCurRowOnly=false)
 

Static Public Member Functions

static SwTableGetSwTable (const css::uno::Reference< css::text::XTextTable > &xTextTable)
 
static OUString getColumnStr (sal_Int32 nCol)
 

Private Member Functions

SwTableBoxGetTabBox (sal_Int32 nCol, sal_Int32 nRow)
 
void InitTabCols (SwTabCols &rCols, const SwTableBox *pStart)
 

Static Private Member Functions

static sal_Int32 GetRightSeparator (SwTabCols const &rCols, sal_Int32 nNum)
 
static sal_Int32 GetColCount (SwTabCols const &rCols)
 
static sal_Int32 GetColWidth (SwTabCols &rCols, sal_Int32 nNum)
 

Private Attributes

css::uno::Reference< css::text::XTextTable > mxTextTable
 
SwTablem_pTable
 

Detailed Description

Definition at line 26 of file vbatablehelper.hxx.

Constructor & Destructor Documentation

◆ SwVbaTableHelper()

SwVbaTableHelper::SwVbaTableHelper ( css::uno::Reference< css::text::XTextTable >  xTextTable)
explicit
Exceptions
css::uno::RuntimeException

Definition at line 32 of file vbatablehelper.cxx.

References GetSwTable(), m_pTable, and mxTextTable.

Member Function Documentation

◆ GetColCount()

sal_Int32 SwVbaTableHelper::GetColCount ( SwTabCols const &  rCols)
staticprivate

Definition at line 166 of file vbatablehelper.cxx.

References SwTabCols::Count(), i, SwTabCols::IsHidden(), and nCount.

Referenced by GetColWidth(), GetRightSeparator(), and SetColWidth().

◆ getColumnStr()

OUString SwVbaTableHelper::getColumnStr ( sal_Int32  nCol)
static

Definition at line 98 of file vbatablehelper.cxx.

Referenced by SwVbaColumn::SelectColumn(), and SwVbaRow::SelectRow().

◆ GetColWidth() [1/2]

sal_Int32 SwVbaTableHelper::GetColWidth ( sal_Int32  nCol,
sal_Int32  nRow = 0 
)
Exceptions
css::uno::RuntimeException

Definition at line 188 of file vbatablehelper.cxx.

References GetColWidth(), GetTabBox(), getTableWidth(), InitTabCols(), and UNO_TABLE_COLUMN_SUM.

◆ GetColWidth() [2/2]

sal_Int32 SwVbaTableHelper::GetColWidth ( SwTabCols rCols,
sal_Int32  nNum 
)
staticprivate

◆ GetRightSeparator()

sal_Int32 SwVbaTableHelper::GetRightSeparator ( SwTabCols const &  rCols,
sal_Int32  nNum 
)
staticprivate

Definition at line 175 of file vbatablehelper.cxx.

References GetColCount(), i, and SwTabCols::IsHidden().

Referenced by GetColWidth(), and SetColWidth().

◆ GetSwTable()

SwTable * SwVbaTableHelper::GetSwTable ( const css::uno::Reference< css::text::XTextTable > &  xTextTable)
static
Exceptions
css::uno::RuntimeException

Definition at line 37 of file vbatablehelper.cxx.

References SwTable::FindTable(), and SwXTextTable::GetFrameFormat().

Referenced by SwVbaTableHelper().

◆ GetTabBox()

SwTableBox * SwVbaTableHelper::GetTabBox ( sal_Int32  nCol,
sal_Int32  nRow 
)
private
Exceptions
css::uno::RuntimeException

Definition at line 137 of file vbatablehelper.cxx.

References SwTableLine::GetTabBoxes(), SwTable::GetTabLines(), m_pTable, and SwTableLines::size().

Referenced by GetColWidth(), and SetColWidth().

◆ getTabColIndex()

sal_Int32 SwVbaTableHelper::getTabColIndex ( const OUString &  sCellName)
Exceptions
css::uno::RuntimeException

Definition at line 90 of file vbatablehelper.cxx.

References SwTableLine::GetBoxPos(), SwTable::GetTableBox(), SwTableBox::GetUpper(), and m_pTable.

Referenced by SwVbaSelection::Cells(), and SwVbaSelection::Columns().

◆ getTabColumnsCount()

sal_Int32 SwVbaTableHelper::getTabColumnsCount ( sal_Int32  nRowIndex)

◆ getTabColumnsMaxCount()

sal_Int32 SwVbaTableHelper::getTabColumnsMaxCount ( )
Exceptions
css::uno::RuntimeException

Definition at line 63 of file vbatablehelper.cxx.

References getTabColumnsCount(), SwTable::GetTabLines(), index, m_pTable, and SwTableLines::size().

◆ getTableWidth()

sal_Int32 SwVbaTableHelper::getTableWidth ( ) const
Exceptions
css::uno::RuntimeException

Definition at line 120 of file vbatablehelper.cxx.

References mxTextTable.

Referenced by GetColWidth(), and SetColWidth().

◆ getTabRowIndex()

sal_Int32 SwVbaTableHelper::getTabRowIndex ( const OUString &  sCellName)

◆ InitTabCols()

void SwVbaTableHelper::InitTabCols ( SwTabCols rCols,
const SwTableBox pStart 
)
private

◆ SetColWidth()

void SwVbaTableHelper::SetColWidth ( sal_Int32  _width,
sal_Int32  nCol,
sal_Int32  nRow = 0,
bool  bCurRowOnly = false 
)

Member Data Documentation

◆ m_pTable

SwTable* SwVbaTableHelper::m_pTable
private

◆ mxTextTable

css::uno::Reference< css::text::XTextTable > SwVbaTableHelper::mxTextTable
private

Definition at line 29 of file vbatablehelper.hxx.

Referenced by getTableWidth(), and SwVbaTableHelper().


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