19#ifndef INCLUDED_SW_SOURCE_CORE_INC_SWBLOCKS_HXX
20#define INCLUDED_SW_SOURCE_CORE_INC_SWBLOCKS_HXX
45 SwBlockName(
const OUString& rShort,
const OUString& rLong );
46 SwBlockName(
const OUString& rShort,
const OUString& rLong, OUString aPackageName );
82 std::unique_ptr<SwPaM>
MakePaM();
83 virtual void AddName(
const OUString&,
const OUString&,
bool bOnlyText =
false );
90 static sal_uInt16
Hash( std::u16string_view );
92 sal_uInt16
GetIndex(
const OUString& )
const;
113 virtual ErrCode PutText(
const OUString&,
const OUString&,
const OUString& ) = 0;
SwBlockName(const OUString &rShort, const OUString &rLong)
Unformatted text.
bool m_bIsOnlyTextFlagInit
Package name.
OUString m_aPackageName
Longname.
bool operator<(const SwBlockName &r) const
For sorting in the array.
bool m_bIsOnlyText
Is the Flag valid?
OUString m_aLong
Shortname.
sal_uInt16 m_nCurrentIndex
virtual ErrCode PutText(const OUString &, const OUString &, const OUString &)=0
void SetBaseURL(const OUString &rURL)
virtual void AddName(const OUString &, const OUString &, bool bOnlyText=false)
virtual ErrCode CopyBlock(SwImpBlocks &rImp, OUString &rShort, const OUString &rLong)=0
virtual ErrCode SetMacroTable(sal_uInt16 nIdx, const SvxMacroTableDtor &rMacroTable)
virtual void ClearDoc()
Delete the document's content.
const OUString & GetBaseURL() const
OUString GetLongName(sal_uInt16) const
Return shortname for index.
static sal_uInt16 Hash(std::u16string_view)
Calculate hash code (is not guaranteed to be unique)
virtual ErrCode Rename(sal_uInt16, const OUString &)=0
sal_uInt16 GetCount() const
Hashcode for Block names.
OUString GetPackageName(sal_uInt16) const
Return longname for index.
virtual bool IsOnlyTextBlock(const OUString &rShort) const
sal_uInt16 GetIndex(const OUString &) const
Get count of Text Blocks.
const OUString & GetName() const
virtual ErrCode GetMacroTable(sal_uInt16 nIdx, SvxMacroTableDtor &rMacroTable)
virtual ErrCode OpenFile(bool bReadOnly=true)=0
OUString GetShortName(sal_uInt16) const
Index for longnames.
bool IsFileChanged() const
SwImpBlocks(const OUString &)
std::unique_ptr< SwPaM > MakePaM()
Creating a PaM, that spans the whole document.
virtual ErrCode Delete(sal_uInt16)=0
sal_uInt16 GetLongIndex(std::u16string_view) const
Index for shortnames.
tools::Time m_aTimeModified
static FileType GetFileType(const OUString &)
Is the provided file a storage or doesn't it exist?
virtual ErrCode GetDoc(sal_uInt16)=0
virtual ErrCode BeginPutDoc(const OUString &, const OUString &)=0
virtual ErrCode MakeBlockList()=0
void SetName(const OUString &rName)
Return physical file name.
virtual bool PutMuchEntries(bool bOn)
const OUString & GetFileName() const
Return packagename for index.
virtual ErrCode PutDoc()=0
rtl::Reference< SwDoc > m_xDoc
virtual void CloseFile()=0
PaM is Point and Mark: a selection of the document model.