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 
37 #include <editeng/eeitem.hxx>
38 #include <editeng/postitem.hxx>
39 #include <editeng/fhgtitem.hxx>
40 #include <editeng/langitem.hxx>
41 
42 #include <editeng/editview.hxx>
43 #include <editeng/outliner.hxx>
44 #include <editeng/editeng.hxx>
45 #include <editeng/editobj.hxx>
46 #include <editeng/outlobj.hxx>
47 
48 #include <comphelper/lok.hxx>
49 #include <docufld.hxx>
50 #include <txtfld.hxx>
51 #include <ndtxt.hxx>
52 #include <view.hxx>
53 #include <viewopt.hxx>
54 #include <wrtsh.hxx>
55 #include <docsh.hxx>
56 #include <doc.hxx>
57 #include <IDocumentUndoRedo.hxx>
58 #include <SwUndoField.hxx>
59 #include <edtwin.hxx>
60 #include "ShadowOverlayObject.hxx"
61 #include "AnchorOverlayObject.hxx"
62 #include "OverlayRanges.hxx"
63 #include "SidebarTxtControl.hxx"
64 
65 #include <memory>
66 
67 namespace{
68 
69 void collectUIInformation( const OUString& aevent , const OUString& aID )
70 {
71  EventDescription aDescription;
72  aDescription.aID = aID;
73  aDescription.aParameters = {{"" , ""}};
74  aDescription.aAction = aevent;
75  aDescription.aParent = "MainWindow";
76  aDescription.aKeyWord = "SwEditWinUIObject";
77  UITestLogger::getInstance().logEvent(aDescription);
78 }
79 
80 }
81 
82 namespace sw::annotation {
83 
84 // see AnnotationContents in sd for something similar
86  SwPostItMgr& aMgr,
87  SwSidebarItem& rSidebarItem,
88  SwFormatField* aField )
89  : InterimItemWindow(&rEditWin, "modules/swriter/ui/annotation.ui", "Annotation")
90  , mrMgr(aMgr)
91  , mrView(rEditWin.GetView())
92  , mnEventId(nullptr)
93  , mColorAnchor()
94  , mColorDark()
95  , mColorLight()
96  , mChangeColor()
97  , meSidebarPosition(sw::sidebarwindows::SidebarPosition::NONE)
98  , mPosSize()
99  , mAnchorRect()
100  , mPageBorder(0)
101  , mbAnchorRectChanged(false)
102  , mbResolvedStateUpdated(false)
103  , mbMouseOver(false)
104  , mLayoutStatus(SwPostItHelper::INVISIBLE)
105  , mbReadonly(false)
106  , mbIsFollow(false)
107  , mrSidebarItem(rSidebarItem)
108  , mpAnchorFrame(rSidebarItem.maLayoutInfo.mpAnchorFrame)
109  , mpFormatField(aField)
110  , mpField( static_cast<SwPostItField*>(aField->GetField()))
111 {
112  set_id("Comment"+OUString::number(mpField->GetPostItId()));
113 
114  m_xContainer->connect_mouse_move(LINK(this, SwAnnotationWin, MouseMoveHdl));
115 
117  if ( mpShadow )
118  {
119  mpShadow->setVisible(false);
120  }
121 
124  *this );
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 (IsDisposed())
140  return;
141 
143  *this );
144 
145  Disable();
146 
147  mxSidebarTextControlWin.reset();
148  mxSidebarTextControl.reset();
149 
150  mxMetadataAuthor.reset();
151  mxMetadataResolved.reset();
152  mxMetadataDate.reset();
153  mxVScrollbar.reset();
154 
155  mpAnchor.reset();
156  mpShadow.reset();
157 
158  mpTextRangeOverlay.reset();
159 
160  mxMenuButton.reset();
161 
162  if (mnEventId)
164 
165  mpOutliner.reset();
166  mpOutlinerView.reset();
167 
169 }
170 
172 {
173  //If the cursor was visible, then make it visible again after
174  //changing text, e.g. fdo#33599
176  bool bCursorVisible = pCursor && pCursor->IsVisible();
177 
178  //If the new text is the same as the old text, keep the same insertion
179  //point .e.g. fdo#33599
180  mpField = static_cast<SwPostItField*>(mpFormatField->GetField());
181  OUString sNewText = mpField->GetPar2();
182  bool bTextUnchanged = sNewText == mpOutliner->GetEditEngine().GetText();
183  ESelection aOrigSelection(GetOutlinerView()->GetEditView().GetSelection());
184 
185  // get text from SwPostItField and insert into our textview
186  mpOutliner->SetModifyHdl( Link<LinkParamNone*,void>() );
187  mpOutliner->EnableUndo( false );
188  if( mpField->GetTextObject() )
189  mpOutliner->SetText( *mpField->GetTextObject() );
190  else
191  {
192  mpOutliner->Clear();
194  GetOutlinerView()->InsertText(sNewText);
195  }
196 
197  mpOutliner->ClearModifyFlag();
198  mpOutliner->GetUndoManager().Clear();
199  mpOutliner->EnableUndo( true );
200  mpOutliner->SetModifyHdl( LINK( this, SwAnnotationWin, ModifyHdl ) );
201  if (bTextUnchanged)
202  GetOutlinerView()->GetEditView().SetSelection(aOrigSelection);
203  if (bCursorVisible)
205  Invalidate();
206 }
207 
208 void SwAnnotationWin::SetResolved(bool resolved)
209 {
210  bool oldState = IsResolved();
211  static_cast<SwPostItField*>(mpFormatField->GetField())->SetResolved(resolved);
212  const SwViewOption* pVOpt = mrView.GetWrtShellPtr()->GetViewOptions();
214 
215  mpTextRangeOverlay.reset();
216 
217  if(IsResolved())
218  mxMetadataResolved->show();
219  else
220  mxMetadataResolved->hide();
221 
222  if(IsResolved() != oldState)
223  mbResolvedStateUpdated = true;
224  UpdateData();
225  Invalidate();
226  collectUIInformation("SETRESOLVED",get_id());
227 }
228 
230 {
232 }
233 
235 {
239 }
240 
242 {
243  // Go to the top and delete each comment one by one
244  SwAnnotationWin *current, *topNote;
245  current = topNote = GetTopReplyNote();
247 
248  while(next && next->GetTopReplyNote() == topNote)
249  {
250  current->mnEventId = Application::PostUserEvent( LINK( current, SwAnnotationWin, DeleteHdl), nullptr, true );
251  current = next;
252  next = mrMgr.GetNextPostIt(KEY_PAGEDOWN, current);
253  }
254  current->mnEventId = Application::PostUserEvent( LINK( current, SwAnnotationWin, DeleteHdl), nullptr, true );
255 }
256 
258 {
259  return static_cast<SwPostItField*>(mpFormatField->GetField())->GetResolved();
260 }
261 
263 {
265  // then iterate downwards checking resolved status
266  SwAnnotationWin *pTopNote, *TopNote;
267  pTopNote = TopNote = GetTopReplyNote();
268  if (!pTopNote->IsResolved())
269  return false;
270 
271  SwAnnotationWin* pSidebarWin = mrMgr.GetNextPostIt(KEY_PAGEDOWN, pTopNote);
272 
273  while (pSidebarWin && pSidebarWin->GetTopReplyNote() == TopNote)
274  {
275  pTopNote = pSidebarWin;
276  if (!pTopNote->IsResolved())
277  return false;
278  pSidebarWin = mrMgr.GetNextPostIt(KEY_PAGEDOWN, pSidebarWin);
279  }
280  return true;
281 }
282 
284 {
285  if ( mpOutliner->IsModified() || mbResolvedStateUpdated )
286  {
287  IDocumentUndoRedo & rUndoRedo(
289  std::unique_ptr<SwField> pOldField;
290  if (rUndoRedo.DoesUndo())
291  {
292  pOldField = mpField->Copy();
293  }
294  mpField->SetPar2(mpOutliner->GetEditEngine().GetText());
295  mpField->SetTextObject(mpOutliner->CreateParaObject());
296  if (rUndoRedo.DoesUndo())
297  {
298  SwTextField *const pTextField = mpFormatField->GetTextField();
299  SwPosition aPosition( pTextField->GetTextNode() );
300  aPosition.nContent = pTextField->GetStart();
301  rUndoRedo.AppendUndo(
302  std::make_unique<SwUndoFieldFromDoc>(aPosition, *pOldField, *mpField, nullptr, true));
303  }
304  // so we get a new layout of notes (anchor position is still the same and we would otherwise not get one)
305  mrMgr.SetLayout();
306  // #i98686# if we have several views, all notes should update their text
309  else
312  }
313  mpOutliner->ClearModifyFlag();
314  mpOutliner->GetUndoManager().Clear();
315  mbResolvedStateUpdated = false;
316 }
317 
319 {
320  collectUIInformation("DELETE",get_id());
322  return;
323 
324  if ( mrMgr.GetActiveSidebarWin() == this)
325  {
326  mrMgr.SetActiveSidebarWin(nullptr);
327  // if the note is empty, the previous line will send a delete event, but we are already there
328  if (mnEventId)
329  {
331  mnEventId = nullptr;
332  }
333  }
334  // we delete the field directly, the Mgr cleans up the PostIt by listening
338 }
339 
341 {
343 }
344 
346 {
347  // if this is an answer, do not skip over all following ones, but insert directly behind the current one
348  // but when just leaving a note, skip all following ones as well to continue typing
349  return mrMgr.IsAnswer()
350  ? 1
351  : 1 + CountFollowing();
352 }
353 
354 // returns a non-zero postit parent id, if exists, otherwise 0 for root comments
356 {
357  SwTextField* pTextField = mpFormatField->GetTextField();
358  SwPosition aPosition( pTextField->GetTextNode() );
359  aPosition.nContent = pTextField->GetStart();
360  SwTextAttr * const pTextAttr =
361  pTextField->GetTextNode().GetTextAttrForCharAt(
362  aPosition.nContent.GetIndex() - 1,
364  const SwField* pField = pTextAttr ? pTextAttr->GetFormatField().GetField() : nullptr;
365  sal_uInt32 nParentId = 0;
366  if (pField && pField->Which() == SwFieldIds::Postit)
367  {
368  const SwPostItField* pPostItField = static_cast<const SwPostItField*>(pField);
369  nParentId = pPostItField->GetPostItId();
370  }
371  return nParentId;
372 }
373 
374 // counts how many SwPostItField we have right after the current one
376 {
377  sal_uInt32 aCount = 1; // we start with 1, so we have to subtract one at the end again
378  SwTextField* pTextField = mpFormatField->GetTextField();
379  SwPosition aPosition( pTextField->GetTextNode() );
380  aPosition.nContent = pTextField->GetStart();
381 
382  SwTextAttr * pTextAttr = pTextField->GetTextNode().GetTextAttrForCharAt(
383  aPosition.nContent.GetIndex() + 1,
385  SwField* pField = pTextAttr
386  ? const_cast<SwField*>(pTextAttr->GetFormatField().GetField())
387  : nullptr;
388  while ( pField && ( pField->Which()== SwFieldIds::Postit ) )
389  {
390  aCount++;
391  pTextAttr = pTextField->GetTextNode().GetTextAttrForCharAt(
392  aPosition.nContent.GetIndex() + aCount,
394  pField = pTextAttr
395  ? const_cast<SwField*>(pTextAttr->GetFormatField().GetField())
396  : nullptr;
397  }
398  return aCount - 1;
399 }
400 
402 {
403  // If tiled annotations is off in lok case, skip adding additional reply text.
405  return;
406 
407  //collect our old meta data
409  if (!pWin)
410  return;
411 
412  const SvtSysLocale aSysLocale;
413  const LocaleDataWrapper& rLocalData = aSysLocale.GetLocaleData();
414  SwRewriter aRewriter;
415  aRewriter.AddRule(UndoArg1, pWin->GetAuthor());
416  const OUString aText = aRewriter.Apply(SwResId(STR_REPLY))
417  + " (" + rLocalData.getDate( pWin->GetDate())
418  + ", " + rLocalData.getTime( pWin->GetTime(), false)
419  + "): \"";
420  GetOutlinerView()->InsertText(aText);
421 
422  // insert old, selected text or "..."
423  // TODO: iterate over all paragraphs, not only first one to find out if it is empty
424  if (!pText->GetTextObject().GetText(0).isEmpty())
426  else
427  GetOutlinerView()->InsertText("...");
428  GetOutlinerView()->InsertText("\"\n");
429 
431  SfxItemSet aAnswerSet( mrView.GetDocShell()->GetPool() );
432  aAnswerSet.Put(SvxFontHeightItem(200,80,EE_CHAR_FONTHEIGHT));
434  GetOutlinerView()->SetAttribs(aAnswerSet);
436 
437  //remove all attributes and reset our standard ones
440  // lets insert an undo step so the initial text can be easily deleted
441  // but do not use UpdateData() directly, would set modified state again and reentrance into Mgr
442  mpOutliner->SetModifyHdl( Link<LinkParamNone*,void>() );
443  IDocumentUndoRedo & rUndoRedo(
445  std::unique_ptr<SwField> pOldField;
446  if (rUndoRedo.DoesUndo())
447  {
448  pOldField = mpField->Copy();
449  }
450  mpField->SetPar2(mpOutliner->GetEditEngine().GetText());
451  mpField->SetTextObject(mpOutliner->CreateParaObject());
452  if (rUndoRedo.DoesUndo())
453  {
454  SwTextField *const pTextField = mpFormatField->GetTextField();
455  SwPosition aPosition( pTextField->GetTextNode() );
456  aPosition.nContent = pTextField->GetStart();
457  rUndoRedo.AppendUndo(
458  std::make_unique<SwUndoFieldFromDoc>(aPosition, *pOldField, *mpField, nullptr, true));
459  }
460  mpOutliner->SetModifyHdl( LINK( this, SwAnnotationWin, ModifyHdl ) );
461  mpOutliner->ClearModifyFlag();
462  mpOutliner->GetUndoManager().Clear();
463 }
464 
465 void SwAnnotationWin::UpdateText(const OUString& aText)
466 {
467  mpOutliner->Clear();
468  GetOutlinerView()->InsertText(aText);
469  UpdateData();
470 }
471 
473 {
474  // set initial language for outliner
476  sal_uInt16 nLangWhichId = 0;
477  switch (nScriptType)
478  {
479  case SvtScriptType::LATIN : nLangWhichId = EE_CHAR_LANGUAGE ; break;
480  case SvtScriptType::ASIAN : nLangWhichId = EE_CHAR_LANGUAGE_CJK; break;
481  case SvtScriptType::COMPLEX : nLangWhichId = EE_CHAR_LANGUAGE_CTL; break;
482  default: OSL_FAIL("GetLanguage: wrong script type");
483  }
484  return SvxLanguageItem(mpField->GetLanguage(),nLangWhichId);
485 }
486 
488 {
489  return mbReadonly ||
492 }
493 
495 {
496  return mpField->GetPar1();
497 }
498 
500 {
501  return mpField->GetDate();
502 }
503 
505 {
506  return mpField->GetTime();
507 }
508 
510 {
512 }
513 
514 } // end of namespace sw::annotation
515 
516 /* 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:1378
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 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:402
const SwFrame * mpAnchorFrame
SwPostItHelper::SwLayoutStatus GetLayoutStatus() const
static std::unique_ptr< ShadowOverlayObject > CreateShadowOverlayObject(SwView const &rDocView)
OutlinerParaObject * IsAnswer()
Definition: PostItMgr.hxx:255
bool IsProtect() const
Definition: atrfld.cxx:399
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:291
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:3049
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:246
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:279
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:166
sal_uInt32 CalcParent()
Calculate parent postit id of current annotation window.
SwDocShell * GetDocShell()
Definition: view.cxx:1110
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:401
bool GotoField(const SwFormatField &rField)
Definition: wrtsh3.cxx:65
SwFieldIds Which() const
ResId.
Definition: fldbas.cxx:243
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:942
bool IsDisposed() const
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