LibreOffice Module svx (master)  1
Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
DbGridColumn Class Reference

#include <gridcell.hxx>

Collaboration diagram for DbGridColumn:
[legend]

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::CellControllerRefGetController () const
 
const css::uno::Reference< css::beans::XPropertySet > & GetField () const
 
DbGridControlGetParent () const
 
FmXGridCellGetCell () 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)
 

Protected Attributes

DbGridControlm_rParent
 

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< FmXGridCellm_pCell
 
sal_Int32 m_nLastVisibleWidth
 
sal_Int32 m_nFormatKey
 
sal_Int16 m_nFieldType
 
sal_Int16 m_nTypeId
 
sal_uInt16 const 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
 

Detailed Description

Definition at line 68 of file gridcell.hxx.

Constructor & Destructor Documentation

DbGridColumn::DbGridColumn ( sal_uInt16  _nId,
DbGridControl rParent 
)
inline

Definition at line 101 of file gridcell.hxx.

References LEFT.

DbGridColumn::~DbGridColumn ( )

Definition at line 301 of file gridcell.cxx.

References Clear().

Member Function Documentation

void DbGridColumn::Clear ( )
bool DbGridColumn::Commit ( )

Definition at line 279 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 
)
sal_Int16 DbGridColumn::GetAlignment ( ) const
inline

Definition at line 129 of file gridcell.hxx.

References m_nAlign.

Referenced by DbCellControl::Init(), Paint(), and FmXTextCell::PaintFieldToCell().

FmXGridCell* DbGridColumn::GetCell ( ) const
inline
OUString DbGridColumn::GetCellText ( const DbGridRow pRow,
const css::uno::Reference< css::util::XNumberFormatter > &  xFormatter 
) const
OUString DbGridColumn::GetCellText ( const css::uno::Reference< css::sdb::XColumn > &  xField,
const css::uno::Reference< css::util::XNumberFormatter > &  xFormatter 
) const
const ::svt::CellControllerRef& DbGridColumn::GetController ( ) const
inline

Definition at line 134 of file gridcell.hxx.

References m_bLocked, and m_xController.

Referenced by DbGridControl::GetController().

Reference< css::sdb::XColumn > DbGridColumn::GetCurrentFieldValue ( ) const
const css::uno::Reference< css::beans::XPropertySet >& DbGridColumn::GetField ( ) const
inline
sal_Int16 DbGridColumn::GetFieldPos ( ) const
inline
sal_uInt16 DbGridColumn::GetId ( ) const
inline
sal_Int32 DbGridColumn::GetKey ( ) const
inline

Definition at line 133 of file gridcell.hxx.

References m_nFormatKey.

Referenced by DbCellControl::GetValue(), and DbFilterField::Update().

const css::uno::Reference< css::beans::XPropertySet >& DbGridColumn::getModel ( ) const
inline
DbGridControl& DbGridColumn::GetParent ( ) const
inline
void DbGridColumn::impl_toggleScriptManager_nothrow ( bool  _bAttach)
private

attaches or detaches our cell object to the SctriptEventAttacherManager implemented by our model's parent

Definition at line 247 of file gridcell.cxx.

References DBG_UNHANDLED_EXCEPTION, Exception, getElementPos(), m_pCell, m_xModel, and makeAny().

Referenced by Clear(), CreateControl(), and setModel().

void DbGridColumn::ImplInitWindow ( vcl::Window const &  rParent,
const InitWindowFacet  _eInitWhat 
)

Definition at line 526 of file gridcell.cxx.

References m_pCell.

bool DbGridColumn::IsAutoValue ( ) const
inline

Definition at line 128 of file gridcell.hxx.

References m_bAutoValue.

Referenced by DbGridControl::GetController().

bool DbGridColumn::IsHidden ( ) const
inline
bool DbGridColumn::isLocked ( ) const
inline

Definition at line 182 of file gridcell.hxx.

References m_bLocked.

Referenced by FmXGridCell::getLock().

bool DbGridColumn::IsNumeric ( ) const
inline
bool DbGridColumn::IsReadOnly ( ) const
inline

Definition at line 127 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 
)
sal_Int16 DbGridColumn::SetAlignment ( sal_Int16  _nAlign)
sal_Int16 DbGridColumn::SetAlignmentFromModel ( sal_Int16  nStandardAlign)
void DbGridColumn::setLock ( bool  _bLock)
void DbGridColumn::setModel ( const css::uno::Reference< css::beans::XPropertySet > &  _xModel)
void DbGridColumn::SetObject ( sal_Int16  nPos)
inline

Definition at line 169 of file gridcell.hxx.

References m_bObject, and m_bReadOnly.

Referenced by FmGridControl::InitColumnByField().

void DbGridColumn::SetReadOnly ( bool  bRead)
inline

Definition at line 168 of file gridcell.hxx.

References m_bReadOnly.

Referenced by DbCellControl::_propertyChanged().

void DbGridColumn::UpdateControl ( )
inline

Definition at line 152 of file gridcell.hxx.

References CreateControl().

void DbGridColumn::UpdateFromField ( const DbGridRow pRow,
const css::uno::Reference< css::util::XNumberFormatter > &  xFormatter 
)

Friends And Related Function Documentation

friend class DbGridControl
friend

Definition at line 70 of file gridcell.hxx.

Member Data Documentation

bool DbGridColumn::m_bAutoValue
private

Definition at line 91 of file gridcell.hxx.

Referenced by Clear(), CreateControl(), IsAutoValue(), and Paint().

bool DbGridColumn::m_bHidden
private
bool DbGridColumn::m_bInSave
private

Definition at line 92 of file gridcell.hxx.

Referenced by Commit().

bool DbGridColumn::m_bLocked
private

Definition at line 96 of file gridcell.hxx.

Referenced by GetController(), isLocked(), and setLock().

bool DbGridColumn::m_bNumeric
private

Definition at line 93 of file gridcell.hxx.

Referenced by CreateControl(), and IsNumeric().

bool DbGridColumn::m_bObject
private

Definition at line 94 of file gridcell.hxx.

Referenced by Paint(), and SetObject().

bool DbGridColumn::m_bReadOnly
private

Definition at line 90 of file gridcell.hxx.

Referenced by Clear(), CreateControl(), IsReadOnly(), SetObject(), and SetReadOnly().

sal_Int16 DbGridColumn::m_nAlign
private

Definition at line 89 of file gridcell.hxx.

Referenced by CreateControl(), GetAlignment(), and SetAlignment().

sal_Int16 DbGridColumn::m_nFieldPos
private
sal_Int16 DbGridColumn::m_nFieldType
private

Definition at line 85 of file gridcell.hxx.

Referenced by Clear(), and CreateControl().

sal_Int32 DbGridColumn::m_nFormatKey
private

Definition at line 84 of file gridcell.hxx.

Referenced by Clear(), CreateControl(), and GetKey().

sal_uInt16 const DbGridColumn::m_nId
private

Definition at line 87 of file gridcell.hxx.

Referenced by GetId(), and setLock().

sal_Int32 DbGridColumn::m_nLastVisibleWidth
private

Definition at line 83 of file gridcell.hxx.

Referenced by DbGridControl::HideColumn(), and DbGridControl::ShowColumn().

sal_Int16 DbGridColumn::m_nTypeId
private

Definition at line 86 of file gridcell.hxx.

Referenced by CreateControl().

rtl::Reference<FmXGridCell> DbGridColumn::m_pCell
private
DbGridControl& DbGridColumn::m_rParent
protected

Definition at line 80 of file gridcell.hxx.

Referenced by CreateControl(), GetCurrentFieldValue(), GetParent(), and setLock().

::svt::CellControllerRef DbGridColumn::m_xController
private

Definition at line 74 of file gridcell.hxx.

Referenced by Clear(), CreateControl(), and GetController().

css::uno::Reference< css::beans::XPropertySet > DbGridColumn::m_xField
private

Definition at line 73 of file gridcell.hxx.

Referenced by Clear(), CreateControl(), GetField(), and SetAlignment().

css::uno::Reference< css::beans::XPropertySet > DbGridColumn::m_xModel
private
CellControllerRef DbGridColumn::s_xEmptyController
staticprivate

Definition at line 98 of file gridcell.hxx.


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