24#include <rtl/ustring.hxx>
71 : mpImpl(std::nullopt) {}
73 : mpImpl(other.mpImpl, std::nullopt) {}
99 bool IsEffectivelyVertical()
const;
100 bool GetVertical()
const;
101 bool IsTopToBottom()
const;
102 void SetVertical(
bool bNew);
107 sal_Int32
Count()
const;
108 sal_Int16 GetDepth(sal_Int32 nPara)
const;
110 const ParagraphData& GetParagraphData(sal_Int32 nIndex)
const;
113 void ClearPortionInfo();
116 bool ChangeStyleSheets(std::u16string_view rOldName,
SfxStyleFamily eOldFamily,
118 void ChangeStyleSheetName(
SfxStyleFamily eFamily, std::u16string_view rOldName,
119 const OUString& rNewName);
120 void SetStyleSheets(sal_uInt16 nLevel,
const OUString& rNewName,
136 optional(std::nullopt_t) noexcept : maParaObject(std::nullopt) {}
138 maParaObject(other.maParaObject,
std::nullopt) {}
140 maParaObject(std::move(other.maParaObject)) {}
142 maParaObject(std::move(para)) {}
144 maParaObject(para) {}
145 template<
class... Args >
146 explicit optional( std::in_place_t, Args&&... args ) :
151 maParaObject = other.maParaObject;
156 maParaObject = std::move(other.maParaObject);
159 template<
class... Args >
165 bool has_value() const noexcept {
return !maParaObject.mpImpl.empty(); }
166 explicit operator bool() const noexcept {
return !maParaObject.mpImpl.empty(); }
167 void reset() { maParaObject.mpImpl.set_empty(); }
187 return &maParaObject;
192 return &maParaObject;
197 if (maParaObject.mpImpl.empty())
198 throw std::logic_error(
"empty std::optional<OutlinerParaObject>");
OutlinerParaObject(const OutlinerParaObject &other, std::nullopt_t) noexcept
::o3tl::cow_wrapper< OutlinerParaObjData > mpImpl
OutlinerParaObject(std::nullopt_t) noexcept
optional(std::in_place_t, Args &&... args)
bool has_value() const noexcept
void emplace(Args &&... args)
const OutlinerParaObject & operator*() const
optional(const OutlinerParaObject ¶) noexcept
optional(const optional &other)
optional(std::nullopt_t) noexcept
optional(OutlinerParaObject &¶) noexcept
optional(optional &&other) noexcept
OutlinerParaObject maParaObject
optional & operator=(optional const &other)
OutlinerParaObject & operator*()
const OutlinerParaObject * operator->() const
void throwIfEmpty() const
OutlinerParaObject & value()
OutlinerParaObject * operator->()
optional & operator=(optional &&other) noexcept
bool operator==(const EditLine &r1, const EditLine &r2)
#define EDITENG_DLLPUBLIC
struct _xmlTextWriter * xmlTextWriterPtr
::std::vector< ParagraphData > ParagraphDataVector
This is the guts of OutlinerParaObject, refcounted and shared among multiple instances of OutlinerPar...
OutlinerParaObjData(OutlinerParaObjData &&r)=default
ParagraphDataVector maParagraphDataVector
std::unique_ptr< EditTextObject > mpEditTextObject
OutlinerParaObjData & operator=(const OutlinerParaObjData &rCandidate)=delete