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 (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
 
virtual ~SwFieldDBPage () override
 
virtual bool FillItemSet (SfxItemSet *rSet) override
 
virtual void Reset (const SfxItemSet *rSet) override
 
virtual bool DeferResetToFirstActivation () override
 
virtual void FillUserData () override
 
void ActivateMailMergeAddress ()
 
void SetWrtShell (SwWrtShell &rSh)
 
- Public Member Functions inherited from SwFieldPage
 SwFieldPage (weld::Container *pPage, weld::DialogController *pController, const OUString &rUIXMLDescription, const OUString &rID, const SfxItemSet *pAttrSet)
 
virtual ~SwFieldPage () override
 
virtual void Activate () override
 
SwFieldMgrGetFieldMgr ()
 
void SetWrtShell (SwWrtShell *m_pWrtShell)
 
void EditNewField (bool bOnlyActivate=false)
 
virtual sal_uInt16 GetGroup ()=0
 
- Public Member Functions inherited from SfxTabPage
void SetDialogController (SfxOkDialogController *pDialog)
 
virtual ~SfxTabPage () override
 
void set_visible (bool bVisible)
 
const SfxItemSetGetItemSet () const
 
virtual bool FillItemSet (SfxItemSet *)
 
virtual void Reset (const SfxItemSet *)
 
virtual bool DeferResetToFirstActivation ()
 
bool HasExchangeSupport () const
 
void SetExchangeSupport ()
 
virtual void ActivatePage (const SfxItemSet &)
 
virtual DeactivateRC DeactivatePage (SfxItemSet *pSet)
 
void SetUserData (const OUString &rString)
 
const OUString & GetUserData () const
 
virtual void FillUserData ()
 
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
 
const SfxItemSetGetDialogExampleSet () const
 
OUString GetHelpId () const
 
OUString GetConfigId () const
 
bool IsVisible () const
 
weld::WindowGetFrameWeld () const
 
std::unordered_map< OUString, css::uno::Any > & getAdditionalProperties ()
 

Static Public Member Functions

static std::unique_ptr< SfxTabPageCreate (weld::Container *pPage, weld::DialogController *pController, 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 &, bool)
 
 DECL_LINK (NumFormatHdl, weld::TreeView &, bool)
 
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 (SwFieldTypesEnum 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 (weld::Container *pPage, weld::DialogController *pController, const OUString &rUIXMLDescription, const OUString &rID, const SfxItemSet *rAttrSet)
 
sal_uInt16 GetWhich (sal_uInt16 nSlot, bool bDeep=true) const
 
TypedWhichId< T > GetWhich (TypedWhichId< T > 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 ()
 
SwWrtShellCheckAndGetWrtShell ()
 
void SetWrtShell (SwWrtShell *m_pWrtShell)
 

Private Attributes

OUString m_sOldDBName
 
OUString m_sOldTableName
 
OUString m_sOldColumnName
 
sal_uInt32 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< NumFormatListBoxm_xNumFormatLB
 
std::unique_ptr< weld::ComboBoxm_xFormatLB
 
std::unique_ptr< weld::Widgetm_xFormat
 

Detailed Description

Definition at line 28 of file flddb.hxx.

Constructor & Destructor Documentation

◆ SwFieldDBPage()

SwFieldDBPage::SwFieldDBPage ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rSet 
)

◆ ~SwFieldDBPage()

SwFieldDBPage::~SwFieldDBPage ( )
overridevirtual

Definition at line 73 of file flddb.cxx.

References CheckAndGetWrtShell(), and SwDBManager::RevokeLastRegistrations().

Member Function Documentation

◆ ActivateMailMergeAddress()

void SwFieldDBPage::ActivateMailMergeAddress ( )

Definition at line 514 of file flddb.cxx.

References Database, m_xDatabaseTLB, m_xTypeLB, SwDBData::sCommand, SwDBData::sDataSource, SW_MOD, and u.

◆ CheckAndGetWrtShell()

SwWrtShell * SwFieldDBPage::CheckAndGetWrtShell ( )
private

Definition at line 529 of file flddb.cxx.

References GetActiveWrtShell(), SwFieldPage::GetWrtShell(), and SetWrtShell().

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

◆ CheckInsert()

void SwFieldDBPage::CheckInsert ( )
private

◆ Create()

std::unique_ptr< SfxTabPage > SwFieldDBPage::Create ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rAttrSet 
)
static

Definition at line 262 of file flddb.cxx.

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

◆ DECL_LINK() [1/5]

SwFieldDBPage::DECL_LINK ( AddDBHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/5]

SwFieldDBPage::DECL_LINK ( ModifyHdl  ,
weld::Entry ,
void   
)
private

◆ DECL_LINK() [3/5]

SwFieldDBPage::DECL_LINK ( NumSelectHdl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [4/5]

SwFieldDBPage::DECL_LINK ( TreeSelectHdl  ,
weld::TreeView ,
void   
)
private

◆ DECL_LINK() [5/5]

SwFieldDBPage::DECL_LINK ( TypeListBoxHdl  ,
weld::TreeView ,
void   
)
private

◆ DeferResetToFirstActivation()

bool SwFieldDBPage::DeferResetToFirstActivation ( )
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 188 of file flddb.cxx.

◆ FillItemSet()

bool SwFieldDBPage::FillItemSet ( SfxItemSet rSet)
overridevirtual

◆ FillUserData()

void SwFieldDBPage::FillUserData ( )
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 506 of file flddb.cxx.

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

◆ GetGroup()

sal_uInt16 SwFieldDBPage::GetGroup ( )
overrideprotectedvirtual

Implements SwFieldPage.

Definition at line 268 of file flddb.cxx.

References GRP_DB.

Referenced by Reset().

◆ Reset()

void SwFieldDBPage::Reset ( const SfxItemSet rSet)
overridevirtual

◆ SetWrtShell() [1/2]

void SwFieldDBPage::SetWrtShell ( SwWrtShell rSh)

Definition at line 522 of file flddb.cxx.

References m_xDatabaseTLB, and SwFieldPage::SetWrtShell().

Referenced by CheckAndGetWrtShell().

◆ SetWrtShell() [2/2]

void SwFieldPage::SetWrtShell ( SwWrtShell m_pWrtShell)
private

Definition at line 82 of file fldpage.cxx.

◆ TypeHdl()

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

Member Data Documentation

◆ m_nOldFormat

sal_uInt32 SwFieldDBPage::m_nOldFormat
private

Definition at line 33 of file flddb.hxx.

Referenced by FillItemSet(), and Reset().

◆ m_nOldSubType

sal_uInt16 SwFieldDBPage::m_nOldSubType
private

Definition at line 34 of file flddb.hxx.

Referenced by FillItemSet(), and Reset().

◆ m_sOldColumnName

OUString SwFieldDBPage::m_sOldColumnName
private

Definition at line 32 of file flddb.hxx.

Referenced by FillItemSet(), and Reset().

◆ m_sOldDBName

OUString SwFieldDBPage::m_sOldDBName
private

Definition at line 30 of file flddb.hxx.

Referenced by FillItemSet(), and Reset().

◆ m_sOldTableName

OUString SwFieldDBPage::m_sOldTableName
private

Definition at line 31 of file flddb.hxx.

Referenced by FillItemSet(), and Reset().

◆ m_xAddDBPB

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

Definition at line 38 of file flddb.hxx.

Referenced by SwFieldDBPage().

◆ m_xCondition

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

Definition at line 39 of file flddb.hxx.

Referenced by TypeHdl().

◆ m_xConditionED

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

Definition at line 40 of file flddb.hxx.

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

◆ m_xDatabaseTLB

std::unique_ptr<SwDBTreeList> SwFieldDBPage::m_xDatabaseTLB
private

◆ m_xDBFormatRB

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

Definition at line 43 of file flddb.hxx.

Referenced by TypeHdl().

◆ m_xFormat

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

Definition at line 47 of file flddb.hxx.

Referenced by TypeHdl().

◆ m_xFormatLB

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

Definition at line 46 of file flddb.hxx.

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

◆ m_xNewFormatRB

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

Definition at line 44 of file flddb.hxx.

Referenced by FillItemSet(), and TypeHdl().

◆ m_xNumFormatLB

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

Definition at line 45 of file flddb.hxx.

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

◆ m_xTypeLB

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

◆ m_xValue

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

Definition at line 41 of file flddb.hxx.

Referenced by TypeHdl().

◆ m_xValueED

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

Definition at line 42 of file flddb.hxx.

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


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