20#include <com/sun/star/beans/PropertyValues.hpp>
39#include <osl/diagnose.h>
71#include <officecfg/Office/Compatibility.hxx>
81 const OUString sTitle(
SwResId(STR_REDLINE_COMMENT));
86 case RedlineType::Insert:
87 pResId = STR_REDLINE_INSERTED;
89 case RedlineType::Delete:
90 pResId = STR_REDLINE_DELETED;
92 case RedlineType::Format:
93 case RedlineType::ParagraphFormat:
94 pResId = STR_REDLINE_FORMATTED;
96 case RedlineType::Table:
97 pResId = STR_REDLINE_TABLECHG;
99 case RedlineType::FmtColl:
100 pResId = STR_REDLINE_FMTCOLLSET;
106 return sTitle +
SwResId(pResId);
114 sal_uInt16 nSlot = rReq.
GetSlot();
122 sal_uInt16 nInsertSubType = 0;
123 sal_uInt32 nInsertFormat = 0;
172 const OUString& rMacro =
static_cast<SwMacroField*
>(pField)->GetMacro();
173 sal_Int32
nPos = rMacro.indexOf(
'.');
189 if ( pField !=
nullptr
194 bAddSetExpressionFields ) )
241 sal_uInt32 nFormat = 0;
245 sal_Int32 nCommand = 0;
252 FN_PARAM_1,
false, &pItem ))
257 FN_PARAM_3,
false, &pItem ))
260 + OUString::number(nCommand)
263 FN_PARAM_2,
false, &pItem ))
268 FN_PARAM_FIELD_CONTENT,
false ))
269 aPar2 = pContentItem->GetValue();
272 nFormat = pFormatItem->GetValue();
273 OSL_FAIL(
"Command is not yet used");
286 sal_uInt32 nFormat = 0;
288 sal_uInt16 nSubType = 0;
296 else if (pArgs->
GetItemState(FN_PARAM_4,
false, &pItem) == SfxItemState::SET)
303 nSubType = pSubtypeItem->GetValue();
305 FN_PARAM_FIELD_CONTENT,
false ))
306 aPar2 = pContentItem->GetValue();
309 nFormat = pFormatItem->GetValue();
311 FN_PARAM_3,
false, &pItem ))
315 cSeparator = sTmp[0];
317 if (pArgs->
GetItemState(FN_PARAM_5,
false, &pItem) == SfxItemState::SET)
322 if (rWrapper ==
"Footnote")
326 else if (rWrapper ==
"Endnote")
337 if(!
GetView().GetViewFrame().IsInModalMode())
358 sal_uInt16
nId = SwFieldDlgWrapper::GetChildWindowId();
372 else if (
GetView().GetPostItMgr() &&
373 GetView().GetPostItMgr()->HasActiveSidebarWin() )
386 else if (
GetView().GetPostItMgr() &&
387 GetView().GetPostItMgr()->HasActiveSidebarWin() )
412 if (
GetView().GetPostItMgr() )
437 if (
GetView().GetPostItMgr() )
450 if (pIdItem && !pIdItem->GetValue().isEmpty())
461 sText = pTextItem->GetValue();
462 pMgr->RegisterAnswerText(sText);
474 case SID_EDIT_POSTIT:
477 if (pIdItem && !pIdItem->GetValue().isEmpty())
482 sText = pTextItem->GetValue();
490 GetView().AttrChangedNotify(
nullptr);
514 if (pArgs && pArgs->
GetItemState(nSlot,
false, &pItem) == SfxItemState::SET)
520 if (nChangeId == rRedlineTable[nRedline]->
GetId())
525 OUString sCommentText;
528 sCommentText = pTextItem->
GetValue();
537 GetView().AttrChangedNotify(
nullptr);
544 bool bTravel =
false;
554 SID_ATTR_POSTIT_DATE ));
562 if (pActRed == pRedline)
569 bool bPrev = pActRed !=
nullptr;
576 if (pActRed != pRedline)
582 bool bNext = pActRed !=
nullptr;
590 bTravel |= bNext || bPrev;
600 pDlg->EnableTravel(bNext, bPrev);
608 if ( pDlg->Execute() ==
RET_OK )
610 const SfxItemSet* pOutSet = pDlg->GetOutputItemSet();
611 OUString sMsg(pOutSet->
Get(SID_ATTR_POSTIT_TEXT).GetValue());
621 GetView().AttrChangedNotify(
nullptr);
628 OUString aType, aText;
631 bool bUpdate =
false;
641 bIsUrl = pIsUrl->GetValue();
645 bUpdate = pField && ( bIsUrl !=
static_cast<bool>(pField->
GetFormat()) || pField->
GetPar2() != aType || pField->
GetPar1() != aText );
651 if ( pDlg->Execute() )
653 aType = pDlg->GetScriptType();
654 aText = pDlg->GetScriptText();
655 bIsUrl = pDlg->IsUrl();
656 bNew = pDlg->IsNew();
657 bUpdate = pDlg->IsUpdate();
728 OUString(), OUString(), nInsertFormat);
741 aFieldType = pFieldType->
GetValue();
749 aFieldCode = pFieldCode->
GetValue();
755 auto xInfo = std::make_shared<weld::GenericDialogController>(
757 "InfoReadonlyDialog");
768 static constexpr OUStringLiteral vEnSpaces =
u"\u2002\u2002\u2002\u2002\u2002";
769 OUString aFieldResult(vEnSpaces);
774 aFieldResult = pFieldResult->
GetValue();
782 OUString aWrapper = pWrapper->
GetValue();
783 if (aWrapper ==
"Footnote")
787 else if (aWrapper ==
"Endnote")
834 aFieldPam, OUString(), aFieldType, aFieldPam.
Start());
835 if (pFieldmark && !aFieldCode.isEmpty())
837 pFieldmark->GetParameters()->insert(
897 sw::mark::IFieldmark::parameter_map_t* pParameters = pFieldBM->GetParameters();
899 sal_uInt32 nStandardFormat = pFormatter->
GetStandardFormat(SvNumFormatType::DATE);
919 aFieldType = pFieldType->
GetValue();
921 OUString aFieldCommandPrefix;
923 if (pFieldCommandPrefix)
925 aFieldCommandPrefix = pFieldCommandPrefix->
GetValue();
927 uno::Sequence<beans::PropertyValues> aFields;
938 sal_Int32 nFieldIndex = 0;
941 auto pFieldmark =
dynamic_cast<sw::mark::IFieldmark*
>(*it);
943 if (pFieldmark->GetFieldname() != aFieldType)
949 if (itParam == pFieldmark->GetParameters()->end())
956 if (!
aCommand.startsWith(aFieldCommandPrefix))
961 if (aFields.getLength() <= nFieldIndex)
967 itParam->second =
aMap[
"FieldCommand"];
968 SwPaM aPaM(pFieldmark->GetMarkPos(), pFieldmark->GetOtherMarkPos());
975 OUString aFieldResult;
976 aMap[
"FieldResult"] >>= aFieldResult;
991 aFieldType = pFieldType->
GetValue();
993 OUString aFieldCommandPrefix;
995 if (pFieldCommandPrefix)
997 aFieldCommandPrefix = pFieldCommandPrefix->
GetValue();
1003 std::vector<sw::mark::IMark*> aRemovals;
1006 auto pFieldmark =
dynamic_cast<sw::mark::IFieldmark*
>(*it);
1008 if (pFieldmark->GetFieldname() != aFieldType)
1013 if (!aFieldCommandPrefix.isEmpty())
1015 auto itParam = pFieldmark->GetParameters()->find(
ODF_CODE_PARAM);
1016 if (itParam == pFieldmark->GetParameters()->end())
1023 if (!
aCommand.startsWith(aFieldCommandPrefix))
1029 aRemovals.push_back(pFieldmark);
1032 for (
const auto& pMark : aRemovals)
1051 pDlg->StartExecuteAsync([pShell, &rSh, pDlg](
int nResult) {
1054 auto rDoc = rSh.
GetDoc();
1058 rSh.SwCursorShell::Push();
1063 const bool bHeader = !pDlg->GetPageNumberPosition();
1066 const bool bIsSinglePage = rDesc.
GetFollow() != &rDesc;
1067 const size_t nMirrorPagesNeeded = rDesc.
IsFirstShared() ? 2 : 3;
1068 const OUString sBookmarkName = OUString::Concat(
"PageNumWizard_")
1069 + (bHeader ?
"HEADER" :
"FOOTER") +
"_" + rDesc.
GetName();
1078 SwPaM aDeleteOldPageNum((*ppMark)->GetMarkStart(), (*ppMark)->GetMarkEnd());
1079 rDoc->getIDocumentContentOperations().DeleteAndJoin(aDeleteOldPageNum);
1083 bool bChangePageDesc =
false;
1086 bChangePageDesc =
true;
1093 if ((bHeader && !bHeaderAlreadyOn) || (!bHeader && !bFooterAlreadyOn))
1095 bChangePageDesc =
true;
1116 if (pDlg->GetMirrorOnEvenPages() && !bHeaderAlreadyOn && !bFooterAlreadyOn
1124 const bool bCreateMirror = !bIsSinglePage && pDlg->GetMirrorOnEvenPages()
1131 bChangePageDesc =
true;
1139 if (bChangePageDesc)
1144 bool bSkipMirror =
true;
1145 size_t nEvenPage = 0;
1162 assert (nEvenPage &&
"couldn't find page number. Use a bool instead");
1166 if (bInHF && nEvenPage)
1171 bSkipMirror =
false;
1177 if (bInHF && nEvenPage)
1183 bSkipMirror =
false;
1186 assert((bInHF || nEvenPage) &&
"Impossible - why couldn't the move happen?");
1187 assert((bInHF || nEvenPage == rSh.
GetVirtPageNum()) &&
"Unexpected move");
1195 assert(bInHF &&
"shouldn't have a problem going to text when no mirroring");
1203 SwPaM aDeleteOldPageNum((*ppMark)->GetMarkStart(), (*ppMark)->GetMarkEnd());
1204 rDoc->getIDocumentContentOperations().DeleteAndJoin(aDeleteOldPageNum);
1210 if (pTextNode && !pTextNode->
GetText().isEmpty())
1222 switch (pDlg->GetPageNumberAlignment())
1245 assert(!nStartContentIndex &&
"earlier split node if not empty, but not zero?");
1252 if (pDlg->GetIncludePageTotal())
1254 rDoc->getIDocumentContentOperations().InsertString(*rSh.
GetCursor(),
" / ");
1271 if (!bSkipMirror && bCreateMirror
1274 assert(nEvenPage &&
"what? no even page and yet we got here?");
1278 SwPaM aDeleteOldPageNum((*ppMark)->GetMarkStart(), (*ppMark)->GetMarkEnd());
1279 rDoc->getIDocumentContentOperations().DeleteAndJoin(aDeleteOldPageNum);
1285 if (pTextNode && !pTextNode->
GetText().isEmpty())
1294 assert(pDlg->GetPageNumberAlignment() != 1 &&
"cannot have Center and bMirror");
1296 if (!pDlg->GetPageNumberAlignment())
1297 eAdjust = SvxAdjust::Right;
1306 if (pDlg->GetIncludePageTotal())
1308 rDoc->getIDocumentContentOperations().InsertString(*rSh.
GetCursor(),
" / ");
1310 DS_PAGE, OUString(), OUString(),
1317 aNewEvenBookmarkPaM.
SetMark();
1319 rIDMA.
makeMark(aNewEvenBookmarkPaM,
1330 pDlg->disposeOnce();
1338 OUString aFieldType;
1342 aFieldType = pFieldType->
GetValue();
1344 OUString aFieldCommandPrefix;
1346 if (pFieldCommandPrefix)
1348 aFieldCommandPrefix = pFieldCommandPrefix->
GetValue();
1350 uno::Sequence<beans::PropertyValue> aField;
1365 if (pFieldmark->GetFieldname() != aFieldType)
1370 auto itParam = pFieldmark->GetParameters()->find(
ODF_CODE_PARAM);
1371 if (itParam == pFieldmark->GetParameters()->end())
1378 if (!
aCommand.startsWith(aFieldCommandPrefix))
1386 itParam->second =
aMap[
"FieldCommand"];
1387 SwPaM aPaM(pFieldmark->GetMarkPos(), pFieldmark->GetOtherMarkPos());
1394 OUString aFieldResult;
1395 aMap[
"FieldResult"] >>= aFieldResult;
1403 OSL_FAIL(
"wrong dispatcher");
1412 const SwField* pField =
nullptr;
1413 bool bGetField =
false;
1437 if (!pPostItMgr || !pPostItMgr->
HasNotes())
1541 bool bCurField =
false;
1595 if ((!pFieldBM || pFieldBM->GetFieldname() !=
ODF_FORMTEXT)
1601 if (pFieldBM && pFieldBM->GetFieldname() ==
ODF_FORMTEXT &&
1602 (aCursorPos > pFieldBM->GetMarkStart() && aCursorPos < pFieldBM->GetMarkEnd() ))
1616 const OUString& rName = rHlnkItem.
GetName();
1617 const OUString& rURL = rHlnkItem.
GetURL();
1621 nType &= ~HLINK_HTMLMODE;
1647 const SvxMacro *pMacro = pMacroTable->
Get( SvMacroItemId::OnMouseOver );
1649 aINetFormat.
SetMacro(SvMacroItemId::OnMouseOver, *pMacro);
1650 pMacro = pMacroTable->
Get( SvMacroItemId::OnClick );
1652 aINetFormat.
SetMacro(SvMacroItemId::OnClick, *pMacro);
1653 pMacro = pMacroTable->
Get( SvMacroItemId::OnMouseOut );
1655 aINetFormat.
SetMacro(SvMacroItemId::OnMouseOut, *pMacro);
1663 for(
int i=0;
i < rReplacementText.getLength();
i++)
1665 rSh.
InsertURL( aINetFormat, rName,
false );
1669 rSh.
InsertURL( aINetFormat, rName,
true );
1706 bool bEnable =
false;
1717 rDlg.EnableTravel(bEnable,
true);
1725 rDlg.SetNote(sComment);
1751 bool bEnable =
false;
1762 rDlg.EnableTravel(
true, bEnable);
1767 rDlg.SetNote(sComment);
sal_Int32 GetValue() const
const OUString & GetValue() const
virtual bool DeleteAndJoin(SwPaM &, SwDeleteFlags flags=SwDeleteFlags::Default)=0
complete delete of a given PaM
virtual bool SplitNode(const SwPosition &rPos, bool bChkTableStart)=0
Split a node at rPos (implemented only for TextNode).
virtual bool InsertString(const SwPaM &rRg, const OUString &, const SwInsertFlags nInsertMode=SwInsertFlags::EMPTYEXPAND)=0
Insert string into existing text node at position rRg.Point().
virtual SwFieldType * GetFieldType(SwFieldIds nResId, const OUString &rName, bool bDbFieldMatching) const =0
wrapper iterator: wraps iterator of implementation while hiding MarkBase class; only IMark instances ...
Provides access to the marks of a document.
virtual const_iterator_t getFieldmarksBegin() const =0
returns a STL-like random access iterator to the begin of the sequence of fieldmarks.
virtual sw::mark::IFieldmark * makeNoTextFieldBookmark(const SwPaM &rPaM, const OUString &rName, const OUString &rType)=0
virtual sw::mark::IFieldmark * makeFieldBookmark(const SwPaM &rPaM, const OUString &rName, const OUString &rType, SwPosition const *pSepPos=nullptr)=0
virtual const_iterator_t getFieldmarksEnd() const =0
returns a STL-like random access iterator to the end of the sequence of fieldmarks.
virtual const_iterator_t getAllMarksEnd() const =0
returns a STL-like random access iterator to the end of the sequence of marks.
virtual sw::mark::IFieldmark * getInnerFieldmarkFor(const SwPosition &pos) const =0
virtual const_iterator_t findMark(const OUString &rMark) const =0
Finds a mark by name.
virtual ::sw::mark::IMark * makeMark(const SwPaM &rPaM, const OUString &rProposedName, MarkType eMark, ::sw::mark::InsertMode eMode, SwPosition const *pSepPos=nullptr)=0
Generates a new mark in the document for a certain selection.
virtual std::unique_ptr< ILazyDeleter > deleteMark(const IDocumentMarkAccess::const_iterator_t &ppMark, bool isMoveNodes)=0
Deletes a mark.
virtual const SwRedlineTable & GetRedlineTable() const =0
const OUString & getBcp47(bool bResolveSystem=true) const
void Invalidate(sal_uInt16 nId)
const T * GetItemIfSet(TypedWhichId< T > nWhich, bool bSrchInParent=true) const
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
void DisableItem(sal_uInt16 nWhich)
void InvalidateItem(sal_uInt16 nWhich)
sal_uInt16 GetSlot() const
const SfxItemSet * GetArgs() const
const T * GetArg(sal_uInt16 nSlotId) const
void AppendItem(const SfxPoolItem &)
void SetReturnValue(const SfxPoolItem &)
void Done(bool bRemove=false)
SfxItemPool & GetPool() const
virtual void Invalidate(sal_uInt16 nId=0)
const css::uno::Any & GetValue() const
void ToggleChildWindow(sal_uInt16)
bool IsInModalMode() const
SfxBindings & GetBindings()
bool HasChildWindow(sal_uInt16)
SfxChildWindow * GetChildWindow(sal_uInt16)
bool KnowsChildWindow(sal_uInt16)
weld::Window * GetFrameWeld() const
SfxViewFrame & GetViewFrame() const
virtual VclPtr< AbstractSvxPostItDialog > CreateSvxPostItDialog(weld::Widget *pParent, const SfxItemSet &rCoreSet, bool bPrevNext=false)=0
static SvxAbstractDialogFactory * Create()
virtual DialogGetRanges GetDialogGetRangesFunc()=0
const OUString & GetReplacementText() const
SvxLinkInsertMode GetInsertMode() const
const OUString & GetName() const
const OUString & GetURL() const
const OUString & GetIntName() const
const SvxMacroTableDtor * GetMacroTable() const
const OUString & GetTargetFrame() const
const SvxMacro * Get(SvMacroItemId nEvent) const
void SetNumberingType(SvxNumType nSet)
SvxNumType GetNumberingType() const
virtual VclPtr< SfxAbstractDialog > CreateSwFieldEditDlg(SwView &rVw)=0
virtual VclPtr< AbstractJavaEditDialog > CreateJavaEditDialog(weld::Window *pParent, SwWrtShell *pWrtSh)=0
static SwAbstractDialogFactory * Create()
virtual VclPtr< AbstractSwPageNumberDlg > CreateSwPageNumberDlg(weld::Window *pParent)=0
void InsertURLButton(const OUString &rURL, const OUString &rTarget, const OUString &rText)
SwWrtShell * GetShellPtr()
void Push()
store a copy of the current cursor on the cursor stack
bool IsReadOnlyAvailable() const
bool GotoHeaderText()
jump from the content to the header
bool IsMultiSelection() const
bool SetCursorInHdFt(size_t nDescNo, bool bInHeader, bool bEven=false, bool bFirst=false)
SwCursor * GetCursor(bool bMakeTableCursor=true) const
Return pointer to the current shell cursor.
bool SelectTextModel(sal_Int32 nStart, sal_Int32 nEnd)
bool CursorInsideInputField() const
SwField * GetCurField(const bool bIncludeInputFieldAtStart=false) const
void EndAction(const bool bIdleEnd=false)
static sal_Int32 StartOfInputFieldAtPos(const SwPosition &rPos)
SwContentFrame * GetCurrFrame(const bool bCalcFrame=true) const
Get current frame in which the cursor is positioned.
static SwTextField * GetTextFieldAtCursor(const SwPaM *pCursor, ::sw::GetTextAttrMode eMode)
const SwRangeRedline * SelNextRedline()
const SwRangeRedline * SelPrevRedline()
static sal_Int32 EndOfInputFieldAtPos(const SwPosition &rPos)
bool HasReadonlySel(bool isReplace=false) const
bool IsInHeaderFooter(bool *pbInHeader=nullptr) const
bool IsCursorPtAtEnd() const
bool MoveFieldType(const SwFieldType *pFieldType, const bool bNext, const SwFieldIds nResType=SwFieldIds::Unknown, const bool bAddSetExpressionFieldsToInputFields=true)
bool IsCursorInFootnote() const
bool GotoFooterText()
jump from the content to the footer
const ::sfx2::SvBaseLink & GetBaseLink() const
IDocumentContentOperations const & getIDocumentContentOperations() const
IDocumentUndoRedo & GetIDocumentUndoRedo()
IDocumentFieldsAccess const & getIDocumentFieldsAccess() const
IDocumentRedlineAccess const & getIDocumentRedlineAccess() const
IDocumentMarkAccess * getIDocumentMarkAccess()
SvNumberFormatter * GetNumberFormatter(bool bCreate=true)
bool GetCurAttr(SfxItemSet &, const bool bMergeIndentValuesOfNumRule=false) const
void StartAllAction()
For all views of this document.
void SetUndoNoResetModified()
bool SetRedlineComment(const OUString &rS)
Set comment to Redline at position.
void SetAttrItem(const SfxPoolItem &, SetAttrMode nFlags=SetAttrMode::DEFAULT, const bool bParagraphSetting=false)
SvNumberFormatter * GetNumberFormatter()
Query NumberFormatter from document.
bool InsertURL(const SwFormatINetFormat &rFormat, const OUString &rStr, bool bKeepSelection=false)
SwFieldType * GetFieldType(size_t nField, SwFieldIds nResId=SwFieldIds::Unknown) const
get field types with a ResId, if 0 get all
void UpdateOneField(SwField &)
One single field.
const SwRangeRedline * GetCurrRedline() const
sfx2::LinkManager & GetLinkManager()
void ChgPageDesc(size_t i, const SwPageDesc &)
size_t GetCurPageDesc(const bool bCalcFrame=true) const
SwFlyFrame * GetCurrFlyFrame(const bool bCalcFrame=true) const
sal_uInt16 GetVirtPageNum() const
const SwPageDesc & GetPageDesc(size_t i) const
sal_uInt32 GetDefaultFormat(SwFieldTypesEnum nTypeId, bool bIsText, SvNumberFormatter *pFormatter)
void UpdateCurField(sal_uInt32 nFormat, const OUString &rPar1, const OUString &rPar2, std::unique_ptr< SwField > _pField=nullptr)
bool InsertField(SwInsertField_Data &rData)
Instances of SwFields and those derived from it occur 0 to n times.
SwFormatField * FindFormatForPostItId(sal_uInt32 nPostItId) const
Base class of all fields.
SwFieldTypesEnum GetTypeId() const
sal_uInt32 GetFormat() const
Query parameters for dialog and for BASIC.
SwFieldType * GetTyp() const
IDocumentContentOperations & getIDocumentContentOperations()
Provides access to the document content operations interface.
SwTextNode * GetTextNode()
Inline methods from Node.hxx.
PaM is Point and Mark: a selection of the document model.
const SwPosition * GetMark() const
virtual void SetMark()
Unless this is called, the getter method of Mark will return Point.
void Normalize(bool bPointFirst=true)
Normalizes PaM, i.e.
SwContentNode * GetPointContentNode() const
bool Move(SwMoveFnCollection const &fnMove=fnMoveForward, SwGoInDoc fnGo=GoInContent)
Movement of cursor.
const SwPosition * GetPoint() const
const SwPosition * Start() const
void ChgFooterShare(bool bNew)
const OUString & GetName() const
SwFrameFormat & GetMaster()
bool IsHeaderShared() const
const SvxNumberType & GetNumType() const
void ChgHeaderShare(bool bNew)
bool IsFirstShared() const
bool IsFooterShared() const
void SetNumType(const SvxNumberType &rNew)
const SwPageDesc * GetFollow() const
void WriteUseOn(UseOnPage const eNew)
UseOnPage ReadUseOn() const
void Delete(const OUString &aAuthor)
sw::annotation::SwAnnotationWin * GetAnnotationWin(const SwPostItField *pField) const
void HideActiveSidebarWin()
void ToggleResolved(sal_uInt32 nPostItId)
void Hide(std::u16string_view rAuthor)
void ExecuteFormatAllDialog(SwView &rView)
void DeleteCommentThread(sal_uInt32 nPostItId)
void ToggleResolvedForThread(sal_uInt32 nPostItId)
void DeleteActiveSidebarWin()
SW_DLLPUBLIC bool HasActiveSidebarWin() const
const OUString & GetComment(sal_uInt16 nPos=0) const
OUString const & GetAuthorString(sal_uInt16 nPos=0) const
RedlineType GetType(sal_uInt16 nPos=0) const
const SwRedlineData & GetRedlineData(sal_uInt16 nPos=0) const
const DateTime & GetTimeStamp() const
vector_type::size_type size_type
virtual OUString GetPar1() const override
Type.
virtual OUString GetPar2() const override
Text.
SwTextNode is a paragraph in the document model.
const OUString & GetText() const
LanguageType GetLang(const sal_Int32 nBegin, const sal_Int32 nLen=0, sal_uInt16 nScript=0) const
void StateField(SfxItemSet &)
void InsertHyperlink(const SvxHyperlinkItem &rHlnkItem)
void ExecField(SfxRequest &rReq)
const SwViewOption * GetViewOptions() const
static void SetCareDialog(const std::shared_ptr< weld::Window > &rNew)
const IDocumentMarkAccess * getIDocumentMarkAccess() const
Provides access to the document bookmark interface.
IDocumentUndoRedo const & GetIDocumentUndoRedo() const
Provides access to the document undo/redo interface.
SwPostItMgr * GetPostItMgr()
Used by the UI to modify the document model.
const SwRangeRedline * GotoRedline(SwRedlineTable::size_type nArrPos, bool bSelect)
void InsertPostIt(SwFieldMgr &rFieldMgr, const SfxRequest &rReq)
Inserts a new annotation/comment at the current cursor position / selection.
bool StartInputFieldDlg(SwField *, bool bPrevButton, bool bNextButton, weld::Widget *pParentWin, FieldDialogPressedButton *pPressedButton=nullptr)
void GotoMark(const ::sw::mark::IMark *const pMark)
SelectionType GetSelectionType() const
void ExecMacro(const SvxMacro &rMacro, OUString *pRet=nullptr, SbxArray *pArgs=nullptr)
void InsertFootnote(const OUString &, bool bEndNote=false, bool bEdit=true)
bool DelRight(bool isReplaceHeuristic=false)
bool HasSelection() const
bool Pop(SwCursorShell::PopMode, ::std::optional< SwCallLink > &roLink)
const SwView & GetView() const
void UpdateText(const OUString &aText)
void ExecuteCommand(sal_uInt16 nSlot)
static bool runAsync(const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
#define FN_INSERT_REF_FIELD
#define FN_DELETE_NOTE_AUTHOR
#define FN_UPDATE_TEXT_FORMFIELDS
#define FN_HIDE_NOTE_AUTHOR
#define FN_INSERT_FLD_TIME
#define FN_INSERT_FLD_AUTHOR
#define FN_INSERT_FLD_TOPIC
#define FN_INSERT_DBFIELD
#define FN_INSERT_FLD_PGNUMBER
#define FN_GOTO_PREV_INPUTFLD
#define FN_INSERT_FIELD_CTRL
#define FN_PGNUMBER_WIZARD
#define FN_INSERT_FLD_DATE
#define FN_REDLINE_COMMENT
#define FN_HIDE_ALL_NOTES
#define FN_DELETE_ALL_NOTES
#define FN_UPDATE_SEL_FIELD
#define FN_UPDATE_TEXT_FORMFIELD
#define FN_DELETE_COMMENT
#define FN_INSERT_FIELD_DATA_ONLY
#define FN_DELETE_COMMENT_THREAD
#define FN_INSERT_FLD_PGCOUNT
#define FN_RESOLVE_NOTE_THREAD
#define FN_INSERT_DATE_FORMFIELD
#define FN_GOTO_NEXT_INPUTFLD
#define FN_PARAM_FIELD_SUBTYPE
#define FN_PARAM_FIELD_FORMAT
#define FN_FORMAT_ALL_NOTES
#define FN_DELETE_TEXT_FORMFIELDS
#define FN_INSERT_FLD_TITLE
#define FN_EXECUTE_MACROFIELD
#define FN_INSERT_CHECKBOX_FORMFIELD
#define FN_INSERT_DROPDOWN_FORMFIELD
#define FN_INSERT_TEXT_FORMFIELD
#define FN_PARAM_FIELD_TYPE
weld::Window * GetFrameWeld(const SfxFrame *pFrame)
virtual sal_uInt32 GetId() const override
void MaybeNotifyRedlineModification(SwRangeRedline &rRedline, SwDoc &rDoc)
SwFieldTypesEnum SwFieldTypeFromString(std::u16string_view rString)
SwFieldTypesEnum
List of FieldTypes at UI.
constexpr TypedWhichId< SwFormatINetFormat > RES_TXTATR_INETFMT(51)
constexpr TypedWhichId< SvxAdjustItem > RES_PARATR_ADJUST(64)
constexpr TypedWhichId< SvxULSpaceItem > RES_UL_SPACE(98)
#define LANGUAGE_HUNGARIAN
LineEnd GetSystemLineEnd()
TOOLS_DLLPUBLIC OString convertLineEnd(const OString &rIn, LineEnd eLineEnd)
#define LINK(Instance, Class, Member)
constexpr OUStringLiteral aData
SW_DLLPUBLIC void PasteHTMLToPaM(SwWrtShell &rWrtSh, SwPaM *pCursor, const OString &rData)
const SwDocInfoSubType DI_SUB_AUTHOR
const SwDocInfoSubType DI_SUBJECT
const SwDocInfoSubType DI_TITLE
const SwDocInfoSubType DI_CREATE
constexpr auto toTwips(N number, Length from)
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
HashMap_OWString_Interface aMap
constexpr OUStringLiteral ODF_FORMTEXT
constexpr OUStringLiteral ODF_FORMDATE_DATEFORMAT
constexpr OUStringLiteral ODF_CODE_PARAM
constexpr OUStringLiteral ODF_FORMCHECKBOX
#define ODF_FORMFIELD_DEFAULT_LENGTH
constexpr OUStringLiteral ODF_FORMDATE
constexpr OUStringLiteral ODF_FORMDATE_DATEFORMAT_LANGUAGE
constexpr OUStringLiteral ODF_FORMDROPDOWN
bool GoInContent(SwPaM &rPam, SwMoveFnCollection const &fnMove)
SwMoveFnCollection const & fnMoveBackward
SwMoveFnCollection const & fnMoveForward
SwPam::Move()/Find() default argument.
constexpr tools::Long constTwips_5mm
static LanguageType nLang
Marks a position in the document model.
void SetContent(sal_Int32 nContentIndex)
Set content index, only valid to call this if the position points to a SwContentNode subclass.
const SwContentNode * GetContentNode() const
sal_Int32 GetContentIndex() const
void AdjustContent(sal_Int32 nDelta)
Adjust content index, only valid to call this if the position points to a SwContentNode subclass.
OUString SwResId(TranslateId aId)
IMPL_LINK(SwTextShell, RedlineNextHdl, AbstractSvxPostItDialog &, rDlg, void)
static OUString lcl_BuildTitleWithRedline(const SwRangeRedline *pRedline)