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

#include <gloshdl.hxx>

Collaboration diagram for SwGlossaryHdl:

Public Member Functions

void GlossaryDlg ()
size_t GetGroupCnt () const
OUString GetGroupName (size_t, OUString *pTitle)
void NewGroup (OUString &rGroupName, const OUString &rTitle)
bool DelGroup (const OUString &)
void RenameGroup (const OUString &rOld, OUString &rNew, const OUString &rNewTitle)
void SetCurGroup (const OUString &aGrp, bool bApi=false, bool bAlwaysCreateNew=false)
sal_uInt16 GetGlossaryCnt () const
OUString GetGlossaryName (sal_uInt16)
OUString GetGlossaryShortName (std::u16string_view aName)
OUString GetGlossaryShortName (sal_uInt16)
bool Rename (const OUString &rOldShortName, const OUString &rNewShortName, const OUString &rNewName)
bool CopyOrMove (const OUString &rSourceGroupName, OUString &rSourceShortName, const OUString &rDestGroupName, const OUString &rLongName, bool bMove)
bool HasShortName (const OUString &rShortName) const
bool NewGlossary (const OUString &rName, const OUString &rShortName, bool bApiCall=false, bool bNoAttr=false)
bool DelGlossary (const OUString &)
bool CopyToClipboard (SwWrtShell &rSh, const OUString &rShortName)
bool ExpandGlossary (weld::Window *pParent)
bool InsertGlossary (const OUString &rName)
void SetMacros (const OUString &rName, const SvxMacro *pStart, const SvxMacro *pEnd, SwTextBlocks *pGlossary=nullptr)
void GetMacros (const OUString &rShortName, SvxMacro &rStart, SvxMacro &rEnd, SwTextBlocks *pGlossary=nullptr)
bool IsReadOnly (const OUString *=nullptr) const
bool IsOld () const
bool FindGroupName (OUString &rGroup)
bool ImportGlossaries (const OUString &rName)
 SwGlossaryHdl (SfxViewFrame &rViewFrame, SwWrtShell *)
 ~SwGlossaryHdl ()

Private Member Functions

SAL_DLLPRIVATE bool Expand (weld::Window *pParent, const OUString &rShortName, SwGlossaries *pGlossaries, std::unique_ptr< SwTextBlocks > pGlossary)

Private Attributes

OUString m_aCurGrp
std::unique_ptr< SwTextBlocksm_pCurGrp

Detailed Description

Definition at line 34 of file gloshdl.hxx.

Constructor & Destructor Documentation

◆ SwGlossaryHdl()

SwGlossaryHdl::SwGlossaryHdl ( SfxViewFrame rViewFrame,
SwWrtShell pSh 

Definition at line 610 of file gloshdl.cxx.

◆ ~SwGlossaryHdl()

SwGlossaryHdl::~SwGlossaryHdl ( )

Definition at line 618 of file gloshdl.cxx.

Member Function Documentation

◆ CopyOrMove()

bool SwGlossaryHdl::CopyOrMove ( const OUString &  rSourceGroupName,
OUString &  rSourceShortName,
const OUString &  rDestGroupName,
const OUString &  rLongName,
bool  bMove 

◆ CopyToClipboard()

bool SwGlossaryHdl::CopyToClipboard ( SwWrtShell rSh,
const OUString &  rShortName 

Definition at line 678 of file gloshdl.cxx.

References SwGlossaries::GetGroupDoc(), m_aCurGrp, m_pCurGrp, and m_rStatGlossaries.

◆ DelGlossary()

bool SwGlossaryHdl::DelGlossary ( const OUString &  rShortName)

◆ DelGroup()

bool SwGlossaryHdl::DelGroup ( const OUString &  rGrpName)

◆ Expand()

bool SwGlossaryHdl::Expand ( weld::Window pParent,
const OUString &  rShortName,
SwGlossaries pGlossaries,
std::unique_ptr< SwTextBlocks pGlossary 

◆ ExpandGlossary()

bool SwGlossaryHdl::ExpandGlossary ( weld::Window pParent)

◆ FindGroupName()

bool SwGlossaryHdl::FindGroupName ( OUString &  rGroup)

◆ GetGlossaryCnt()

sal_uInt16 SwGlossaryHdl::GetGlossaryCnt ( ) const

Definition at line 240 of file gloshdl.cxx.

References m_pCurGrp.

Referenced by GetGlossaryName(), GetGlossaryShortName(), and SwGlossaryDlg::Init().

◆ GetGlossaryName()

OUString SwGlossaryHdl::GetGlossaryName ( sal_uInt16  nId)

Definition at line 245 of file gloshdl.cxx.

References GetGlossaryCnt(), m_pCurGrp, and nId.

Referenced by SwGlossaryDlg::Init().

◆ GetGlossaryShortName() [1/2]

OUString SwGlossaryHdl::GetGlossaryShortName ( sal_uInt16  nId)

Definition at line 251 of file gloshdl.cxx.

References GetGlossaryCnt(), m_pCurGrp, and nId.

◆ GetGlossaryShortName() [2/2]

OUString SwGlossaryHdl::GetGlossaryShortName ( std::u16string_view  aName)

◆ GetGroupCnt()

size_t SwGlossaryHdl::GetGroupCnt ( ) const

◆ GetGroupName()

OUString SwGlossaryHdl::GetGroupName ( size_t  nId,
OUString *  pTitle 

◆ GetMacros()

void SwGlossaryHdl::GetMacros ( const OUString &  rShortName,
SvxMacro rStart,
SvxMacro rEnd,
SwTextBlocks pGlossary = nullptr 

◆ GlossaryDlg()

void SwGlossaryHdl::GlossaryDlg ( )

◆ HasShortName()

bool SwGlossaryHdl::HasShortName ( const OUString &  rShortName) const

◆ ImportGlossaries()

bool SwGlossaryHdl::ImportGlossaries ( const OUString &  rName)

◆ InsertGlossary()

bool SwGlossaryHdl::InsertGlossary ( const OUString &  rName)

◆ IsOld()

bool SwGlossaryHdl::IsOld ( ) const

Definition at line 665 of file gloshdl.cxx.

References SwGlossaries::GetGroupDoc(), m_aCurGrp, m_pCurGrp, and m_rStatGlossaries.

◆ IsReadOnly()

bool SwGlossaryHdl::IsReadOnly ( const OUString *  pGrpNm = nullptr) const

◆ NewGlossary()

bool SwGlossaryHdl::NewGlossary ( const OUString &  rName,
const OUString &  rShortName,
bool  bApiCall = false,
bool  bNoAttr = false 

◆ NewGroup()

void SwGlossaryHdl::NewGroup ( OUString &  rGroupName,
const OUString &  rTitle 

◆ Rename()

bool SwGlossaryHdl::Rename ( const OUString &  rOldShortName,
const OUString &  rNewShortName,
const OUString &  rNewName 

◆ RenameGroup()

void SwGlossaryHdl::RenameGroup ( const OUString &  rOld,
OUString &  rNew,
const OUString &  rNewTitle 

◆ SetCurGroup()

void SwGlossaryHdl::SetCurGroup ( const OUString &  aGrp,
bool  bApi = false,
bool  bAlwaysCreateNew = false 

◆ SetMacros()

void SwGlossaryHdl::SetMacros ( const OUString &  rName,
const SvxMacro pStart,
const SvxMacro pEnd,
SwTextBlocks pGlossary = nullptr 

Member Data Documentation

◆ m_aCurGrp

OUString SwGlossaryHdl::m_aCurGrp

◆ m_pCurGrp

std::unique_ptr<SwTextBlocks> SwGlossaryHdl::m_pCurGrp

◆ m_pWrtShell

SwWrtShell* SwGlossaryHdl::m_pWrtShell

Definition at line 40 of file gloshdl.hxx.

Referenced by Expand(), ExpandGlossary(), GlossaryDlg(), InsertGlossary(), and NewGlossary().

◆ m_rStatGlossaries

SwGlossaries& SwGlossaryHdl::m_rStatGlossaries

◆ m_rViewFrame

SfxViewFrame& SwGlossaryHdl::m_rViewFrame

Definition at line 39 of file gloshdl.hxx.

Referenced by GlossaryDlg().

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