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:
[legend]

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 (const OUString &rName)
 
OUString GetGlossaryShortName (sal_uInt16)
 
bool Rename (const OUString &rOldShortName, const OUString &rNewShortName, const OUString &rNewName)
 
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 *pViewFrame, SwWrtShell *)
 
 ~SwGlossaryHdl ()
 

Private Member Functions

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

Private Attributes

SwGlossariesm_rStatGlossaries
 
OUString m_aCurGrp
 
SfxViewFramem_pViewFrame
 
SwWrtShellm_pWrtShell
 
std::unique_ptr< SwTextBlocksm_pCurGrp
 

Detailed Description

Definition at line 34 of file gloshdl.hxx.

Constructor & Destructor Documentation

◆ SwGlossaryHdl()

SwGlossaryHdl::SwGlossaryHdl ( SfxViewFrame pViewFrame,
SwWrtShell pSh 
)

Definition at line 587 of file gloshdl.cxx.

◆ ~SwGlossaryHdl()

SwGlossaryHdl::~SwGlossaryHdl ( )

Definition at line 595 of file gloshdl.cxx.

Member Function Documentation

◆ CopyToClipboard()

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

Definition at line 655 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 
)
private

◆ ExpandGlossary()

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

◆ FindGroupName()

bool SwGlossaryHdl::FindGroupName ( OUString &  rGroup)

◆ GetGlossaryCnt()

sal_uInt16 SwGlossaryHdl::GetGlossaryCnt ( ) const

Definition at line 217 of file gloshdl.cxx.

References m_pCurGrp.

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

◆ GetGlossaryName()

OUString SwGlossaryHdl::GetGlossaryName ( sal_uInt16  nId)

Definition at line 222 of file gloshdl.cxx.

References GetGlossaryCnt(), m_pCurGrp, and nId.

Referenced by SwGlossaryDlg::Init().

◆ GetGlossaryShortName() [1/2]

OUString SwGlossaryHdl::GetGlossaryShortName ( const OUString &  rName)

◆ GetGlossaryShortName() [2/2]

OUString SwGlossaryHdl::GetGlossaryShortName ( sal_uInt16  nId)

Definition at line 228 of file gloshdl.cxx.

References GetGlossaryCnt(), m_pCurGrp, and nId.

◆ 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 642 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
private

◆ m_pCurGrp

std::unique_ptr<SwTextBlocks> SwGlossaryHdl::m_pCurGrp
private

◆ m_pViewFrame

SfxViewFrame* SwGlossaryHdl::m_pViewFrame
private

Definition at line 39 of file gloshdl.hxx.

Referenced by GlossaryDlg().

◆ m_pWrtShell

SwWrtShell* SwGlossaryHdl::m_pWrtShell
private

Definition at line 40 of file gloshdl.hxx.

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

◆ m_rStatGlossaries

SwGlossaries& SwGlossaryHdl::m_rStatGlossaries
private

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