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

#include <shellio.hxx>

Collaboration diagram for SwTextBlocks:
[legend]

Public Member Functions

 SwTextBlocks (const OUString &)
 
 ~SwTextBlocks ()
 
SwDocGetDoc ()
 
void ClearDoc ()
 
OUString GetName () const
 
void SetName (const OUString &)
 
ErrCode const & GetError () const
 
OUString GetBaseURL () const
 
void SetBaseURL (const OUString &rURL)
 
sal_uInt16 GetCount () const
 
sal_uInt16 GetIndex (const OUString &) const
 
sal_uInt16 GetLongIndex (std::u16string_view) const
 
OUString GetShortName (sal_uInt16) const
 
OUString GetLongName (sal_uInt16) const
 
bool Delete (sal_uInt16)
 
void Rename (sal_uInt16, const OUString *, const OUString *)
 
ErrCode const & CopyBlock (SwTextBlocks const &rSource, OUString &rSrcShort, const OUString &rLong)
 
bool BeginGetDoc (sal_uInt16)
 
void EndGetDoc ()
 
bool BeginPutDoc (const OUString &, const OUString &)
 
sal_uInt16 PutDoc ()
 
sal_uInt16 PutText (const OUString &, const OUString &, const OUString &)
 
bool IsOnlyTextBlock (sal_uInt16) const
 
bool IsOnlyTextBlock (const OUString &rShort) const
 
OUString const & GetFileName () const
 
bool IsReadOnly () const
 
bool GetMacroTable (sal_uInt16 nIdx, SvxMacroTableDtor &rMacroTable)
 
bool SetMacroTable (sal_uInt16 nIdx, const SvxMacroTableDtor &rMacroTable)
 
bool StartPutMuchBlockEntries ()
 
void EndPutMuchBlockEntries ()
 

Private Attributes

std::unique_ptr< SwImpBlocksm_pImp
 
ErrCode m_nErr
 

Detailed Description

Definition at line 308 of file shellio.hxx.

Constructor & Destructor Documentation

◆ SwTextBlocks()

SwTextBlocks::SwTextBlocks ( const OUString &  rFile)

◆ ~SwTextBlocks()

SwTextBlocks::~SwTextBlocks ( )

Definition at line 241 of file swblocks.cxx.

Member Function Documentation

◆ BeginGetDoc()

bool SwTextBlocks::BeginGetDoc ( sal_uInt16  n)

◆ BeginPutDoc()

bool SwTextBlocks::BeginPutDoc ( const OUString &  s,
const OUString &  l 
)

◆ ClearDoc()

void SwTextBlocks::ClearDoc ( )

◆ CopyBlock()

ErrCode const & SwTextBlocks::CopyBlock ( SwTextBlocks const &  rSource,
OUString &  rSrcShort,
const OUString &  rLong 
)

Definition at line 349 of file swblocks.cxx.

References ERR_SWG_INTERNAL_ERROR, m_nErr, and m_pImp.

◆ Delete()

bool SwTextBlocks::Delete ( sal_uInt16  n)

Definition at line 285 of file swblocks.cxx.

References ERR_TXTBLOCK_NEWFILE_ERROR, ERRCODE_NONE, m_nErr, m_pImp, and n.

Referenced by SwGlossaryHdl::DelGlossary().

◆ EndGetDoc()

void SwTextBlocks::EndGetDoc ( )

Definition at line 379 of file swblocks.cxx.

References m_pImp.

Referenced by SwAutoCorrDoc::ChgAutoCorrWord(), and SwDoc::InsertGlossary().

◆ EndPutMuchBlockEntries()

void SwTextBlocks::EndPutMuchBlockEntries ( )

Definition at line 563 of file swblocks.cxx.

References m_pImp.

Referenced by WW8Glossary::Load(), and SwDOCXReader::ReadGlossaries().

◆ GetBaseURL()

OUString SwTextBlocks::GetBaseURL ( ) const

Definition at line 569 of file swblocks.cxx.

References m_pImp.

Referenced by WW8Glossary::Load(), SwDOCXReader::MakeEntries(), and WW8Glossary::MakeEntries().

◆ GetCount()

sal_uInt16 SwTextBlocks::GetCount ( ) const

Definition at line 256 of file swblocks.cxx.

References m_pImp.

◆ GetDoc()

SwDoc * SwTextBlocks::GetDoc ( )

◆ GetError()

ErrCode const & SwTextBlocks::GetError ( ) const
inline

Definition at line 321 of file shellio.hxx.

Referenced by SwGlossaryHdl::Rename(), and SwGlossaryHdl::SetMacros().

◆ GetFileName()

OUString const & SwTextBlocks::GetFileName ( ) const

◆ GetIndex()

sal_uInt16 SwTextBlocks::GetIndex ( const OUString &  r) const

◆ GetLongIndex()

sal_uInt16 SwTextBlocks::GetLongIndex ( std::u16string_view  r) const

Definition at line 266 of file swblocks.cxx.

References m_pImp.

Referenced by SwGlossaryHdl::GetGlossaryShortName(), and SwGlossaryHdl::Rename().

◆ GetLongName()

OUString SwTextBlocks::GetLongName ( sal_uInt16  n) const

Definition at line 278 of file swblocks.cxx.

References m_pImp, and n.

◆ GetMacroTable()

bool SwTextBlocks::GetMacroTable ( sal_uInt16  nIdx,
SvxMacroTableDtor rMacroTable 
)

Definition at line 539 of file swblocks.cxx.

References ERRCODE_NONE, and m_pImp.

Referenced by SwGlossaryHdl::GetMacros().

◆ GetName()

OUString SwTextBlocks::GetName ( ) const

Definition at line 245 of file swblocks.cxx.

References m_pImp.

◆ GetShortName()

OUString SwTextBlocks::GetShortName ( sal_uInt16  n) const

Definition at line 271 of file swblocks.cxx.

References m_pImp, and n.

Referenced by SwGlossaryHdl::GetGlossaryShortName().

◆ IsOnlyTextBlock() [1/2]

bool SwTextBlocks::IsOnlyTextBlock ( const OUString &  rShort) const

Definition at line 525 of file swblocks.cxx.

References IsOnlyTextBlock(), and m_pImp.

◆ IsOnlyTextBlock() [2/2]

bool SwTextBlocks::IsOnlyTextBlock ( sal_uInt16  nIdx) const

◆ IsReadOnly()

bool SwTextBlocks::IsReadOnly ( ) const

Definition at line 502 of file swblocks.cxx.

References m_pImp.

Referenced by SwGlossaryHdl::IsReadOnly().

◆ PutDoc()

sal_uInt16 SwTextBlocks::PutDoc ( )

◆ PutText()

sal_uInt16 SwTextBlocks::PutText ( const OUString &  rShort,
const OUString &  rName,
const OUString &  rText 
)

◆ Rename()

void SwTextBlocks::Rename ( sal_uInt16  n,
const OUString *  s,
const OUString *  l 
)

◆ SetBaseURL()

void SwTextBlocks::SetBaseURL ( const OUString &  rURL)

◆ SetMacroTable()

bool SwTextBlocks::SetMacroTable ( sal_uInt16  nIdx,
const SvxMacroTableDtor rMacroTable 
)

Definition at line 547 of file swblocks.cxx.

References ERRCODE_NONE, and m_pImp.

Referenced by SwGlossaryHdl::SetMacros().

◆ SetName()

void SwTextBlocks::SetName ( const OUString &  r)

Definition at line 250 of file swblocks.cxx.

References m_pImp.

Referenced by SwGlossaries::RenameGroupDoc().

◆ StartPutMuchBlockEntries()

bool SwTextBlocks::StartPutMuchBlockEntries ( )

Definition at line 555 of file swblocks.cxx.

References m_pImp.

Referenced by WW8Glossary::Load(), and SwDOCXReader::ReadGlossaries().

Member Data Documentation

◆ m_nErr

ErrCode SwTextBlocks::m_nErr
private

◆ m_pImp

std::unique_ptr<SwImpBlocks> SwTextBlocks::m_pImp
private

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