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

#include <glossary.hxx>

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

Public Member Functions

 SwGlossaryDlg (const SfxViewFrame &rViewFrame, 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 OUString &rDialogId)
 
virtual void Activate ()
 
virtual void Deactivate ()
 
virtual void ChildWinDispose ()
 
virtual void Close ()
 
virtual void EndDialog (int nResponse)
 
virtual bool CloseOnHide () const
 

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 &, bool)
 
 DECL_LINK (GrpSelect, weld::TreeView &, void)
 
 DECL_LINK (MenuHdl, const OUString &, void)
 
 DECL_LINK (EnableHdl, weld::Toggleable &, void)
 
 DECL_LINK (BibHdl, weld::Button &, void)
 
 DECL_LINK (InsertHdl, weld::Button &, void)
 
 DECL_LINK (PathHdl, weld::Button &, void)
 
 DECL_LINK (CheckBoxHdl, weld::Toggleable &, 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 (std::u16string_view sBlock, std::u16string_view 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
 
std::unique_ptr< SwGlossaryDropTargetm_xDropTarget
 

Friends

class SwNewGlosNameDlg
 

Detailed Description

Definition at line 44 of file glossary.hxx.

Constructor & Destructor Documentation

◆ SwGlossaryDlg()

SwGlossaryDlg::SwGlossaryDlg ( const SfxViewFrame rViewFrame,
SwGlossaryHdl pGlosHdl,
SwWrtShell pWrtShell 
)

◆ ~SwGlossaryDlg()

SwGlossaryDlg::~SwGlossaryDlg ( )
overridevirtual

Definition at line 357 of file glossary.cxx.

Member Function Documentation

◆ Apply()

void SwGlossaryDlg::Apply ( )
private

◆ DECL_LINK() [1/12]

SwGlossaryDlg::DECL_LINK ( BibHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/12]

SwGlossaryDlg::DECL_LINK ( CheckBoxHdl  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [3/12]

SwGlossaryDlg::DECL_LINK ( EnableHdl  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [4/12]

SwGlossaryDlg::DECL_LINK ( GrpSelect  ,
weld::TreeView ,
void   
)
private

◆ DECL_LINK() [5/12]

SwGlossaryDlg::DECL_LINK ( InsertHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [6/12]

SwGlossaryDlg::DECL_LINK ( KeyInputHdl  ,
const KeyEvent ,
bool   
)
private

◆ DECL_LINK() [7/12]

SwGlossaryDlg::DECL_LINK ( MenuHdl  ,
const OUString &  ,
void   
)
private

◆ DECL_LINK() [8/12]

SwGlossaryDlg::DECL_LINK ( NameDoubleClick  ,
weld::TreeView ,
bool   
)
private

◆ DECL_LINK() [9/12]

SwGlossaryDlg::DECL_LINK ( NameModify  ,
weld::Entry ,
void   
)
private

◆ DECL_LINK() [10/12]

SwGlossaryDlg::DECL_LINK ( PathHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [11/12]

SwGlossaryDlg::DECL_LINK ( PreviewLoadedHdl  ,
SwOneExampleFrame ,
void   
)
private

◆ DECL_LINK() [12/12]

SwGlossaryDlg::DECL_LINK ( TextFilterHdl  ,
OUString &  ,
bool   
)
private

◆ DeleteEntry()

void SwGlossaryDlg::DeleteEntry ( )
private

◆ DoesBlockExist()

std::unique_ptr< weld::TreeIter > SwGlossaryDlg::DoesBlockExist ( std::u16string_view  sBlock,
std::u16string_view  rShort 
)
private

Definition at line 454 of file glossary.cxx.

References m_xCategoryBox.

Referenced by DeleteEntry(), and IMPL_LINK().

◆ EnableShortName()

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

Definition at line 447 of file glossary.cxx.

References m_xShortNameEdit, and m_xShortNameLbl.

◆ GetCurrGroup()

OUString SwGlossaryDlg::GetCurrGroup ( )
static

◆ GetCurrGrpName()

OUString SwGlossaryDlg::GetCurrGrpName ( ) const

◆ GetCurrShortName()

OUString SwGlossaryDlg::GetCurrShortName ( ) const
inline

Definition at line 116 of file glossary.hxx.

References m_xShortNameEdit.

◆ GetResumeData()

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

Definition at line 105 of file glossary.hxx.

References m_bResume, m_sResumeGroup, and m_sResumeShortName.

Referenced by ResumeShowAutoText().

◆ Init()

void SwGlossaryDlg::Init ( void  )
private

◆ ResumeShowAutoText()

void SwGlossaryDlg::ResumeShowAutoText ( )
private

◆ run()

short SwGlossaryDlg::run ( )
overridevirtual

Definition at line 423 of file glossary.cxx.

References Apply(), and RET_OK.

◆ SetActGroup()

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

Definition at line 168 of file glossary.cxx.

References SetCurrGlosGroup().

Referenced by SwAbstractDialogFactory_Impl::SetGlossaryActGroupFunc().

◆ SetResumeData()

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

Definition at line 107 of file glossary.hxx.

References m_bResume, m_sResumeGroup, and m_sResumeShortName.

Referenced by ShowAutoText().

◆ ShowAutoText()

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

Definition at line 1023 of file glossary.cxx.

References m_xExampleFrame, m_xExampleFrameWin, and SetResumeData().

Referenced by ShowPreview().

◆ ShowPreview()

void SwGlossaryDlg::ShowPreview ( )
private

Definition at line 1013 of file glossary.cxx.

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

Referenced by SwGlossaryDlg().

Friends And Related Function Documentation

◆ SwNewGlosNameDlg

friend class SwNewGlosNameDlg
friend

Definition at line 46 of file glossary.hxx.

Member Data Documentation

◆ m_aNoSpaceFilter

TextFilter SwGlossaryDlg::m_aNoSpaceFilter
private

Definition at line 70 of file glossary.hxx.

◆ m_bIsDocReadOnly

bool SwGlossaryDlg::m_bIsDocReadOnly
private

Definition at line 61 of file glossary.hxx.

Referenced by SwGlossaryDlg().

◆ m_bIsOld

bool SwGlossaryDlg::m_bIsOld
private

Definition at line 60 of file glossary.hxx.

◆ m_bReadOnly

bool SwGlossaryDlg::m_bReadOnly
private

Definition at line 59 of file glossary.hxx.

◆ m_bResume

bool SwGlossaryDlg::m_bResume
private

Definition at line 56 of file glossary.hxx.

Referenced by GetResumeData(), ResumeShowAutoText(), and SetResumeData().

◆ m_bSelection

const bool SwGlossaryDlg::m_bSelection
private

Definition at line 58 of file glossary.hxx.

◆ m_pGlossaryHdl

SwGlossaryHdl* SwGlossaryDlg::m_pGlossaryHdl
private

Definition at line 52 of file glossary.hxx.

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

◆ m_pShell

SwWrtShell* SwGlossaryDlg::m_pShell
private

Definition at line 63 of file glossary.hxx.

Referenced by Apply(), Init(), and SwGlossaryDlg().

◆ m_sReadonlyPath

OUString const SwGlossaryDlg::m_sReadonlyPath
private

Definition at line 48 of file glossary.hxx.

◆ m_sResumeGroup

OUString SwGlossaryDlg::m_sResumeGroup
private

Definition at line 54 of file glossary.hxx.

Referenced by GetResumeData(), and SetResumeData().

◆ m_sResumeShortName

OUString SwGlossaryDlg::m_sResumeShortName
private

Definition at line 55 of file glossary.hxx.

Referenced by GetResumeData(), and SetResumeData().

◆ m_xAutoText

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

Definition at line 50 of file glossary.hxx.

Referenced by ResumeShowAutoText().

◆ m_xBibBtn

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

Definition at line 77 of file glossary.hxx.

Referenced by SwGlossaryDlg().

◆ m_xCategoryBox

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

Definition at line 72 of file glossary.hxx.

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

◆ m_xDropTarget

std::unique_ptr<SwGlossaryDropTarget> SwGlossaryDlg::m_xDropTarget
private

Definition at line 81 of file glossary.hxx.

Referenced by SwGlossaryDlg().

◆ m_xEditBtn

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

Definition at line 76 of file glossary.hxx.

Referenced by SwGlossaryDlg().

◆ m_xExampleFrame

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

Definition at line 79 of file glossary.hxx.

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

◆ m_xExampleFrameWin

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

Definition at line 80 of file glossary.hxx.

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

◆ m_xFileRelCB

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

Definition at line 73 of file glossary.hxx.

Referenced by Init().

◆ m_xGroupData

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

Definition at line 65 of file glossary.hxx.

Referenced by Init().

◆ m_xInsertBtn

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

Definition at line 75 of file glossary.hxx.

Referenced by SwGlossaryDlg().

◆ m_xInsertTipCB

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

Definition at line 67 of file glossary.hxx.

Referenced by Init().

◆ m_xNameED

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

Definition at line 68 of file glossary.hxx.

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

◆ m_xNetRelCB

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

Definition at line 74 of file glossary.hxx.

Referenced by Init().

◆ m_xPathBtn

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

Definition at line 78 of file glossary.hxx.

Referenced by SwGlossaryDlg().

◆ m_xShortNameEdit

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

◆ m_xShortNameLbl

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

Definition at line 69 of file glossary.hxx.

Referenced by EnableShortName().


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