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 (const OUString &) const |
OUString | GetShortName (sal_uInt16) const |
OUString | GetLongName (sal_uInt16) const |
bool | Delete (sal_uInt16) |
void | Rename (sal_uInt16, const OUString *, const OUString *) |
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 311 of file shellio.hxx.
SwTextBlocks::SwTextBlocks | ( | const OUString & | rFile | ) |
Definition at line 223 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 240 of file swblocks.cxx.
bool SwTextBlocks::BeginGetDoc | ( | sal_uInt16 | n | ) |
Definition at line 348 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 374 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 477 of file swblocks.cxx.
References m_pImp.
Referenced by SwDOCXReader::MakeEntries(), WW8Glossary::MakeEntries(), SwEditShell::MakeGlossary(), and SwEditShell::SaveGlossaryDoc().
bool SwTextBlocks::Delete | ( | sal_uInt16 | n | ) |
Definition at line 284 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 368 of file swblocks.cxx.
References m_pImp.
Referenced by SwAutoCorrDoc::ChgAutoCorrWord(), and SwDoc::InsertGlossary().
void SwTextBlocks::EndPutMuchBlockEntries | ( | ) |
Definition at line 552 of file swblocks.cxx.
References m_pImp.
Referenced by WW8Glossary::Load(), and SwDOCXReader::ReadGlossaries().
OUString SwTextBlocks::GetBaseURL | ( | ) | const |
Definition at line 558 of file swblocks.cxx.
References m_pImp.
Referenced by WW8Glossary::Load(), SwDOCXReader::MakeEntries(), and WW8Glossary::MakeEntries().
sal_uInt16 SwTextBlocks::GetCount | ( | ) | const |
Definition at line 255 of file swblocks.cxx.
References m_pImp.
SwDoc * SwTextBlocks::GetDoc | ( | ) |
Definition at line 470 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 324 of file shellio.hxx.
Referenced by SwGlossaryHdl::Rename(), and SwGlossaryHdl::SetMacros().
OUString const & SwTextBlocks::GetFileName | ( | ) | const |
Definition at line 486 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 260 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 | ( | const OUString & | r | ) | const |
Definition at line 265 of file swblocks.cxx.
References m_pImp.
Referenced by SwGlossaryHdl::GetGlossaryShortName(), and SwGlossaryHdl::Rename().
OUString SwTextBlocks::GetLongName | ( | sal_uInt16 | n | ) | const |
Definition at line 277 of file swblocks.cxx.
bool SwTextBlocks::GetMacroTable | ( | sal_uInt16 | nIdx, |
SvxMacroTableDtor & | rMacroTable | ||
) |
Definition at line 528 of file swblocks.cxx.
References ERRCODE_NONE, and m_pImp.
Referenced by SwGlossaryHdl::GetMacros().
OUString SwTextBlocks::GetName | ( | ) | const |
Definition at line 244 of file swblocks.cxx.
References m_pImp.
OUString SwTextBlocks::GetShortName | ( | sal_uInt16 | n | ) | const |
Definition at line 270 of file swblocks.cxx.
Referenced by SwGlossaryHdl::GetGlossaryShortName().
bool SwTextBlocks::IsOnlyTextBlock | ( | const OUString & | rShort | ) | const |
Definition at line 514 of file swblocks.cxx.
References IsOnlyTextBlock(), and m_pImp.
bool SwTextBlocks::IsOnlyTextBlock | ( | sal_uInt16 | nIdx | ) | const |
Definition at line 496 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 491 of file swblocks.cxx.
References m_pImp.
Referenced by SwGlossaryHdl::IsReadOnly().
sal_uInt16 SwTextBlocks::PutDoc | ( | ) |
Definition at line 398 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 427 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 310 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 565 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 536 of file swblocks.cxx.
References ERRCODE_NONE, and m_pImp.
Referenced by SwGlossaryHdl::SetMacros().
void SwTextBlocks::SetName | ( | const OUString & | r | ) |
Definition at line 249 of file swblocks.cxx.
References m_pImp.
Referenced by SwGlossaries::RenameGroupDoc().
bool SwTextBlocks::StartPutMuchBlockEntries | ( | ) |
Definition at line 544 of file swblocks.cxx.
References m_pImp.
Referenced by WW8Glossary::Load(), and SwDOCXReader::ReadGlossaries().
|
private |
Definition at line 314 of file shellio.hxx.
Referenced by BeginGetDoc(), BeginPutDoc(), Delete(), PutDoc(), PutText(), Rename(), and SwTextBlocks().
|
private |
Definition at line 313 of file shellio.hxx.
Referenced by BeginGetDoc(), BeginPutDoc(), ClearDoc(), Delete(), EndGetDoc(), EndPutMuchBlockEntries(), GetBaseURL(), GetCount(), GetDoc(), GetFileName(), GetIndex(), GetLongIndex(), GetLongName(), GetMacroTable(), GetName(), GetShortName(), IsOnlyTextBlock(), IsReadOnly(), PutDoc(), PutText(), Rename(), SetBaseURL(), SetMacroTable(), SetName(), StartPutMuchBlockEntries(), and SwTextBlocks().