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 <comphelper/random.hxx>
53#include <docufld.hxx>
54#include <txtfld.hxx>
55#include <ndtxt.hxx>
56#include <view.hxx>
57#include <viewopt.hxx>
58#include <wrtsh.hxx>
59#include <docsh.hxx>
60#include <doc.hxx>
61#include <IDocumentUndoRedo.hxx>
62#include <SwUndoField.hxx>
63#include <edtwin.hxx>
66#include "OverlayRanges.hxx"
67#include "SidebarTxtControl.hxx"
68#include "SidebarWinAcc.hxx"
69
70#include <memory>
71
72namespace{
73
74void collectUIInformation( const OUString& aevent , const OUString& aID )
75{
76 EventDescription aDescription;
77 aDescription.aID = aID;
78 aDescription.aParameters = {{"" , ""}};
79 aDescription.aAction = aevent;
80 aDescription.aParent = "MainWindow";
81 aDescription.aKeyWord = "SwEditWinUIObject";
82 UITestLogger::getInstance().logEvent(aDescription);
83}
84
85}
86
87namespace sw::annotation {
88
89// see AnnotationContents in sd for something similar
91 SwPostItMgr& aMgr,
92 SwSidebarItem& rSidebarItem,
93 SwFormatField* aField )
94 : InterimItemWindow(&rEditWin, "modules/swriter/ui/annotation.ui", "Annotation")
95 , mrMgr(aMgr)
96 , mrView(rEditWin.GetView())
97 , mnDeleteEventId(nullptr)
98 , meSidebarPosition(sw::sidebarwindows::SidebarPosition::NONE)
99 , mPageBorder(0)
100 , mbAnchorRectChanged(false)
101 , mbResolvedStateUpdated(false)
102 , mbMouseOver(false)
103 , mLayoutStatus(SwPostItHelper::INVISIBLE)
104 , mbReadonly(false)
105 , mbIsFollow(false)
106 , mrSidebarItem(rSidebarItem)
107 , mpAnchorFrame(rSidebarItem.maLayoutInfo.mpAnchorFrame)
108 , mpFormatField(aField)
109 , mpField( static_cast<SwPostItField*>(aField->GetField()))
110{
111 set_id("Comment"+OUString::number(mpField->GetPostItId()));
112
113 m_xContainer->connect_mouse_move(LINK(this, SwAnnotationWin, MouseMoveHdl));
114
116 if ( mpShadow )
117 {
118 mpShadow->setVisible(false);
119 }
120
121#if !ENABLE_WASM_STRIP_ACCESSIBILITY
124 *this );
125#endif
126
128 // When double-buffering, allow parents to paint on our area. That's
129 // necessary when parents paint the complete buffer.
130 SetParentClipMode(ParentClipMode::NoClip);
131}
132
134{
135 disposeOnce();
136}
137
139{
140#if !ENABLE_WASM_STRIP_ACCESSIBILITY
142 *this );
143#endif
144 Disable();
145
147 mxSidebarTextControl.reset();
148
149 mxMetadataAuthor.reset();
150 mxMetadataResolved.reset();
151 mxMetadataDate.reset();
152 mxVScrollbar.reset();
153
154 mpAnchor.reset();
155 mpShadow.reset();
156
157 mpTextRangeOverlay.reset();
158
159 mxMenuButton.reset();
160
161 if (mnDeleteEventId)
163
164 mpOutliner.reset();
165 mpOutlinerView.reset();
166
168}
169
171{
172 //If the cursor was visible, then make it visible again after
173 //changing text, e.g. fdo#33599
175 bool bCursorVisible = pCursor && pCursor->IsVisible();
176
177 //If the new text is the same as the old text, keep the same insertion
178 //point .e.g. fdo#33599
179 mpField = static_cast<SwPostItField*>(mpFormatField->GetField());
180 OUString sNewText = mpField->GetPar2();
181 bool bTextUnchanged = sNewText == mpOutliner->GetEditEngine().GetText();
182 ESelection aOrigSelection(GetOutlinerView()->GetEditView().GetSelection());
183
184 // get text from SwPostItField and insert into our textview
185 mpOutliner->SetModifyHdl( Link<LinkParamNone*,void>() );
186 mpOutliner->EnableUndo( false );
187 if( mpField->GetTextObject() )
188 mpOutliner->SetText( *mpField->GetTextObject() );
189 else
190 {
191 mpOutliner->Clear();
193 GetOutlinerView()->InsertText(sNewText);
194 }
195
196 mpOutliner->ClearModifyFlag();
197 mpOutliner->GetUndoManager().Clear();
198 mpOutliner->EnableUndo( true );
199 mpOutliner->SetModifyHdl( LINK( this, SwAnnotationWin, ModifyHdl ) );
200 if (bTextUnchanged)
201 GetOutlinerView()->GetEditView().SetSelection(aOrigSelection);
202 if (bCursorVisible)
204 Invalidate();
205}
206
208{
209 bool oldState = IsResolved();
210 static_cast<SwPostItField*>(mpFormatField->GetField())->SetResolved(resolved);
213
214 mpTextRangeOverlay.reset();
215
216 if(IsResolved())
217 mxMetadataResolved->show();
218 else
219 mxMetadataResolved->hide();
220
221 if(IsResolved() != oldState)
223 UpdateData();
224 Invalidate();
225 collectUIInformation("SETRESOLVED",get_id());
226}
227
229{
231}
232
234{
238}
239
241{
242 auto pField = static_cast<SwPostItField*>(mpFormatField->GetField());
243 auto nParaId = pField->GetParaId();
244 if (nParaId == 0)
245 {
246 // The parent annotation does not have a paraId. This happens when the annotation was just
247 // created, and not imported. paraIds are regenerated upon export, thus this new paraId
248 // is only generated so that children annotations can refer to it
249 nParaId = CreateUniqueParaId();
250 pField->SetParaId(nParaId);
251 }
252 return nParaId;
253}
254
256{
257 return comphelper::rng::uniform_uint_distribution(0, std::numeric_limits<sal_uInt32>::max());
258}
259
261{
262 // Go to the top and delete each comment one by one
263 SwAnnotationWin *current, *topNote;
264 current = topNote = GetTopReplyNote();
266
267 while(next && next->GetTopReplyNote() == topNote)
268 {
269 current->mnDeleteEventId = Application::PostUserEvent( LINK( current, SwAnnotationWin, DeleteHdl), nullptr, true );
270 current = next;
271 next = mrMgr.GetNextPostIt(KEY_PAGEDOWN, current);
272 }
273 current->mnDeleteEventId = Application::PostUserEvent( LINK( current, SwAnnotationWin, DeleteHdl), nullptr, true );
274}
275
277{
278 return static_cast<SwPostItField*>(mpFormatField->GetField())->GetResolved();
279}
280
282{
284 // then iterate downwards checking resolved status
285 SwAnnotationWin *pTopNote, *TopNote;
286 pTopNote = TopNote = GetTopReplyNote();
287 if (!pTopNote->IsResolved())
288 return false;
289
290 SwAnnotationWin* pSidebarWin = mrMgr.GetNextPostIt(KEY_PAGEDOWN, pTopNote);
291
292 while (pSidebarWin && pSidebarWin->GetTopReplyNote() == TopNote)
293 {
294 pTopNote = pSidebarWin;
295 if (!pTopNote->IsResolved())
296 return false;
297 pSidebarWin = mrMgr.GetNextPostIt(KEY_PAGEDOWN, pSidebarWin);
298 }
299 return true;
300}
301
303{
304 if ( mpOutliner->IsModified() || mbResolvedStateUpdated )
305 {
306 IDocumentUndoRedo & rUndoRedo(
308 std::unique_ptr<SwField> pOldField;
309 if (rUndoRedo.DoesUndo())
310 {
311 pOldField = mpField->Copy();
312 }
313 mpField->SetPar2(mpOutliner->GetEditEngine().GetText());
314 mpField->SetTextObject(mpOutliner->CreateParaObject());
315 if (rUndoRedo.DoesUndo())
316 {
317 SwTextField *const pTextField = mpFormatField->GetTextField();
318 SwPosition aPosition( pTextField->GetTextNode(), pTextField->GetStart() );
319 rUndoRedo.AppendUndo(
320 std::make_unique<SwUndoFieldFromDoc>(aPosition, *pOldField, *mpField, nullptr, true));
321 }
322 // so we get a new layout of notes (anchor position is still the same and we would otherwise not get one)
324 // #i98686# if we have several views, all notes should update their text
327 else
330 }
331 mpOutliner->ClearModifyFlag();
332 mpOutliner->GetUndoManager().Clear();
334}
335
337{
338 collectUIInformation("DELETE",get_id());
340 return;
341
342 if ( mrMgr.GetActiveSidebarWin() == this)
343 {
344 mrMgr.SetActiveSidebarWin(nullptr);
345 // if the note is empty, the previous line will send a delete event, but we are already there
346 if (mnDeleteEventId)
347 {
349 mnDeleteEventId = nullptr;
350 }
351 }
352 // we delete the field directly, the Mgr cleans up the PostIt by listening
356}
357
359{
361}
362
364{
365 // if this is an answer, do not skip over all following ones, but insert directly behind the current one
366 // but when just leaving a note, skip all following ones as well to continue typing
367 return mrMgr.IsAnswer()
368 ? 1
369 : 1 + CountFollowing();
370}
371
372// returns a non-zero postit parent id, if exists, otherwise 0 for root comments
374{
375 SwTextField* pTextField = mpFormatField->GetTextField();
376 SwPosition aPosition( pTextField->GetTextNode(), pTextField->GetStart() );
377 SwTextAttr * const pTextAttr =
378 pTextField->GetTextNode().GetTextAttrForCharAt(
379 aPosition.GetContentIndex() - 1,
381 const SwField* pField = pTextAttr ? pTextAttr->GetFormatField().GetField() : nullptr;
382 sal_uInt32 nParentId = 0;
383 if (pField && pField->Which() == SwFieldIds::Postit)
384 {
385 const SwPostItField* pPostItField = static_cast<const SwPostItField*>(pField);
386 nParentId = pPostItField->GetPostItId();
387 }
388 return nParentId;
389}
390
391// counts how many SwPostItField we have right after the current one
393{
394 sal_uInt32 aCount = 1; // we start with 1, so we have to subtract one at the end again
395 SwTextField* pTextField = mpFormatField->GetTextField();
396 SwPosition aPosition( pTextField->GetTextNode(), pTextField->GetStart() );
397
398 SwTextAttr * pTextAttr = pTextField->GetTextNode().GetTextAttrForCharAt(
399 aPosition.GetContentIndex() + 1,
401 SwField* pField = pTextAttr
402 ? const_cast<SwField*>(pTextAttr->GetFormatField().GetField())
403 : nullptr;
404 while ( pField && ( pField->Which()== SwFieldIds::Postit ) )
405 {
406 aCount++;
407 pTextAttr = pTextField->GetTextNode().GetTextAttrForCharAt(
408 aPosition.GetContentIndex() + aCount,
410 pField = pTextAttr
411 ? const_cast<SwField*>(pTextAttr->GetFormatField().GetField())
412 : nullptr;
413 }
414 return aCount - 1;
415}
416
418{
419 // If tiled annotations is off in lok case, skip adding additional reply text.
421 return;
422
423 //collect our old meta data
425 if (!pWin)
426 return;
427
428 const SvtSysLocale aSysLocale;
429 const LocaleDataWrapper& rLocalData = aSysLocale.GetLocaleData();
430 SwRewriter aRewriter;
431 aRewriter.AddRule(UndoArg1, pWin->GetAuthor());
432 const OUString aText = aRewriter.Apply(SwResId(STR_REPLY))
433 + " (" + rLocalData.getDate( pWin->GetDate())
434 + ", " + rLocalData.getTime( pWin->GetTime(), false)
435 + "): \"";
436 GetOutlinerView()->InsertText(aText);
437
438 // insert old, selected text or "..."
439 // TODO: iterate over all paragraphs, not only first one to find out if it is empty
440 if (!rText.GetTextObject().GetText(0).isEmpty())
442 else
443 GetOutlinerView()->InsertText("...");
444 GetOutlinerView()->InsertText("\"\n");
445
447 SfxItemSet aAnswerSet( mrView.GetDocShell()->GetPool() );
448 aAnswerSet.Put(SvxFontHeightItem(200,80,EE_CHAR_FONTHEIGHT));
450 GetOutlinerView()->SetAttribs(aAnswerSet);
452
453 //remove all attributes and reset our standard ones
456 // lets insert an undo step so the initial text can be easily deleted
457 // but do not use UpdateData() directly, would set modified state again and reentrance into Mgr
458 mpOutliner->SetModifyHdl( Link<LinkParamNone*,void>() );
459 IDocumentUndoRedo & rUndoRedo(
461 std::unique_ptr<SwField> pOldField;
462 if (rUndoRedo.DoesUndo())
463 {
464 pOldField = mpField->Copy();
465 }
466 mpField->SetPar2(mpOutliner->GetEditEngine().GetText());
467 mpField->SetTextObject(mpOutliner->CreateParaObject());
468 if (rUndoRedo.DoesUndo())
469 {
470 SwTextField *const pTextField = mpFormatField->GetTextField();
471 SwPosition aPosition( pTextField->GetTextNode(), pTextField->GetStart() );
472 rUndoRedo.AppendUndo(
473 std::make_unique<SwUndoFieldFromDoc>(aPosition, *pOldField, *mpField, nullptr, true));
474 }
475 mpOutliner->SetModifyHdl( LINK( this, SwAnnotationWin, ModifyHdl ) );
476 mpOutliner->ClearModifyFlag();
477 mpOutliner->GetUndoManager().Clear();
478}
479
480void SwAnnotationWin::UpdateText(const OUString& aText)
481{
482 mpOutliner->Clear();
483 GetOutlinerView()->InsertText(aText);
484 UpdateData();
485}
486
488{
489 // set initial language for outliner
491 sal_uInt16 nLangWhichId = 0;
492 switch (nScriptType)
493 {
494 case SvtScriptType::LATIN : nLangWhichId = EE_CHAR_LANGUAGE ; break;
495 case SvtScriptType::ASIAN : nLangWhichId = EE_CHAR_LANGUAGE_CJK; break;
496 case SvtScriptType::COMPLEX : nLangWhichId = EE_CHAR_LANGUAGE_CTL; break;
497 default: OSL_FAIL("GetLanguage: wrong script type");
498 }
499 return SvxLanguageItem(mpField->GetLanguage(),nLangWhichId);
500}
501
503{
504 return mbReadonly ||
507}
508
510{
511 return mpField->GetPar1();
512}
513
515{
516 return mpField->GetDate();
517}
518
520{
521 return mpField->GetTime();
522}
523
525{
527}
528
529} // end of namespace sw::annotation
530
531/* 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 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:953
SwWrtShell * GetWrtShell()
Access to the SwWrtShell belonging to SwView.
Definition: docsh.hxx:225
virtual void SetModified(bool=true) override
Definition: docsh2.cxx:1433
SwDoc * GetDoc()
returns Doc. But be careful!
Definition: docsh.hxx:204
IDocumentUndoRedo & GetIDocumentUndoRedo()
Definition: doc.cxx:152
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:293
SwFieldIds Which() const
ResId.
Definition: fldbas.cxx:250
LanguageType GetLanguage() const
Language at field position.
Definition: fldbas.hxx:409
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:487
virtual OUString GetPar1() const override
Author.
Definition: docufld.cxx:1815
sal_uInt32 GetParaId() const
Definition: docufld.hxx:491
virtual std::unique_ptr< SwField > Copy() const override
Definition: docufld.cxx:1796
const OutlinerParaObject * GetTextObject() const
Definition: docufld.hxx:506
Date GetDate() const
Definition: docufld.hxx:485
tools::Time GetTime() const
Definition: docufld.hxx:486
void SetTextObject(std::optional< OutlinerParaObject > pText)
Definition: docufld.cxx:1839
virtual void SetPar2(const OUString &rStr) override
set the PostIt's text
Definition: docufld.cxx:1821
virtual OUString GetPar2() const override
Text.
Definition: docufld.cxx:1827
void SetLayout()
Definition: PostItMgr.hxx:201
void ConnectSidebarWinToFrame(const SwFrame &rFrame, const SwFormatField &rFormatField, sw::annotation::SwAnnotationWin &rSidebarWin)
Definition: PostItMgr.cxx:2435
OutlinerParaObject * IsAnswer()
Definition: PostItMgr.hxx:259
void LayoutPostIts()
Definition: PostItMgr.cxx:707
void SetActiveSidebarWin(sw::annotation::SwAnnotationWin *p)
Definition: PostItMgr.cxx:2211
sw::annotation::SwAnnotationWin * GetNextPostIt(sal_uInt16 aDirection, sw::annotation::SwAnnotationWin *aPostIt)
Definition: PostItMgr.cxx:1819
void DisconnectSidebarWinFromFrame(const SwFrame &rFrame, sw::annotation::SwAnnotationWin &rSidebarWin)
Definition: PostItMgr.cxx:2452
sw::annotation::SwAnnotationWin * GetActiveSidebarWin()
Definition: PostItMgr.hxx:237
void UpdateResolvedStatus(const sw::annotation::SwAnnotationWin *topNote)
Definition: PostItMgr.cxx:2516
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:3153
bool IsResolvedPostIts() const
Definition: viewopt.hxx:379
const SwViewOption * GetViewOptions() const
Definition: viewsh.hxx:434
SwWrtShell * GetWrtShellPtr() const
Definition: view.hxx:422
SwDocShell * GetDocShell()
Definition: view.cxx:1161
bool GotoField(const SwFormatField &rField)
Definition: wrtsh3.cxx:76
bool DelRight(bool isReplaceHeuristic=false)
Definition: delete.cxx:291
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
static sal_uInt32 CreateUniqueParaId()
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)
unsigned int uniform_uint_distribution(unsigned int a, unsigned int b)
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:168
void GetSelection(struct ESelection &rSel, SvxTextForwarder const *pForwarder) noexcept