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 (const 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 ()
 
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
 
SwTablepTable
 

Detailed Description

Definition at line 26 of file vbatablehelper.hxx.

Constructor & Destructor Documentation

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

Definition at line 31 of file vbatablehelper.cxx.

References GetSwTable(), mxTextTable, and pTable.

Member Function Documentation

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

Definition at line 165 of file vbatablehelper.cxx.

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

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

OUString SwVbaTableHelper::getColumnStr ( sal_Int32  nCol)
static

Definition at line 98 of file vbatablehelper.cxx.

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

sal_Int32 SwVbaTableHelper::GetColWidth ( SwTabCols rCols,
sal_Int32  nNum 
)
staticprivate
sal_Int32 SwVbaTableHelper::GetColWidth ( sal_Int32  nCol,
sal_Int32  nRow = 0 
)
Exceptions
css::uno::RuntimeException

Definition at line 187 of file vbatablehelper.cxx.

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

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

Definition at line 174 of file vbatablehelper.cxx.

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

Referenced by GetColWidth(), and SetColWidth().

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

Definition at line 36 of file vbatablehelper.cxx.

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

Referenced by SwVbaTableHelper().

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

Definition at line 136 of file vbatablehelper.cxx.

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

Referenced by GetColWidth(), and SetColWidth().

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 pTable.

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

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

Definition at line 63 of file vbatablehelper.cxx.

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

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

Definition at line 119 of file vbatablehelper.cxx.

References mxTextTable.

Referenced by GetColWidth(), and SetColWidth().

sal_Int32 SwVbaTableHelper::getTabRowIndex ( const OUString &  sCellName)
void SwVbaTableHelper::InitTabCols ( SwTabCols rCols,
const SwTableBox pStart 
)
private
void SwVbaTableHelper::SetColWidth ( sal_Int32  _width,
sal_Int32  nCol,
sal_Int32  nRow = 0,
bool  bCurRowOnly = false 
)

Member Data Documentation

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

Definition at line 29 of file vbatablehelper.hxx.

Referenced by getTableWidth(), and SwVbaTableHelper().

SwTable* SwVbaTableHelper::pTable
private

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