LibreOffice Module sw (master) 1
|
#include <vbatablehelper.hxx>
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 SwTable * | GetSwTable (const css::uno::Reference< css::text::XTextTable > &xTextTable) |
static OUString | getColumnStr (sal_Int32 nCol) |
Private Member Functions | |
SwTableBox * | GetTabBox (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 |
SwTable * | m_pTable |
Definition at line 26 of file vbatablehelper.hxx.
|
explicit |
css::uno::RuntimeException |
Definition at line 32 of file vbatablehelper.cxx.
References GetSwTable(), m_pTable, and mxTextTable.
|
staticprivate |
Definition at line 166 of file vbatablehelper.cxx.
References SwTabCols::Count(), i, SwTabCols::IsHidden(), and nCount.
Referenced by GetColWidth(), GetRightSeparator(), and SetColWidth().
|
static |
Definition at line 98 of file vbatablehelper.cxx.
Referenced by SwVbaColumn::SelectColumn(), and SwVbaRow::SelectRow().
sal_Int32 SwVbaTableHelper::GetColWidth | ( | sal_Int32 | nCol, |
sal_Int32 | nRow = 0 |
||
) |
css::uno::RuntimeException |
Definition at line 188 of file vbatablehelper.cxx.
References GetColWidth(), GetTabBox(), getTableWidth(), InitTabCols(), and UNO_TABLE_COLUMN_SUM.
|
staticprivate |
css::uno::RuntimeException |
Definition at line 200 of file vbatablehelper.cxx.
References SwTabCols::Count(), GetColCount(), SwTabCols::GetLeft(), SwTabCols::GetRight(), and GetRightSeparator().
Referenced by GetColWidth(), SwVbaCell::getWidth(), SwVbaColumn::getWidth(), and SetColWidth().
|
staticprivate |
Definition at line 175 of file vbatablehelper.cxx.
References GetColCount(), i, and SwTabCols::IsHidden().
Referenced by GetColWidth(), and SetColWidth().
|
static |
css::uno::RuntimeException |
Definition at line 37 of file vbatablehelper.cxx.
References SwTable::FindTable(), and SwXTextTable::GetFrameFormat().
Referenced by SwVbaTableHelper().
|
private |
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().
sal_Int32 SwVbaTableHelper::getTabColIndex | ( | const OUString & | sCellName | ) |
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().
sal_Int32 SwVbaTableHelper::getTabColumnsCount | ( | sal_Int32 | nRowIndex | ) |
css::uno::RuntimeException |
Definition at line 51 of file vbatablehelper.cxx.
References SwTableLine::GetTabBoxes(), SwTable::GetTabLines(), SwTable::IsTableComplex(), and m_pTable.
Referenced by getTabColumnsMaxCount(), SwVbaRow::SelectRow(), and SwVbaRows::setSpaceBetweenColumns().
sal_Int32 SwVbaTableHelper::getTabColumnsMaxCount | ( | ) |
css::uno::RuntimeException |
Definition at line 63 of file vbatablehelper.cxx.
References getTabColumnsCount(), SwTable::GetTabLines(), index, m_pTable, and SwTableLines::size().
sal_Int32 SwVbaTableHelper::getTableWidth | ( | ) | const |
css::uno::RuntimeException |
Definition at line 120 of file vbatablehelper.cxx.
References mxTextTable.
Referenced by GetColWidth(), and SetColWidth().
sal_Int32 SwVbaTableHelper::getTabRowIndex | ( | const OUString & | sCellName | ) |
css::uno::RuntimeException |
Definition at line 76 of file vbatablehelper.cxx.
References SwTableLines::GetPos(), SwTable::GetTableBox(), SwTable::GetTabLines(), SwTableBox::GetTabLines(), SwTableLine::GetUpper(), SwTableBox::GetUpper(), and m_pTable.
Referenced by SwVbaSelection::Cells(), and SwVbaSelection::Rows().
|
private |
Definition at line 157 of file vbatablehelper.cxx.
References SwTable::GetTabCols(), m_pTable, SwTabCols::SetLeft(), SwTabCols::SetLeftMin(), SwTabCols::SetRight(), SwTabCols::SetRightMax(), and UNO_TABLE_COLUMN_SUM.
Referenced by GetColWidth(), and SetColWidth().
void SwVbaTableHelper::SetColWidth | ( | sal_Int32 | _width, |
sal_Int32 | nCol, | ||
sal_Int32 | nRow = 0 , |
||
bool | bCurRowOnly = false |
||
) |
css::uno::RuntimeException |
Definition at line 236 of file vbatablehelper.cxx.
References SwTabCols::Count(), GetColCount(), GetColWidth(), SwTabCols::GetRightMax(), GetRightSeparator(), GetTabBox(), getTableWidth(), InitTabCols(), m_pTable, min(), MINLAY, SwTabCols::SetRight(), SwTable::SetTabCols(), and UNO_TABLE_COLUMN_SUM.
Referenced by SwVbaCell::setWidth(), and SwVbaColumn::setWidth().
|
private |
Definition at line 30 of file vbatablehelper.hxx.
Referenced by GetTabBox(), getTabColIndex(), getTabColumnsCount(), getTabColumnsMaxCount(), getTabRowIndex(), InitTabCols(), SetColWidth(), and SwVbaTableHelper().
|
private |
Definition at line 29 of file vbatablehelper.hxx.
Referenced by getTableWidth(), and SwVbaTableHelper().