29#include <com/sun/star/text/XTextContent.hpp>
31#include <rtl/ustring.hxx>
32#include <osl/diagnose.h>
47 :
virtual public IMark
57 OSL_PRECOND(
IsExpanded(),
"<SwPosition::GetOtherMarkPos(..)> - I have no other Pos set." );
159 ,
public ::sfx2::Metadatable
164 const OUString& rName);
183 void Hide(
bool rHide)
override;
192 css::uno::Reference< css::rdf::XMetadatable >
MakeUnoObject()
override;
202 :
virtual public IFieldmark
304 OUString
GetContent(sal_Int32* pIndex)
const override;
306 void AddContent(
const OUString& rText, sal_Int32* pIndex =
nullptr)
override;
307 void DelContent(sal_Int32 nDelIndex = -1)
override;
308 void ReplaceContent(
const OUString* pText, sal_Int32* pIndex)
override;
Window class for the Writer edit area, this is the one handling mouse and keyboard events and doing t...
PaM is Point and Mark: a selection of the document model.
Of course Writer needs its own rectangles.
UNO API wrapper around an internal sw::mark::IMark.
void SetHideCondition(const OUString &rHideCondition) override
css::uno::Reference< css::rdf::XMetadatable > MakeUnoObject() override
void SetShortName(const OUString &rShortName) override
const OUString & GetHideCondition() const override
bool IsHidden() const override
auto InvalidateFrames() -> void override
bool IsInClipboard() const override
void DeregisterFromDoc(SwDoc &io_rDoc) override
bool IsInUndo() const override
void Hide(bool rHide) override
OUString m_sHideCondition
void sendLOKDeleteCallback()
const OUString & GetShortName() const override
::sfx2::IXmlIdRegistry & GetRegistry() override
Bookmark(const SwPaM &rPaM, const vcl::KeyCode &rCode, const OUString &rName)
bool IsInContent() const override
const vcl::KeyCode & GetKeyCode() const override
void SetKeyCode(const vcl::KeyCode &rCode) override
void InitDoc(SwDoc &io_Doc, sw::mark::InsertMode eMode, SwPosition const *pSepPos) override
Fieldmark representing a checkbox form field.
bool IsChecked() const override
void SetChecked(bool checked) override
void ReplaceContent(const OUString &sNewContent) override
OUString GetContent() const override
CheckboxFieldmark(const SwPaM &rPaM, const OUString &rName)
Fieldmark representing a date form field.
void SetPortionPaintAreaStart(const SwRect &rPortionPaintArea)
void InvalidateCurrentDateParam()
std::pair< bool, double > ParseCurrentDateParam() const
std::pair< bool, double > GetCurrentDate() const override
void InitDoc(SwDoc &io_rDoc, sw::mark::InsertMode eMode, SwPosition const *pSepPos) override
~DateFieldmark() override
void SetCurrentDate(double fDate) override
DateFieldmark(const SwPaM &rPaM)
SvNumberFormatter * m_pNumberFormatter
void ReleaseDoc(SwDoc &rDoc) override
OUString GetDateInStandardDateFormat(double fDate) const override
OUString GetContent() const override
void ReplaceContent(const OUString &sNewContent) override
void ShowButton(SwEditWin *pEditWin) override
void SetPortionPaintAreaEnd(const SwRect &rPortionPaintArea)
OUString GetDateInCurrentDateFormat(double fDate) const
sw::DocumentContentOperationsManager * m_pDocumentContentOperationsManager
const SwServerObject * GetRefObject() const
SwServerObject * GetRefObject()
void SetRefObject(SwServerObject *pObj)
DdeBookmark(const SwPaM &rPaM)
tools::SvRef< SwServerObject > m_aRefObj
virtual void DeregisterFromDoc(SwDoc &rDoc)
Fieldmark representing a drop-down form field.
void SendLOKShowMessage(const SfxViewShell *pViewShell)
SwRect m_aPortionPaintArea
void DelContent(sal_Int32 nDelIndex=-1) override
Remove everything if the given index is negative, else remove the given index (if valid).
void ShowButton(SwEditWin *pEditWin) override
void AddContent(const OUString &rText, sal_Int32 *pIndex=nullptr) override
AddContent : INSERTS a new choice.
void RemoveButton() override
~DropDownFieldmark() override
DropDownFieldmark(const SwPaM &rPaM, const OUString &rName)
void SetPortionPaintArea(const SwRect &rPortionPaintArea)
OUString GetContent() const override
void ReplaceContent(const OUString *pText, sal_Int32 *pIndex) override
ReplaceContent : changes the list result index or renames the existing choices.
static void SendLOKHideMessage(const SfxViewShell *pViewShell)
void dumpAsXml(xmlTextWriterPtr pWriter) const override
void SetFieldHelptext(const OUString &aFieldHelptext) override
OUString GetFieldHelptext() const override
OUString m_aFieldHelptext
void Invalidate() override
IFieldmark::parameter_map_t m_vParams
virtual void ReleaseDoc(SwDoc &)=0
void SetMarkStartPos(const SwPosition &rNewStartPos)
Fieldmark(const SwPaM &rPaM)
const IFieldmark::parameter_map_t * GetParameters() const override
void SetFieldname(const OUString &aFieldname) override
OUString ToString() const override
IFieldmark::parameter_map_t * GetParameters() override
OUString GetFieldname() const override
void SwClientNotify(const SwModify &, const SfxHint &) override
const unotools::WeakReference< SwXBookmark > & GetXBookmark() const
virtual void SetOtherMarkPos(const SwPosition &rNewPos)
const OUString & GetName() const override
std::optional< SwPosition > m_oPos1
OUString ToString() const override
void SetXBookmark(rtl::Reference< SwXBookmark > const &xBkmk)
void dumpAsXml(xmlTextWriterPtr pWriter) const override
std::optional< SwPosition > m_oPos2
SwPosition & GetMarkEnd() const override
unotools::WeakReference< SwXBookmark > m_wXBookmark
virtual auto InvalidateFrames() -> void
virtual void InitDoc(SwDoc &, sw::mark::InsertMode, SwPosition const *)
bool IsCoveringPosition(const SwPosition &rPos) const override
bool IsExpanded() const override
virtual void SetMarkPos(const SwPosition &rNewPos)
virtual void ClearOtherMarkPos()
MarkBase(const SwPaM &rPaM, OUString aName)
void SetName(const OUString &rName)
SwPosition & GetMarkPos() const override
SwPosition & GetMarkStart() const override
SwPosition & GetOtherMarkPos() const override
static OUString GenerateNewName(std::u16string_view rPrefix)
NavigatorReminder(const SwPaM &rPaM)
NonTextFieldmark(const SwPaM &rPaM)
void ReleaseDoc(SwDoc &rDoc) override
void InitDoc(SwDoc &io_rDoc, sw::mark::InsertMode eMode, SwPosition const *pSepPos) override
void InitDoc(SwDoc &io_rDoc, sw::mark::InsertMode eMode, SwPosition const *pSepPos) override
void ReplaceContent(const OUString &sNewContent) override
TextFieldmark(const SwPaM &rPaM, const OUString &rName)
sw::DocumentContentOperationsManager * m_pDocumentContentOperationsManager
void ReleaseDoc(SwDoc &rDoc) override
OUString GetContent() const override
UnoMark(const SwPaM &rPaM)
struct _xmlTextWriter * xmlTextWriterPtr
bool IsFieldmarkOverlap(SwPaM const &rPaM)
check if rPaM is valid range of new fieldmark
SwPosition FindFieldSep(IFieldmark const &rMark)
return position of the CH_TXT_ATR_FIELDSEP for rMark
Marks a position in the document model.