30 constexpr OUStringLiteral CrossRefNumItemBookmark_NamePrefix =
u"__RefNumPara__";
37 const OUString& rName,
38 std::u16string_view rPrefix)
44 &&
"<CrossRefBookmark::CrossRefBookmark(..)>"
45 "- creation of cross-reference bookmark with an illegal PaM that does not expand over exactly one whole paragraph.");
54 "<sw::mark::CrossRefBookmark::SetMarkPos(..)>"
55 " - new bookmark position for cross-reference bookmark doesn't mark text node");
57 "<sw::mark::CrossRefBookmark::SetMarkPos(..)>"
58 " - new bookmark position for cross-reference bookmark doesn't mark start of text node");
65 "<sw::mark::CrossRefBookmark::GetOtherMarkPos(..)>"
66 " - this should never be called!");
67 for (;;) { std::abort(); }
72 const OUString& rName)
83 const OUString& rName)
89 return rName.match(CrossRefNumItemBookmark_NamePrefix);
Marks a position in the document model.
virtual SwPosition & GetOtherMarkPos() const override
CrossRefHeadingBookmark(const SwPaM &rPaM, const vcl::KeyCode &rCode, const OUString &rName)
Provides access to the marks of a document.
CrossRefNumItemBookmark(const SwPaM &rPaM, const vcl::KeyCode &rCode, const OUString &rName)
CrossRefBookmark(const SwPaM &rPaM, const vcl::KeyCode &rCode, const OUString &rName, std::u16string_view rPrefix)
static bool IsLegalName(const OUString &rName)
static SW_DLLPUBLIC OUString GetCrossRefHeadingBookmarkNamePrefix()
static SW_DLLPUBLIC bool IsLegalPaMForCrossRefHeadingBookmark(const SwPaM &rPaM)
std::unique_ptr< SwPosition > m_pPos2
const BorderLinePrimitive2D *pCandidateB assert(pCandidateA)
PaM is Point and Mark: a selection of the document model.
static OUString GenerateNewName(std::u16string_view rPrefix)
sal_Int32 GetIndex() const
virtual void SetMarkPos(const SwPosition &rNewPos)
static bool IsLegalName(const OUString &rName)
virtual void SetMarkPos(const SwPosition &rNewPos) override
SwTextNode * GetTextNode()
Inline methods from Node.hxx.