LibreOffice Module sw (master) 1
AnnotationWin.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#include <config_wasm_strip.h>
21
22#include <AnnotationWin.hxx>
23
24#include <PostItMgr.hxx>
25
26#include <strings.hrc>
27
28#include <uiobject.hxx>
29
30#include <vcl/svapp.hxx>
31#include <vcl/uitest/logger.hxx>
33
34#include <svl/undo.hxx>
38#include <osl/diagnose.h>
39
40#include <editeng/eeitem.hxx>
41#include <editeng/postitem.hxx>
42#include <editeng/fhgtitem.hxx>
43#include <editeng/langitem.hxx>
44
45#include <editeng/editview.hxx>
46#include <editeng/outliner.hxx>
47#include <editeng/editeng.hxx>
48#include <editeng/editobj.hxx>
49#include <editeng/outlobj.hxx>
50
51#include <comphelper/lok.hxx>
52#include <docufld.hxx>
53#include <txtfld.hxx>
54#include <ndtxt.hxx>
55#include <view.hxx>
56#include <viewopt.hxx>
57#include <wrtsh.hxx>
58#include <docsh.hxx>
59#include <doc.hxx>
60#include <IDocumentUndoRedo.hxx>
61#include <SwUndoField.hxx>
62#include <edtwin.hxx>
65#include "OverlayRanges.hxx"
66#include "SidebarTxtControl.hxx"
67#include "SidebarWinAcc.hxx"
68
69#include <memory>
70
71namespace{
72
73void collectUIInformation( const OUString& aevent , const OUString& aID )
74{
75 EventDescription aDescription;
76 aDescription.aID = aID;
77 aDescription.aParameters = {{"" , ""}};
78 aDescription.aAction = aevent;
79 aDescription.aParent = "MainWindow";
80 aDescription.aKeyWord = "SwEditWinUIObject";
81 UITestLogger::getInstance().logEvent(aDescription);
82}
83
84}
85
86namespace sw::annotation {
87
88// see AnnotationContents in sd for something similar
90 SwPostItMgr& aMgr,
91 SwSidebarItem& rSidebarItem,
92 SwFormatField* aField )
93 : InterimItemWindow(&rEditWin, "modules/swriter/ui/annotation.ui", "Annotation")
94 , mrMgr(aMgr)
95 , mrView(rEditWin.GetView())
96 , mnDeleteEventId(nullptr)
97 , meSidebarPosition(sw::sidebarwindows::SidebarPosition::NONE)
98 , mPageBorder(0)
99 , mbAnchorRectChanged(false)
100 , mbResolvedStateUpdated(false)
101 , mbMouseOver(false)
102 , mLayoutStatus(SwPostItHelper::INVISIBLE)
103 , mbReadonly(false)
104 , mbIsFollow(false)
105 , mrSidebarItem(rSidebarItem)
106 , mpAnchorFrame(rSidebarItem.maLayoutInfo.mpAnchorFrame)
107 , mpFormatField(aField)
108 , mpField( static_cast<SwPostItField*>(aField->GetField()))
109{
110 set_id("Comment"+OUString::number(mpField->GetPostItId()));
111
112 m_xContainer->connect_mouse_move(LINK(this, SwAnnotationWin, MouseMoveHdl));
113
115 if ( mpShadow )
116 {
117 mpShadow->setVisible(false);
118 }
119
120#if !ENABLE_WASM_STRIP_ACCESSIBILITY
123 *this );
124#endif
125
127 // When double-buffering, allow parents to paint on our area. That's
128 // necessary when parents paint the complete buffer.
129 SetParentClipMode(ParentClipMode::NoClip);
130}
131
133{
134 disposeOnce();
135}
136
138{
139#if !ENABLE_WASM_STRIP_ACCESSIBILITY
141 *this );
142#endif
143 Disable();
144
146 mxSidebarTextControl.reset();
147
148 mxMetadataAuthor.reset();
149 mxMetadataResolved.reset();
150 mxMetadataDate.reset();
151 mxVScrollbar.reset();
152
153 mpAnchor.reset();
154 mpShadow.reset();
155
156 mpTextRangeOverlay.reset();
157
158 mxMenuButton.reset();
159
160 if (mnDeleteEventId)
162
163 mpOutliner.reset();
164 mpOutlinerView.reset();
165
167}
168
170{
171 //If the cursor was visible, then make it visible again after
172 //changing text, e.g. fdo#33599
174 bool bCursorVisible = pCursor && pCursor->IsVisible();
175
176 //If the new text is the same as the old text, keep the same insertion
177 //point .e.g. fdo#33599
178 mpField = static_cast<SwPostItField*>(mpFormatField->GetField());
179 OUString sNewText = mpField->GetPar2();
180 bool bTextUnchanged = sNewText == mpOutliner->GetEditEngine().GetText();
181 ESelection aOrigSelection(GetOutlinerView()->GetEditView().GetSelection());
182
183 // get text from SwPostItField and insert into our textview
184 mpOutliner->SetModifyHdl( Link<LinkParamNone*,void>() );
185 mpOutliner->EnableUndo( false );
186 if( mpField->GetTextObject() )
187 mpOutliner->SetText( *mpField->GetTextObject() );
188 else
189 {
190 mpOutliner->Clear();
192 GetOutlinerView()->InsertText(sNewText);
193 }
194
195 mpOutliner->ClearModifyFlag();
196 mpOutliner->GetUndoManager().Clear();
197 mpOutliner->EnableUndo( true );
198 mpOutliner->SetModifyHdl( LINK( this, SwAnnotationWin, ModifyHdl ) );
199 if (bTextUnchanged)
200 GetOutlinerView()->GetEditView().SetSelection(aOrigSelection);
201 if (bCursorVisible)
203 Invalidate();
204}
205
207{
208 bool oldState = IsResolved();
209 static_cast<SwPostItField*>(mpFormatField->GetField())->SetResolved(resolved);
212
213 mpTextRangeOverlay.reset();
214
215 if(IsResolved())
216 mxMetadataResolved->show();
217 else
218 mxMetadataResolved->hide();
219
220 if(IsResolved() != oldState)
222 UpdateData();
223 Invalidate();
224 collectUIInformation("SETRESOLVED",get_id());
225}
226
228{
230}
231
233{
237}
238
240{
241 // Go to the top and delete each comment one by one
242 SwAnnotationWin *current, *topNote;
243 current = topNote = GetTopReplyNote();
245
246 while(next && next->GetTopReplyNote() == topNote)
247 {
248 current->mnDeleteEventId = Application::PostUserEvent( LINK( current, SwAnnotationWin, DeleteHdl), nullptr, true );
249 current = next;
250 next = mrMgr.GetNextPostIt(KEY_PAGEDOWN, current);
251 }
252 current->mnDeleteEventId = Application::PostUserEvent( LINK( current, SwAnnotationWin, DeleteHdl), nullptr, true );
253}
254
256{
257 return static_cast<SwPostItField*>(mpFormatField->GetField())->GetResolved();
258}
259
261{
263 // then iterate downwards checking resolved status
264 SwAnnotationWin *pTopNote, *TopNote;
265 pTopNote = TopNote = GetTopReplyNote();
266 if (!pTopNote->IsResolved())
267 return false;
268
269 SwAnnotationWin* pSidebarWin = mrMgr.GetNextPostIt(KEY_PAGEDOWN, pTopNote);
270
271 while (pSidebarWin && pSidebarWin->GetTopReplyNote() == TopNote)
272 {
273 pTopNote = pSidebarWin;
274 if (!pTopNote->IsResolved())
275 return false;
276 pSidebarWin = mrMgr.GetNextPostIt(KEY_PAGEDOWN, pSidebarWin);
277 }
278 return true;
279}
280
282{
283 if ( mpOutliner->IsModified() || mbResolvedStateUpdated )
284 {
285 IDocumentUndoRedo & rUndoRedo(
287 std::unique_ptr<SwField> pOldField;
288 if (rUndoRedo.DoesUndo())
289 {
290 pOldField = mpField->Copy();
291 }
292 mpField->SetPar2(mpOutliner->GetEditEngine().GetText());
293 mpField->SetTextObject(mpOutliner->CreateParaObject());
294 if (rUndoRedo.DoesUndo())
295 {
296 SwTextField *const pTextField = mpFormatField->GetTextField();
297 SwPosition aPosition( pTextField->GetTextNode(), pTextField->GetStart() );
298 rUndoRedo.AppendUndo(
299 std::make_unique<SwUndoFieldFromDoc>(aPosition, *pOldField, *mpField, nullptr, true));
300 }
301 // so we get a new layout of notes (anchor position is still the same and we would otherwise not get one)
303 // #i98686# if we have several views, all notes should update their text
306 else
309 }
310 mpOutliner->ClearModifyFlag();
311 mpOutliner->GetUndoManager().Clear();
313}
314
316{
317 collectUIInformation("DELETE",get_id());
319 return;
320
321 if ( mrMgr.GetActiveSidebarWin() == this)
322 {
323 mrMgr.SetActiveSidebarWin(nullptr);
324 // if the note is empty, the previous line will send a delete event, but we are already there
325 if (mnDeleteEventId)
326 {
328 mnDeleteEventId = nullptr;
329 }
330 }
331 // we delete the field directly, the Mgr cleans up the PostIt by listening
335}
336
338{
340}
341
343{
344 // if this is an answer, do not skip over all following ones, but insert directly behind the current one
345 // but when just leaving a note, skip all following ones as well to continue typing
346 return mrMgr.IsAnswer()
347 ? 1
348 : 1 + CountFollowing();
349}
350
351// returns a non-zero postit parent id, if exists, otherwise 0 for root comments
353{
354 SwTextField* pTextField = mpFormatField->GetTextField();
355 SwPosition aPosition( pTextField->GetTextNode(), pTextField->GetStart() );
356 SwTextAttr * const pTextAttr =
357 pTextField->GetTextNode().GetTextAttrForCharAt(
358 aPosition.GetContentIndex() - 1,
360 const SwField* pField = pTextAttr ? pTextAttr->GetFormatField().GetField() : nullptr;
361 sal_uInt32 nParentId = 0;
362 if (pField && pField->Which() == SwFieldIds::Postit)
363 {
364 const SwPostItField* pPostItField = static_cast<const SwPostItField*>(pField);
365 nParentId = pPostItField->GetPostItId();
366 }
367 return nParentId;
368}
369
370// counts how many SwPostItField we have right after the current one
372{
373 sal_uInt32 aCount = 1; // we start with 1, so we have to subtract one at the end again
374 SwTextField* pTextField = mpFormatField->GetTextField();
375 SwPosition aPosition( pTextField->GetTextNode(), pTextField->GetStart() );
376
377 SwTextAttr * pTextAttr = pTextField->GetTextNode().GetTextAttrForCharAt(
378 aPosition.GetContentIndex() + 1,
380 SwField* pField = pTextAttr
381 ? const_cast<SwField*>(pTextAttr->GetFormatField().GetField())
382 : nullptr;
383 while ( pField && ( pField->Which()== SwFieldIds::Postit ) )
384 {
385 aCount++;
386 pTextAttr = pTextField->GetTextNode().GetTextAttrForCharAt(
387 aPosition.GetContentIndex() + aCount,
389 pField = pTextAttr
390 ? const_cast<SwField*>(pTextAttr->GetFormatField().GetField())
391 : nullptr;
392 }
393 return aCount - 1;
394}
395
397{
398 // If tiled annotations is off in lok case, skip adding additional reply text.
400 return;
401
402 //collect our old meta data
404 if (!pWin)
405 return;
406
407 const SvtSysLocale aSysLocale;
408 const LocaleDataWrapper& rLocalData = aSysLocale.GetLocaleData();
409 SwRewriter aRewriter;
410 aRewriter.AddRule(UndoArg1, pWin->GetAuthor());
411 const OUString aText = aRewriter.Apply(SwResId(STR_REPLY))
412 + " (" + rLocalData.getDate( pWin->GetDate())
413 + ", " + rLocalData.getTime( pWin->GetTime(), false)
414 + "): \"";
415 GetOutlinerView()->InsertText(aText);
416
417 // insert old, selected text or "..."
418 // TODO: iterate over all paragraphs, not only first one to find out if it is empty
419 if (!rText.GetTextObject().GetText(0).isEmpty())
421 else
422 GetOutlinerView()->InsertText("...");
423 GetOutlinerView()->InsertText("\"\n");
424
426 SfxItemSet aAnswerSet( mrView.GetDocShell()->GetPool() );
427 aAnswerSet.Put(SvxFontHeightItem(200,80,EE_CHAR_FONTHEIGHT));
429 GetOutlinerView()->SetAttribs(aAnswerSet);
431
432 //remove all attributes and reset our standard ones
435 // lets insert an undo step so the initial text can be easily deleted
436 // but do not use UpdateData() directly, would set modified state again and reentrance into Mgr
437 mpOutliner->SetModifyHdl( Link<LinkParamNone*,void>() );
438 IDocumentUndoRedo & rUndoRedo(
440 std::unique_ptr<SwField> pOldField;
441 if (rUndoRedo.DoesUndo())
442 {
443 pOldField = mpField->Copy();
444 }
445 mpField->SetPar2(mpOutliner->GetEditEngine().GetText());
446 mpField->SetTextObject(mpOutliner->CreateParaObject());
447 if (rUndoRedo.DoesUndo())
448 {
449 SwTextField *const pTextField = mpFormatField->GetTextField();
450 SwPosition aPosition( pTextField->GetTextNode(), pTextField->GetStart() );
451 rUndoRedo.AppendUndo(
452 std::make_unique<SwUndoFieldFromDoc>(aPosition, *pOldField, *mpField, nullptr, true));
453 }
454 mpOutliner->SetModifyHdl( LINK( this, SwAnnotationWin, ModifyHdl ) );
455 mpOutliner->ClearModifyFlag();
456 mpOutliner->GetUndoManager().Clear();
457}
458
459void SwAnnotationWin::UpdateText(const OUString& aText)
460{
461 mpOutliner->Clear();
462 GetOutlinerView()->InsertText(aText);
463 UpdateData();
464}
465
467{
468 // set initial language for outliner
470 sal_uInt16 nLangWhichId = 0;
471 switch (nScriptType)
472 {
473 case SvtScriptType::LATIN : nLangWhichId = EE_CHAR_LANGUAGE ; break;
474 case SvtScriptType::ASIAN : nLangWhichId = EE_CHAR_LANGUAGE_CJK; break;
475 case SvtScriptType::COMPLEX : nLangWhichId = EE_CHAR_LANGUAGE_CTL; break;
476 default: OSL_FAIL("GetLanguage: wrong script type");
477 }
478 return SvxLanguageItem(mpField->GetLanguage(),nLangWhichId);
479}
480
482{
483 return mbReadonly ||
486}
487
489{
490 return mpField->GetPar1();
491}
492
494{
495 return mpField->GetDate();
496}
497
499{
500 return mpField->GetTime();
501}
502
504{
506}
507
508} // end of namespace sw::annotation
509
510/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const SwFrame * mpAnchorFrame
SlideSorterView & mrView
@ UndoArg1
Definition: SwRewriter.hxx:29
static ImplSVEvent * PostUserEvent(const Link< void *, void > &rLink, void *pCaller=nullptr, bool bReferenceLink=false)
static void RemoveUserEvent(ImplSVEvent *nUserEvent)
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
Definition: uiobject.cxx:210
virtual OUString GetText(sal_Int32 nPara) const=0
void SetSelection(const ESelection &rNewSel)
void InsertText(const OUString &rNew, bool bSelect=false, bool bLOKShowSelect=true)
vcl::Cursor * GetCursor() const
void RemoveAttribsKeepLanguages(bool bRemoveParaAttribs)
virtual void AppendUndo(std::unique_ptr< SwUndo > pUndo)=0
Add new Undo action.
virtual bool DoesUndo() const =0
Is Undo enabled?
virtual void dispose() override
std::unique_ptr< weld::Container > m_xContainer
OUString getDate(const Date &rDate) const
OUString getTime(const tools::Time &rTime, bool bSec=true, bool b100Sec=false) const
const EditTextObject & GetTextObject() const
void SetSelection(const ESelection &)
void InsertText(const OUString &rNew, bool bSelect=false)
void SetAttribs(const SfxItemSet &)
EditView & GetEditView() const
void ShowCursor(bool bGotoCursor=true, bool bActivate=false)
void Broadcast(const SfxHint &rHint)
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
SfxItemPool & GetPool() const
const LocaleDataWrapper & GetLocaleData() const
void ClearMark()
Definition: crsrsh.cxx:938
SwWrtShell * GetWrtShell()
Access to the SwWrtShell belonging to SwView.
Definition: docsh.hxx:225
virtual void SetModified(bool=true) override
Definition: docsh2.cxx:1419
SwDoc * GetDoc()
returns Doc. But be careful!
Definition: docsh.hxx:204
IDocumentUndoRedo & GetIDocumentUndoRedo()
Definition: doc.cxx:145
Window class for the Writer edit area, this is the one handling mouse and keyboard events and doing t...
Definition: edtwin.hxx:61
Base class of all fields.
Definition: fldbas.hxx:292
SwFieldIds Which() const
ResId.
Definition: fldbas.cxx:250
LanguageType GetLanguage() const
Language at field position.
Definition: fldbas.hxx:408
const SwField * GetField() const
Definition: fmtfld.hxx:130
bool IsProtect() const
Definition: atrfld.cxx:441
const SwTextField * GetTextField() const
Definition: fmtfld.hxx:148
sal_uInt32 GetPostItId() const
Definition: docufld.hxx:483
virtual OUString GetPar1() const override
Author.
Definition: docufld.cxx:1806
virtual std::unique_ptr< SwField > Copy() const override
Definition: docufld.cxx:1787
const OutlinerParaObject * GetTextObject() const
Definition: docufld.hxx:498
Date GetDate() const
Definition: docufld.hxx:481
tools::Time GetTime() const
Definition: docufld.hxx:482
void SetTextObject(std::optional< OutlinerParaObject > pText)
Definition: docufld.cxx:1830
virtual void SetPar2(const OUString &rStr) override
set the PostIt's text
Definition: docufld.cxx:1812
virtual OUString GetPar2() const override
Text.
Definition: docufld.cxx:1818
void SetLayout()
Definition: PostItMgr.hxx:201
void ConnectSidebarWinToFrame(const SwFrame &rFrame, const SwFormatField &rFormatField, sw::annotation::SwAnnotationWin &rSidebarWin)
Definition: PostItMgr.cxx:2430
OutlinerParaObject * IsAnswer()
Definition: PostItMgr.hxx:257
void LayoutPostIts()
Definition: PostItMgr.cxx:707
void SetActiveSidebarWin(sw::annotation::SwAnnotationWin *p)
Definition: PostItMgr.cxx:2206
sw::annotation::SwAnnotationWin * GetNextPostIt(sal_uInt16 aDirection, sw::annotation::SwAnnotationWin *aPostIt)
Definition: PostItMgr.cxx:1814
void DisconnectSidebarWinFromFrame(const SwFrame &rFrame, sw::annotation::SwAnnotationWin &rSidebarWin)
Definition: PostItMgr.cxx:2447
sw::annotation::SwAnnotationWin * GetActiveSidebarWin()
Definition: PostItMgr.hxx:235
void UpdateResolvedStatus(const sw::annotation::SwAnnotationWin *topNote)
Definition: PostItMgr.cxx:2511
void AddRule(SwUndoArg eWhat, const OUString &rWith)
Definition: SwRewriter.cxx:25
OUString Apply(const OUString &rStr) const
Definition: SwRewriter.cxx:39
SwLayoutInfo maLayoutInfo
virtual const SwFormatField & GetFormatField() const =0
A wrapper around SfxPoolItem to store the start position of (usually) a text portion,...
Definition: txatbase.hxx:44
sal_Int32 GetStart() const
Definition: txatbase.hxx:88
const SwFormatField & GetFormatField() const
Definition: txatbase.hxx:199
SwTextNode & GetTextNode() const
Definition: txtfld.hxx:53
SwTextAttr * GetTextAttrForCharAt(const sal_Int32 nIndex, const sal_uInt16 nWhich=RES_TXTATR_END) const
get the text attribute at position nIndex which owns the dummy character CH_TXTATR_* at that position...
Definition: ndtxt.cxx:3105
bool IsResolvedPostIts() const
Definition: viewopt.hxx:278
const SwViewOption * GetViewOptions() const
Definition: viewsh.hxx:436
SwWrtShell * GetWrtShellPtr() const
Definition: view.hxx:414
SwDocShell * GetDocShell()
Definition: view.cxx:1159
bool GotoField(const SwFormatField &rField)
Definition: wrtsh3.cxx:76
bool DelRight(bool isReplaceHeuristic=false)
Definition: delete.cxx:293
static UITestLogger & getInstance()
void logEvent(const EventDescription &rDescription)
SwPostItHelper::SwLayoutStatus GetLayoutStatus() const
std::unique_ptr< sw::overlay::OverlayRanges > mpTextRangeOverlay
virtual void dispose() override
std::unique_ptr< weld::Label > mxMetadataResolved
void UpdateText(const OUString &aText)
std::unique_ptr< Outliner > mpOutliner
SwAnnotationWin * GetTopReplyNote()
Find the first annotation for the thread which this annotation is in.
std::unique_ptr< sw::sidebarwindows::AnchorOverlayObject > mpAnchor
std::unique_ptr< OutlinerView > mpOutlinerView
std::unique_ptr< weld::CustomWeld > mxSidebarTextControlWin
sal_uInt32 CalcParent()
Calculate parent postit id of current annotation window.
std::unique_ptr< weld::MenuButton > mxMenuButton
std::unique_ptr< sw::sidebarwindows::ShadowOverlayObject > mpShadow
SwAnnotationWin(SwEditWin &rEditWin, SwPostItMgr &aMgr, SwSidebarItem &rSidebarItem, SwFormatField *aField)
virtual ~SwAnnotationWin() override
std::unique_ptr< weld::ScrolledWindow > mxVScrollbar
SvxLanguageItem GetLanguage() const
std::unique_ptr< weld::Label > mxMetadataDate
std::unique_ptr< sw::sidebarwindows::SidebarTextControl > mxSidebarTextControl
std::unique_ptr< weld::Label > mxMetadataAuthor
virtual FactoryFunction GetUITestFactory() const override
void InitAnswer(OutlinerParaObject const &rText)
static std::unique_ptr< ShadowOverlayObject > CreateShadowOverlayObject(SwView const &rDocView)
bool IsVisible() const
const OUString & get_id() const
bool SupportsDoubleBuffering() const
void SetParentClipMode(ParentClipMode nMode=ParentClipMode::NONE)
void set_id(const OUString &rID)
void Disable(bool bChild=true)
void GrabFocusToDocument()
virtual void Invalidate(InvalidateFlags nFlags=InvalidateFlags::NONE)
#define EE_PARA_ALL
#define EE_TEXTPOS_MAX_COUNT
#define EE_PARA_MAX_COUNT
#define EE_TEXTPOS_ALL
constexpr TypedWhichId< SvxFontHeightItem > EE_CHAR_FONTHEIGHT(EE_CHAR_START+2)
constexpr TypedWhichId< SvxLanguageItem > EE_CHAR_LANGUAGE_CTL(EE_CHAR_START+16)
constexpr TypedWhichId< SvxPostureItem > EE_CHAR_ITALIC(EE_CHAR_START+7)
constexpr TypedWhichId< SvxLanguageItem > EE_CHAR_LANGUAGE_CJK(EE_CHAR_START+15)
constexpr TypedWhichId< SvxLanguageItem > EE_CHAR_LANGUAGE(EE_CHAR_START+14)
ITALIC_NORMAL
constexpr TypedWhichId< SwFormatField > RES_TXTATR_ANNOTATION(60)
std::function< std::unique_ptr< UIObject >(vcl::Window *)> FactoryFunction
constexpr sal_uInt16 KEY_PAGEDOWN
constexpr sal_uInt16 KEY_PAGEUP
SvtScriptType
SvtScriptType GetScriptTypeOfLanguage(LanguageType nLang)
NONE
Dialog to specify the properties of date form field.
std::map< OUString, OUString > aParameters
const SwFrame * mpAnchorFrame
Marks a position in the document model.
Definition: pam.hxx:37
sal_Int32 GetContentIndex() const
Definition: pam.hxx:84
OUString SwResId(TranslateId aId)
Definition: swmodule.cxx:164
void GetSelection(struct ESelection &rSel, SvxTextForwarder const *pForwarder) noexcept