LibreOffice Module sw (master)  1
edtwin2.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 <doc.hxx>
21 #include <osl/thread.h>
22 #include <vcl/help.hxx>
23 #include <tools/urlobj.hxx>
24 #include <fmtrfmrk.hxx>
25 #include <svl/urihelper.hxx>
26 #include <sfx2/sfxhelp.hxx>
27 #include <svx/svdview.hxx>
28 #include <svx/svdpagv.hxx>
29 #include <swmodule.hxx>
30 #include <modcfg.hxx>
31 #include <view.hxx>
32 #include <wrtsh.hxx>
33 #include <docsh.hxx>
34 #include <edtwin.hxx>
35 #include <dpage.hxx>
36 #include <docufld.hxx>
37 #include <reffld.hxx>
38 #include <cellatr.hxx>
39 #include <shdwcrsr.hxx>
40 #include <fmtinfmt.hxx>
41 #include <fmtftn.hxx>
42 #include <redline.hxx>
43 #include <tox.hxx>
44 #include <txatbase.hxx>
45 #include <uitool.hxx>
46 #include <viewopt.hxx>
47 #include <strings.hrc>
48 
49 #include <IDocumentMarkAccess.hxx>
50 #include <txtfrm.hxx>
51 #include <ndtxt.hxx>
52 #include <FrameControlsManager.hxx>
53 
54 static OUString lcl_GetRedlineHelp( const SwRangeRedline& rRedl, bool bBalloon )
55 {
56  const char* pResId = nullptr;
57  switch( rRedl.GetType() )
58  {
59  case RedlineType::Insert: pResId = STR_REDLINE_INSERT; break;
60  case RedlineType::Delete: pResId = STR_REDLINE_DELETE; break;
61  case RedlineType::Format: pResId = STR_REDLINE_FORMAT; break;
62  case RedlineType::Table: pResId = STR_REDLINE_TABLE; break;
63  case RedlineType::FmtColl: pResId = STR_REDLINE_FMTCOLL; break;
64  case RedlineType::ParagraphFormat: pResId = STR_REDLINE_PARAGRAPH_FORMAT; break;
65  case RedlineType::TableRowInsert: pResId = STR_REDLINE_TABLE_ROW_INSERT; break;
66  case RedlineType::TableRowDelete: pResId = STR_REDLINE_TABLE_ROW_DELETE; break;
67  case RedlineType::TableCellInsert: pResId = STR_REDLINE_TABLE_CELL_INSERT; break;
68  case RedlineType::TableCellDelete: pResId = STR_REDLINE_TABLE_CELL_DELETE; break;
69  default: break;
70  }
71 
72  OUStringBuffer sBuf;
73  if (pResId)
74  {
75  sBuf.append(SwResId(pResId));
76  sBuf.append(": ");
77  sBuf.append(rRedl.GetAuthorString());
78  sBuf.append(" - ");
79  sBuf.append(GetAppLangDateTimeString(rRedl.GetTimeStamp()));
80  if( bBalloon && !rRedl.GetComment().isEmpty() )
81  sBuf.append('\n').append(rRedl.GetComment());
82  }
83  return sBuf.makeStringAndClear();
84 }
85 
86 OUString SwEditWin::ClipLongToolTip(const OUString& rText)
87 {
88  OUString sDisplayText(rText);
89  long nTextWidth = GetTextWidth(sDisplayText);
90  long nMaxWidth = GetDesktopRectPixel().GetWidth() * 2 / 3;
91  nMaxWidth = PixelToLogic(Size(nMaxWidth, 0)).Width();
92  if (nTextWidth > nMaxWidth)
93  sDisplayText = GetEllipsisString(sDisplayText, nMaxWidth, DrawTextFlags::CenterEllipsis);
94  return sDisplayText;
95 }
96 
98 {
100  bool bQuickBalloon = bool(rEvt.GetMode() & ( HelpEventMode::QUICK | HelpEventMode::BALLOON ));
101  if(bQuickBalloon && !rSh.GetViewOptions()->IsShowContentTips())
102  return;
103  bool bContinue = true;
104  CurrShell aCurr(&rSh);
105  OUString sText;
107  bool bBalloon = bool(rEvt.GetMode() & HelpEventMode::BALLOON);
108 
109  SdrView *pSdrView = rSh.GetDrawView();
110 
111  if( bQuickBalloon && pSdrView )
112  {
113  SdrPageView* pPV = pSdrView->GetSdrPageView();
114  SwDPage* pPage = pPV ? static_cast<SwDPage*>(pPV->GetPage()) : nullptr;
115  bContinue = pPage && pPage->RequestHelp(this, pSdrView, rEvt);
116  }
117 
118  if( bContinue && bQuickBalloon)
119  {
120  SwRect aFieldRect;
121  SwContentAtPos aContentAtPos( IsAttrAtPos::Field |
128 #ifdef DBG_UTIL
130  ( bBalloon ? IsAttrAtPos::CurrAttrs : IsAttrAtPos::NONE) |
131 #endif
133 
134  if( rSh.GetContentAtPos( aPos, aContentAtPos, false, &aFieldRect ) )
135  {
136  QuickHelpFlags nStyle = QuickHelpFlags::NONE; // style of quick help
137  switch( aContentAtPos.eContentAtPos )
138  {
139  case IsAttrAtPos::TableBoxFml:
140  sText = "= " + static_cast<const SwTableBoxFormula*>(aContentAtPos.aFnd.pAttr)->GetFormula();
141  break;
142 #ifdef DBG_UTIL
144  {
145  sText = OStringToOUString(OString::number(
146  static_cast<const SwTableBoxValue*>(aContentAtPos.aFnd.pAttr)->GetValue()),
147  osl_getThreadTextEncoding());
148  break;
149  }
151  sText = aContentAtPos.sStr;
152  break;
153 #endif
154 
156  {
157  sText = static_cast<const SwFormatINetFormat*>(aContentAtPos.aFnd.pAttr)->GetValue();
158  sText = URIHelper::removePassword( sText,
161  //#i63832# remove the link target type
162  sal_Int32 nFound = sText.indexOf(cMarkSeparator);
163  if( nFound != -1 && (++nFound) < sText.getLength() )
164  {
165  OUString sSuffix( sText.copy(nFound) );
166  if( sSuffix == "table" ||
167  sSuffix == "frame" ||
168  sSuffix == "region" ||
169  sSuffix == "outline" ||
170  sSuffix == "text" ||
171  sSuffix == "graphic" ||
172  sSuffix == "ole" )
173  sText = sText.copy( 0, nFound - 1);
174  }
175  // #i104300#
176  // special handling if target is a cross-reference bookmark
177  {
178  OUString sTmpSearchStr = sText.copy( 1 );
179  IDocumentMarkAccess* pMarkAccess = rSh.getIDocumentMarkAccess();
181  pMarkAccess->findBookmark( sTmpSearchStr );
182  if ( ppBkmk != pMarkAccess->getBookmarksEnd() &&
185  {
186  SwTextNode* pTextNode = (*ppBkmk)->GetMarkStart().nNode.GetNode().GetTextNode();
187  if ( pTextNode )
188  {
189  sText = sw::GetExpandTextMerged(rSh.GetLayout(), *pTextNode, true, false, ExpandMode(0));
190 
191  if( !sText.isEmpty() )
192  {
193  OUStringBuffer sTmp(sText.replaceAll(u"\u00ad", ""));
194  for (sal_Int32 i = 0; i < sTmp.getLength(); ++i)
195  {
196  if (sTmp[i] < 0x20)
197  sTmp[i] = 0x20;
198  else if (sTmp[i] == 0x2011)
199  sTmp[i] = '-';
200  }
201  sText = sTmp.makeStringAndClear();
202  }
203  }
204  }
205  }
206  // #i80029#
207  bool bExecHyperlinks = m_rView.GetDocShell()->IsReadOnly();
208  if ( !bExecHyperlinks )
209  {
210  sText = SfxHelp::GetURLHelpText(sText);
211  }
212  break;
213  }
215  {
216  vcl::KeyCode aCode( KEY_SPACE );
217  vcl::KeyCode aModifiedCode( KEY_SPACE, KEY_MOD1 );
218  OUString aModStr( aModifiedCode.GetName() );
219  aModStr = aModStr.replaceFirst(aCode.GetName(), "");
220  aModStr = aModStr.replaceAll("+", "");
221  sText = SwResId(STR_SMARTTAG_CLICK).replaceAll("%s", aModStr);
222  break;
223  }
224 
225  case IsAttrAtPos::Ftn:
226  if( aContentAtPos.pFndTextAttr && aContentAtPos.aFnd.pAttr )
227  {
228  const SwFormatFootnote* pFootnote = static_cast<const SwFormatFootnote*>(aContentAtPos.aFnd.pAttr);
229  OUString sTmp(pFootnote->GetFootnoteText(*rSh.GetLayout()));
230  sText = SwResId( pFootnote->IsEndNote()
231  ? STR_ENDNOTE : STR_FTNNOTE ) + sTmp;
232  bBalloon = true;
233  if( aContentAtPos.IsInRTLText() )
234  nStyle |= QuickHelpFlags::BiDiRtl;
235  }
236  break;
237 
239  {
241  const bool bShowInlineTooltips = rSh.GetViewOptions()->IsShowInlineTooltips();
242  if ( bShowTrackChanges && bShowInlineTooltips )
243  sText = lcl_GetRedlineHelp(*aContentAtPos.aFnd.pRedl, bBalloon);
244  break;
245  }
246 
248  sText = aContentAtPos.sStr;
249  if( !sText.isEmpty() && aContentAtPos.pFndTextAttr )
250  {
251  const SwTOXType* pTType = aContentAtPos.pFndTextAttr->
252  GetTOXMark().GetTOXType();
253  if( pTType && !pTType->GetTypeName().isEmpty() )
254  {
255  sText = ": " + sText;
256  sText = pTType->GetTypeName() + sText;
257  }
258  }
259  break;
260 
262  if(aContentAtPos.aFnd.pAttr)
263  {
264  sText = SwResId(STR_CONTENT_TYPE_SINGLE_REFERENCE) + ": ";
265  sText += static_cast<const SwFormatRefMark*>(aContentAtPos.aFnd.pAttr)->GetRefName();
266  }
267  break;
268 
269  default:
270  {
271  SwModuleOptions* pModOpt = SW_MOD()->GetModuleConfig();
272  if(!pModOpt->IsHideFieldTips())
273  {
274  const SwField* pField = aContentAtPos.aFnd.pField;
275  switch( pField->Which() )
276  {
277  case SwFieldIds::SetExp:
278  case SwFieldIds::Table:
279  case SwFieldIds::GetExp:
280  {
281  sal_uInt16 nOldSubType = pField->GetSubType();
282  const_cast<SwField*>(pField)->SetSubType(nsSwExtendedSubType::SUB_CMD);
283  sText = pField->ExpandField(true, rSh.GetLayout());
284  const_cast<SwField*>(pField)->SetSubType(nOldSubType);
285  }
286  break;
287 
288  case SwFieldIds::Postit:
289  {
290  break;
291  }
292  case SwFieldIds::Input: // BubbleHelp, because the suggestion could be quite long
293  bBalloon = true;
294  [[fallthrough]];
297  sText = pField->GetPar2();
298  break;
299 
301  sText = pField->GetFieldName();
302  break;
303 
304  case SwFieldIds::User:
306  sText = pField->GetPar1();
307  break;
308 
309  case SwFieldIds::DocStat:
310  break;
311 
312  case SwFieldIds::Macro:
313  sText = static_cast<const SwMacroField*>(pField)->GetMacro();
314  break;
315 
316  case SwFieldIds::GetRef:
317  {
318  // #i85090#
319  const SwGetRefField* pRefField( dynamic_cast<const SwGetRefField*>(pField) );
320  OSL_ENSURE( pRefField,
321  "<SwEditWin::RequestHelp(..)> - unexpected type of <pField>" );
322  if ( pRefField )
323  {
324  if ( pRefField->IsRefToHeadingCrossRefBookmark() ||
325  pRefField->IsRefToNumItemCrossRefBookmark() )
326  {
327  sText = pRefField->GetExpandedTextOfReferencedTextNode(*rSh.GetLayout());
328  if ( sText.getLength() > 80 )
329  {
330  sText = sText.copy(0, 80) + "...";
331  }
332  }
333  else
334  {
335  sText = static_cast<const SwGetRefField*>(pField)->GetSetRefName();
336  }
337  }
338  break;
339  }
340 
341  default: break;
342  }
343  }
344 
345  if( sText.isEmpty() )
346  {
348  const bool bShowInlineTooltips = rSh.GetViewOptions()->IsShowInlineTooltips();
349  if ( bShowTrackChanges && bShowInlineTooltips )
350  {
351  aContentAtPos.eContentAtPos = IsAttrAtPos::Redline;
352  if( rSh.GetContentAtPos( aPos, aContentAtPos, false, &aFieldRect ) )
353  sText = lcl_GetRedlineHelp(*aContentAtPos.aFnd.pRedl, bBalloon);
354  }
355  }
356  }
357  }
358  if (!sText.isEmpty())
359  {
360  tools::Rectangle aRect( aFieldRect.SVRect() );
361  Point aPt( OutputToScreenPixel( LogicToPixel( aRect.TopLeft() )));
362  aRect.SetLeft( aPt.X() );
363  aRect.SetTop( aPt.Y() );
364  aPt = OutputToScreenPixel( LogicToPixel( aRect.BottomRight() ));
365  aRect.SetRight( aPt.X() );
366  aRect.SetBottom( aPt.Y() );
367 
368  if( bBalloon )
369  Help::ShowBalloon( this, rEvt.GetMousePosPixel(), aRect, sText );
370  else
371  {
372  // the show the help
373  OUString sDisplayText(ClipLongToolTip(sText));
374  Help::ShowQuickHelp(this, aRect, sDisplayText, nStyle);
375  }
376  }
377 
378  bContinue = false;
379  }
380 
381  }
382 
383  if( bContinue )
384  Window::RequestHelp( rEvt );
385 }
386 
387 void SwEditWin::PrePaint(vcl::RenderContext& /*rRenderContext*/)
388 {
389  SwWrtShell* pWrtShell = GetView().GetWrtShellPtr();
390 
391  if(pWrtShell)
392  {
393  pWrtShell->PrePaint();
394  }
395 }
396 
397 void SwEditWin::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect)
398 {
399  SwWrtShell* pWrtShell = GetView().GetWrtShellPtr();
400  if(!pWrtShell)
401  return;
402  bool bPaintShadowCursor = false;
403  if( m_pShadCursor )
404  {
405  tools::Rectangle aRect( m_pShadCursor->GetRect());
406  // fully resides inside?
407  if( rRect.IsInside( aRect ) )
408  {
409  // then cancel
410  m_pShadCursor.reset();
411  }
412  else if( rRect.IsOver( aRect ))
413  {
414  // resides somewhat above, then everything is clipped outside
415  // and we have to make the "inner part" at the end of the
416  // Paint visible again. Otherwise Paint errors occur!
417  bPaintShadowCursor = true;
418  }
419  }
420 
421  if ( GetView().GetVisArea().GetWidth() <= 0 ||
422  GetView().GetVisArea().GetHeight() <= 0 )
423  Invalidate( rRect );
424  else
425  {
426  pWrtShell->setOutputToWindow(true);
427  pWrtShell->Paint(rRenderContext, rRect);
428  pWrtShell->setOutputToWindow(false);
429  }
430 
431  if( bPaintShadowCursor )
432  m_pShadCursor->Paint();
433 
436 }
437 
438 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
bool IsInRTLText() const
Definition: crstrvl.cxx:1907
void setOutputToWindow(bool bOutputToWindow)
Definition: viewsh.cxx:126
OUString GetEllipsisString(const OUString &rStr, long nMaxWidth, DrawTextFlags nStyle=DrawTextFlags::EndEllipsis) const
long GetWidth() const
OUString GetExpandedTextOfReferencedTextNode(SwRootFrame const &rLayout) const
Definition: reffld.cxx:401
long GetHeight() const
constexpr sal_uInt16 KEY_MOD1
SdrView * GetDrawView()
Definition: vnew.cxx:375
OUString ClipLongToolTip(const OUString &rText)
fdo#55546 cut very long tooltips to 2/3 of the width of the screen via center ellipsis ...
Definition: edtwin2.cxx:86
OUString const & GetAuthorString(sal_uInt16 nPos=0) const
Definition: docredln.cxx:1724
bool IsShowContentTips() const
Definition: viewopt.hxx:521
std::string GetValue
const SwView & GetView() const
Definition: edtwin.hxx:243
bool IsHideFieldTips() const
Definition: modcfg.hxx:377
wrapper iterator: wraps iterator of implementation while hiding MarkBase class; only IMark instances ...
static SW_DLLPUBLIC MarkType GetType(const ::sw::mark::IMark &rMark)
Returns the MarkType used to create the mark.
Definition: docbm.cxx:474
const SfxPoolItem * pAttr
Definition: crsrsh.hxx:96
Base class of all fields.
Definition: fldbas.hxx:293
Provides access to the marks of a document.
void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
Definition: crsrsh.cxx:1407
SVL_DLLPUBLIC OUString removePassword(OUString const &rURI, INetURLObject::EncodeMechanism eEncodeMechanism, INetURLObject::DecodeMechanism eDecodeMechanism=INetURLObject::DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8)
bool IsOver(const tools::Rectangle &rRect) const
tools::Rectangle GetDesktopRectPixel() const
bool IsEndNote() const
Definition: fmtftn.hxx:74
Of course Writer needs its own rectangles.
Definition: swrect.hxx:35
constexpr sal_uInt16 KEY_SPACE
OUString GetAppLangDateTimeString(const DateTime &)
Definition: uitool.cxx:793
For old documents the Field-Which IDs must be preserved !!!
HelpEventMode GetMode() const
static bool IsShowChanges(const RedlineFlags eM)
virtual void RequestHelp(const HelpEvent &rEvt) override
Definition: edtwin2.cxx:97
SwWrtShell & GetWrtShell() const
Definition: view.hxx:398
Used by the UI to modify the document model.
Definition: wrtsh.hxx:90
virtual OUString GetPar1() const
Definition: fldbas.cxx:302
SwFrameControlsManager & GetFrameControlsManager()
Definition: edtwin.cxx:6624
OUString sSuffix
void PrePaint()
Definition: viewsh.cxx:163
const DateTime & GetTimeStamp(sal_uInt16 nPos=0) const
Definition: docredln.cxx:1729
virtual void PrePaint(vcl::RenderContext &rRenderContext) override
Definition: edtwin2.cxx:387
IsAttrAtPos eContentAtPos
Definition: crsrsh.hxx:101
only for debugging
OUString sStr
Definition: crsrsh.hxx:103
union SwContentAtPos::@24 aFnd
const IDocumentMarkAccess * getIDocumentMarkAccess() const
Provides access to the document bookmark interface.
Definition: viewsh.cxx:2587
const Point & GetMousePosPixel() const
bool IsShowOutlineContentVisibilityButton() const
Definition: viewopt.hxx:298
SwDoc * GetDoc()
returns Doc. But be careful!
Definition: docsh.hxx:203
virtual const_iterator_t getBookmarksEnd() const =0
returns a STL-like random access iterator to the end of the sequence of IBookmarks.
bool IsRefToNumItemCrossRefBookmark() const
Definition: reffld.cxx:385
OUString GetExpandTextMerged(SwRootFrame const *const pLayout, SwTextNode const &rNode, bool const bWithNumber, bool const bWithSpacesForLevel, ExpandMode const i_mode)
#define SW_MOD()
Definition: swmodule.hxx:255
int i
const SwField * pField
Definition: crsrsh.hxx:95
const SwExtendedSubType SUB_CMD
Show command.
Definition: fldbas.hxx:211
std::unique_ptr< SwShadowCursor, o3tl::default_delete< SwShadowCursor > > m_pShadCursor
Definition: edtwin.hxx:94
OUString GetFootnoteText(SwRootFrame const &rLayout) const
Definition: atrftn.cxx:185
virtual void Invalidate(InvalidateFlags nFlags=InvalidateFlags::NONE)
QuickHelpFlags
float u
const OUString & GetTypeName() const
Definition: tox.hxx:684
OUString GetName(vcl::Window *pWindow=nullptr) const
bool IsInside(const Point &rPOINT) const
virtual const_iterator_t findBookmark(const OUString &rMark) const =0
Finds a bookmark by name.
OUString SwResId(const char *pId)
Definition: swmodule.cxx:165
virtual OUString GetPar2() const
Definition: fldbas.cxx:307
const sal_Unicode cMarkSeparator
Definition: swtypes.hxx:133
const SwTextAttr * pFndTextAttr
Definition: crsrsh.hxx:104
Point ScreenToOutputPixel(const Point &rPos) const
static void ShowQuickHelp(vcl::Window *pParent, const tools::Rectangle &rScreenRect, const OUString &rHelpText, QuickHelpFlags nStyle=QuickHelpFlags::NONE)
virtual sal_uInt16 GetSubType() const
Definition: fldbas.cxx:323
SwDocShell * GetDocShell()
Definition: view.cxx:1107
bool IsReadOnly() const
Point PixelToLogic(const Point &rDevicePt) const
Point LogicToPixel(const Point &rLogicPt) const
const OUString & GetComment(sal_uInt16 nPos=0) const
Definition: docredln.cxx:1739
bool RequestHelp(vcl::Window *pWindow, SdrView const *pView, const HelpEvent &rEvt)
Definition: dpage.cxx:144
SwTextNode is a paragraph in the document model.
Definition: ndtxt.hxx:80
ExpandMode
Some helpers for converting model strings to view strings.
OUString ExpandField(bool bCached, SwRootFrame const *pLayout) const
expand the field.
Definition: fldbas.cxx:443
IDocumentRedlineAccess const & getIDocumentRedlineAccess() const
Definition: doc.cxx:334
SwWrtShell * GetWrtShellPtr() const
Definition: view.hxx:399
SwFieldIds Which() const
ResId.
Definition: fldbas.cxx:231
tools::Rectangle SVRect() const
Definition: swrect.hxx:280
bool IsShowInlineTooltips() const
Definition: viewopt.hxx:286
bool IsRefToHeadingCrossRefBookmark() const
Definition: reffld.cxx:379
SdrPage * GetPage() const
const SwViewOption * GetViewOptions() const
Definition: viewsh.hxx:424
RedlineType GetType(sal_uInt16 nPos=0) const
Definition: docredln.cxx:1734
virtual OUString GetFieldName() const
get name or content
Definition: fldbas.cxx:286
long GetTextWidth(const OUString &rStr, sal_Int32 nIndex=0, sal_Int32 nLen=-1, vcl::TextLayoutCache const *=nullptr, SalLayoutGlyphs const *const pLayoutCache=nullptr) const
const SwRangeRedline * pRedl
Definition: crsrsh.hxx:97
SwView & m_rView
Definition: edtwin.hxx:97
const tools::Rectangle & GetVisArea() const
Definition: view.hxx:411
virtual RedlineFlags GetRedlineFlags() const =0
Query the currently set redline mode.
Point OutputToScreenPixel(const Point &rPos) const
bool GetContentAtPos(const Point &rPt, SwContentAtPos &rContentAtPos, bool bSetCursor=false, SwRect *pFieldRect=nullptr)
Definition: crstrvl.cxx:1247
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
Definition: edtwin2.cxx:397
SwRootFrame * GetLayout() const
Definition: viewsh.cxx:2069
static OUString GetURLHelpText(const OUString &)
static OUString lcl_GetRedlineHelp(const SwRangeRedline &rRedl, bool bBalloon)
Definition: edtwin2.cxx:54
only for debugging
SwTextNode * GetTextNode()
Inline methods from Node.hxx.
Definition: ndtxt.hxx:844
static void ShowBalloon(vcl::Window *pParent, const Point &rScreenPos, const tools::Rectangle &, const OUString &rHelpText)