LibreOffice Module svx (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
FmFieldWin Class Referencefinal

#include <tabwin.hxx>

Inheritance diagram for FmFieldWin:
[legend]
Collaboration diagram for FmFieldWin:
[legend]

Public Member Functions

 FmFieldWin (SfxBindings *pBindings, SfxChildWindow *pMgr, weld::Window *pParent)
 
virtual ~FmFieldWin () override
 
virtual void StateChangedAtToolBoxControl (sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem *pState) override
 
void UpdateContent (FmFormShell const *)
 
void UpdateContent (const css::uno::Reference< css::form::XForm > &)
 
void FillInfo (SfxChildWinInfo &rInfo) const override
 
const OUString & GetDatabaseName () const
 
const ::dbtools::SharedConnectionGetConnection () const
 
const OUString & GetObjectName () const
 
sal_Int32 GetObjectType () const
 
bool createSelectionControls ()
 
- Public Member Functions inherited from SfxModelessDialogController
virtual ~SfxModelessDialogController () override
 
void Initialize (SfxChildWinInfo const *pInfo)
 
bool IsClosing () const
 
virtual void Close () override
 
virtual void EndDialog (int nResponse) override
 
virtual void Activate () override
 
virtual void Deactivate () override
 
virtual void ChildWinDispose () override
 
virtual void FillInfo (SfxChildWinInfo &) const
 
SfxBindingsGetBindings () const
 
- Public Member Functions inherited from SfxDialogController
 SfxDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId)
 
virtual void Activate ()
 
virtual void Deactivate ()
 
virtual void ChildWinDispose ()
 
virtual void Close ()
 
virtual void EndDialog (int nResponse)
 
virtual bool CloseOnHide () const
 
- Public Member Functions inherited from SfxControllerItem
SfxBindingsGetBindings ()
 
const SfxBindingsGetBindings () const
 
 SfxControllerItem ()
 
 SfxControllerItem (sal_uInt16 nId, SfxBindings &)
 
virtual ~SfxControllerItem ()
 
virtual void dispose ()
 
void Bind (sal_uInt16 nNewId, SfxBindings *)
 
void UnBind ()
 
void ReBind ()
 
bool IsBound () const
 
void ClearCache ()
 
SfxControllerItemGetItemLink ()
 
SfxControllerItemChangeItemLink (SfxControllerItem *pNewLink)
 
void SetId (sal_uInt16 nItemId)
 
sal_uInt16 GetId () const
 
virtual void StateChangedAtToolBoxControl (sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem *pState)
 
virtual void GetControlState (sal_uInt16 nSID, boost::property_tree::ptree &)
 
MapUnit GetCoreMetric () const
 
void SetFallbackCoreMetric (MapUnit eFallback)
 
SAL_DLLPRIVATE void BindInternal_Impl (sal_uInt16 nNewId, SfxBindings *)
 
- Public Member Functions inherited from comphelper::OPropertyChangeListener2
virtual ~OPropertyChangeListener2 ()
 
virtual void _propertyChanged (const css::beans::PropertyChangeEvent &_rEvent)=0
 

Private Member Functions

void addToList (const css::uno::Reference< css::container::XNameAccess > &i_xColumns)
 
 DECL_LINK (RowActivatedHdl, weld::TreeView &, bool)
 
 DECL_LINK (DragBeginHdl, bool &, bool)
 
virtual void _propertyChanged (const css::beans::PropertyChangeEvent &evt) override
 
SfxBindingsGetBindings ()
 
const SfxBindingsGetBindings () const
 

Private Attributes

std::mutex m_aMutex
 
std::unique_ptr< weld::TreeViewm_xListBox
 
std::vector< std::unique_ptr< ColumnInfo > > m_aListBoxData
 
::dbtools::SharedConnection m_aConnection
 
OUString m_aDatabaseName
 
OUString m_aObjectName
 
sal_Int32 m_nObjectType
 
rtl::Reference< comphelper::OPropertyChangeMultiplexer2m_xChangeListener
 
rtl::Reference< svx::OColumnTransferablem_xHelper
 

Additional Inherited Members

- Static Public Member Functions inherited from SfxControllerItem
static SfxItemState GetItemState (const SfxPoolItem *pState)
 
- Protected Member Functions inherited from SfxModelessDialogController
 SfxModelessDialogController (SfxBindings *, SfxChildWindow *pChildWin, weld::Window *pParent, const OUString &rUIXMLDescription, const OUString &rID)
 
- Protected Member Functions inherited from comphelper::OPropertyChangeListener2
void disposeAdapter (std::unique_lock< std::mutex > &rGuard)
 

Detailed Description

Definition at line 34 of file tabwin.hxx.

Constructor & Destructor Documentation

◆ FmFieldWin()

FmFieldWin::FmFieldWin ( SfxBindings pBindings,
SfxChildWindow pMgr,
weld::Window pParent 
)

◆ ~FmFieldWin()

FmFieldWin::~FmFieldWin ( )
overridevirtual

Definition at line 134 of file tabwin.cxx.

References SfxControllerItem::dispose(), m_aMutex, and m_xChangeListener.

Member Function Documentation

◆ _propertyChanged()

void FmFieldWin::_propertyChanged ( const css::beans::PropertyChangeEvent &  evt)
overrideprivatevirtual

Implements comphelper::OPropertyChangeListener2.

Definition at line 181 of file tabwin.cxx.

References UpdateContent().

◆ addToList()

void FmFieldWin::addToList ( const css::uno::Reference< css::container::XNameAccess > &  i_xColumns)
private

Definition at line 71 of file tabwin.cxx.

References aEntries, FM_PROP_LABEL, m_aListBoxData, m_xListBox, sId, weld::toId(), and xColumn.

Referenced by UpdateContent().

◆ createSelectionControls()

bool FmFieldWin::createSelectionControls ( )

◆ DECL_LINK() [1/2]

FmFieldWin::DECL_LINK ( DragBeginHdl  ,
bool &  ,
bool   
)
private

◆ DECL_LINK() [2/2]

FmFieldWin::DECL_LINK ( RowActivatedHdl  ,
weld::TreeView ,
bool   
)
private

◆ FillInfo()

void FmFieldWin::FillInfo ( SfxChildWinInfo rInfo) const
overridevirtual

Reimplemented from SfxModelessDialogController.

Definition at line 292 of file tabwin.cxx.

References SfxChildWinInfo::bVisible.

◆ GetBindings() [1/2]

SfxBindings & SfxControllerItem::GetBindings ( )
private

Referenced by createSelectionControls().

◆ GetBindings() [2/2]

const SfxBindings & SfxControllerItem::GetBindings ( ) const
private

◆ GetConnection()

const ::dbtools::SharedConnection & FmFieldWin::GetConnection ( ) const
inline

Definition at line 67 of file tabwin.hxx.

References m_aConnection.

Referenced by createSelectionControls().

◆ GetDatabaseName()

const OUString & FmFieldWin::GetDatabaseName ( ) const
inline

Definition at line 66 of file tabwin.hxx.

References m_aDatabaseName.

Referenced by createSelectionControls().

◆ GetObjectName()

const OUString & FmFieldWin::GetObjectName ( ) const
inline

Definition at line 68 of file tabwin.hxx.

References m_aObjectName.

Referenced by createSelectionControls().

◆ GetObjectType()

sal_Int32 FmFieldWin::GetObjectType ( ) const
inline

Definition at line 69 of file tabwin.hxx.

References m_nObjectType.

Referenced by createSelectionControls().

◆ StateChangedAtToolBoxControl()

void FmFieldWin::StateChangedAtToolBoxControl ( sal_uInt16  nSID,
SfxItemState  eState,
const SfxPoolItem pState 
)
overridevirtual

Reimplemented from SfxControllerItem.

Definition at line 187 of file tabwin.cxx.

References GetShell(), and UpdateContent().

◆ UpdateContent() [1/2]

void FmFieldWin::UpdateContent ( const css::uno::Reference< css::form::XForm > &  xForm)

◆ UpdateContent() [2/2]

void FmFieldWin::UpdateContent ( FmFormShell const *  pShell)

Member Data Documentation

◆ m_aConnection

::dbtools::SharedConnection FmFieldWin::m_aConnection
private

Definition at line 42 of file tabwin.hxx.

Referenced by GetConnection(), and UpdateContent().

◆ m_aDatabaseName

OUString FmFieldWin::m_aDatabaseName
private

Definition at line 43 of file tabwin.hxx.

Referenced by GetDatabaseName(), and UpdateContent().

◆ m_aListBoxData

std::vector<std::unique_ptr<ColumnInfo> > FmFieldWin::m_aListBoxData
private

Definition at line 40 of file tabwin.hxx.

Referenced by addToList(), and UpdateContent().

◆ m_aMutex

std::mutex FmFieldWin::m_aMutex
private

Definition at line 38 of file tabwin.hxx.

Referenced by UpdateContent(), and ~FmFieldWin().

◆ m_aObjectName

OUString FmFieldWin::m_aObjectName
private

Definition at line 44 of file tabwin.hxx.

Referenced by GetObjectName(), and UpdateContent().

◆ m_nObjectType

sal_Int32 FmFieldWin::m_nObjectType
private

Definition at line 45 of file tabwin.hxx.

Referenced by GetObjectType(), and UpdateContent().

◆ m_xChangeListener

rtl::Reference<comphelper::OPropertyChangeMultiplexer2> FmFieldWin::m_xChangeListener
private

Definition at line 47 of file tabwin.hxx.

Referenced by UpdateContent(), and ~FmFieldWin().

◆ m_xHelper

rtl::Reference<svx::OColumnTransferable> FmFieldWin::m_xHelper
private

Definition at line 48 of file tabwin.hxx.

Referenced by FmFieldWin().

◆ m_xListBox

std::unique_ptr<weld::TreeView> FmFieldWin::m_xListBox
private

Definition at line 39 of file tabwin.hxx.

Referenced by addToList(), createSelectionControls(), FmFieldWin(), and UpdateContent().


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