LibreOffice Module svx (master) 1
Public Member Functions | 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)
 

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
 
DbGridControlm_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
 

Detailed Description

Definition at line 61 of file gridcell.hxx.

Constructor & Destructor Documentation

◆ DbGridColumn()

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

Definition at line 90 of file gridcell.hxx.

References LEFT.

◆ ~DbGridColumn()

DbGridColumn::~DbGridColumn ( )

Definition at line 289 of file gridcell.cxx.

References Clear().

Member Function Documentation

◆ Clear()

void DbGridColumn::Clear ( )

◆ Commit()

bool DbGridColumn::Commit ( )

Definition at line 268 of file gridcell.cxx.

References m_bInSave, m_pCell, and m_xModel.

Referenced by DbGridControl::SaveModified().

◆ CreateControl()

void DbGridColumn::CreateControl ( sal_Int32  _nFieldPos,
const css::uno::Reference< css::beans::XPropertySet > &  xField,
sal_Int32  nTypeId 
)

◆ GetAlignment()

sal_Int16 DbGridColumn::GetAlignment ( ) const
inline

Definition at line 118 of file gridcell.hxx.

References m_nAlign.

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

◆ GetCell()

FmXGridCell * DbGridColumn::GetCell ( ) const
inline

◆ GetCellText() [1/2]

OUString DbGridColumn::GetCellText ( const css::uno::Reference< css::sdb::XColumn > &  xField,
const css::uno::Reference< css::util::XNumberFormatter > &  xFormatter 
) const

◆ GetCellText() [2/2]

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

◆ GetController()

const ::svt::CellControllerRef & DbGridColumn::GetController ( ) const
inline

Definition at line 123 of file gridcell.hxx.

References m_bLocked, m_xController, and s_xEmptyController.

Referenced by DbGridControl::GetController().

◆ GetCurrentFieldValue()

Reference< css::sdb::XColumn > DbGridColumn::GetCurrentFieldValue ( ) const

◆ GetField()

const css::uno::Reference< css::beans::XPropertySet > & DbGridColumn::GetField ( ) const
inline

◆ GetFieldPos()

sal_Int16 DbGridColumn::GetFieldPos ( ) const
inline

◆ GetId()

sal_uInt16 DbGridColumn::GetId ( ) const
inline

◆ GetKey()

sal_Int32 DbGridColumn::GetKey ( ) const
inline

Definition at line 122 of file gridcell.hxx.

References m_nFormatKey.

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

◆ getModel()

const css::uno::Reference< css::beans::XPropertySet > & DbGridColumn::getModel ( ) const
inline

◆ GetParent()

DbGridControl & DbGridColumn::GetParent ( ) const
inline

◆ impl_toggleScriptManager_nothrow()

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 236 of file gridcell.cxx.

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

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

◆ ImplInitWindow()

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

Definition at line 511 of file gridcell.cxx.

References m_pCell.

◆ IsAutoValue()

bool DbGridColumn::IsAutoValue ( ) const
inline

Definition at line 117 of file gridcell.hxx.

References m_bAutoValue.

Referenced by DbGridControl::GetController().

◆ IsHidden()

bool DbGridColumn::IsHidden ( ) const
inline

◆ isLocked()

bool DbGridColumn::isLocked ( ) const
inline

Definition at line 171 of file gridcell.hxx.

References m_bLocked.

Referenced by FmXGridCell::getLock().

◆ IsNumeric()

bool DbGridColumn::IsNumeric ( ) const
inline

◆ IsReadOnly()

bool DbGridColumn::IsReadOnly ( ) const
inline

Definition at line 116 of file gridcell.hxx.

References m_bReadOnly.

Referenced by DbCellControl::implAdjustReadOnly().

◆ Paint()

void DbGridColumn::Paint ( OutputDevice rDev,
const tools::Rectangle rRect,
const DbGridRow pRow,
const css::uno::Reference< css::util::XNumberFormatter > &  xFormatter 
)

◆ SetAlignment()

sal_Int16 DbGridColumn::SetAlignment ( sal_Int16  _nAlign)

◆ SetAlignmentFromModel()

sal_Int16 DbGridColumn::SetAlignmentFromModel ( sal_Int16  nStandardAlign)

◆ setLock()

void DbGridColumn::setLock ( bool  _bLock)

◆ setModel()

void DbGridColumn::setModel ( const css::uno::Reference< css::beans::XPropertySet > &  _xModel)

◆ SetObject()

void DbGridColumn::SetObject ( sal_Int16  nPos)
inline

Definition at line 158 of file gridcell.hxx.

References m_bObject, m_bReadOnly, m_nFieldPos, and nPos.

Referenced by FmGridControl::InitColumnByField().

◆ SetReadOnly()

void DbGridColumn::SetReadOnly ( bool  bRead)
inline

Definition at line 157 of file gridcell.hxx.

References m_bReadOnly.

Referenced by DbCellControl::_propertyChanged().

◆ UpdateControl()

void DbGridColumn::UpdateControl ( )
inline

Definition at line 141 of file gridcell.hxx.

References CreateControl(), m_nFieldPos, m_nTypeId, and m_xField.

◆ UpdateFromField()

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

Friends And Related Function Documentation

◆ DbGridControl

friend class DbGridControl
friend

Definition at line 63 of file gridcell.hxx.

Member Data Documentation

◆ m_bAutoValue

bool DbGridColumn::m_bAutoValue
private

Definition at line 80 of file gridcell.hxx.

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

◆ m_bHidden

bool DbGridColumn::m_bHidden
private

◆ m_bInSave

bool DbGridColumn::m_bInSave
private

Definition at line 81 of file gridcell.hxx.

Referenced by Commit().

◆ m_bLocked

bool DbGridColumn::m_bLocked
private

Definition at line 85 of file gridcell.hxx.

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

◆ m_bNumeric

bool DbGridColumn::m_bNumeric
private

Definition at line 82 of file gridcell.hxx.

Referenced by CreateControl(), and IsNumeric().

◆ m_bObject

bool DbGridColumn::m_bObject
private

Definition at line 83 of file gridcell.hxx.

Referenced by Paint(), and SetObject().

◆ m_bReadOnly

bool DbGridColumn::m_bReadOnly
private

Definition at line 79 of file gridcell.hxx.

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

◆ m_nAlign

sal_Int16 DbGridColumn::m_nAlign
private

Definition at line 78 of file gridcell.hxx.

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

◆ m_nFieldPos

sal_Int16 DbGridColumn::m_nFieldPos
private

◆ m_nFieldType

sal_Int16 DbGridColumn::m_nFieldType
private

Definition at line 74 of file gridcell.hxx.

Referenced by Clear(), and CreateControl().

◆ m_nFormatKey

sal_Int32 DbGridColumn::m_nFormatKey
private

Definition at line 73 of file gridcell.hxx.

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

◆ m_nId

sal_uInt16 DbGridColumn::m_nId
private

Definition at line 76 of file gridcell.hxx.

Referenced by GetId(), and setLock().

◆ m_nLastVisibleWidth

sal_Int32 DbGridColumn::m_nLastVisibleWidth
private

Definition at line 72 of file gridcell.hxx.

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

◆ m_nTypeId

sal_Int16 DbGridColumn::m_nTypeId
private

Definition at line 75 of file gridcell.hxx.

Referenced by CreateControl(), and UpdateControl().

◆ m_pCell

rtl::Reference<FmXGridCell> DbGridColumn::m_pCell
private

◆ m_rParent

DbGridControl& DbGridColumn::m_rParent
private

Definition at line 71 of file gridcell.hxx.

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

◆ m_xController

::svt::CellControllerRef DbGridColumn::m_xController
private

Definition at line 67 of file gridcell.hxx.

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

◆ m_xField

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

Definition at line 66 of file gridcell.hxx.

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

◆ m_xModel

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

◆ s_xEmptyController

CellControllerRef DbGridColumn::s_xEmptyController
staticprivate

Definition at line 87 of file gridcell.hxx.

Referenced by GetController().


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