22#include <rtl/ustring.hxx>
29#include <com/sun/star/container/XIndexReplace.hpp>
62 const OUString& sListStyleName,
63 const OUString& sContinueListId,
64 const OUString& sListStyleDefaultListId = OUString() );
68 const OUString& sListId )
const;
70 const OUString& sListId )
const;
81 const OUString& sContinuingListId );
87 const OUString& sListStyleName );
95 css::uno::Reference< css::container::XIndexReplace>
97 SvXMLImport & i_rImport,
98 const OUString& i_ListId,
99 sal_Int16 & io_rLevel,
const OUString& i_StyleName);
103 const sal_uInt16 i_Level,
104 std::u16string_view i_StyleName);
115 static css::uno::Reference< css::container::XIndexReplace>
MakeNumRule(
116 SvXMLImport & i_rImport,
117 const css::uno::Reference< css::container::XIndexReplace>& i_xNumRule,
118 std::u16string_view i_ParentStyleName,
119 const OUString& i_StyleName,
120 sal_Int16 & io_rLevel,
121 bool* o_pRestartNumbering =
nullptr,
122 bool* io_pSetDefaults =
nullptr);
140 typedef ::std::map< OUString,
162 typedef ::std::vector< ::std::pair< OUString, OUString > >
168 typedef ::std::vector< ::std::pair< OUString, OUString > >
174 typedef ::std::vector<
void PopListContext()
pop the list context stack
OUString msListStyleOfLastProcessedList
bool EqualsToTopListStyleOnStack(std::u16string_view sListId) const
std::unique_ptr< tMapForLists > mpProcessedLists
::std::map< OUString, OUString > tMapForContinuingLists
void StoreLastContinuingList(const OUString &sListId, const OUString &sContinuingListId)
::std::vector< ::std::pair< OUString, OUString > > LastNumberedParagraphs_t
to connect numbered-paragraphs that have no list-id attribute: vector of pair of style-name and list-...
XMLTextListsHelper & operator=(const XMLTextListsHelper &)=delete
const OUString & GetLastProcessedListId() const
std::unique_ptr< std::map< OUString, OUString > > mpStyleNameLastListIds
void SetListItem(XMLTextListItemContext *pListItem)
set list item on top of the list context stack
XMLTextListsHelper(const XMLTextListsHelper &)=delete
::std::vector< ::std::pair< OUString, css::uno::Reference< css::container::XIndexReplace > > > NumParaList_t
numbered-paragraphs
void KeepListAsProcessed(const OUString &sListId, const OUString &sListStyleName, const OUString &sContinueListId, const OUString &sListStyleDefaultListId=OUString())
OUString GetNumberedParagraphListId(const sal_uInt16 i_Level, std::u16string_view i_StyleName)
get ID of the last numbered-paragraph iff it has given style-name
void PushListContext(XMLTextListBlockContext *i_pListBlock)
list stack for importing:
OUString GenerateNewListId() const
std::unique_ptr< tMapForLists > mpMapListIdToListStyleDefaultListId
::std::vector< ::std::pair< OUString, OUString > > tStackForLists
static css::uno::Reference< css::container::XIndexReplace > MakeNumRule(SvXMLImport &i_rImport, const css::uno::Reference< css::container::XIndexReplace > &i_xNumRule, std::u16string_view i_ParentStyleName, const OUString &i_StyleName, sal_Int16 &io_rLevel, bool *o_pRestartNumbering=nullptr, bool *io_pSetDefaults=nullptr)
Creates a NumRule from given style-name.
std::unique_ptr< tMapForContinuingLists > mpContinuingLists
OUString GetListIdForListBlock(XMLTextListBlockContext const &rListBlock)
OUString msLastProcessedListId
::std::map< OUString, NumParaList_t > mNPLists
OUString GetListStyleOfProcessedList(const OUString &sListId) const
void ListContextTop(XMLTextListBlockContext *&o_pListBlockContext, XMLTextListItemContext *&o_pListItemContext, XMLNumberedParaContext *&o_pNumberedParagraphContext)
peek at the top of the list context stack
std::stack< ListStackFrame_t > mListStack
std::tuple< SvXMLImportContextRef, SvXMLImportContextRef, SvXMLImportContextRef > ListStackFrame_t
list context: list, list-item, numbered-paragraph XMLTextListBlockContext, XMLTextListItemContext,...
bool IsListProcessed(const OUString &sListId) const
std::unique_ptr< tStackForLists > mpListStack
LastNumberedParagraphs_t mLastNumberedParagraphs
OUString GetContinueListIdOfProcessedList(const OUString &sListId) const
void PushListOnStack(const OUString &sListId, const OUString &sListStyleName)
const OUString & GetListStyleOfLastProcessedList() const
OUString GetLastContinuingListId(const OUString &sListId) const
css::uno::Reference< css::container::XIndexReplace > EnsureNumberedParagraph(SvXMLImport &i_rImport, const OUString &i_ListId, sal_Int16 &io_rLevel, const OUString &i_StyleName)
for importing numbered-paragraph note that the ID namespace for numbered-paragraph and regular list i...
::std::map< OUString, ::std::pair< OUString, OUString > > tMapForLists
OUString GetLastIdOfStyleName(const OUString &sListStyleName) const
Looks up the last list id of a given list style, by name.
rtl::Reference< SvXMLImportContext > SvXMLImportContextRef