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 ()
 
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

SwGlossariesrStatGlossaries
 
OUString aCurGrp
 
SfxViewFrame *const pViewFrame
 
SwWrtShellpWrtShell
 
std::unique_ptr< SwTextBlockspCurGrp
 

Detailed Description

Definition at line 34 of file gloshdl.hxx.

Constructor & Destructor Documentation

SwGlossaryHdl::SwGlossaryHdl ( SfxViewFrame pViewFrame,
SwWrtShell pSh 
)

Definition at line 594 of file gloshdl.cxx.

SwGlossaryHdl::~SwGlossaryHdl ( )

Definition at line 602 of file gloshdl.cxx.

Member Function Documentation

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

Definition at line 665 of file gloshdl.cxx.

References aCurGrp, SwGlossaries::GetGroupDoc(), pCurGrp, and rStatGlossaries.

bool SwGlossaryHdl::DelGlossary ( const OUString &  rShortName)
bool SwGlossaryHdl::DelGroup ( const OUString &  rGrpName)
bool SwGlossaryHdl::Expand ( weld::Window pParent,
const OUString &  rShortName,
SwGlossaries pGlossaries,
std::unique_ptr< SwTextBlocks pGlossary 
)
private
bool SwGlossaryHdl::ExpandGlossary ( weld::Window pParent)
bool SwGlossaryHdl::FindGroupName ( OUString &  rGroup)
sal_uInt16 SwGlossaryHdl::GetGlossaryCnt ( )

Definition at line 225 of file gloshdl.cxx.

References pCurGrp.

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

OUString SwGlossaryHdl::GetGlossaryName ( sal_uInt16  nId)

Definition at line 230 of file gloshdl.cxx.

References GetGlossaryCnt(), and pCurGrp.

Referenced by SwGlossaryDlg::Init().

OUString SwGlossaryHdl::GetGlossaryShortName ( const OUString &  rName)
OUString SwGlossaryHdl::GetGlossaryShortName ( sal_uInt16  nId)

Definition at line 236 of file gloshdl.cxx.

References GetGlossaryCnt(), and pCurGrp.

size_t SwGlossaryHdl::GetGroupCnt ( ) const
OUString SwGlossaryHdl::GetGroupName ( size_t  nId,
OUString *  pTitle 
)
void SwGlossaryHdl::GetMacros ( const OUString &  rShortName,
SvxMacro rStart,
SvxMacro rEnd,
SwTextBlocks pGlossary = nullptr 
)
void SwGlossaryHdl::GlossaryDlg ( )
bool SwGlossaryHdl::HasShortName ( const OUString &  rShortName) const
bool SwGlossaryHdl::ImportGlossaries ( const OUString &  rName)
bool SwGlossaryHdl::InsertGlossary ( const OUString &  rName)
bool SwGlossaryHdl::IsOld ( ) const
bool SwGlossaryHdl::IsReadOnly ( const OUString *  pGrpNm = nullptr) const
bool SwGlossaryHdl::NewGlossary ( const OUString &  rName,
const OUString &  rShortName,
bool  bApiCall = false,
bool  bNoAttr = false 
)
void SwGlossaryHdl::NewGroup ( OUString &  rGroupName,
const OUString &  rTitle 
)
bool SwGlossaryHdl::Rename ( const OUString &  rOldShortName,
const OUString &  rNewShortName,
const OUString &  rNewName 
)
void SwGlossaryHdl::RenameGroup ( const OUString &  rOld,
OUString &  rNew,
const OUString &  rNewTitle 
)
void SwGlossaryHdl::SetCurGroup ( const OUString &  aGrp,
bool  bApi = false,
bool  bAlwaysCreateNew = false 
)
void SwGlossaryHdl::SetMacros ( const OUString &  rName,
const SvxMacro pStart,
const SvxMacro pEnd,
SwTextBlocks pGlossary = nullptr 
)

Member Data Documentation

OUString SwGlossaryHdl::aCurGrp
private
std::unique_ptr<SwTextBlocks> SwGlossaryHdl::pCurGrp
private
SfxViewFrame* const SwGlossaryHdl::pViewFrame
private

Definition at line 39 of file gloshdl.hxx.

Referenced by GlossaryDlg().

SwWrtShell* SwGlossaryHdl::pWrtShell
private

Definition at line 40 of file gloshdl.hxx.

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

SwGlossaries& SwGlossaryHdl::rStatGlossaries
private

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