LibreOffice Module sw (master) 1
|
#include <shellio.hxx>
Public Member Functions | |
SwTextBlocks (const OUString &) | |
~SwTextBlocks () | |
SwDoc * | GetDoc () |
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< SwImpBlocks > | m_pImp |
ErrCode | m_nErr |
Definition at line 308 of file shellio.hxx.
SwTextBlocks::SwTextBlocks | ( | const OUString & | rFile | ) |
Definition at line 224 of file swblocks.cxx.
References ERR_SWG_FILE_FORMAT_ERROR, SwImpBlocks::GetFileType(), INetURLObject::GetMainURL(), m_nErr, m_pImp, SwImpBlocks::NoFile, INetURLObject::NONE, and SwImpBlocks::XML.
SwTextBlocks::~SwTextBlocks | ( | ) |
Definition at line 241 of file swblocks.cxx.
bool SwTextBlocks::BeginGetDoc | ( | sal_uInt16 | n | ) |
Definition at line 359 of file swblocks.cxx.
References ERR_TXTBLOCK_NEWFILE_ERROR, ERRCODE_NONE, m_nErr, m_pImp, and n.
Referenced by SwAutoCorrDoc::ChgAutoCorrWord(), and SwDoc::InsertGlossary().
bool SwTextBlocks::BeginPutDoc | ( | const OUString & | s, |
const OUString & | l | ||
) |
Definition at line 385 of file swblocks.cxx.
References ERR_TXTBLOCK_NEWFILE_ERROR, ERRCODE_NONE, GetAppCharClass(), m_nErr, m_pImp, and CharClass::uppercase().
Referenced by SwDOCXReader::MakeEntries(), WW8Glossary::MakeEntries(), SwEditShell::MakeGlossary(), and SwEditShell::SaveGlossaryDoc().
void SwTextBlocks::ClearDoc | ( | ) |
Definition at line 488 of file swblocks.cxx.
References m_pImp.
Referenced by SwDOCXReader::MakeEntries(), WW8Glossary::MakeEntries(), SwEditShell::MakeGlossary(), and SwEditShell::SaveGlossaryDoc().
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.
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().
void SwTextBlocks::EndGetDoc | ( | ) |
Definition at line 379 of file swblocks.cxx.
References m_pImp.
Referenced by SwAutoCorrDoc::ChgAutoCorrWord(), and SwDoc::InsertGlossary().
void SwTextBlocks::EndPutMuchBlockEntries | ( | ) |
Definition at line 563 of file swblocks.cxx.
References m_pImp.
Referenced by WW8Glossary::Load(), and SwDOCXReader::ReadGlossaries().
OUString SwTextBlocks::GetBaseURL | ( | ) | const |
Definition at line 569 of file swblocks.cxx.
References m_pImp.
Referenced by WW8Glossary::Load(), SwDOCXReader::MakeEntries(), and WW8Glossary::MakeEntries().
sal_uInt16 SwTextBlocks::GetCount | ( | ) | const |
Definition at line 256 of file swblocks.cxx.
References m_pImp.
SwDoc * SwTextBlocks::GetDoc | ( | ) |
Definition at line 481 of file swblocks.cxx.
References m_pImp.
Referenced by SwAutoCorrDoc::ChgAutoCorrWord(), SwDoc::InsertGlossary(), SwDOCXReader::MakeEntries(), WW8Glossary::MakeEntries(), SwEditShell::MakeGlossary(), and SwEditShell::SaveGlossaryDoc().
|
inline |
Definition at line 321 of file shellio.hxx.
Referenced by SwGlossaryHdl::Rename(), and SwGlossaryHdl::SetMacros().
OUString const & SwTextBlocks::GetFileName | ( | ) | const |
Definition at line 497 of file swblocks.cxx.
References m_pImp.
Referenced by WW8Glossary::MakeEntries(), SwEditShell::MakeGlossary(), and SwEditShell::SaveGlossaryDoc().
sal_uInt16 SwTextBlocks::GetIndex | ( | const OUString & | r | ) | const |
Definition at line 261 of file swblocks.cxx.
References m_pImp.
Referenced by SwAutoCorrDoc::ChgAutoCorrWord(), SwGlossaryHdl::DelGlossary(), SwGlossaryHdl::GetMacros(), SwGlossaryHdl::HasShortName(), SwDoc::InsertGlossary(), SwDOCXReader::MakeEntries(), WW8Glossary::MakeEntries(), PutDoc(), PutText(), SwGlossaryHdl::Rename(), and SwGlossaryHdl::SetMacros().
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().
OUString SwTextBlocks::GetLongName | ( | sal_uInt16 | n | ) | const |
Definition at line 278 of file swblocks.cxx.
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().
OUString SwTextBlocks::GetName | ( | ) | const |
Definition at line 245 of file swblocks.cxx.
References m_pImp.
OUString SwTextBlocks::GetShortName | ( | sal_uInt16 | n | ) | const |
Definition at line 271 of file swblocks.cxx.
Referenced by SwGlossaryHdl::GetGlossaryShortName().
bool SwTextBlocks::IsOnlyTextBlock | ( | const OUString & | rShort | ) | const |
Definition at line 525 of file swblocks.cxx.
References IsOnlyTextBlock(), and m_pImp.
bool SwTextBlocks::IsOnlyTextBlock | ( | sal_uInt16 | nIdx | ) | const |
Definition at line 507 of file swblocks.cxx.
References SwBlockName::m_aShort, SwBlockName::m_bIsOnlyText, SwBlockName::m_bIsOnlyTextFlagInit, and m_pImp.
Referenced by SwDoc::InsertGlossary(), and IsOnlyTextBlock().
bool SwTextBlocks::IsReadOnly | ( | ) | const |
Definition at line 502 of file swblocks.cxx.
References m_pImp.
Referenced by SwGlossaryHdl::IsReadOnly().
sal_uInt16 SwTextBlocks::PutDoc | ( | ) |
Definition at line 409 of file swblocks.cxx.
References GetIndex(), m_nErr, and m_pImp.
Referenced by SwDOCXReader::MakeEntries(), WW8Glossary::MakeEntries(), SwEditShell::MakeGlossary(), and SwEditShell::SaveGlossaryDoc().
sal_uInt16 SwTextBlocks::PutText | ( | const OUString & | rShort, |
const OUString & | rName, | ||
const OUString & | rText | ||
) |
Definition at line 438 of file swblocks.cxx.
References ERR_TXTBLOCK_NEWFILE_ERROR, ERRCODE_NONE, GetAppCharClass(), GetIndex(), m_nErr, m_pImp, and CharClass::uppercase().
Referenced by SwEditShell::MakeGlossary(), and SwEditShell::SaveGlossaryDoc().
void SwTextBlocks::Rename | ( | sal_uInt16 | n, |
const OUString * | s, | ||
const OUString * | l | ||
) |
Definition at line 311 of file swblocks.cxx.
References ERR_SWG_INTERNAL_ERROR, ERR_TXTBLOCK_NEWFILE_ERROR, ERRCODE_NONE, GetAppCharClass(), m_nErr, m_pImp, n, and CharClass::uppercase().
Referenced by SwGlossaryHdl::Rename().
void SwTextBlocks::SetBaseURL | ( | const OUString & | rURL | ) |
Definition at line 576 of file swblocks.cxx.
References m_pImp.
Referenced by SwDOCXReader::MakeEntries(), WW8Glossary::MakeEntries(), SwEditShell::MakeGlossary(), and SwEditShell::SaveGlossaryDoc().
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().
void SwTextBlocks::SetName | ( | const OUString & | r | ) |
Definition at line 250 of file swblocks.cxx.
References m_pImp.
Referenced by SwGlossaries::RenameGroupDoc().
bool SwTextBlocks::StartPutMuchBlockEntries | ( | ) |
Definition at line 555 of file swblocks.cxx.
References m_pImp.
Referenced by WW8Glossary::Load(), and SwDOCXReader::ReadGlossaries().
|
private |
Definition at line 311 of file shellio.hxx.
Referenced by BeginGetDoc(), BeginPutDoc(), CopyBlock(), Delete(), PutDoc(), PutText(), Rename(), and SwTextBlocks().
|
private |
Definition at line 310 of file shellio.hxx.
Referenced by BeginGetDoc(), BeginPutDoc(), ClearDoc(), CopyBlock(), Delete(), EndGetDoc(), EndPutMuchBlockEntries(), GetBaseURL(), GetCount(), GetDoc(), GetFileName(), GetIndex(), GetLongIndex(), GetLongName(), GetMacroTable(), GetName(), GetShortName(), IsOnlyTextBlock(), IsReadOnly(), PutDoc(), PutText(), Rename(), SetBaseURL(), SetMacroTable(), SetName(), StartPutMuchBlockEntries(), and SwTextBlocks().