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

#include <flddb.hxx>

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

Public Member Functions

 SwFieldDBPage (TabPageParent pParent, const SfxItemSet *rSet)
 
virtual ~SwFieldDBPage () override
 
virtual void dispose () override
 
virtual bool FillItemSet (SfxItemSet *rSet) override
 
virtual void Reset (const SfxItemSet *rSet) override
 
virtual void FillUserData () override
 
void ActivateMailMergeAddress ()
 
void SetWrtShell (SwWrtShell &rSh)
 
- Public Member Functions inherited from SwFieldPage
 SwFieldPage (TabPageParent pParent, const OUString &rUIXMLDescription, const OString &rID, const SfxItemSet *pAttrSet)
 
virtual ~SwFieldPage () override
 
virtual void ActivatePage () override
 
SwFieldMgrGetFieldMgr ()
 
void SetWrtShell (SwWrtShell *m_pWrtShell)
 
void EditNewField (bool bOnlyActivate=false)
 
- Public Member Functions inherited from SfxTabPage
void SetDialogController (SfxOkDialogController *pDialog)
 
virtual ~SfxTabPage () override
 
const SfxItemSetGetItemSet () const
 
bool HasExchangeSupport () const
 
void SetExchangeSupport ()
 
virtual void ActivatePage (const SfxItemSet &)
 
virtual DeactivateRC DeactivatePage (SfxItemSet *pSet)
 
void SetUserData (const OUString &rString)
 
const OUString & GetUserData ()
 
virtual bool IsReadOnly () const
 
virtual void PageCreated (const SfxAllItemSet &aSet)
 
virtual void ChangesApplied ()
 
void SetFrame (const css::uno::Reference< css::frame::XFrame > &xFrame)
 
css::uno::Reference< css::frame::XFrame > GetFrame ()
 
const SfxItemSetGetDialogExampleSet () const
 
OString GetConfigId () const
 
weld::WindowGetDialogFrameWeld () const
 

Static Public Member Functions

static VclPtr< SfxTabPageCreate (TabPageParent pParent, const SfxItemSet *rAttrSet)
 
- Static Public Member Functions inherited from SfxTabPage
static const SfxPoolItemGetItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
 
static const T * GetItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true)
 

Protected Member Functions

virtual sal_uInt16 GetGroup () override
 
- Protected Member Functions inherited from SwFieldPage
sal_Int32 GetTypeSel () const
 
void SetTypeSel (sal_Int32 nSet)
 
sal_Int32 GetSelectionSel () const
 
void SetSelectionSel (sal_Int32 nSet)
 
bool IsFieldDlgHtmlMode () const
 
bool IsRefresh () const
 
SwFieldGetCurField ()
 
SwWrtShellGetWrtShell ()
 
 DECL_LINK (TreeViewInsertHdl, weld::TreeView &, void)
 
 DECL_LINK (NumFormatHdl, weld::TreeView &, void)
 
void InsertHdl (weld::Widget *)
 
void Init ()
 
void SavePos (const weld::TreeView &rLst1)
 
void RestorePos (weld::TreeView &rLst1)
 
void EnableInsert (bool bEnable)
 
bool IsFieldEdit () const
 
void InsertField (sal_uInt16 nTypeId, sal_uInt16 nSubType, const OUString &rPar1, const OUString &rPar2, sal_uInt32 nFormatId, sal_Unicode cDelim= ' ', bool bIsAutomaticLanguage=true)
 
- Protected Member Functions inherited from SfxTabPage
 SfxTabPage (vcl::Window *pParent, const OString &rID, const OUString &rUIXMLDescription, const SfxItemSet *rAttrSet)
 
 SfxTabPage (TabPageParent pParent, const OUString &rUIXMLDescription, const OString &rID, const SfxItemSet *rAttrSet)
 
sal_uInt16 GetWhich (sal_uInt16 nSlot, bool bDeep=true) const
 
const SfxPoolItemGetOldItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
 
const T * GetOldItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true)
 
SfxOkDialogControllerGetDialogController () const
 

Private Member Functions

 DECL_LINK (TypeListBoxHdl, weld::TreeView &, void)
 
 DECL_LINK (NumSelectHdl, weld::ComboBox &, void)
 
 DECL_LINK (TreeSelectHdl, weld::TreeView &, void)
 
 DECL_LINK (ModifyHdl, weld::Entry &, void)
 
 DECL_LINK (AddDBHdl, weld::Button &, void)
 
void TypeHdl (const weld::TreeView *)
 
void CheckInsert ()
 

Private Attributes

OUString m_sOldDBName
 
OUString m_sOldTableName
 
OUString m_sOldColumnName
 
sal_uLong m_nOldFormat
 
sal_uInt16 m_nOldSubType
 
std::unique_ptr< weld::TreeViewm_xTypeLB
 
std::unique_ptr< SwDBTreeListm_xDatabaseTLB
 
std::unique_ptr< weld::Buttonm_xAddDBPB
 
std::unique_ptr< weld::Widgetm_xCondition
 
std::unique_ptr< ConditionEditm_xConditionED
 
std::unique_ptr< weld::Widgetm_xValue
 
std::unique_ptr< weld::Entrym_xValueED
 
std::unique_ptr< weld::RadioButtonm_xDBFormatRB
 
std::unique_ptr< weld::RadioButtonm_xNewFormatRB
 
std::unique_ptr< SwNumFormatListBoxm_xNumFormatLB
 
std::unique_ptr< weld::ComboBoxm_xFormatLB
 
std::unique_ptr< weld::Widgetm_xFormat
 

Additional Inherited Members

- Protected Attributes inherited from SfxTabPage
std::unique_ptr< weld::Builderm_xBuilder
 
std::unique_ptr< weld::Containerm_xContainer
 

Detailed Description

Definition at line 32 of file flddb.hxx.

Constructor & Destructor Documentation

SwFieldDBPage::SwFieldDBPage ( TabPageParent  pParent,
const SfxItemSet rSet 
)
SwFieldDBPage::~SwFieldDBPage ( )
overridevirtual

Definition at line 71 of file flddb.cxx.

Member Function Documentation

void SwFieldDBPage::ActivateMailMergeAddress ( )
void SwFieldDBPage::CheckInsert ( )
private
VclPtr< SfxTabPage > SwFieldDBPage::Create ( TabPageParent  pParent,
const SfxItemSet rAttrSet 
)
static

Definition at line 264 of file flddb.cxx.

References VclPtr< reference_type >::Create().

Referenced by SwFieldEditDlg::CreatePage(), and SwFieldDlg::SwFieldDlg().

SwFieldDBPage::DECL_LINK ( TypeListBoxHdl  ,
weld::TreeView ,
void   
)
private
SwFieldDBPage::DECL_LINK ( NumSelectHdl  ,
weld::ComboBox ,
void   
)
private
SwFieldDBPage::DECL_LINK ( TreeSelectHdl  ,
weld::TreeView ,
void   
)
private
SwFieldDBPage::DECL_LINK ( ModifyHdl  ,
weld::Entry ,
void   
)
private
SwFieldDBPage::DECL_LINK ( AddDBHdl  ,
weld::Button ,
void   
)
private
void SwFieldDBPage::dispose ( void  )
overridevirtual
bool SwFieldDBPage::FillItemSet ( SfxItemSet rSet)
overridevirtual
void SwFieldDBPage::FillUserData ( )
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 509 of file flddb.cxx.

References m_xTypeLB, SfxTabPage::SetUserData(), USER_DATA_VERSION, and USHRT_MAX.

sal_uInt16 SwFieldDBPage::GetGroup ( )
overrideprotectedvirtual

Implements SwFieldPage.

Definition at line 270 of file flddb.cxx.

References GRP_DB.

Referenced by Reset().

void SwFieldDBPage::Reset ( const SfxItemSet rSet)
overridevirtual
void SwFieldDBPage::SetWrtShell ( SwWrtShell rSh)

Definition at line 525 of file flddb.cxx.

References m_xDatabaseTLB.

void SwFieldDBPage::TypeHdl ( const weld::TreeView pBox)
private

Member Data Documentation

sal_uLong SwFieldDBPage::m_nOldFormat
private

Definition at line 37 of file flddb.hxx.

Referenced by FillItemSet(), and Reset().

sal_uInt16 SwFieldDBPage::m_nOldSubType
private

Definition at line 38 of file flddb.hxx.

Referenced by FillItemSet(), and Reset().

OUString SwFieldDBPage::m_sOldColumnName
private

Definition at line 36 of file flddb.hxx.

Referenced by FillItemSet(), and Reset().

OUString SwFieldDBPage::m_sOldDBName
private

Definition at line 34 of file flddb.hxx.

Referenced by FillItemSet(), and Reset().

OUString SwFieldDBPage::m_sOldTableName
private

Definition at line 35 of file flddb.hxx.

Referenced by FillItemSet(), and Reset().

std::unique_ptr<weld::Button> SwFieldDBPage::m_xAddDBPB
private

Definition at line 42 of file flddb.hxx.

Referenced by SwFieldDBPage().

std::unique_ptr<weld::Widget> SwFieldDBPage::m_xCondition
private

Definition at line 43 of file flddb.hxx.

Referenced by TypeHdl().

std::unique_ptr<ConditionEdit> SwFieldDBPage::m_xConditionED
private

Definition at line 44 of file flddb.hxx.

Referenced by FillItemSet(), Reset(), and TypeHdl().

std::unique_ptr<SwDBTreeList> SwFieldDBPage::m_xDatabaseTLB
private
std::unique_ptr<weld::RadioButton> SwFieldDBPage::m_xDBFormatRB
private

Definition at line 47 of file flddb.hxx.

Referenced by TypeHdl().

std::unique_ptr<weld::Widget> SwFieldDBPage::m_xFormat
private

Definition at line 51 of file flddb.hxx.

Referenced by TypeHdl().

std::unique_ptr<weld::ComboBox> SwFieldDBPage::m_xFormatLB
private

Definition at line 50 of file flddb.hxx.

Referenced by FillItemSet(), Reset(), SwFieldDBPage(), and TypeHdl().

std::unique_ptr<weld::RadioButton> SwFieldDBPage::m_xNewFormatRB
private

Definition at line 48 of file flddb.hxx.

Referenced by FillItemSet(), and TypeHdl().

std::unique_ptr<SwNumFormatListBox> SwFieldDBPage::m_xNumFormatLB
private

Definition at line 49 of file flddb.hxx.

Referenced by FillItemSet(), SwFieldDBPage(), and TypeHdl().

std::unique_ptr<weld::TreeView> SwFieldDBPage::m_xTypeLB
private
std::unique_ptr<weld::Widget> SwFieldDBPage::m_xValue
private

Definition at line 45 of file flddb.hxx.

Referenced by TypeHdl().

std::unique_ptr<weld::Entry> SwFieldDBPage::m_xValueED
private

Definition at line 46 of file flddb.hxx.

Referenced by CheckInsert(), FillItemSet(), Reset(), SwFieldDBPage(), and TypeHdl().


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