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 "AnnotationMenuButton.hxx"
23 #include <PostItMgr.hxx>
24 
25 #include <strings.hrc>
26 
27 #include <uiobject.hxx>
28 
29 #include <vcl/fixed.hxx>
30 #include <vcl/menu.hxx>
31 #include <vcl/scrbar.hxx>
32 #include <vcl/settings.hxx>
33 #include <vcl/svapp.hxx>
34 #include <vcl/uitest/logger.hxx>
36 
37 #include <svl/undo.hxx>
39 #include <unotools/syslocale.hxx>
40 #include <svl/languageoptions.hxx>
41 
42 #include <editeng/eeitem.hxx>
43 #include <editeng/postitem.hxx>
44 #include <editeng/fhgtitem.hxx>
45 #include <editeng/langitem.hxx>
46 
47 #include <editeng/editview.hxx>
48 #include <editeng/outliner.hxx>
49 #include <editeng/editeng.hxx>
50 #include <editeng/editobj.hxx>
51 #include <editeng/outlobj.hxx>
52 
53 #include <comphelper/lok.hxx>
54 #include <docufld.hxx>
55 #include <txtfld.hxx>
56 #include <ndtxt.hxx>
57 #include <view.hxx>
58 #include <viewopt.hxx>
59 #include <wrtsh.hxx>
60 #include <docsh.hxx>
61 #include <doc.hxx>
62 #include <IDocumentUndoRedo.hxx>
63 #include <SwUndoField.hxx>
64 #include <edtwin.hxx>
65 #include "ShadowOverlayObject.hxx"
66 #include "AnchorOverlayObject.hxx"
67 #include "OverlayRanges.hxx"
68 #include "SidebarTxtControl.hxx"
69 
70 #include <memory>
71 
72 namespace{
73 
74 void 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 
87 namespace sw::annotation {
88 
90  SwPostItMgr& aMgr,
91  SwSidebarItem& rSidebarItem,
92  SwFormatField* aField )
93  : Window(&rEditWin)
94  , maBuilder(nullptr, AllSettings::GetUIRootDir(), "modules/swriter/ui/annotationmenu.ui", "")
95  , mrMgr(aMgr)
96  , mrView(rEditWin.GetView())
97  , mnEventId(nullptr)
98  , mpSidebarTextControl(nullptr)
99  , mpVScrollbar(nullptr)
100  , mpMetadataAuthor(nullptr)
101  , mpMetadataDate(nullptr)
102  , mpMenuButton(nullptr)
103  , mColorAnchor()
104  , mColorDark()
105  , mColorLight()
106  , mChangeColor()
107  , meSidebarPosition(sw::sidebarwindows::SidebarPosition::NONE)
108  , mPosSize()
109  , mAnchorRect()
110  , mPageBorder(0)
111  , mbAnchorRectChanged(false)
112  , mbResolvedStateUpdated(false)
113  , mbMouseOver(false)
114  , mLayoutStatus(SwPostItHelper::INVISIBLE)
115  , mbReadonly(false)
116  , mbIsFollow(false)
117  , mrSidebarItem(rSidebarItem)
118  , mpAnchorFrame(rSidebarItem.maLayoutInfo.mpAnchorFrame)
119  , mpFormatField(aField)
120  , mpField( static_cast<SwPostItField*>(aField->GetField()))
121  , mpButtonPopup(nullptr)
122 {
123  set_id("Comment"+OUString::number(mpField->GetPostItId()));
124 
126  if ( mpShadow )
127  {
128  mpShadow->setVisible(false);
129  }
130 
133  *this );
134 
136  // When double-buffering, allow parents to paint on our area. That's
137  // necessary when parents paint the complete buffer.
138  SetParentClipMode(ParentClipMode::NoClip);
139 }
140 
142 {
143  disposeOnce();
144 }
145 
147 {
150 
151  if (IsDisposed())
152  return;
153 
155  *this );
156 
157  Disable();
158 
159  if ( mpSidebarTextControl )
160  {
161  if ( mpOutlinerView )
162  {
163  mpOutlinerView->SetWindow( nullptr );
164  }
165  }
167 
168  mpOutlinerView.reset();
169  mpOutliner.reset();
170 
171  if (mpMetadataAuthor)
172  {
173  mpMetadataAuthor->RemoveEventListener( LINK( this, SwAnnotationWin, WindowEventListener ) );
174  }
176 
177  if (mpMetadataResolved)
178  {
179  mpMetadataResolved->RemoveEventListener( LINK( this, SwAnnotationWin, WindowEventListener ) );
180  }
182 
183  if (mpMetadataDate)
184  {
185  mpMetadataDate->RemoveEventListener( LINK( this, SwAnnotationWin, WindowEventListener ) );
186  }
188 
189  if (mpVScrollbar)
190  {
191  mpVScrollbar->RemoveEventListener( LINK( this, SwAnnotationWin, WindowEventListener ) );
192  }
194 
195  RemoveEventListener( LINK( this, SwAnnotationWin, WindowEventListener ) );
196 
197  mpAnchor.reset();
198  mpShadow.reset();
199 
200  mpTextRangeOverlay.reset();
201 
203 
204  if (mnEventId)
206 
208 }
209 
211 {
212  //If the cursor was visible, then make it visible again after
213  //changing text, e.g. fdo#33599
215  bool bCursorVisible = pCursor && pCursor->IsVisible();
216 
217  //If the new text is the same as the old text, keep the same insertion
218  //point .e.g. fdo#33599
219  mpField = static_cast<SwPostItField*>(mpFormatField->GetField());
220  OUString sNewText = mpField->GetPar2();
221  bool bTextUnchanged = sNewText == mpOutliner->GetEditEngine().GetText();
222  ESelection aOrigSelection(GetOutlinerView()->GetEditView().GetSelection());
223 
224  // get text from SwPostItField and insert into our textview
225  mpOutliner->SetModifyHdl( Link<LinkParamNone*,void>() );
226  mpOutliner->EnableUndo( false );
227  if( mpField->GetTextObject() )
228  mpOutliner->SetText( *mpField->GetTextObject() );
229  else
230  {
231  mpOutliner->Clear();
233  GetOutlinerView()->InsertText(sNewText);
234  }
235 
236  mpOutliner->ClearModifyFlag();
237  mpOutliner->GetUndoManager().Clear();
238  mpOutliner->EnableUndo( true );
239  mpOutliner->SetModifyHdl( LINK( this, SwAnnotationWin, ModifyHdl ) );
240  if (bTextUnchanged)
241  GetOutlinerView()->GetEditView().SetSelection(aOrigSelection);
242  if (bCursorVisible)
244  Invalidate();
245 }
246 
247 void SwAnnotationWin::SetResolved(bool resolved)
248 {
249  bool oldState = IsResolved();
250  static_cast<SwPostItField*>(mpFormatField->GetField())->SetResolved(resolved);
251  const SwViewOption* pVOpt = mrView.GetWrtShellPtr()->GetViewOptions();
252  mrSidebarItem.bShow = !IsResolved() || (pVOpt->IsResolvedPostIts());
253 
254  mpTextRangeOverlay.reset();
255 
256  if(IsResolved())
258  else
260 
261  if(IsResolved() != oldState)
262  mbResolvedStateUpdated = true;
263  UpdateData();
264  Invalidate();
265  collectUIInformation("SETRESOLVED",get_id());
266 }
267 
269 {
271 }
272 
274 {
278 }
279 
281 {
282  return static_cast<SwPostItField*>(mpFormatField->GetField())->GetResolved();
283 }
284 
286 {
287  // Not const because GetTopReplyNote isn't.
288  return GetTopReplyNote()->IsResolved();
289 }
290 
292 {
293  if ( mpOutliner->IsModified() || mbResolvedStateUpdated )
294  {
295  IDocumentUndoRedo & rUndoRedo(
297  std::unique_ptr<SwField> pOldField;
298  if (rUndoRedo.DoesUndo())
299  {
300  pOldField = mpField->Copy();
301  }
302  mpField->SetPar2(mpOutliner->GetEditEngine().GetText());
303  mpField->SetTextObject(mpOutliner->CreateParaObject());
304  if (rUndoRedo.DoesUndo())
305  {
306  SwTextField *const pTextField = mpFormatField->GetTextField();
307  SwPosition aPosition( pTextField->GetTextNode() );
308  aPosition.nContent = pTextField->GetStart();
309  rUndoRedo.AppendUndo(
310  std::make_unique<SwUndoFieldFromDoc>(aPosition, *pOldField, *mpField, nullptr, true));
311  }
312  // so we get a new layout of notes (anchor position is still the same and we would otherwise not get one)
313  mrMgr.SetLayout();
314  // #i98686# if we have several views, all notes should update their text
317  else
320  }
321  mpOutliner->ClearModifyFlag();
322  mpOutliner->GetUndoManager().Clear();
323  mbResolvedStateUpdated = false;
324 }
325 
327 {
328  collectUIInformation("DELETE",get_id());
330  return;
331 
332  if ( mrMgr.GetActiveSidebarWin() == this)
333  {
334  mrMgr.SetActiveSidebarWin(nullptr);
335  // if the note is empty, the previous line will send a delete event, but we are already there
336  if (mnEventId)
337  {
339  mnEventId = nullptr;
340  }
341  }
342  // we delete the field directly, the Mgr cleans up the PostIt by listening
346 }
347 
349 {
351 }
352 
354 {
355  // if this is an answer, do not skip over all following ones, but insert directly behind the current one
356  // but when just leaving a note, skip all following ones as well to continue typing
357  return mrMgr.IsAnswer()
358  ? 1
359  : 1 + CountFollowing();
360 }
361 
362 // returns a non-zero postit parent id, if exists, otherwise 0 for root comments
364 {
365  SwTextField* pTextField = mpFormatField->GetTextField();
366  SwPosition aPosition( pTextField->GetTextNode() );
367  aPosition.nContent = pTextField->GetStart();
368  SwTextAttr * const pTextAttr =
369  pTextField->GetTextNode().GetTextAttrForCharAt(
370  aPosition.nContent.GetIndex() - 1,
372  const SwField* pField = pTextAttr ? pTextAttr->GetFormatField().GetField() : nullptr;
373  sal_uInt32 nParentId = 0;
374  if (pField && pField->Which() == SwFieldIds::Postit)
375  {
376  const SwPostItField* pPostItField = static_cast<const SwPostItField*>(pField);
377  nParentId = pPostItField->GetPostItId();
378  }
379  return nParentId;
380 }
381 
382 // counts how many SwPostItField we have right after the current one
384 {
385  sal_uInt32 aCount = 1; // we start with 1, so we have to subtract one at the end again
386  SwTextField* pTextField = mpFormatField->GetTextField();
387  SwPosition aPosition( pTextField->GetTextNode() );
388  aPosition.nContent = pTextField->GetStart();
389 
390  SwTextAttr * pTextAttr = pTextField->GetTextNode().GetTextAttrForCharAt(
391  aPosition.nContent.GetIndex() + 1,
393  SwField* pField = pTextAttr
394  ? const_cast<SwField*>(pTextAttr->GetFormatField().GetField())
395  : nullptr;
396  while ( pField && ( pField->Which()== SwFieldIds::Postit ) )
397  {
398  aCount++;
399  pTextAttr = pTextField->GetTextNode().GetTextAttrForCharAt(
400  aPosition.nContent.GetIndex() + aCount,
402  pField = pTextAttr
403  ? const_cast<SwField*>(pTextAttr->GetFormatField().GetField())
404  : nullptr;
405  }
406  return aCount - 1;
407 }
408 
410 {
411  mpButtonPopup = maBuilder.get_menu("menu");
412  sal_uInt16 nByAuthorId = mpButtonPopup->GetItemId("deleteby");
413  OUString aText = mpButtonPopup->GetItemText(nByAuthorId);
414  SwRewriter aRewriter;
415  aRewriter.AddRule(UndoArg1,GetAuthor());
416  aText = aRewriter.Apply(aText);
417  mpButtonPopup->SetItemText(nByAuthorId, aText);
418  VclPtrInstance<AnnotationMenuButton> pMenuButton( *this );
419  pMenuButton->SetPopupMenu( mpButtonPopup );
420  pMenuButton->Show();
421  return pMenuButton;
422 }
423 
425 {
426  // If tiled annotations is off in lok case, skip adding additional reply text.
428  return;
429 
430  //collect our old meta data
432  const SvtSysLocale aSysLocale;
433  const LocaleDataWrapper& rLocalData = aSysLocale.GetLocaleData();
434  SwRewriter aRewriter;
435  aRewriter.AddRule(UndoArg1, pWin->GetAuthor());
436  const OUString aText = aRewriter.Apply(SwResId(STR_REPLY))
437  + " (" + rLocalData.getDate( pWin->GetDate())
438  + ", " + rLocalData.getTime( pWin->GetTime(), false)
439  + "): \"";
440  GetOutlinerView()->InsertText(aText);
441 
442  // insert old, selected text or "..."
443  // TODO: iterate over all paragraphs, not only first one to find out if it is empty
444  if (!pText->GetTextObject().GetText(0).isEmpty())
446  else
447  GetOutlinerView()->InsertText("...");
448  GetOutlinerView()->InsertText("\"\n");
449 
451  SfxItemSet aAnswerSet( mrView.GetDocShell()->GetPool() );
452  aAnswerSet.Put(SvxFontHeightItem(200,80,EE_CHAR_FONTHEIGHT));
454  GetOutlinerView()->SetAttribs(aAnswerSet);
456 
457  //remove all attributes and reset our standard ones
460  // lets insert an undo step so the initial text can be easily deleted
461  // but do not use UpdateData() directly, would set modified state again and reentrance into Mgr
462  mpOutliner->SetModifyHdl( Link<LinkParamNone*,void>() );
463  IDocumentUndoRedo & rUndoRedo(
465  std::unique_ptr<SwField> pOldField;
466  if (rUndoRedo.DoesUndo())
467  {
468  pOldField = mpField->Copy();
469  }
470  mpField->SetPar2(mpOutliner->GetEditEngine().GetText());
471  mpField->SetTextObject(mpOutliner->CreateParaObject());
472  if (rUndoRedo.DoesUndo())
473  {
474  SwTextField *const pTextField = mpFormatField->GetTextField();
475  SwPosition aPosition( pTextField->GetTextNode() );
476  aPosition.nContent = pTextField->GetStart();
477  rUndoRedo.AppendUndo(
478  std::make_unique<SwUndoFieldFromDoc>(aPosition, *pOldField, *mpField, nullptr, true));
479  }
480  mpOutliner->SetModifyHdl( LINK( this, SwAnnotationWin, ModifyHdl ) );
481  mpOutliner->ClearModifyFlag();
482  mpOutliner->GetUndoManager().Clear();
483 }
484 
485 void SwAnnotationWin::UpdateText(const OUString& aText)
486 {
487  mpOutliner->Clear();
488  GetOutlinerView()->InsertText(aText);
489  UpdateData();
490 }
491 
493 {
494  // set initial language for outliner
496  sal_uInt16 nLangWhichId = 0;
497  switch (nScriptType)
498  {
499  case SvtScriptType::LATIN : nLangWhichId = EE_CHAR_LANGUAGE ; break;
500  case SvtScriptType::ASIAN : nLangWhichId = EE_CHAR_LANGUAGE_CJK; break;
501  case SvtScriptType::COMPLEX : nLangWhichId = EE_CHAR_LANGUAGE_CTL; break;
502  default: OSL_FAIL("GetLanguage: wrong script type");
503  }
504  return SvxLanguageItem(mpField->GetLanguage(),nLangWhichId);
505 }
506 
508 {
509  return mbReadonly ||
512 }
513 
515 {
516  return mpField->GetPar1();
517 }
518 
520 {
521  return mpField->GetDate();
522 }
523 
525 {
526  return mpField->GetTime();
527 }
528 
530 {
532 }
533 
534 } // end of namespace sw::annotation
535 
536 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Date GetDate() const
Definition: docufld.hxx:474
VclPtr< FixedText > mpMetadataResolved
virtual void SetModified(bool=true) override
Definition: docsh2.cxx:1378
Marks a position in the document model.
Definition: pam.hxx:35
const SwField * GetField() const
Definition: fmtfld.hxx:111
void GetSelection(struct ESelection &rSel, SvxTextForwarder const *pForwarder)
void InsertText(const OUString &rNew, bool bSelect=false)
LanguageType GetLanguage() const
Language at field position.
Definition: fldbas.hxx:406
const SwFrame * mpAnchorFrame
VclPtr< MenuButton > mpMenuButton
SwPostItHelper::SwLayoutStatus GetLayoutStatus() const
static std::unique_ptr< ShadowOverlayObject > CreateShadowOverlayObject(SwView const &rDocView)
OutlinerParaObject * IsAnswer()
Definition: PostItMgr.hxx:254
bool IsProtect() const
Definition: atrfld.cxx:400
VclPtr< FixedText > mpMetadataDate
void ShowCursor(bool bGotoCursor=true, bool bActivate=false)
void disposeAndClear()
Base class of all fields.
Definition: fldbas.hxx:293
virtual void SetPar2(const OUString &rStr) override
set the PostIt's text
Definition: docufld.cxx:1805
std::function< std::unique_ptr< UIObject >vcl::Window *)> FactoryFunction
tools::Time GetTime() const
Definition: docufld.hxx:475
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:1799
void SetParentClipMode(ParentClipMode nMode=ParentClipMode::NONE)
void SetActiveSidebarWin(sw::annotation::SwAnnotationWin *p)
Definition: PostItMgr.cxx:2134
void SetTextObject(std::unique_ptr< OutlinerParaObject > pText)
Definition: docufld.cxx:1823
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)
virtual void dispose() override
constexpr TypedWhichId< SwFormatField > RES_TXTATR_ANNOTATION(59)
constexpr TypedWhichId< SvxFontHeightItem > EE_CHAR_FONTHEIGHT(EE_CHAR_START+2)
bool DelRight()
Definition: delete.cxx:292
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:3054
static UITestLogger & getInstance()
SvxLanguageItem GetLanguage() const
void logEvent(const EventDescription &rDescription)
const LocaleDataWrapper & GetLocaleData() const
const OUString & get_id() const
NONE
std::unique_ptr< sw::overlay::OverlayRanges > mpTextRangeOverlay
void DisconnectSidebarWinFromFrame(const SwFrame &rFrame, sw::annotation::SwAnnotationWin &rSidebarWin)
Definition: PostItMgr.cxx:2374
VclPtr< FixedText > mpMetadataAuthor
SwIndex nContent
Definition: pam.hxx:38
const SwTextField * GetTextField() const
Definition: fmtfld.hxx:129
vcl::Cursor * GetCursor() const
constexpr sal_uInt16 KEY_PAGEUP
sal_Int32 GetStart() const
Definition: txatbase.hxx:82
const SwFormatField & GetFormatField() const
Definition: txatbase.hxx:191
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:2357
sal_uInt32 GetPostItId() const
Definition: docufld.hxx:476
const EditTextObject & GetTextObject() const
SvtScriptType
virtual std::unique_ptr< SwField > Copy() const override
Definition: docufld.cxx:1780
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:245
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:43
bool IsResolvedPostIts() const
Definition: viewopt.hxx:276
sal_uInt16 GetItemId(sal_uInt16 nPos) const
virtual void Invalidate(InvalidateFlags nFlags=InvalidateFlags::NONE)
const SwFrame * mpAnchorFrame
void AddRule(SwUndoArg eWhat, const OUString &rWith)
Definition: SwRewriter.cxx:29
SwWrtShell * GetWrtShell()
Access to the SwWrtShell belonging to SwView.
Definition: docsh.hxx:224
void GrabFocusToDocument()
void UpdateText(const OUString &aText)
const sal_Int16 mnEventId
void InsertText(const OUString &rNew, bool bSelect=false)
OUString SwResId(const char *pId)
Definition: swmodule.cxx:165
OUString GetItemText(sal_uInt16 nItemId) const
sal_uInt32 CalcParent()
Calculate parent postit id of current annotation window.
SwDocShell * GetDocShell()
Definition: view.cxx:1108
void Disable(bool bChild=true)
SwLayoutInfo maLayoutInfo
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)
void Broadcast(const SfxHint &rHint)
void SetSelection(const ESelection &)
const OutlinerParaObject * GetTextObject() const
Definition: docufld.hxx:490
SwWrtShell * GetWrtShellPtr() const
Definition: view.hxx:399
bool GotoField(const SwFormatField &rField)
Definition: wrtsh3.cxx:65
void disposeBuilder()
SwFieldIds Which() const
ResId.
Definition: fldbas.cxx:231
std::unique_ptr< sw::sidebarwindows::AnchorOverlayObject > mpAnchor
ITALIC_NORMAL
VclPtr< sw::sidebarwindows::SidebarTextControl > mpSidebarTextControl
const SwViewOption * GetViewOptions() const
Definition: viewsh.hxx:423
void SetLayout()
Definition: PostItMgr.hxx:199
SlideSorterView & mrView
void UpdateResolvedStatus(const sw::annotation::SwAnnotationWin *topNote)
Definition: PostItMgr.cxx:2437
#define EE_TEXTPOS_MAX_COUNT
PopupMenu * get_menu(const OString &sID)
constexpr TypedWhichId< SvxLanguageItem > EE_CHAR_LANGUAGE(EE_CHAR_START+14)
void ClearMark()
Definition: crsrsh.cxx:937
bool IsDisposed() const
bool IsVisible() const
sw::annotation::SwAnnotationWin * GetActiveSidebarWin()
Definition: PostItMgr.hxx:232
void SetSelection(const ESelection &rNewSel)
sw::annotation::SwAnnotationWin * GetNextPostIt(sal_uInt16 aDirection, sw::annotation::SwAnnotationWin *aPostIt)
Definition: PostItMgr.cxx:1742
VclPtr< ScrollBar > mpVScrollbar
virtual OUString GetPar2() const override
Text.
Definition: docufld.cxx:1811
void RemoveEventListener(const Link< VclWindowEvent &, void > &rEventListener)
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
VclPtr< PopupMenu > mpButtonPopup
VclPtr< MenuButton > CreateMenuButton()
void Show(bool bVisible=true, ShowFlags nFlags=ShowFlags::NONE)
void SetItemText(sal_uInt16 nItemId, const OUString &rStr)