31 constexpr OUStringLiteral CrossRefNumItemBookmark_NamePrefix =
u"__RefNumPara__";
38 const OUString& rName,
39 std::u16string_view rPrefix)
45 &&
"<CrossRefBookmark::CrossRefBookmark(..)>"
46 "- creation of cross-reference bookmark with an illegal PaM that does not expand over exactly one whole paragraph.");
55 "<sw::mark::CrossRefBookmark::SetMarkPos(..)>"
56 " - new bookmark position for cross-reference bookmark doesn't mark text node");
58 "<sw::mark::CrossRefBookmark::SetMarkPos(..)>"
59 " - new bookmark position for cross-reference bookmark doesn't mark start of text node");
66 "<sw::mark::CrossRefBookmark::GetOtherMarkPos(..)>"
67 " - this should never be called!");
68 for (;;) { std::abort(); }
73 const OUString& rName)
84 const OUString& rName)
Provides access to the marks of a document.
static SW_DLLPUBLIC OUString GetCrossRefHeadingBookmarkNamePrefix()
static SW_DLLPUBLIC bool IsLegalPaMForCrossRefHeadingBookmark(const SwPaM &rPaM)
SwTextNode * GetTextNode()
Inline methods from Node.hxx.
PaM is Point and Mark: a selection of the document model.
CrossRefBookmark(const SwPaM &rPaM, const vcl::KeyCode &rCode, const OUString &rName, std::u16string_view rPrefix)
virtual void SetMarkPos(const SwPosition &rNewPos) override
virtual SwPosition & GetOtherMarkPos() const override
static bool IsLegalName(std::u16string_view rName)
CrossRefHeadingBookmark(const SwPaM &rPaM, const vcl::KeyCode &rCode, const OUString &rName)
CrossRefNumItemBookmark(const SwPaM &rPaM, const vcl::KeyCode &rCode, const OUString &rName)
static bool IsLegalName(std::u16string_view rName)
std::optional< SwPosition > m_oPos2
virtual void SetMarkPos(const SwPosition &rNewPos)
static OUString GenerateNewName(std::u16string_view rPrefix)
constexpr bool starts_with(std::basic_string_view< charT, traits > sv, std::basic_string_view< charT, traits > x) noexcept
Marks a position in the document model.
sal_Int32 GetContentIndex() const