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