LibreOffice Module svx (master) 1
|
#include <gridcell.hxx>
Public Member Functions | |
DbGridColumn (sal_uInt16 _nId, DbGridControl &rParent) | |
~DbGridColumn () | |
const css::uno::Reference< css::beans::XPropertySet > & | getModel () const |
void | setModel (const css::uno::Reference< css::beans::XPropertySet > &_xModel) |
sal_uInt16 | GetId () const |
bool | IsReadOnly () const |
bool | IsAutoValue () const |
sal_Int16 | GetAlignment () const |
sal_Int16 | GetFieldPos () const |
bool | IsNumeric () const |
bool | IsHidden () const |
sal_Int32 | GetKey () const |
const ::svt::CellControllerRef & | GetController () const |
const css::uno::Reference< css::beans::XPropertySet > & | GetField () const |
DbGridControl & | GetParent () const |
FmXGridCell * | GetCell () const |
css::uno::Reference< css::sdb::XColumn > | GetCurrentFieldValue () const |
void | Paint (OutputDevice &rDev, const tools::Rectangle &rRect, const DbGridRow *pRow, const css::uno::Reference< css::util::XNumberFormatter > &xFormatter) |
void | CreateControl (sal_Int32 _nFieldPos, const css::uno::Reference< css::beans::XPropertySet > &xField, sal_Int32 nTypeId) |
void | UpdateControl () |
void | UpdateFromField (const DbGridRow *pRow, const css::uno::Reference< css::util::XNumberFormatter > &xFormatter) |
bool | Commit () |
void | Clear () |
OUString | GetCellText (const DbGridRow *pRow, const css::uno::Reference< css::util::XNumberFormatter > &xFormatter) const |
OUString | GetCellText (const css::uno::Reference< css::sdb::XColumn > &xField, const css::uno::Reference< css::util::XNumberFormatter > &xFormatter) const |
void | SetReadOnly (bool bRead) |
void | SetObject (sal_Int16 nPos) |
void | ImplInitWindow (vcl::Window const &rParent, const InitWindowFacet _eInitWhat) |
sal_Int16 | SetAlignment (sal_Int16 _nAlign) |
sal_Int16 | SetAlignmentFromModel (sal_Int16 nStandardAlign) |
bool | isLocked () const |
void | setLock (bool _bLock) |
Private Member Functions | |
void | impl_toggleScriptManager_nothrow (bool _bAttach) |
attaches or detaches our cell object to the SctriptEventAttacherManager implemented by our model's parent More... | |
Private Attributes | |
css::uno::Reference< css::beans::XPropertySet > | m_xModel |
css::uno::Reference< css::beans::XPropertySet > | m_xField |
::svt::CellControllerRef | m_xController |
rtl::Reference< FmXGridCell > | m_pCell |
DbGridControl & | m_rParent |
sal_Int32 | m_nLastVisibleWidth |
sal_Int32 | m_nFormatKey |
sal_Int16 | m_nFieldType |
sal_Int16 | m_nTypeId |
sal_uInt16 | m_nId |
sal_Int16 | m_nFieldPos |
sal_Int16 | m_nAlign |
bool | m_bReadOnly: 1 |
bool | m_bAutoValue: 1 |
bool | m_bInSave: 1 |
bool | m_bNumeric: 1 |
bool | m_bObject: 1 |
bool | m_bHidden: 1 |
bool | m_bLocked: 1 |
Static Private Attributes | |
::svt::CellControllerRef | s_xEmptyController |
Friends | |
class | DbGridControl |
Definition at line 61 of file gridcell.hxx.
|
inline |
Definition at line 90 of file gridcell.hxx.
References LEFT.
DbGridColumn::~DbGridColumn | ( | ) |
Definition at line 289 of file gridcell.cxx.
References Clear().
void DbGridColumn::Clear | ( | ) |
Definition at line 306 of file gridcell.cxx.
References impl_toggleScriptManager_nothrow(), m_bAutoValue, m_bReadOnly, m_nFieldPos, m_nFieldType, m_nFormatKey, m_pCell, m_xController, and m_xField.
Referenced by CreateControl(), and ~DbGridColumn().
bool DbGridColumn::Commit | ( | ) |
Definition at line 268 of file gridcell.cxx.
References m_bInSave, m_pCell, and m_xModel.
Referenced by DbGridControl::SaveModified().
void DbGridColumn::CreateControl | ( | sal_Int32 | _nFieldPos, |
const css::uno::Reference< css::beans::XPropertySet > & | xField, | ||
sal_Int32 | nTypeId | ||
) |
Definition at line 137 of file gridcell.cxx.
References Clear(), FM_PROP_AUTOINCREMENT, FM_PROP_FIELDTYPE, FM_PROP_FORMATKEY, FM_PROP_ISREADONLY, DbGridControl::getContext(), DbGridControl::getDataSource(), BrowseBox::GetDataWindow(), impl_toggleScriptManager_nothrow(), DbGridControl::IsFilterMode(), m_bAutoValue, m_bNumeric, m_bReadOnly, m_nAlign, m_nFieldPos, m_nFieldType, m_nFormatKey, m_nTypeId, m_pCell, m_rParent, m_xController, m_xField, TYPE_CHECKBOX, TYPE_COMBOBOX, TYPE_CURRENCYFIELD, TYPE_DATEFIELD, TYPE_FORMATTEDFIELD, TYPE_LISTBOX, TYPE_NUMERICFIELD, TYPE_PATTERNFIELD, TYPE_TEXTFIELD, and TYPE_TIMEFIELD.
Referenced by FmGridControl::InitColumnByField(), and UpdateControl().
|
inline |
Definition at line 118 of file gridcell.hxx.
References m_nAlign.
Referenced by DbCellControl::Init(), Paint(), and FmXTextCell::PaintFieldToCell().
|
inline |
Definition at line 126 of file gridcell.hxx.
References m_pCell.
Referenced by FmXGridPeer::columnHidden(), FmXGridPeer::columnVisible(), DbGridControl::CreateAccessibleCell(), and FmXGridPeer::getByIndex().
OUString DbGridColumn::GetCellText | ( | const css::uno::Reference< css::sdb::XColumn > & | xField, |
const css::uno::Reference< css::util::XNumberFormatter > & | xFormatter | ||
) | const |
OUString DbGridColumn::GetCellText | ( | const DbGridRow * | pRow, |
const css::uno::Reference< css::util::XNumberFormatter > & | xFormatter | ||
) | const |
Referenced by DbGridControl::GetCurrentRowCellText().
|
inline |
Definition at line 123 of file gridcell.hxx.
References m_bLocked, m_xController, and s_xEmptyController.
Referenced by DbGridControl::GetController().
Reference< css::sdb::XColumn > DbGridColumn::GetCurrentFieldValue | ( | ) | const |
Definition at line 432 of file gridcell.cxx.
References DbGridControl::GetCurrentRow(), tools::SvRef< typename T >::is(), m_nFieldPos, and m_rParent.
Referenced by FmXEditCell::getText(), and FmXDataCell::UpdateFromColumn().
|
inline |
Definition at line 124 of file gridcell.hxx.
References m_xField.
Referenced by DbFilterField::commitControl(), DbPatternField::GetFormatText(), DbFormattedField::Init(), and DbFilterField::Update().
|
inline |
Definition at line 119 of file gridcell.hxx.
References m_nFieldPos.
Referenced by FmXGridPeer::queryFieldData(), FmXGridPeer::queryFieldDataType(), and FmXCheckBoxCell::setLabel().
|
inline |
Definition at line 115 of file gridcell.hxx.
References m_nId.
Referenced by FmXGridPeer::columnHidden(), FmXGridPeer::columnVisible(), FmXGridPeer::elementInserted(), DbGridControl::GetColumnIdFromModelPos(), and DbCellControl::invalidatedController().
|
inline |
Definition at line 122 of file gridcell.hxx.
References m_nFormatKey.
Referenced by DbCellControl::GetValue(), and DbFilterField::Update().
|
inline |
Definition at line 111 of file gridcell.hxx.
References m_xModel.
Referenced by FmGridControl::ColumnMoved(), FmGridControl::ColumnResized(), DbTextField::commitControl(), DbFormattedField::commitControl(), DbCheckBox::commitControl(), DbComboBox::commitControl(), DbListBox::commitControl(), DbPatternField::commitControl(), DbDateField::commitControl(), DbTimeField::commitControl(), DbCurrencyField::commitControl(), DbNumericField::commitControl(), DbCellControl::DbCellControl(), DbGridControl::GetController(), FmXGridCell::getModel(), FmXEditCell::getSelectedText(), FmXEditCell::getText(), DbCellControl::implDoPropertyListening(), DbCellControl::implValuePropertyChanged(), DbSpinField::Init(), DbCellControl::Init(), DbTextField::Init(), DbFormattedField::Init(), DbCheckBox::Init(), DbComboBox::Init(), DbListBox::Init(), DbPatternField::Init(), DbFilterField::Init(), FmGridControl::isColumnSelected(), DbListBox::SetList(), DbFilterField::SetList(), DbGridControl::ShowColumn(), and DbFilterField::Update().
|
inline |
Definition at line 125 of file gridcell.hxx.
References m_rParent.
Referenced by DbFilterField::commitControl(), DbFormattedField::GetFormatText(), FmXEditCell::getText(), DbNumericField::implAdjustGenericFieldSetting(), DbCellControl::invalidatedController(), FmXCheckBoxCell::setLabel(), DbFilterField::SetText(), DbFilterField::Update(), FmXDataCell::UpdateFromColumn(), and DbFormattedField::UpdateFromField().
|
private |
attaches or detaches our cell object to the SctriptEventAttacherManager implemented by our model's parent
Definition at line 236 of file gridcell.cxx.
References Any, DBG_UNHANDLED_EXCEPTION, Exception, getElementPos(), m_pCell, and m_xModel.
Referenced by Clear(), CreateControl(), and setModel().
void DbGridColumn::ImplInitWindow | ( | vcl::Window const & | rParent, |
const InitWindowFacet | _eInitWhat | ||
) |
Definition at line 511 of file gridcell.cxx.
References m_pCell.
|
inline |
Definition at line 117 of file gridcell.hxx.
References m_bAutoValue.
Referenced by DbGridControl::GetController().
|
inline |
Definition at line 121 of file gridcell.hxx.
References m_bHidden.
Referenced by DbGridControl::ColumnMoved(), DbGridControl::GetColumnIdFromModelPos(), FmGridControl::HideColumn(), DbGridControl::ShowColumn(), and FmGridControl::ShowColumn().
|
inline |
Definition at line 171 of file gridcell.hxx.
References m_bLocked.
Referenced by FmXGridCell::getLock().
|
inline |
Definition at line 120 of file gridcell.hxx.
References m_bNumeric.
Referenced by DbFormattedField::commitControl(), DbFormattedField::GetFormatText(), DbCellControl::GetValue(), DbFormattedField::Init(), and DbFormattedField::UpdateFromField().
|
inline |
Definition at line 116 of file gridcell.hxx.
References m_bReadOnly.
Referenced by DbCellControl::implAdjustReadOnly().
void DbGridColumn::Paint | ( | OutputDevice & | rDev, |
const tools::Rectangle & | rRect, | ||
const DbGridRow * | pRow, | ||
const css::uno::Reference< css::util::XNumberFormatter > & | xFormatter | ||
) |
Definition at line 444 of file gridcell.cxx.
References OutputDevice::DrawText(), GetAlignment(), svxform::DataColumn::getColumn(), DbGridRow::GetField(), OutputDevice::GetOutDevType(), OutputDevice::GetOwnerWindow(), DbGridRow::HasField(), INVALIDTEXT, vcl::Window::IsEnabled(), DbGridRow::IsNew(), DbGridRow::IsValid(), m_bAutoValue, m_bObject, m_nFieldPos, m_pCell, OBJECTTEXT, OUTDEV_WINDOW, FmXDataCell::PaintFieldToCell(), and SvxResId().
Referenced by DbGridControl::PaintCell().
sal_Int16 DbGridColumn::SetAlignment | ( | sal_Int16 | _nAlign | ) |
Definition at line 327 of file gridcell.cxx.
References FM_PROP_FIELDTYPE, m_nAlign, m_pCell, m_xField, and nType.
Referenced by DbListBox::Init(), DbFilterField::Init(), and SetAlignmentFromModel().
sal_Int16 DbGridColumn::SetAlignmentFromModel | ( | sal_Int16 | nStandardAlign | ) |
Definition at line 372 of file gridcell.cxx.
References Any, FM_PROP_ALIGN, m_xModel, and SetAlignment().
Referenced by DbSpinField::Init(), DbTextField::Init(), DbFormattedField::Init(), DbComboBox::Init(), DbPatternField::Init(), and FmXGridPeer::propertyChange().
void DbGridColumn::setLock | ( | bool | _bLock | ) |
Definition at line 385 of file gridcell.cxx.
References svt::EditBrowseBox::ActivateCell(), svt::EditBrowseBox::DeactivateCell(), BrowseBox::GetCurColumnId(), BrowseBox::GetCurRow(), m_bHidden, m_bLocked, m_nId, and m_rParent.
Referenced by FmXGridCell::setLock().
void DbGridColumn::setModel | ( | const css::uno::Reference< css::beans::XPropertySet > & | _xModel | ) |
Definition at line 294 of file gridcell.cxx.
References impl_toggleScriptManager_nothrow(), m_pCell, and m_xModel.
Referenced by FmGridControl::ColumnMoved(), FmXGridPeer::elementInserted(), FmXGridPeer::elementReplaced(), FmGridControl::InitColumnByField(), and FmGridControl::InitColumnsByModels().
|
inline |
Definition at line 158 of file gridcell.hxx.
References m_bObject, m_bReadOnly, m_nFieldPos, and nPos.
Referenced by FmGridControl::InitColumnByField().
|
inline |
Definition at line 157 of file gridcell.hxx.
References m_bReadOnly.
Referenced by DbCellControl::_propertyChanged().
|
inline |
Definition at line 141 of file gridcell.hxx.
References CreateControl(), m_nFieldPos, m_nTypeId, and m_xField.
void DbGridColumn::UpdateFromField | ( | const DbGridRow * | pRow, |
const css::uno::Reference< css::util::XNumberFormatter > & | xFormatter | ||
) |
Definition at line 258 of file gridcell.cxx.
References svxform::DataColumn::getColumn(), DbGridRow::GetField(), DbGridRow::HasField(), DbGridRow::IsValid(), m_nFieldPos, m_pCell, and FmXDataCell::UpdateFromField().
Referenced by DbGridControl::FieldValueChanged().
|
friend |
Definition at line 63 of file gridcell.hxx.
|
private |
Definition at line 80 of file gridcell.hxx.
Referenced by Clear(), CreateControl(), IsAutoValue(), and Paint().
|
private |
Definition at line 84 of file gridcell.hxx.
Referenced by DbGridControl::HideColumn(), IsHidden(), setLock(), and DbGridControl::ShowColumn().
|
private |
Definition at line 81 of file gridcell.hxx.
Referenced by Commit().
|
private |
Definition at line 85 of file gridcell.hxx.
Referenced by GetController(), isLocked(), and setLock().
|
private |
Definition at line 82 of file gridcell.hxx.
Referenced by CreateControl(), and IsNumeric().
|
private |
Definition at line 83 of file gridcell.hxx.
Referenced by Paint(), and SetObject().
|
private |
Definition at line 79 of file gridcell.hxx.
Referenced by Clear(), CreateControl(), IsReadOnly(), SetObject(), and SetReadOnly().
|
private |
Definition at line 78 of file gridcell.hxx.
Referenced by CreateControl(), GetAlignment(), and SetAlignment().
|
private |
Definition at line 77 of file gridcell.hxx.
Referenced by Clear(), CreateControl(), GetCurrentFieldValue(), GetFieldPos(), Paint(), SetObject(), UpdateControl(), and UpdateFromField().
|
private |
Definition at line 74 of file gridcell.hxx.
Referenced by Clear(), and CreateControl().
|
private |
Definition at line 73 of file gridcell.hxx.
Referenced by Clear(), CreateControl(), and GetKey().
|
private |
Definition at line 76 of file gridcell.hxx.
|
private |
Definition at line 72 of file gridcell.hxx.
Referenced by DbGridControl::HideColumn(), and DbGridControl::ShowColumn().
|
private |
Definition at line 75 of file gridcell.hxx.
Referenced by CreateControl(), and UpdateControl().
|
private |
Definition at line 70 of file gridcell.hxx.
Referenced by Clear(), Commit(), CreateControl(), GetCell(), impl_toggleScriptManager_nothrow(), ImplInitWindow(), Paint(), SetAlignment(), setModel(), and UpdateFromField().
|
private |
Definition at line 71 of file gridcell.hxx.
Referenced by CreateControl(), GetCurrentFieldValue(), GetParent(), and setLock().
|
private |
Definition at line 67 of file gridcell.hxx.
Referenced by Clear(), CreateControl(), and GetController().
|
private |
Definition at line 66 of file gridcell.hxx.
Referenced by Clear(), CreateControl(), GetField(), SetAlignment(), and UpdateControl().
|
private |
Definition at line 65 of file gridcell.hxx.
Referenced by Commit(), getModel(), impl_toggleScriptManager_nothrow(), SetAlignmentFromModel(), and setModel().
|
staticprivate |
Definition at line 87 of file gridcell.hxx.
Referenced by GetController().