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 <AnnotationWin.hxx>
21 
22 #include <PostItMgr.hxx>
23 
24 #include <strings.hrc>
25 
26 #include <uiobject.hxx>
27 
28 #include <vcl/svapp.hxx>
29 #include <vcl/uitest/logger.hxx>
31 
32 #include <svl/undo.hxx>
34 #include <unotools/syslocale.hxx>
35 #include <svl/languageoptions.hxx>
36 #include <osl/diagnose.h>
37 
38 #include <editeng/eeitem.hxx>
39 #include <editeng/postitem.hxx>
40 #include <editeng/fhgtitem.hxx>
41 #include <editeng/langitem.hxx>
42 
43 #include <editeng/editview.hxx>
44 #include <editeng/outliner.hxx>
45 #include <editeng/editeng.hxx>
46 #include <editeng/editobj.hxx>
47 #include <editeng/outlobj.hxx>
48 
49 #include <comphelper/lok.hxx>
50 #include <docufld.hxx>
51 #include <txtfld.hxx>
52 #include <ndtxt.hxx>
53 #include <view.hxx>
54 #include <viewopt.hxx>
55 #include <wrtsh.hxx>
56 #include <docsh.hxx>
57 #include <doc.hxx>
58 #include <IDocumentUndoRedo.hxx>
59 #include <SwUndoField.hxx>
60 #include <edtwin.hxx>
61 #include "ShadowOverlayObject.hxx"
62 #include "AnchorOverlayObject.hxx"
63 #include "OverlayRanges.hxx"
64 #include "SidebarTxtControl.hxx"
65 #include "SidebarWinAcc.hxx"
66 
67 #include <memory>
68 
69 namespace{
70 
71 void collectUIInformation( const OUString& aevent , const OUString& aID )
72 {
73  EventDescription aDescription;
74  aDescription.aID = aID;
75  aDescription.aParameters = {{"" , ""}};
76  aDescription.aAction = aevent;
77  aDescription.aParent = "MainWindow";
78  aDescription.aKeyWord = "SwEditWinUIObject";
79  UITestLogger::getInstance().logEvent(aDescription);
80 }
81 
82 }
83 
84 namespace sw::annotation {
85 
86 // see AnnotationContents in sd for something similar
88  SwPostItMgr& aMgr,
89  SwSidebarItem& rSidebarItem,
90  SwFormatField* aField )
91  : InterimItemWindow(&rEditWin, "modules/swriter/ui/annotation.ui", "Annotation")
92  , mrMgr(aMgr)
93  , mrView(rEditWin.GetView())
94  , mnEventId(nullptr)
95  , mColorAnchor()
96  , mColorDark()
97  , mColorLight()
98  , mChangeColor()
99  , meSidebarPosition(sw::sidebarwindows::SidebarPosition::NONE)
100  , mPosSize()
101  , mAnchorRect()
102  , mPageBorder(0)
103  , mbAnchorRectChanged(false)
104  , mbResolvedStateUpdated(false)
105  , mbMouseOver(false)
106  , mLayoutStatus(SwPostItHelper::INVISIBLE)
107  , mbReadonly(false)
108  , mbIsFollow(false)
109  , mrSidebarItem(rSidebarItem)
110  , mpAnchorFrame(rSidebarItem.maLayoutInfo.mpAnchorFrame)
111  , mpFormatField(aField)
112  , mpField( static_cast<SwPostItField*>(aField->GetField()))
113 {
114  set_id("Comment"+OUString::number(mpField->GetPostItId()));
115 
116  m_xContainer->connect_mouse_move(LINK(this, SwAnnotationWin, MouseMoveHdl));
117 
119  if ( mpShadow )
120  {
121  mpShadow->setVisible(false);
122  }
123 
126  *this );
127 
129  // When double-buffering, allow parents to paint on our area. That's
130  // necessary when parents paint the complete buffer.
131  SetParentClipMode(ParentClipMode::NoClip);
132 }
133 
135 {
136  disposeOnce();
137 }
138 
140 {
142  *this );
143 
144  Disable();
145 
146  mxSidebarTextControlWin.reset();
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 (mnEventId)
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 
207 void SwAnnotationWin::SetResolved(bool resolved)
208 {
209  bool oldState = IsResolved();
210  static_cast<SwPostItField*>(mpFormatField->GetField())->SetResolved(resolved);
211  const SwViewOption* pVOpt = mrView.GetWrtShellPtr()->GetViewOptions();
213 
214  mpTextRangeOverlay.reset();
215 
216  if(IsResolved())
217  mxMetadataResolved->show();
218  else
219  mxMetadataResolved->hide();
220 
221  if(IsResolved() != oldState)
222  mbResolvedStateUpdated = true;
223  UpdateData();
224  Invalidate();
225  collectUIInformation("SETRESOLVED",get_id());
226 }
227 
229 {
231 }
232 
234 {
238 }
239 
241 {
242  // Go to the top and delete each comment one by one
243  SwAnnotationWin *current, *topNote;
244  current = topNote = GetTopReplyNote();
246 
247  while(next && next->GetTopReplyNote() == topNote)
248  {
249  current->mnEventId = Application::PostUserEvent( LINK( current, SwAnnotationWin, DeleteHdl), nullptr, true );
250  current = next;
251  next = mrMgr.GetNextPostIt(KEY_PAGEDOWN, current);
252  }
253  current->mnEventId = Application::PostUserEvent( LINK( current, SwAnnotationWin, DeleteHdl), nullptr, true );
254 }
255 
257 {
258  return static_cast<SwPostItField*>(mpFormatField->GetField())->GetResolved();
259 }
260 
262 {
264  // then iterate downwards checking resolved status
265  SwAnnotationWin *pTopNote, *TopNote;
266  pTopNote = TopNote = GetTopReplyNote();
267  if (!pTopNote->IsResolved())
268  return false;
269 
270  SwAnnotationWin* pSidebarWin = mrMgr.GetNextPostIt(KEY_PAGEDOWN, pTopNote);
271 
272  while (pSidebarWin && pSidebarWin->GetTopReplyNote() == TopNote)
273  {
274  pTopNote = pSidebarWin;
275  if (!pTopNote->IsResolved())
276  return false;
277  pSidebarWin = mrMgr.GetNextPostIt(KEY_PAGEDOWN, pSidebarWin);
278  }
279  return true;
280 }
281 
283 {
284  if ( mpOutliner->IsModified() || mbResolvedStateUpdated )
285  {
286  IDocumentUndoRedo & rUndoRedo(
288  std::unique_ptr<SwField> pOldField;
289  if (rUndoRedo.DoesUndo())
290  {
291  pOldField = mpField->Copy();
292  }
293  mpField->SetPar2(mpOutliner->GetEditEngine().GetText());
294  mpField->SetTextObject(mpOutliner->CreateParaObject());
295  if (rUndoRedo.DoesUndo())
296  {
297  SwTextField *const pTextField = mpFormatField->GetTextField();
298  SwPosition aPosition( pTextField->GetTextNode() );
299  aPosition.nContent = pTextField->GetStart();
300  rUndoRedo.AppendUndo(
301  std::make_unique<SwUndoFieldFromDoc>(aPosition, *pOldField, *mpField, nullptr, true));
302  }
303  // so we get a new layout of notes (anchor position is still the same and we would otherwise not get one)
304  mrMgr.SetLayout();
305  // #i98686# if we have several views, all notes should update their text
308  else
311  }
312  mpOutliner->ClearModifyFlag();
313  mpOutliner->GetUndoManager().Clear();
314  mbResolvedStateUpdated = false;
315 }
316 
318 {
319  collectUIInformation("DELETE",get_id());
321  return;
322 
323  if ( mrMgr.GetActiveSidebarWin() == this)
324  {
325  mrMgr.SetActiveSidebarWin(nullptr);
326  // if the note is empty, the previous line will send a delete event, but we are already there
327  if (mnEventId)
328  {
330  mnEventId = nullptr;
331  }
332  }
333  // we delete the field directly, the Mgr cleans up the PostIt by listening
337 }
338 
340 {
342 }
343 
345 {
346  // if this is an answer, do not skip over all following ones, but insert directly behind the current one
347  // but when just leaving a note, skip all following ones as well to continue typing
348  return mrMgr.IsAnswer()
349  ? 1
350  : 1 + CountFollowing();
351 }
352 
353 // returns a non-zero postit parent id, if exists, otherwise 0 for root comments
355 {
356  SwTextField* pTextField = mpFormatField->GetTextField();
357  SwPosition aPosition( pTextField->GetTextNode() );
358  aPosition.nContent = pTextField->GetStart();
359  SwTextAttr * const pTextAttr =
360  pTextField->GetTextNode().GetTextAttrForCharAt(
361  aPosition.nContent.GetIndex() - 1,
363  const SwField* pField = pTextAttr ? pTextAttr->GetFormatField().GetField() : nullptr;
364  sal_uInt32 nParentId = 0;
365  if (pField && pField->Which() == SwFieldIds::Postit)
366  {
367  const SwPostItField* pPostItField = static_cast<const SwPostItField*>(pField);
368  nParentId = pPostItField->GetPostItId();
369  }
370  return nParentId;
371 }
372 
373 // counts how many SwPostItField we have right after the current one
375 {
376  sal_uInt32 aCount = 1; // we start with 1, so we have to subtract one at the end again
377  SwTextField* pTextField = mpFormatField->GetTextField();
378  SwPosition aPosition( pTextField->GetTextNode() );
379  aPosition.nContent = pTextField->GetStart();
380 
381  SwTextAttr * pTextAttr = pTextField->GetTextNode().GetTextAttrForCharAt(
382  aPosition.nContent.GetIndex() + 1,
384  SwField* pField = pTextAttr
385  ? const_cast<SwField*>(pTextAttr->GetFormatField().GetField())
386  : nullptr;
387  while ( pField && ( pField->Which()== SwFieldIds::Postit ) )
388  {
389  aCount++;
390  pTextAttr = pTextField->GetTextNode().GetTextAttrForCharAt(
391  aPosition.nContent.GetIndex() + aCount,
393  pField = pTextAttr
394  ? const_cast<SwField*>(pTextAttr->GetFormatField().GetField())
395  : nullptr;
396  }
397  return aCount - 1;
398 }
399 
401 {
402  // If tiled annotations is off in lok case, skip adding additional reply text.
404  return;
405 
406  //collect our old meta data
408  if (!pWin)
409  return;
410 
411  const SvtSysLocale aSysLocale;
412  const LocaleDataWrapper& rLocalData = aSysLocale.GetLocaleData();
413  SwRewriter aRewriter;
414  aRewriter.AddRule(UndoArg1, pWin->GetAuthor());
415  const OUString aText = aRewriter.Apply(SwResId(STR_REPLY))
416  + " (" + rLocalData.getDate( pWin->GetDate())
417  + ", " + rLocalData.getTime( pWin->GetTime(), false)
418  + "): \"";
419  GetOutlinerView()->InsertText(aText);
420 
421  // insert old, selected text or "..."
422  // TODO: iterate over all paragraphs, not only first one to find out if it is empty
423  if (!pText->GetTextObject().GetText(0).isEmpty())
425  else
426  GetOutlinerView()->InsertText("...");
427  GetOutlinerView()->InsertText("\"\n");
428 
430  SfxItemSet aAnswerSet( mrView.GetDocShell()->GetPool() );
431  aAnswerSet.Put(SvxFontHeightItem(200,80,EE_CHAR_FONTHEIGHT));
433  GetOutlinerView()->SetAttribs(aAnswerSet);
435 
436  //remove all attributes and reset our standard ones
439  // lets insert an undo step so the initial text can be easily deleted
440  // but do not use UpdateData() directly, would set modified state again and reentrance into Mgr
441  mpOutliner->SetModifyHdl( Link<LinkParamNone*,void>() );
442  IDocumentUndoRedo & rUndoRedo(
444  std::unique_ptr<SwField> pOldField;
445  if (rUndoRedo.DoesUndo())
446  {
447  pOldField = mpField->Copy();
448  }
449  mpField->SetPar2(mpOutliner->GetEditEngine().GetText());
450  mpField->SetTextObject(mpOutliner->CreateParaObject());
451  if (rUndoRedo.DoesUndo())
452  {
453  SwTextField *const pTextField = mpFormatField->GetTextField();
454  SwPosition aPosition( pTextField->GetTextNode() );
455  aPosition.nContent = pTextField->GetStart();
456  rUndoRedo.AppendUndo(
457  std::make_unique<SwUndoFieldFromDoc>(aPosition, *pOldField, *mpField, nullptr, true));
458  }
459  mpOutliner->SetModifyHdl( LINK( this, SwAnnotationWin, ModifyHdl ) );
460  mpOutliner->ClearModifyFlag();
461  mpOutliner->GetUndoManager().Clear();
462 }
463 
464 void SwAnnotationWin::UpdateText(const OUString& aText)
465 {
466  mpOutliner->Clear();
467  GetOutlinerView()->InsertText(aText);
468  UpdateData();
469 }
470 
472 {
473  // set initial language for outliner
475  sal_uInt16 nLangWhichId = 0;
476  switch (nScriptType)
477  {
478  case SvtScriptType::LATIN : nLangWhichId = EE_CHAR_LANGUAGE ; break;
479  case SvtScriptType::ASIAN : nLangWhichId = EE_CHAR_LANGUAGE_CJK; break;
480  case SvtScriptType::COMPLEX : nLangWhichId = EE_CHAR_LANGUAGE_CTL; break;
481  default: OSL_FAIL("GetLanguage: wrong script type");
482  }
483  return SvxLanguageItem(mpField->GetLanguage(),nLangWhichId);
484 }
485 
487 {
488  return mbReadonly ||
491 }
492 
494 {
495  return mpField->GetPar1();
496 }
497 
499 {
500  return mpField->GetDate();
501 }
502 
504 {
505  return mpField->GetTime();
506 }
507 
509 {
511 }
512 
513 } // end of namespace sw::annotation
514 
515 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::Label > mxMetadataDate
Date GetDate() const
Definition: docufld.hxx:478
std::unique_ptr< weld::ScrolledWindow > mxVScrollbar
virtual void SetModified(bool=true) override
Definition: docsh2.cxx:1377
Marks a position in the document model.
Definition: pam.hxx:35
const SwField * GetField() const
Definition: fmtfld.hxx:110
std::unique_ptr< weld::Label > mxMetadataResolved
void InsertText(const OUString &rNew, bool bSelect=false)
LanguageType GetLanguage() const
Language at field position.
Definition: fldbas.hxx:402
const SwFrame * mpAnchorFrame
SwPostItHelper::SwLayoutStatus GetLayoutStatus() const
static std::unique_ptr< ShadowOverlayObject > CreateShadowOverlayObject(SwView const &rDocView)
OutlinerParaObject * IsAnswer()
Definition: PostItMgr.hxx:255
void GetSelection(struct ESelection &rSel, SvxTextForwarder const *pForwarder) noexcept
bool IsProtect() const
Definition: atrfld.cxx:424
void ShowCursor(bool bGotoCursor=true, bool bActivate=false)
Base class of all fields.
Definition: fldbas.hxx:289
virtual void SetPar2(const OUString &rStr) override
set the PostIt's text
Definition: docufld.cxx:1804
std::function< std::unique_ptr< UIObject >vcl::Window *)> FactoryFunction
tools::Time GetTime() const
Definition: docufld.hxx:479
std::unique_ptr< sw::sidebarwindows::ShadowOverlayObject > mpShadow
constexpr TypedWhichId< SvxPostureItem > EE_CHAR_ITALIC(EE_CHAR_START+7)
SwAnnotationWin(SwEditWin &rEditWin, SwPostItMgr &aMgr, SwSidebarItem &rSidebarItem, SwFormatField *aField)
virtual OUString GetPar1() const override
Author.
Definition: docufld.cxx:1798
static ImplSVEvent * PostUserEvent(const Link< void *, void > &rLink, void *pCaller=nullptr, bool bReferenceLink=false)
void SetParentClipMode(ParentClipMode nMode=ParentClipMode::NONE)
void SetActiveSidebarWin(sw::annotation::SwAnnotationWin *p)
Definition: PostItMgr.cxx:2180
void SetTextObject(std::unique_ptr< OutlinerParaObject > pText)
Definition: docufld.cxx:1822
Dialog to specify the properties of date form field.
IDocumentUndoRedo & GetIDocumentUndoRedo()
Definition: doc.cxx:144
constexpr TypedWhichId< SvxLanguageItem > EE_CHAR_LANGUAGE_CJK(EE_CHAR_START+15)
constexpr TypedWhichId< SwFormatField > RES_TXTATR_ANNOTATION(59)
constexpr TypedWhichId< SvxFontHeightItem > EE_CHAR_FONTHEIGHT(EE_CHAR_START+2)
bool DelRight()
Definition: delete.cxx:293
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:3035
static UITestLogger & getInstance()
SvxLanguageItem GetLanguage() const
void logEvent(const EventDescription &rDescription)
const LocaleDataWrapper & GetLocaleData() const
const OUString & get_id() const
NONE
std::unique_ptr< weld::MenuButton > mxMenuButton
std::unique_ptr< sw::overlay::OverlayRanges > mpTextRangeOverlay
void DisconnectSidebarWinFromFrame(const SwFrame &rFrame, sw::annotation::SwAnnotationWin &rSidebarWin)
Definition: PostItMgr.cxx:2420
SwIndex nContent
Definition: pam.hxx:38
const SwTextField * GetTextField() const
Definition: fmtfld.hxx:128
vcl::Cursor * GetCursor() const
A wrapper around SfxPoolItem to store the start position of (usually) a text portion, with an optional end.
Definition: txatbase.hxx:41
constexpr sal_uInt16 KEY_PAGEUP
sal_Int32 GetStart() const
Definition: txatbase.hxx:86
const SwFormatField & GetFormatField() const
Definition: txatbase.hxx:195
static SvtScriptType GetScriptTypeOfLanguage(LanguageType nLang)
OUString GetText(sal_Int32 nPara) const
EditView & GetEditView() const
SfxItemPool & GetPool() const
virtual FactoryFunction GetUITestFactory() const override
std::unique_ptr< Outliner > mpOutliner
static void RemoveUserEvent(ImplSVEvent *nUserEvent)
virtual ~SwAnnotationWin() override
SwDoc * GetDoc()
returns Doc. But be careful!
Definition: docsh.hxx:203
void ConnectSidebarWinToFrame(const SwFrame &rFrame, const SwFormatField &rFormatField, sw::annotation::SwAnnotationWin &rSidebarWin)
Definition: PostItMgr.cxx:2403
sal_uInt32 GetPostItId() const
Definition: docufld.hxx:480
const EditTextObject & GetTextObject() const
SvtScriptType
virtual std::unique_ptr< SwField > Copy() const override
Definition: docufld.cxx:1779
std::unique_ptr< OutlinerView > mpOutlinerView
void SetAttribs(const SfxItemSet &)
SwAnnotationWin * GetTopReplyNote()
Find the first annotation for the thread which this annotation is in.
void InitAnswer(OutlinerParaObject const *pText)
#define EE_PARA_ALL
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
Definition: uiobject.cxx:206
Window class for the Writer edit area, this is the one handling mouse and keyboard events and doing t...
Definition: edtwin.hxx:58
OUString Apply(const OUString &rStr) const
Definition: SwRewriter.cxx:41
bool IsResolvedPostIts() const
Definition: viewopt.hxx:278
virtual void Invalidate(InvalidateFlags nFlags=InvalidateFlags::NONE)
const SwFrame * mpAnchorFrame
void AddRule(SwUndoArg eWhat, const OUString &rWith)
Definition: SwRewriter.cxx:27
constexpr sal_uInt16 KEY_PAGEDOWN
SwWrtShell * GetWrtShell()
Access to the SwWrtShell belonging to SwView.
Definition: docsh.hxx:224
void GrabFocusToDocument()
void UpdateText(const OUString &aText)
const sal_Int16 mnEventId
OUString SwResId(const char *pId)
Definition: swmodule.cxx:165
sal_uInt32 CalcParent()
Calculate parent postit id of current annotation window.
SwDocShell * GetDocShell()
Definition: view.cxx:1122
void Disable(bool bChild=true)
SwLayoutInfo maLayoutInfo
void InsertText(const OUString &rNew, bool bSelect=false, bool bLOKShowSelect=true)
void LayoutPostIts()
Definition: PostItMgr.cxx:681
constexpr TypedWhichId< SvxLanguageItem > EE_CHAR_LANGUAGE_CTL(EE_CHAR_START+16)
OUString getDate(const Date &rDate) const
void set_id(const OUString &rID)
std::unique_ptr< weld::CustomWeld > mxSidebarTextControlWin
void Broadcast(const SfxHint &rHint)
void SetSelection(const ESelection &)
const OutlinerParaObject * GetTextObject() const
Definition: docufld.hxx:494
SwWrtShell * GetWrtShellPtr() const
Definition: view.hxx:414
bool GotoField(const SwFormatField &rField)
Definition: wrtsh3.cxx:66
SwFieldIds Which() const
ResId.
Definition: fldbas.cxx:245
std::unique_ptr< weld::Container > m_xContainer
std::unique_ptr< sw::sidebarwindows::AnchorOverlayObject > mpAnchor
ITALIC_NORMAL
const SwViewOption * GetViewOptions() const
Definition: viewsh.hxx:423
void SetLayout()
Definition: PostItMgr.hxx:199
virtual void dispose() override
SlideSorterView & mrView
void UpdateResolvedStatus(const sw::annotation::SwAnnotationWin *topNote)
Definition: PostItMgr.cxx:2483
#define EE_TEXTPOS_MAX_COUNT
constexpr TypedWhichId< SvxLanguageItem > EE_CHAR_LANGUAGE(EE_CHAR_START+14)
void ClearMark()
Definition: crsrsh.cxx:938
bool IsVisible() const
sw::annotation::SwAnnotationWin * GetActiveSidebarWin()
Definition: PostItMgr.hxx:233
void SetSelection(const ESelection &rNewSel)
sw::annotation::SwAnnotationWin * GetNextPostIt(sal_uInt16 aDirection, sw::annotation::SwAnnotationWin *aPostIt)
Definition: PostItMgr.cxx:1788
virtual OUString GetPar2() const override
Text.
Definition: docufld.cxx:1810
OUString getTime(const tools::Time &rTime, bool bSec=true, bool b100Sec=false) const
std::map< OUString, OUString > aParameters
SwTextNode & GetTextNode() const
Definition: txtfld.hxx:53
#define EE_PARA_MAX_COUNT
bool SupportsDoubleBuffering() const
virtual const SwFormatField & GetFormatField() const =0
virtual void dispose() override
void RemoveAttribsKeepLanguages(bool bRemoveParaAttribs)
#define EE_TEXTPOS_ALL
std::unique_ptr< sw::sidebarwindows::SidebarTextControl > mxSidebarTextControl
std::unique_ptr< weld::Label > mxMetadataAuthor