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

#include <glossary.hxx>

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

Public Member Functions

 SwGlossaryDlg (SfxViewFrame const *pViewFrame, SwGlossaryHdl *pGlosHdl, SwWrtShell *pWrtShell)
 
virtual short run () override
 
virtual ~SwGlossaryDlg () override
 
OUString GetCurrGrpName () const
 
OUString GetCurrShortName () const
 
- Public Member Functions inherited from SfxDialogController
 SfxDialogController (weld::Widget *pParent, const OUString &rUIFile, const OString &rDialogId)
 
virtual void Activate ()
 
virtual void Deactivate ()
 
virtual void ChildWinDispose ()
 
virtual void Close ()
 
virtual void EndDialog ()
 

Static Public Member Functions

static OUString GetCurrGroup ()
 
static void SetActGroup (const OUString &rNewGroup)
 

Private Member Functions

void EnableShortName (bool bOn=true)
 
void ShowPreview ()
 
 DECL_LINK (NameModify, weld::Entry &, void)
 
 DECL_LINK (NameDoubleClick, weld::TreeView &, void)
 
 DECL_LINK (GrpSelect, weld::TreeView &, void)
 
 DECL_LINK (MenuHdl, const OString &, void)
 
 DECL_LINK (EnableHdl, weld::ToggleButton &, void)
 
 DECL_LINK (BibHdl, weld::Button &, void)
 
 DECL_LINK (InsertHdl, weld::Button &, void)
 
 DECL_LINK (PathHdl, weld::Button &, void)
 
 DECL_LINK (CheckBoxHdl, weld::ToggleButton &, void)
 
 DECL_LINK (PreviewLoadedHdl, SwOneExampleFrame &, void)
 
 DECL_LINK (KeyInputHdl, const KeyEvent &, bool)
 
 DECL_LINK (TextFilterHdl, OUString &, bool)
 
void Apply ()
 
void Init ()
 
std::unique_ptr< weld::TreeIterDoesBlockExist (const OUString &sBlock, const OUString &rShort)
 
void ShowAutoText (const OUString &rGroup, const OUString &rShortName)
 
void ResumeShowAutoText ()
 
bool GetResumeData (OUString &rGroup, OUString &rShortName)
 
void SetResumeData (const OUString &rGroup, const OUString &rShortName)
 
void DeleteEntry ()
 

Private Attributes

OUString const m_sReadonlyPath
 
css::uno::Reference< css::text::XAutoTextContainer2 > m_xAutoText
 
SwGlossaryHdlm_pGlossaryHdl
 
OUString m_sResumeGroup
 
OUString m_sResumeShortName
 
bool m_bResume
 
const bool m_bSelection: 1
 
bool m_bReadOnly: 1
 
bool m_bIsOld: 1
 
bool m_bIsDocReadOnly:1
 
SwWrtShellm_pShell
 
std::vector< std::unique_ptr< GroupUserData > > m_xGroupData
 
std::unique_ptr< weld::CheckButtonm_xInsertTipCB
 
std::unique_ptr< weld::Entrym_xNameED
 
std::unique_ptr< weld::Labelm_xShortNameLbl
 
TextFilter m_aNoSpaceFilter
 
std::unique_ptr< weld::Entrym_xShortNameEdit
 
std::unique_ptr< weld::TreeViewm_xCategoryBox
 
std::unique_ptr< weld::CheckButtonm_xFileRelCB
 
std::unique_ptr< weld::CheckButtonm_xNetRelCB
 
std::unique_ptr< weld::Buttonm_xInsertBtn
 
std::unique_ptr< weld::MenuButtonm_xEditBtn
 
std::unique_ptr< weld::Buttonm_xBibBtn
 
std::unique_ptr< weld::Buttonm_xPathBtn
 
std::unique_ptr< SwOneExampleFramem_xExampleFrame
 
std::unique_ptr< weld::CustomWeldm_xExampleFrameWin
 

Friends

class SwNewGlosNameDlg
 

Detailed Description

Definition at line 48 of file glossary.hxx.

Constructor & Destructor Documentation

SwGlossaryDlg::SwGlossaryDlg ( SfxViewFrame const *  pViewFrame,
SwGlossaryHdl pGlosHdl,
SwWrtShell pWrtShell 
)
SwGlossaryDlg::~SwGlossaryDlg ( )
overridevirtual

Definition at line 251 of file glossary.cxx.

Member Function Documentation

void SwGlossaryDlg::Apply ( )
private
SwGlossaryDlg::DECL_LINK ( NameModify  ,
weld::Entry ,
void   
)
private
SwGlossaryDlg::DECL_LINK ( NameDoubleClick  ,
weld::TreeView ,
void   
)
private
SwGlossaryDlg::DECL_LINK ( GrpSelect  ,
weld::TreeView ,
void   
)
private
SwGlossaryDlg::DECL_LINK ( MenuHdl  ,
const OString &  ,
void   
)
private
SwGlossaryDlg::DECL_LINK ( EnableHdl  ,
weld::ToggleButton ,
void   
)
private
SwGlossaryDlg::DECL_LINK ( BibHdl  ,
weld::Button ,
void   
)
private
SwGlossaryDlg::DECL_LINK ( InsertHdl  ,
weld::Button ,
void   
)
private
SwGlossaryDlg::DECL_LINK ( PathHdl  ,
weld::Button ,
void   
)
private
SwGlossaryDlg::DECL_LINK ( CheckBoxHdl  ,
weld::ToggleButton ,
void   
)
private
SwGlossaryDlg::DECL_LINK ( PreviewLoadedHdl  ,
SwOneExampleFrame ,
void   
)
private
SwGlossaryDlg::DECL_LINK ( KeyInputHdl  ,
const KeyEvent ,
bool   
)
private
SwGlossaryDlg::DECL_LINK ( TextFilterHdl  ,
OUString &  ,
bool   
)
private
void SwGlossaryDlg::DeleteEntry ( )
private
std::unique_ptr< weld::TreeIter > SwGlossaryDlg::DoesBlockExist ( const OUString &  sBlock,
const OUString &  rShort 
)
private

Definition at line 353 of file glossary.cxx.

References m_xCategoryBox.

Referenced by DeleteEntry().

void SwGlossaryDlg::EnableShortName ( bool  bOn = true)
private

Definition at line 346 of file glossary.cxx.

References m_xShortNameEdit, and m_xShortNameLbl.

OUString SwGlossaryDlg::GetCurrGroup ( )
static
OUString SwGlossaryDlg::GetCurrGrpName ( ) const
OUString SwGlossaryDlg::GetCurrShortName ( ) const
inline

Definition at line 119 of file glossary.hxx.

bool SwGlossaryDlg::GetResumeData ( OUString &  rGroup,
OUString &  rShortName 
)
inlineprivate

Definition at line 108 of file glossary.hxx.

References m_bResume, m_sResumeGroup, and m_sResumeShortName.

Referenced by ResumeShowAutoText().

void SwGlossaryDlg::Init ( void  )
private
void SwGlossaryDlg::ResumeShowAutoText ( )
private
short SwGlossaryDlg::run ( )
overridevirtual

Definition at line 322 of file glossary.cxx.

References Apply(), and RET_OK.

void SwGlossaryDlg::SetActGroup ( const OUString &  rNewGroup)
static

Definition at line 176 of file glossary.cxx.

References SetCurrGlosGroup().

Referenced by SwAbstractDialogFactory_Impl::SetGlossaryActGroupFunc().

void SwGlossaryDlg::SetResumeData ( const OUString &  rGroup,
const OUString &  rShortName 
)
inlineprivate

Definition at line 110 of file glossary.hxx.

Referenced by ShowAutoText().

void SwGlossaryDlg::ShowAutoText ( const OUString &  rGroup,
const OUString &  rShortName 
)
private

Definition at line 903 of file glossary.cxx.

References m_xExampleFrame, m_xExampleFrameWin, and SetResumeData().

Referenced by ShowPreview().

void SwGlossaryDlg::ShowPreview ( )
private

Definition at line 893 of file glossary.cxx.

References GetCurrGlosGroup(), m_xShortNameEdit, and ShowAutoText().

Referenced by SwGlossaryDlg().

Friends And Related Function Documentation

friend class SwNewGlosNameDlg
friend

Definition at line 50 of file glossary.hxx.

Member Data Documentation

TextFilter SwGlossaryDlg::m_aNoSpaceFilter
private

Definition at line 74 of file glossary.hxx.

bool SwGlossaryDlg::m_bIsDocReadOnly
private

Definition at line 65 of file glossary.hxx.

Referenced by SwGlossaryDlg().

bool SwGlossaryDlg::m_bIsOld
private

Definition at line 64 of file glossary.hxx.

bool SwGlossaryDlg::m_bReadOnly
private

Definition at line 63 of file glossary.hxx.

bool SwGlossaryDlg::m_bResume
private

Definition at line 60 of file glossary.hxx.

Referenced by GetResumeData(), and ResumeShowAutoText().

const bool SwGlossaryDlg::m_bSelection
private

Definition at line 62 of file glossary.hxx.

SwGlossaryHdl* SwGlossaryDlg::m_pGlossaryHdl
private

Definition at line 56 of file glossary.hxx.

Referenced by Apply(), DeleteEntry(), IMPL_LINK_NOARG(), and Init().

SwWrtShell* SwGlossaryDlg::m_pShell
private

Definition at line 67 of file glossary.hxx.

Referenced by Apply(), and SwGlossaryDlg().

OUString const SwGlossaryDlg::m_sReadonlyPath
private

Definition at line 52 of file glossary.hxx.

OUString SwGlossaryDlg::m_sResumeGroup
private

Definition at line 58 of file glossary.hxx.

Referenced by GetResumeData().

OUString SwGlossaryDlg::m_sResumeShortName
private

Definition at line 59 of file glossary.hxx.

Referenced by GetResumeData().

css::uno::Reference< css::text::XAutoTextContainer2 > SwGlossaryDlg::m_xAutoText
private

Definition at line 54 of file glossary.hxx.

Referenced by ResumeShowAutoText().

std::unique_ptr<weld::Button> SwGlossaryDlg::m_xBibBtn
private

Definition at line 81 of file glossary.hxx.

Referenced by SwGlossaryDlg().

std::unique_ptr<weld::TreeView> SwGlossaryDlg::m_xCategoryBox
private

Definition at line 76 of file glossary.hxx.

Referenced by DeleteEntry(), DoesBlockExist(), GetCurrGrpName(), Init(), and SwGlossaryDlg().

std::unique_ptr<weld::MenuButton> SwGlossaryDlg::m_xEditBtn
private

Definition at line 80 of file glossary.hxx.

Referenced by SwGlossaryDlg().

std::unique_ptr<SwOneExampleFrame> SwGlossaryDlg::m_xExampleFrame
private

Definition at line 83 of file glossary.hxx.

Referenced by ResumeShowAutoText(), ShowAutoText(), and SwGlossaryDlg().

std::unique_ptr<weld::CustomWeld> SwGlossaryDlg::m_xExampleFrameWin
private

Definition at line 84 of file glossary.hxx.

Referenced by ResumeShowAutoText(), ShowAutoText(), and SwGlossaryDlg().

std::unique_ptr<weld::CheckButton> SwGlossaryDlg::m_xFileRelCB
private

Definition at line 77 of file glossary.hxx.

Referenced by Init().

std::vector<std::unique_ptr<GroupUserData> > SwGlossaryDlg::m_xGroupData
private

Definition at line 69 of file glossary.hxx.

Referenced by Init().

std::unique_ptr<weld::Button> SwGlossaryDlg::m_xInsertBtn
private

Definition at line 79 of file glossary.hxx.

Referenced by SwGlossaryDlg().

std::unique_ptr<weld::CheckButton> SwGlossaryDlg::m_xInsertTipCB
private

Definition at line 71 of file glossary.hxx.

Referenced by Init().

std::unique_ptr<weld::Entry> SwGlossaryDlg::m_xNameED
private

Definition at line 72 of file glossary.hxx.

Referenced by DeleteEntry(), and SwGlossaryDlg().

std::unique_ptr<weld::CheckButton> SwGlossaryDlg::m_xNetRelCB
private

Definition at line 78 of file glossary.hxx.

Referenced by Init().

std::unique_ptr<weld::Button> SwGlossaryDlg::m_xPathBtn
private

Definition at line 82 of file glossary.hxx.

Referenced by SwGlossaryDlg().

std::unique_ptr<weld::Entry> SwGlossaryDlg::m_xShortNameEdit
private

Definition at line 75 of file glossary.hxx.

Referenced by Apply(), DeleteEntry(), EnableShortName(), ShowPreview(), and SwGlossaryDlg().

std::unique_ptr<weld::Label> SwGlossaryDlg::m_xShortNameLbl
private

Definition at line 73 of file glossary.hxx.

Referenced by EnableShortName().


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