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  , meSidebarPosition(sw::sidebarwindows::SidebarPosition::NONE)
96  , mPageBorder(0)
97  , mbAnchorRectChanged(false)
98  , mbResolvedStateUpdated(false)
99  , mbMouseOver(false)
100  , mLayoutStatus(SwPostItHelper::INVISIBLE)
101  , mbReadonly(false)
102  , mbIsFollow(false)
103  , mrSidebarItem(rSidebarItem)
104  , mpAnchorFrame(rSidebarItem.maLayoutInfo.mpAnchorFrame)
105  , mpFormatField(aField)
106  , mpField( static_cast<SwPostItField*>(aField->GetField()))
107 {
108  set_id("Comment"+OUString::number(mpField->GetPostItId()));
109 
110  m_xContainer->connect_mouse_move(LINK(this, SwAnnotationWin, MouseMoveHdl));
111 
113  if ( mpShadow )
114  {
115  mpShadow->setVisible(false);
116  }
117 
120  *this );
121 
123  // When double-buffering, allow parents to paint on our area. That's
124  // necessary when parents paint the complete buffer.
125  SetParentClipMode(ParentClipMode::NoClip);
126 }
127 
129 {
130  disposeOnce();
131 }
132 
134 {
136  *this );
137 
138  Disable();
139 
140  mxSidebarTextControlWin.reset();
141  mxSidebarTextControl.reset();
142 
143  mxMetadataAuthor.reset();
144  mxMetadataResolved.reset();
145  mxMetadataDate.reset();
146  mxVScrollbar.reset();
147 
148  mpAnchor.reset();
149  mpShadow.reset();
150 
151  mpTextRangeOverlay.reset();
152 
153  mxMenuButton.reset();
154 
155  if (mnEventId)
157 
158  mpOutliner.reset();
159  mpOutlinerView.reset();
160 
162 }
163 
165 {
166  //If the cursor was visible, then make it visible again after
167  //changing text, e.g. fdo#33599
169  bool bCursorVisible = pCursor && pCursor->IsVisible();
170 
171  //If the new text is the same as the old text, keep the same insertion
172  //point .e.g. fdo#33599
173  mpField = static_cast<SwPostItField*>(mpFormatField->GetField());
174  OUString sNewText = mpField->GetPar2();
175  bool bTextUnchanged = sNewText == mpOutliner->GetEditEngine().GetText();
176  ESelection aOrigSelection(GetOutlinerView()->GetEditView().GetSelection());
177 
178  // get text from SwPostItField and insert into our textview
179  mpOutliner->SetModifyHdl( Link<LinkParamNone*,void>() );
180  mpOutliner->EnableUndo( false );
181  if( mpField->GetTextObject() )
182  mpOutliner->SetText( *mpField->GetTextObject() );
183  else
184  {
185  mpOutliner->Clear();
187  GetOutlinerView()->InsertText(sNewText);
188  }
189 
190  mpOutliner->ClearModifyFlag();
191  mpOutliner->GetUndoManager().Clear();
192  mpOutliner->EnableUndo( true );
193  mpOutliner->SetModifyHdl( LINK( this, SwAnnotationWin, ModifyHdl ) );
194  if (bTextUnchanged)
195  GetOutlinerView()->GetEditView().SetSelection(aOrigSelection);
196  if (bCursorVisible)
198  Invalidate();
199 }
200 
201 void SwAnnotationWin::SetResolved(bool resolved)
202 {
203  bool oldState = IsResolved();
204  static_cast<SwPostItField*>(mpFormatField->GetField())->SetResolved(resolved);
205  const SwViewOption* pVOpt = mrView.GetWrtShellPtr()->GetViewOptions();
207 
208  mpTextRangeOverlay.reset();
209 
210  if(IsResolved())
211  mxMetadataResolved->show();
212  else
213  mxMetadataResolved->hide();
214 
215  if(IsResolved() != oldState)
216  mbResolvedStateUpdated = true;
217  UpdateData();
218  Invalidate();
219  collectUIInformation("SETRESOLVED",get_id());
220 }
221 
223 {
225 }
226 
228 {
232 }
233 
235 {
236  // Go to the top and delete each comment one by one
237  SwAnnotationWin *current, *topNote;
238  current = topNote = GetTopReplyNote();
240 
241  while(next && next->GetTopReplyNote() == topNote)
242  {
243  current->mnEventId = Application::PostUserEvent( LINK( current, SwAnnotationWin, DeleteHdl), nullptr, true );
244  current = next;
245  next = mrMgr.GetNextPostIt(KEY_PAGEDOWN, current);
246  }
247  current->mnEventId = Application::PostUserEvent( LINK( current, SwAnnotationWin, DeleteHdl), nullptr, true );
248 }
249 
251 {
252  return static_cast<SwPostItField*>(mpFormatField->GetField())->GetResolved();
253 }
254 
256 {
258  // then iterate downwards checking resolved status
259  SwAnnotationWin *pTopNote, *TopNote;
260  pTopNote = TopNote = GetTopReplyNote();
261  if (!pTopNote->IsResolved())
262  return false;
263 
264  SwAnnotationWin* pSidebarWin = mrMgr.GetNextPostIt(KEY_PAGEDOWN, pTopNote);
265 
266  while (pSidebarWin && pSidebarWin->GetTopReplyNote() == TopNote)
267  {
268  pTopNote = pSidebarWin;
269  if (!pTopNote->IsResolved())
270  return false;
271  pSidebarWin = mrMgr.GetNextPostIt(KEY_PAGEDOWN, pSidebarWin);
272  }
273  return true;
274 }
275 
277 {
278  if ( mpOutliner->IsModified() || mbResolvedStateUpdated )
279  {
280  IDocumentUndoRedo & rUndoRedo(
282  std::unique_ptr<SwField> pOldField;
283  if (rUndoRedo.DoesUndo())
284  {
285  pOldField = mpField->Copy();
286  }
287  mpField->SetPar2(mpOutliner->GetEditEngine().GetText());
288  mpField->SetTextObject(mpOutliner->CreateParaObject());
289  if (rUndoRedo.DoesUndo())
290  {
291  SwTextField *const pTextField = mpFormatField->GetTextField();
292  SwPosition aPosition( pTextField->GetTextNode() );
293  aPosition.nContent = pTextField->GetStart();
294  rUndoRedo.AppendUndo(
295  std::make_unique<SwUndoFieldFromDoc>(aPosition, *pOldField, *mpField, nullptr, true));
296  }
297  // so we get a new layout of notes (anchor position is still the same and we would otherwise not get one)
298  mrMgr.SetLayout();
299  // #i98686# if we have several views, all notes should update their text
302  else
305  }
306  mpOutliner->ClearModifyFlag();
307  mpOutliner->GetUndoManager().Clear();
308  mbResolvedStateUpdated = false;
309 }
310 
312 {
313  collectUIInformation("DELETE",get_id());
315  return;
316 
317  if ( mrMgr.GetActiveSidebarWin() == this)
318  {
319  mrMgr.SetActiveSidebarWin(nullptr);
320  // if the note is empty, the previous line will send a delete event, but we are already there
321  if (mnEventId)
322  {
324  mnEventId = nullptr;
325  }
326  }
327  // we delete the field directly, the Mgr cleans up the PostIt by listening
331 }
332 
334 {
336 }
337 
339 {
340  // if this is an answer, do not skip over all following ones, but insert directly behind the current one
341  // but when just leaving a note, skip all following ones as well to continue typing
342  return mrMgr.IsAnswer()
343  ? 1
344  : 1 + CountFollowing();
345 }
346 
347 // returns a non-zero postit parent id, if exists, otherwise 0 for root comments
349 {
350  SwTextField* pTextField = mpFormatField->GetTextField();
351  SwPosition aPosition( pTextField->GetTextNode() );
352  aPosition.nContent = pTextField->GetStart();
353  SwTextAttr * const pTextAttr =
354  pTextField->GetTextNode().GetTextAttrForCharAt(
355  aPosition.nContent.GetIndex() - 1,
357  const SwField* pField = pTextAttr ? pTextAttr->GetFormatField().GetField() : nullptr;
358  sal_uInt32 nParentId = 0;
359  if (pField && pField->Which() == SwFieldIds::Postit)
360  {
361  const SwPostItField* pPostItField = static_cast<const SwPostItField*>(pField);
362  nParentId = pPostItField->GetPostItId();
363  }
364  return nParentId;
365 }
366 
367 // counts how many SwPostItField we have right after the current one
369 {
370  sal_uInt32 aCount = 1; // we start with 1, so we have to subtract one at the end again
371  SwTextField* pTextField = mpFormatField->GetTextField();
372  SwPosition aPosition( pTextField->GetTextNode() );
373  aPosition.nContent = pTextField->GetStart();
374 
375  SwTextAttr * pTextAttr = pTextField->GetTextNode().GetTextAttrForCharAt(
376  aPosition.nContent.GetIndex() + 1,
378  SwField* pField = pTextAttr
379  ? const_cast<SwField*>(pTextAttr->GetFormatField().GetField())
380  : nullptr;
381  while ( pField && ( pField->Which()== SwFieldIds::Postit ) )
382  {
383  aCount++;
384  pTextAttr = pTextField->GetTextNode().GetTextAttrForCharAt(
385  aPosition.nContent.GetIndex() + aCount,
387  pField = pTextAttr
388  ? const_cast<SwField*>(pTextAttr->GetFormatField().GetField())
389  : nullptr;
390  }
391  return aCount - 1;
392 }
393 
395 {
396  // If tiled annotations is off in lok case, skip adding additional reply text.
398  return;
399 
400  //collect our old meta data
402  if (!pWin)
403  return;
404 
405  const SvtSysLocale aSysLocale;
406  const LocaleDataWrapper& rLocalData = aSysLocale.GetLocaleData();
407  SwRewriter aRewriter;
408  aRewriter.AddRule(UndoArg1, pWin->GetAuthor());
409  const OUString aText = aRewriter.Apply(SwResId(STR_REPLY))
410  + " (" + rLocalData.getDate( pWin->GetDate())
411  + ", " + rLocalData.getTime( pWin->GetTime(), false)
412  + "): \"";
413  GetOutlinerView()->InsertText(aText);
414 
415  // insert old, selected text or "..."
416  // TODO: iterate over all paragraphs, not only first one to find out if it is empty
417  if (!rText.GetTextObject().GetText(0).isEmpty())
419  else
420  GetOutlinerView()->InsertText("...");
421  GetOutlinerView()->InsertText("\"\n");
422 
424  SfxItemSet aAnswerSet( mrView.GetDocShell()->GetPool() );
425  aAnswerSet.Put(SvxFontHeightItem(200,80,EE_CHAR_FONTHEIGHT));
427  GetOutlinerView()->SetAttribs(aAnswerSet);
429 
430  //remove all attributes and reset our standard ones
433  // lets insert an undo step so the initial text can be easily deleted
434  // but do not use UpdateData() directly, would set modified state again and reentrance into Mgr
435  mpOutliner->SetModifyHdl( Link<LinkParamNone*,void>() );
436  IDocumentUndoRedo & rUndoRedo(
438  std::unique_ptr<SwField> pOldField;
439  if (rUndoRedo.DoesUndo())
440  {
441  pOldField = mpField->Copy();
442  }
443  mpField->SetPar2(mpOutliner->GetEditEngine().GetText());
444  mpField->SetTextObject(mpOutliner->CreateParaObject());
445  if (rUndoRedo.DoesUndo())
446  {
447  SwTextField *const pTextField = mpFormatField->GetTextField();
448  SwPosition aPosition( pTextField->GetTextNode() );
449  aPosition.nContent = pTextField->GetStart();
450  rUndoRedo.AppendUndo(
451  std::make_unique<SwUndoFieldFromDoc>(aPosition, *pOldField, *mpField, nullptr, true));
452  }
453  mpOutliner->SetModifyHdl( LINK( this, SwAnnotationWin, ModifyHdl ) );
454  mpOutliner->ClearModifyFlag();
455  mpOutliner->GetUndoManager().Clear();
456 }
457 
458 void SwAnnotationWin::UpdateText(const OUString& aText)
459 {
460  mpOutliner->Clear();
461  GetOutlinerView()->InsertText(aText);
462  UpdateData();
463 }
464 
466 {
467  // set initial language for outliner
469  sal_uInt16 nLangWhichId = 0;
470  switch (nScriptType)
471  {
472  case SvtScriptType::LATIN : nLangWhichId = EE_CHAR_LANGUAGE ; break;
473  case SvtScriptType::ASIAN : nLangWhichId = EE_CHAR_LANGUAGE_CJK; break;
474  case SvtScriptType::COMPLEX : nLangWhichId = EE_CHAR_LANGUAGE_CTL; break;
475  default: OSL_FAIL("GetLanguage: wrong script type");
476  }
477  return SvxLanguageItem(mpField->GetLanguage(),nLangWhichId);
478 }
479 
481 {
482  return mbReadonly ||
485 }
486 
488 {
489  return mpField->GetPar1();
490 }
491 
493 {
494  return mpField->GetDate();
495 }
496 
498 {
499  return mpField->GetTime();
500 }
501 
503 {
505 }
506 
507 } // end of namespace sw::annotation
508 
509 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::Label > mxMetadataDate
Date GetDate() const
Definition: docufld.hxx:479
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
OutlinerParaObject * IsAnswer()
Definition: PostItMgr.hxx:256
void GetSelection(struct ESelection &rSel, SvxTextForwarder const *pForwarder) noexcept
bool IsProtect() const
Definition: atrfld.cxx:425
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:1805
std::function< std::unique_ptr< UIObject >vcl::Window *)> FactoryFunction
tools::Time GetTime() const
Definition: docufld.hxx:480
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
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:2178
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:295
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:3044
OUString SwResId(TranslateId aId)
Definition: swmodule.cxx:165
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:2418
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
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:2401
sal_uInt32 GetPostItId() const
Definition: docufld.hxx:481
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.
#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)
virtual OUString GetText(sal_Int32 nPara) const =0
const SwFrame * mpAnchorFrame
static std::unique_ptr< ShadowOverlayObject > CreateShadowOverlayObject(SwView const &rDocView)
void AddRule(SwUndoArg eWhat, const OUString &rWith)
Definition: SwRewriter.cxx:27
constexpr sal_uInt16 KEY_PAGEDOWN
SvtScriptType GetScriptTypeOfLanguage(LanguageType nLang)
SwWrtShell * GetWrtShell()
Access to the SwWrtShell belonging to SwView.
Definition: docsh.hxx:224
void GrabFocusToDocument()
void UpdateText(const OUString &aText)
const sal_Int16 mnEventId
sal_uInt32 CalcParent()
Calculate parent postit id of current annotation window.
SwDocShell * GetDocShell()
Definition: view.cxx:1127
void Disable(bool bChild=true)
SwLayoutInfo maLayoutInfo
void InsertText(const OUString &rNew, bool bSelect=false, bool bLOKShowSelect=true)
void LayoutPostIts()
Definition: PostItMgr.cxx:680
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
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
void Broadcast(const SfxHint &rHint)
void SetSelection(const ESelection &)
const OutlinerParaObject * GetTextObject() const
Definition: docufld.hxx:495
void InitAnswer(OutlinerParaObject const &rText)
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:200
virtual void dispose() override
SlideSorterView & mrView
void UpdateResolvedStatus(const sw::annotation::SwAnnotationWin *topNote)
Definition: PostItMgr.cxx:2481
#define EE_TEXTPOS_MAX_COUNT
constexpr TypedWhichId< SvxLanguageItem > EE_CHAR_LANGUAGE(EE_CHAR_START+14)
void ClearMark()
Definition: crsrsh.cxx:939
bool IsVisible() const
sw::annotation::SwAnnotationWin * GetActiveSidebarWin()
Definition: PostItMgr.hxx:234
void SetSelection(const ESelection &rNewSel)
sw::annotation::SwAnnotationWin * GetNextPostIt(sal_uInt16 aDirection, sw::annotation::SwAnnotationWin *aPostIt)
Definition: PostItMgr.cxx:1786
virtual OUString GetPar2() const override
Text.
Definition: docufld.cxx:1811
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
void SetTextObject(std::optional< OutlinerParaObject > pText)
Definition: docufld.cxx:1823