LibreOffice Module toolkit (master) 1
|
#include <unogridcolumnfacade.hxx>
Public Member Functions | |
UnoGridColumnFacade (UnoControlTableModel const &i_owner, css::uno::Reference< css::awt::grid::XGridColumn > const &i_gridColumn) | |
virtual | ~UnoGridColumnFacade () override |
UnoGridColumnFacade (const UnoGridColumnFacade &)=delete | |
UnoGridColumnFacade & | operator= (const UnoGridColumnFacade &)=delete |
virtual OUString | getName () const override |
returns the name of the column More... | |
virtual OUString | getHelpText () const override |
retrieves the help text to be displayed for the column. More... | |
virtual bool | isResizable () const override |
determines whether the column can be interactively resized More... | |
virtual sal_Int32 | getFlexibility () const override |
denotes the relative flexibility of the column More... | |
virtual TableMetrics | getWidth () const override |
returns the width of the column, in app-font units More... | |
virtual void | setWidth (TableMetrics _nWidth) override |
sets a new width for the column More... | |
virtual TableMetrics | getMinWidth () const override |
returns the minimum width of the column, in app-font units, or 0 if the column does not have a minimal width More... | |
virtual TableMetrics | getMaxWidth () const override |
returns the maximum width of the column, in app-font units, or 0 if the column does not have a minimal width More... | |
virtual css::style::HorizontalAlignment | getHorizontalAlign () override |
retrieves the horizontal alignment to be used for content in this cell More... | |
void | dispose () |
disposes the column wrapper More... | |
sal_Int32 | getDataColumnIndex () const |
void | columnChanged (ColumnAttributeGroup const i_attributeGroup) |
void | dataColumnIndexChanged () |
Public Member Functions inherited from svt::table::IColumnModel | |
virtual OUString | getName () const =0 |
returns the name of the column More... | |
virtual OUString | getHelpText () const =0 |
retrieves the help text to be displayed for the column. More... | |
virtual bool | isResizable () const =0 |
determines whether the column can be interactively resized More... | |
virtual sal_Int32 | getFlexibility () const =0 |
denotes the relative flexibility of the column More... | |
virtual TableMetrics | getWidth () const =0 |
returns the width of the column, in app-font units More... | |
virtual void | setWidth (TableMetrics _nWidth)=0 |
sets a new width for the column More... | |
virtual TableMetrics | getMinWidth () const =0 |
returns the minimum width of the column, in app-font units, or 0 if the column does not have a minimal width More... | |
virtual TableMetrics | getMaxWidth () const =0 |
returns the maximum width of the column, in app-font units, or 0 if the column does not have a minimal width More... | |
virtual css::style::HorizontalAlignment | getHorizontalAlign ()=0 |
retrieves the horizontal alignment to be used for content in this cell More... | |
virtual | ~IColumnModel () |
deletes the column model instance More... | |
Private Member Functions | |
void | impl_updateDataColumnIndex_nothrow () |
Private Attributes | |
UnoControlTableModel const * | m_pOwner |
sal_Int32 | m_nDataColumnIndex |
css::uno::Reference< css::awt::grid::XGridColumn > | m_xGridColumn |
::rtl::Reference< ColumnChangeMultiplexer > | m_pChangeMultiplexer |
Definition at line 38 of file unogridcolumnfacade.hxx.
svt::table::UnoGridColumnFacade::UnoGridColumnFacade | ( | UnoControlTableModel const & | i_owner, |
css::uno::Reference< css::awt::grid::XGridColumn > const & | i_gridColumn | ||
) |
|
overridevirtual |
Definition at line 176 of file unogridcolumnfacade.cxx.
|
delete |
void svt::table::UnoGridColumnFacade::columnChanged | ( | ColumnAttributeGroup const | i_attributeGroup | ) |
Definition at line 218 of file unogridcolumnfacade.cxx.
References DBG_TESTSOLARMUTEX, svt::table::UnoControlTableModel::getColumnPos(), m_pOwner, and svt::table::UnoControlTableModel::notifyColumnChange().
Referenced by svt::table::ColumnChangeMultiplexer::columnChanged().
void svt::table::UnoGridColumnFacade::dataColumnIndexChanged | ( | ) |
Definition at line 209 of file unogridcolumnfacade.cxx.
References DBG_TESTSOLARMUTEX, impl_updateDataColumnIndex_nothrow(), m_pOwner, and svt::table::UnoControlTableModel::notifyAllDataChanged().
Referenced by svt::table::ColumnChangeMultiplexer::columnChanged().
void svt::table::UnoGridColumnFacade::dispose | ( | void | ) |
disposes the column wrapper
Note that the XGridColumn which is wrapped by the instance is not disposed, as we do not own it.
Definition at line 181 of file unogridcolumnfacade.cxx.
References DBG_TESTSOLARMUTEX, ENSURE_OR_RETURN_VOID, m_pChangeMultiplexer, m_pOwner, and m_xGridColumn.
Referenced by svt::table::UnoControlTableModel::removeAllColumns(), and svt::table::UnoControlTableModel::removeColumn().
|
inline |
Definition at line 68 of file unogridcolumnfacade.hxx.
References m_nDataColumnIndex.
Referenced by svt::table::UnoControlTableModel::getCellContent().
|
overridevirtual |
denotes the relative flexibility of the column
This flexibility is taken into account when a table control auto-resizes its columns, because the available space changed. In this case, the columns grow or shrink according to their flexibility.
A value of 0 means the column is not auto-resized at all.
Implements svt::table::IColumnModel.
Definition at line 265 of file unogridcolumnfacade.cxx.
References ENSURE_OR_RETURN, and m_xGridColumn.
|
overridevirtual |
retrieves the help text to be displayed for the column.
Implements svt::table::IColumnModel.
Definition at line 242 of file unogridcolumnfacade.cxx.
References DBG_UNHANDLED_EXCEPTION, ENSURE_OR_RETURN, Exception, and m_xGridColumn.
|
overridevirtual |
retrieves the horizontal alignment to be used for content in this cell
Implements svt::table::IColumnModel.
Definition at line 300 of file unogridcolumnfacade.cxx.
References ENSURE_OR_RETURN, and m_xGridColumn.
|
overridevirtual |
returns the maximum width of the column, in app-font units, or 0 if the column does not have a minimal width
Implements svt::table::IColumnModel.
Definition at line 293 of file unogridcolumnfacade.cxx.
References ENSURE_OR_RETURN, and m_xGridColumn.
|
overridevirtual |
returns the minimum width of the column, in app-font units, or 0 if the column does not have a minimal width
Implements svt::table::IColumnModel.
Definition at line 286 of file unogridcolumnfacade.cxx.
References ENSURE_OR_RETURN, and m_xGridColumn.
|
overridevirtual |
returns the name of the column
Column names should be human-readable, but not necessarily unique within a given table.
Implements svt::table::IColumnModel.
Definition at line 226 of file unogridcolumnfacade.cxx.
References DBG_UNHANDLED_EXCEPTION, ENSURE_OR_RETURN, Exception, m_xGridColumn, and sName.
|
overridevirtual |
returns the width of the column, in app-font units
The returned value must be a positive ->TableMetrics value.
Implements svt::table::IColumnModel.
Definition at line 272 of file unogridcolumnfacade.cxx.
References ENSURE_OR_RETURN, and m_xGridColumn.
|
private |
Definition at line 194 of file unogridcolumnfacade.cxx.
References DBG_UNHANDLED_EXCEPTION, ENSURE_OR_RETURN_VOID, Exception, m_nDataColumnIndex, and m_xGridColumn.
Referenced by dataColumnIndexChanged().
|
overridevirtual |
determines whether the column can be interactively resized
Implements svt::table::IColumnModel.
Definition at line 258 of file unogridcolumnfacade.cxx.
References ENSURE_OR_RETURN, and m_xGridColumn.
|
delete |
|
overridevirtual |
sets a new width for the column
_nWidth | the new width, app-font units |
Implements svt::table::IColumnModel.
Definition at line 279 of file unogridcolumnfacade.cxx.
References ENSURE_OR_RETURN_VOID, and m_xGridColumn.
|
private |
Definition at line 79 of file unogridcolumnfacade.hxx.
Referenced by getDataColumnIndex(), and impl_updateDataColumnIndex_nothrow().
|
private |
Definition at line 81 of file unogridcolumnfacade.hxx.
Referenced by dispose().
|
private |
Definition at line 78 of file unogridcolumnfacade.hxx.
Referenced by columnChanged(), dataColumnIndexChanged(), and dispose().
|
private |
Definition at line 80 of file unogridcolumnfacade.hxx.
Referenced by dispose(), getFlexibility(), getHelpText(), getHorizontalAlign(), getMaxWidth(), getMinWidth(), getName(), getWidth(), impl_updateDataColumnIndex_nothrow(), isResizable(), and setWidth().