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/edit.hxx>
30 #include <vcl/menu.hxx>
31 #include <vcl/scrbar.hxx>
32 #include <vcl/svapp.hxx>
33 
34 #include <svl/undo.hxx>
36 #include <unotools/syslocale.hxx>
37 #include <svl/languageoptions.hxx>
38 
39 #include <editeng/eeitem.hxx>
40 #include <editeng/postitem.hxx>
41 #include <editeng/fhgtitem.hxx>
42 #include <editeng/langitem.hxx>
43 
44 #include <editeng/editview.hxx>
45 #include <editeng/outliner.hxx>
46 #include <editeng/editeng.hxx>
47 #include <editeng/editobj.hxx>
48 #include <editeng/outlobj.hxx>
49 
50 #include <comphelper/lok.hxx>
51 #include <docufld.hxx>
52 #include <txtfld.hxx>
53 #include <ndtxt.hxx>
54 #include <view.hxx>
55 #include <viewopt.hxx>
56 #include <wrtsh.hxx>
57 #include <docsh.hxx>
58 #include <doc.hxx>
59 #include <IDocumentUndoRedo.hxx>
60 #include <SwUndoField.hxx>
61 #include <edtwin.hxx>
62 #include "ShadowOverlayObject.hxx"
63 #include "AnchorOverlayObject.hxx"
64 #include "OverlayRanges.hxx"
65 #include "SidebarTxtControl.hxx"
66 
67 #include <memory>
68 
69 namespace sw::annotation {
70 
72  SwPostItMgr& aMgr,
73  SwSidebarItem& rSidebarItem,
74  SwFormatField* aField )
75  : Window(&rEditWin)
76  , maBuilder(nullptr, VclBuilderContainer::getUIRootDir(), "modules/swriter/ui/annotationmenu.ui", "")
77  , mrMgr(aMgr)
78  , mrView(rEditWin.GetView())
79  , mnEventId(nullptr)
80  , mpSidebarTextControl(nullptr)
81  , mpVScrollbar(nullptr)
82  , mpMetadataAuthor(nullptr)
83  , mpMetadataDate(nullptr)
84  , mpMenuButton(nullptr)
85  , mColorAnchor()
86  , mColorDark()
87  , mColorLight()
88  , mChangeColor()
89  , meSidebarPosition(sw::sidebarwindows::SidebarPosition::NONE)
90  , mPosSize()
91  , mAnchorRect()
92  , mPageBorder(0)
93  , mbAnchorRectChanged(false)
94  , mbResolvedStateUpdated(false)
95  , mbMouseOver(false)
96  , mLayoutStatus(SwPostItHelper::INVISIBLE)
97  , mbReadonly(false)
98  , mbIsFollow(false)
99  , mrSidebarItem(rSidebarItem)
100  , mpAnchorFrame(rSidebarItem.maLayoutInfo.mpAnchorFrame)
101  , mpFormatField(aField)
102  , mpField( static_cast<SwPostItField*>(aField->GetField()))
103  , mpButtonPopup(nullptr)
104 {
105  set_id("Comment"+OUString::number(mpField->GetPostItId()));
106 
108  if ( mpShadow )
109  {
110  mpShadow->setVisible(false);
111  }
112 
115  *this );
116 
118  // When double-buffering, allow parents to paint on our area. That's
119  // necessary when parents paint the complete buffer.
120  SetParentClipMode(ParentClipMode::NoClip);
121 }
122 
124 {
125  disposeOnce();
126 }
127 
129 {
132 
133  if (IsDisposed())
134  return;
135 
137  *this );
138 
139  Disable();
140 
141  if ( mpSidebarTextControl )
142  {
143  if ( mpOutlinerView )
144  {
145  mpOutlinerView->SetWindow( nullptr );
146  }
147  }
149 
150  mpOutlinerView.reset();
151  mpOutliner.reset();
152 
153  if (mpMetadataAuthor)
154  {
155  mpMetadataAuthor->RemoveEventListener( LINK( this, SwAnnotationWin, WindowEventListener ) );
156  }
158 
159  if (mpMetadataResolved)
160  {
161  mpMetadataResolved->RemoveEventListener( LINK( this, SwAnnotationWin, WindowEventListener ) );
162  }
164 
165  if (mpMetadataDate)
166  {
167  mpMetadataDate->RemoveEventListener( LINK( this, SwAnnotationWin, WindowEventListener ) );
168  }
170 
171  if (mpVScrollbar)
172  {
173  mpVScrollbar->RemoveEventListener( LINK( this, SwAnnotationWin, WindowEventListener ) );
174  }
176 
177  RemoveEventListener( LINK( this, SwAnnotationWin, WindowEventListener ) );
178 
179  mpAnchor.reset();
180  mpShadow.reset();
181 
182  mpTextRangeOverlay.reset();
183 
185 
186  if (mnEventId)
188 
190 }
191 
193 {
194  //If the cursor was visible, then make it visible again after
195  //changing text, e.g. fdo#33599
197  bool bCursorVisible = pCursor && pCursor->IsVisible();
198 
199  //If the new text is the same as the old text, keep the same insertion
200  //point .e.g. fdo#33599
201  mpField = static_cast<SwPostItField*>(mpFormatField->GetField());
202  OUString sNewText = mpField->GetPar2();
203  bool bTextUnchanged = sNewText == mpOutliner->GetEditEngine().GetText();
204  ESelection aOrigSelection(GetOutlinerView()->GetEditView().GetSelection());
205 
206  // get text from SwPostItField and insert into our textview
207  mpOutliner->SetModifyHdl( Link<LinkParamNone*,void>() );
208  mpOutliner->EnableUndo( false );
209  if( mpField->GetTextObject() )
210  mpOutliner->SetText( *mpField->GetTextObject() );
211  else
212  {
213  mpOutliner->Clear();
215  GetOutlinerView()->InsertText(sNewText);
216  }
217 
218  mpOutliner->ClearModifyFlag();
219  mpOutliner->GetUndoManager().Clear();
220  mpOutliner->EnableUndo( true );
221  mpOutliner->SetModifyHdl( LINK( this, SwAnnotationWin, ModifyHdl ) );
222  if (bTextUnchanged)
223  GetOutlinerView()->GetEditView().SetSelection(aOrigSelection);
224  if (bCursorVisible)
226  Invalidate();
227 }
228 
229 void SwAnnotationWin::SetResolved(bool resolved)
230 {
231  bool oldState = IsResolved();
232  static_cast<SwPostItField*>(mpFormatField->GetField())->SetResolved(resolved);
233  const SwViewOption* pVOpt = mrView.GetWrtShellPtr()->GetViewOptions();
234  mrSidebarItem.bShow = !IsResolved() || (pVOpt->IsResolvedPostIts());
235 
236  mpTextRangeOverlay.reset();
237 
238  if(IsResolved())
240  else
242 
243  if(IsResolved() != oldState)
244  mbResolvedStateUpdated = true;
245  UpdateData();
246  Invalidate();
247 }
248 
250 {
252 }
253 
255 {
259 }
260 
262 {
263  return static_cast<SwPostItField*>(mpFormatField->GetField())->GetResolved();
264 }
265 
267 {
268  // Not const because GetTopReplyNote isn't.
269  return GetTopReplyNote()->IsResolved();
270 }
271 
273 {
274  if ( mpOutliner->IsModified() || mbResolvedStateUpdated )
275  {
276  IDocumentUndoRedo & rUndoRedo(
278  std::unique_ptr<SwField> pOldField;
279  if (rUndoRedo.DoesUndo())
280  {
281  pOldField = mpField->Copy();
282  }
283  mpField->SetPar2(mpOutliner->GetEditEngine().GetText());
284  mpField->SetTextObject(mpOutliner->CreateParaObject());
285  if (rUndoRedo.DoesUndo())
286  {
287  SwTextField *const pTextField = mpFormatField->GetTextField();
288  SwPosition aPosition( pTextField->GetTextNode() );
289  aPosition.nContent = pTextField->GetStart();
290  rUndoRedo.AppendUndo(
291  std::make_unique<SwUndoFieldFromDoc>(aPosition, *pOldField, *mpField, nullptr, true));
292  }
293  // so we get a new layout of notes (anchor position is still the same and we would otherwise not get one)
294  mrMgr.SetLayout();
295  // #i98686# if we have several views, all notes should update their text
298  else
301  }
302  mpOutliner->ClearModifyFlag();
303  mpOutliner->GetUndoManager().Clear();
304  mbResolvedStateUpdated = false;
305 }
306 
308 {
310  {
311  if ( mrMgr.GetActiveSidebarWin() == this)
312  {
313  mrMgr.SetActiveSidebarWin(nullptr);
314  // if the note is empty, the previous line will send a delete event, but we are already there
315  if (mnEventId)
316  {
318  mnEventId = nullptr;
319  }
320  }
321  // we delete the field directly, the Mgr cleans up the PostIt by listening
325  }
326 }
327 
329 {
331 }
332 
334 {
335  // if this is an answer, do not skip over all following ones, but insert directly behind the current one
336  // but when just leaving a note, skip all following ones as well to continue typing
337  return mrMgr.IsAnswer()
338  ? 1
339  : 1 + CountFollowing();
340 }
341 
342 // returns a non-zero postit parent id, if exists, otherwise 0 for root comments
344 {
345  SwTextField* pTextField = mpFormatField->GetTextField();
346  SwPosition aPosition( pTextField->GetTextNode() );
347  aPosition.nContent = pTextField->GetStart();
348  SwTextAttr * const pTextAttr =
349  pTextField->GetTextNode().GetTextAttrForCharAt(
350  aPosition.nContent.GetIndex() - 1,
352  const SwField* pField = pTextAttr ? pTextAttr->GetFormatField().GetField() : nullptr;
353  sal_uInt32 nParentId = 0;
354  if (pField && pField->Which() == SwFieldIds::Postit)
355  {
356  const SwPostItField* pPostItField = static_cast<const SwPostItField*>(pField);
357  nParentId = pPostItField->GetPostItId();
358  }
359  return nParentId;
360 }
361 
362 // counts how many SwPostItField we have right after the current one
364 {
365  sal_uInt32 aCount = 1; // we start with 1, so we have to subtract one at the end again
366  SwTextField* pTextField = mpFormatField->GetTextField();
367  SwPosition aPosition( pTextField->GetTextNode() );
368  aPosition.nContent = pTextField->GetStart();
369 
370  SwTextAttr * pTextAttr = pTextField->GetTextNode().GetTextAttrForCharAt(
371  aPosition.nContent.GetIndex() + 1,
373  SwField* pField = pTextAttr
374  ? const_cast<SwField*>(pTextAttr->GetFormatField().GetField())
375  : nullptr;
376  while ( pField && ( pField->Which()== SwFieldIds::Postit ) )
377  {
378  aCount++;
379  pTextAttr = pTextField->GetTextNode().GetTextAttrForCharAt(
380  aPosition.nContent.GetIndex() + aCount,
382  pField = pTextAttr
383  ? const_cast<SwField*>(pTextAttr->GetFormatField().GetField())
384  : nullptr;
385  }
386  return aCount - 1;
387 }
388 
390 {
391  mpButtonPopup = maBuilder.get_menu("menu");
392  sal_uInt16 nByAuthorId = mpButtonPopup->GetItemId("deleteby");
393  OUString aText = mpButtonPopup->GetItemText(nByAuthorId);
394  SwRewriter aRewriter;
395  aRewriter.AddRule(UndoArg1,GetAuthor());
396  aText = aRewriter.Apply(aText);
397  mpButtonPopup->SetItemText(nByAuthorId, aText);
398  VclPtrInstance<AnnotationMenuButton> pMenuButton( *this );
399  pMenuButton->SetPopupMenu( mpButtonPopup );
400  pMenuButton->Show();
401  return pMenuButton;
402 }
403 
405 {
406  // If tiled annotations is off in lok case, skip adding additional reply text.
408  return;
409 
410  //collect our old meta data
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: */
Date GetDate() const
Definition: docufld.hxx:474
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: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
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:143
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:3051
SvxLanguageItem GetLanguage() const
const LocaleDataWrapper & GetLocaleData() const
NONE
std::unique_ptr< sw::overlay::OverlayRanges > mpTextRangeOverlay
void DisconnectSidebarWinFromFrame(const SwFrame &rFrame, sw::annotation::SwAnnotationWin &rSidebarWin)
Definition: PostItMgr.cxx:2374
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:233
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:273
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:178
OUString GetItemText(sal_uInt16 nItemId) const
sal_uInt32 CalcParent()
Calculate parent postit id of current annotation window.
SwDocShell * GetDocShell()
Definition: view.cxx:1107
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:424
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:938
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
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)