LibreOffice Module sw (master)  1
viewimp.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 <rootfrm.hxx>
21 #include <pagefrm.hxx>
22 #include <viewimp.hxx>
23 #include <viewopt.hxx>
24 #include <flyfrm.hxx>
25 #include <layact.hxx>
26 #include <dview.hxx>
27 #include <swmodule.hxx>
28 #include <svx/svdpage.hxx>
29 #include <accmap.hxx>
30 
31 #include <officecfg/Office/Common.hxx>
32 #include <pagepreviewlayout.hxx>
33 #include <comphelper/lok.hxx>
34 #include <tools/diagnose_ex.h>
37 #include <drawdoc.hxx>
38 #include <prevwpage.hxx>
39 
40 void SwViewShellImp::Init( const SwViewOption *pNewOpt )
41 {
42  OSL_ENSURE( m_pDrawView, "SwViewShellImp::Init without DrawView" );
43  //Create PageView if it doesn't exist
44  SwRootFrame *pRoot = m_pShell->GetLayout();
45  if ( !m_pSdrPageView )
46  {
48  if ( !pRoot->GetDrawPage() )
49  pRoot->SetDrawPage( rIDDMA.GetDrawModel()->GetPage( 0 ) );
50 
51  if ( pRoot->GetDrawPage()->GetSize() != pRoot->getFrameArea().SSize() )
52  pRoot->GetDrawPage()->SetSize( pRoot->getFrameArea().SSize() );
53 
54  m_pSdrPageView = m_pDrawView->ShowSdrPage( pRoot->GetDrawPage());
55  // Notify drawing page view about invisible layers
57  }
58  m_pDrawView->SetDragStripes( pNewOpt->IsCrossHair() );
59  m_pDrawView->SetGridSnap( pNewOpt->IsSnap() );
60  m_pDrawView->SetGridVisible( pNewOpt->IsGridVisible() );
61  const Size &rSz = pNewOpt->GetSnapSize();
62  m_pDrawView->SetGridCoarse( rSz );
63  const Size aFSize
64  ( rSz.Width() ? rSz.Width() /std::max(short(1),pNewOpt->GetDivisionX()):0,
65  rSz.Height()? rSz.Height()/std::max(short(1),pNewOpt->GetDivisionY()):0);
66  m_pDrawView->SetGridFine( aFSize );
67  Fraction aSnGrWdtX(rSz.Width(), pNewOpt->GetDivisionX() + 1);
68  Fraction aSnGrWdtY(rSz.Height(), pNewOpt->GetDivisionY() + 1);
69  m_pDrawView->SetSnapGridWidth( aSnGrWdtX, aSnGrWdtY );
70 
71  if ( pRoot->getFrameArea().HasArea() )
72  m_pDrawView->SetWorkArea( pRoot->getFrameArea().SVRect() );
73 
74  if ( GetShell()->IsPreview() )
75  m_pDrawView->SetAnimationEnabled( false );
76 
77  m_pDrawView->SetUseIncompatiblePathCreateInterface( false );
78 
79  // set handle size to 9 pixels, always
80  m_pDrawView->SetMarkHdlSizePixel(9);
81 }
82 
85  m_pShell( pParent ),
86  m_pSdrPageView( nullptr ),
87  m_pFirstVisiblePage( nullptr ),
88  m_pLayAction( nullptr ),
89  m_pIdleAct( nullptr ),
90  m_bFirstPageInvalid( true ),
91  m_bResetHdlHiddenPaint( false ),
92  m_bSmoothUpdate( false ),
93  m_bStopSmooth( false ),
94  m_nRestoreActions( 0 )
95 {
96 }
97 
99 {
100  m_pAccessibleMap.reset();
101 
102  m_pPagePreviewLayout.reset();
103 
104  // Make sure HideSdrPage is also executed after ShowSdrPage.
105  if( m_pDrawView )
106  m_pDrawView->HideSdrPage();
107 
108  m_pDrawView.reset();
109 
111 
112  OSL_ENSURE( !m_pLayAction, "Have action for the rest of your life." );
113  OSL_ENSURE( !m_pIdleAct,"Be idle for the rest of your life." );
114 }
115 
117 {
118  // In case of tiled rendering the visual area is the last painted tile -> not interesting.
120  {
121  if ( !m_pPaintRegion )
122  {
123  // In case of normal rendering, this makes sure only visible rectangles are painted.
124  // Otherwise get the rectangle of the full document, so all paint rectangles are invalidated.
126  m_pPaintRegion.reset(new SwRegionRects);
127  m_pPaintRegion->ChangeOrigin(rArea);
128  }
129  if(!m_pPaintRegion->empty())
130  {
131  // This function often gets called with rectangles that line up vertically.
132  // Try to extend the last one downwards to include the new one.
133  SwRect& last = m_pPaintRegion->back();
134  if(last.Left() == rRect.Left() && last.Width() == rRect.Width()
135  && last.Bottom() + 1 >= rRect.Top() && last.Bottom() <= rRect.Bottom())
136  {
137  last = SwRect( last.TopLeft(), rRect.BottomRight());
138  // And these rectangles lined up vertically often come up in groups
139  // that line up horizontally. Try to extend the previous rectangle
140  // to the right to include the last one.
141  if(m_pPaintRegion->size() > 1)
142  {
143  SwRect& last2 = (*m_pPaintRegion)[m_pPaintRegion->size() - 2];
144  if(last2.Top() == last.Top() && last2.Height() == last.Height()
145  && last2.Right() + 1 >= last.Left() && last2.Right() <= last2.Right())
146  {
147  last2 = SwRect( last.TopLeft(), rRect.BottomRight());
148  m_pPaintRegion->pop_back();
149  return true;
150  }
151  }
152  return true;
153  }
154  }
155  (*m_pPaintRegion) += rRect;
156  return true;
157  }
158  return false;
159 }
160 
162 {
163  // These are often repeated, so check first for duplicates.
164  std::vector<SwRect>& l = m_pendingLOKInvalidations;
165  if( std::find( l.begin(), l.end(), rRect ) == l.end())
166  l.push_back( rRect );
167 }
168 
170 {
171  std::vector<SwRect> ret;
172  std::swap(ret, m_pendingLOKInvalidations);
173  return ret;
174 }
175 
177 {
178  if ( m_pLayAction )
180 }
181 
183 {
185 }
186 
188 {
190  {
192  return true;
193  }
194  return false;
195 }
196 
197 void SwViewShellImp::SetFirstVisPage(OutputDevice const * pRenderContext)
198 {
200  {
201  //We are in an action and because of erase actions the VisArea is
202  //after the first visible page.
203  //To avoid excessive formatting, hand back the last page.
204  m_pFirstVisiblePage = static_cast<SwPageFrame*>(m_pShell->GetLayout()->Lower());
206  m_pFirstVisiblePage = static_cast<SwPageFrame*>(m_pFirstVisiblePage->GetNext());
207  }
208  else
209  {
210  const SwViewOption* pSwViewOption = GetShell()->GetViewOptions();
211  const bool bBookMode = pSwViewOption->IsViewLayoutBookMode();
212 
213  SwPageFrame *pPage = static_cast<SwPageFrame*>(m_pShell->GetLayout()->Lower());
214  SwRect aPageRect = pPage->GetBoundRect(pRenderContext);
215  while ( pPage && !aPageRect.Overlaps( m_pShell->VisArea() ) )
216  {
217  pPage = static_cast<SwPageFrame*>(pPage->GetNext());
218  if ( pPage )
219  {
220  aPageRect = pPage->GetBoundRect(pRenderContext);
221  if ( bBookMode && pPage->IsEmptyPage() )
222  {
223  const SwPageFrame& rFormatPage = pPage->GetFormatPage();
224  aPageRect.SSize( rFormatPage.GetBoundRect(pRenderContext).SSize() );
225  }
226  }
227  }
228  m_pFirstVisiblePage = pPage ? pPage : static_cast<SwPageFrame*>(m_pShell->GetLayout()->Lower());
229  }
230  m_bFirstPageInvalid = false;
231 }
232 
234 {
236 
237  // the else here is not an error, MakeDrawModel_() calls this method again
238  // after the DrawModel is created to create DrawViews for all shells...
239  if( !rIDDMA.GetDrawModel() )
240  {
241  rIDDMA.MakeDrawModel_();
242  }
243  else
244  {
245  if ( !m_pDrawView )
246  {
247  // #i72809#
248  // Discussed with FME, he also thinks that the getPrinter is old and not correct. When i got
249  // him right, it anyways returns GetOut() when it's a printer, but NULL when not. He suggested
250  // to use GetOut() and check the existing cases.
251  // Check worked well. Took a look at viewing, printing, PDF export and print preview with a test
252  // document which has an empty 2nd page (right page, see bug)
253  auto pWin = GetShell()->GetWin();
254  OutputDevice* pOutDevForDrawView = pWin ? pWin->GetOutDev() : nullptr;
255 
256  if(!pOutDevForDrawView)
257  {
258  pOutDevForDrawView = GetShell()->GetOut();
259  }
260 
261  m_pDrawView.reset( new SwDrawView(
262  *this,
263  *rIDDMA.GetOrCreateDrawModel(),
264  pOutDevForDrawView) );
265  }
266 
267  GetDrawView()->SetActiveLayer("Heaven");
268  const SwViewOption* pSwViewOption = GetShell()->GetViewOptions();
269  Init(pSwViewOption);
270 
271  // #i68597# If document is read-only, we will not profit from overlay,
272  // so switch it off.
273  if (m_pDrawView->IsBufferedOverlayAllowed())
274  {
275  if(pSwViewOption->IsReadonly())
276  {
277  m_pDrawView->SetBufferedOverlayAllowed(false);
278  }
279  }
280  }
281 }
282 
284 {
285  Color aRet( COL_TRANSPARENT );
286  const SwViewShell &rSh = *GetShell();
287  if ( rSh.GetWin() )
288  {
289  if ( rSh.GetViewOptions()->getBrowseMode() &&
291  aRet = rSh.GetViewOptions()->GetRetoucheColor();
292  else if(rSh.GetViewOptions()->IsPagePreview() &&
294  aRet = COL_WHITE;
295  else
296  aRet = SwViewOption::GetDocColor();
297  }
298  return aRet;
299 }
300 
302 {
303  if ( m_bFirstPageInvalid )
304  SetFirstVisPage(pRenderContext);
305  return m_pFirstVisiblePage;
306 }
307 
308 const SwPageFrame *SwViewShellImp::GetFirstVisPage(OutputDevice const * pRenderContext) const
309 {
310  if ( m_bFirstPageInvalid )
311  const_cast<SwViewShellImp*>(this)->SetFirstVisPage(pRenderContext);
312  return m_pFirstVisiblePage;
313 }
314 
315 // create page preview layout
317 {
318  OSL_ENSURE( m_pShell->GetLayout(), "no layout - page preview layout can not be created.");
319  if ( m_pShell->GetLayout() )
321 }
322 
324 {
325  // We require a layout and an XModel to be accessible.
327  vcl::Window *pWin = GetShell()->GetWin();
328  OSL_ENSURE( GetShell()->GetLayout(), "no layout, no access" );
329  OSL_ENSURE( pWin, "no window, no access" );
330 
331  if( IsAccessible() && rIDLA.GetCurrentViewShell() && pWin )
332  {
333  try
334  {
336  }
337  catch (uno::Exception const&)
338  {
339  TOOLS_WARN_EXCEPTION("sw.a11y", "");
340  assert(!"SwViewShellImp::UpdateAccessible: unhandled exception");
341  }
342  }
343 }
344 
346  const SdrObject *pObj,
347  bool bRecursive,
348  bool bCanSkipInvisible)
349 {
350  OSL_ENSURE( !pFrame || pFrame->IsAccessibleFrame(), "frame is not accessible" );
351  for(SwViewShell& rTmp : GetShell()->GetRingContainer())
352  {
353  if( rTmp.Imp()->IsAccessible() )
354  rTmp.Imp()->GetAccessibleMap().A11yDispose( pFrame, pObj, nullptr, bRecursive, bCanSkipInvisible );
355  }
356 }
357 
358 void SwViewShellImp::MoveAccessible( const SwFrame *pFrame, const SdrObject *pObj,
359  const SwRect& rOldFrame )
360 {
361  OSL_ENSURE( !pFrame || pFrame->IsAccessibleFrame(), "frame is not accessible" );
362  for(SwViewShell& rTmp : GetShell()->GetRingContainer())
363  {
364  if( rTmp.Imp()->IsAccessible() )
365  rTmp.Imp()->GetAccessibleMap().InvalidatePosOrSize( pFrame, pObj, nullptr,
366  rOldFrame );
367  }
368 }
369 
371 {
372  OSL_ENSURE( pFrame->IsAccessibleFrame(), "frame is not accessible" );
373  for(SwViewShell& rTmp : GetShell()->GetRingContainer())
374  {
375  if( rTmp.Imp()->IsAccessible() )
376  rTmp.Imp()->GetAccessibleMap().InvalidateContent( pFrame );
377  }
378 }
379 
381 {
382  if( IsAccessible() )
384 }
385 
387  const SwFrame *pFrame )
388 {
389  if( bAllShells )
390  {
391  for(SwViewShell& rTmp : GetShell()->GetRingContainer())
392  {
393  if( rTmp.Imp()->IsAccessible() )
394  rTmp.Imp()->GetAccessibleMap().InvalidateEditableStates( pFrame );
395  }
396  }
397  else if( IsAccessible() )
398  {
400  }
401 }
402 
404  const SwFlyFrame *pFollow )
405 {
406  for(SwViewShell& rTmp : GetShell()->GetRingContainer())
407  {
408  if( rTmp.Imp()->IsAccessible() )
409  rTmp.Imp()->GetAccessibleMap().InvalidateRelationSet( pMaster,
410  pFollow );
411  }
412 }
413 
416  const SwTextFrame* _pToTextFrame )
417 {
418  if ( !_pFromTextFrame && !_pToTextFrame )
419  {
420  // No text frame provided. Thus, nothing to do.
421  return;
422  }
423 
424  for(SwViewShell& rTmp : GetShell()->GetRingContainer())
425  {
426  if ( rTmp.Imp()->IsAccessible() )
427  {
428  if ( _pFromTextFrame )
429  {
430  rTmp.Imp()->GetAccessibleMap().
431  InvalidateParaFlowRelation( *_pFromTextFrame, true );
432  }
433  if ( _pToTextFrame )
434  {
435  rTmp.Imp()->GetAccessibleMap().
436  InvalidateParaFlowRelation( *_pToTextFrame, false );
437  }
438  }
439  }
440 }
441 
444 {
445  for(SwViewShell& rTmp : GetShell()->GetRingContainer())
446  {
447  if ( rTmp.Imp()->IsAccessible() )
448  {
449  rTmp.Imp()->GetAccessibleMap().InvalidateTextSelectionOfAllParas();
450  }
451  }
452 }
453 
456 {
457  for(SwViewShell& rTmp : GetShell()->GetRingContainer())
458  {
459  if ( rTmp.Imp()->IsAccessible() )
460  {
461  rTmp.Imp()->GetAccessibleMap().InvalidateAttr( rTextFrame );
462  }
463  }
464 }
465 
466 void SwViewShellImp::UpdateAccessiblePreview( const std::vector<std::unique_ptr<PreviewPage>>& _rPreviewPages,
467  const Fraction& _rScale,
468  const SwPageFrame* _pSelectedPageFrame,
469  const Size& _rPreviewWinSize )
470 {
471  if( IsAccessible() )
472  GetAccessibleMap().UpdatePreview( _rPreviewPages, _rScale,
473  _pSelectedPageFrame, _rPreviewWinSize );
474 }
475 
477 {
478  if( IsAccessible() )
480 }
481 
483 {
484  assert(!m_pAccessibleMap);
485  m_pAccessibleMap = std::make_shared<SwAccessibleMap>(GetShell());
486  return m_pAccessibleMap.get();
487 }
488 
490 {
491  if( IsAccessible() )
493 }
494 
495 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
vcl::RenderContext * GetOut() const
Definition: viewsh.hxx:339
bool m_bFirstPageInvalid
Definition: viewimp.hxx:79
Base class of the Writer layout elements.
Definition: frame.hxx:315
Represents the visualization of a paragraph.
Definition: txtfrm.hxx:159
void InvalidateAccessibleFrameContent(const SwFrame *pFrame)
Invalidate accessible frame's content.
Definition: viewimp.cxx:370
void FireAccessibleEvents()
Fire all accessible events that have been collected so far.
Definition: viewimp.cxx:489
void InvalidateAccessibleCursorPosition(const SwFrame *pFrame)
Invalidate accessible frame's cursor position.
Definition: viewimp.cxx:380
const Color & GetRetoucheColor() const
Definition: viewopt.hxx:591
void Right(const tools::Long nRight)
Definition: swrect.hxx:202
void InvalidateAccessibleRelationSet(const SwFlyFrame *pMaster, const SwFlyFrame *pFollow)
Invalidate frame's relation set (for chained frames)
Definition: viewimp.cxx:403
virtual void SetSize(const Size &aSiz)
bool IsPagePreview() const
Definition: viewopt.hxx:648
void DisposeAccessible(const SwFrame *pFrame, const SdrObject *pObj, bool bRecursive, bool bCanSkipInvisible)
Remove a frame from the accessible view.
Definition: viewimp.cxx:345
void Left(const tools::Long nLeft)
Definition: swrect.hxx:197
void InvalidateAccessibleParaAttrs_(const SwTextFrame &rTextFrame)
invalidate attributes for paragraphs and paragraph's characters
Definition: viewimp.cxx:455
const SdrPage * GetDrawPage() const
Definition: rootfrm.hxx:227
constexpr OUStringLiteral last
constexpr::Color COL_TRANSPARENT(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
SwAccessibleMap & GetAccessibleMap()
Definition: viewimp.hxx:276
const SwPageFrame & GetFormatPage() const
Definition: pagechg.cxx:2446
SwViewShellImp(SwViewShell *)
CTor for the core internals.
Definition: viewimp.cxx:84
SwLayAction * m_pLayAction
Definition: viewimp.hxx:71
bool IsAccessible() const
Is this view accessible?
Definition: viewimp.hxx:225
void FireEvents()
Definition: accmap.cxx:3005
void SetDrawPage(SdrPage *pNew)
Definition: rootfrm.hxx:229
Of course Writer needs its own rectangles.
Definition: swrect.hxx:34
The root element of a Writer document layout.
Definition: rootfrm.hxx:82
void InvalidatePreviewSelection(sal_uInt16 nSelPage)
Definition: accmap.cxx:2971
bool IsCalcLayout() const
Definition: layact.hxx:170
virtual SwDrawModel * MakeDrawModel_()=0
const SwPageFrame * GetFirstVisPage(OutputDevice const *pRenderContext) const
Management of the first visible Page.
Definition: viewimp.cxx:308
void MakeDrawView()
Definition: viewimp.cxx:233
void DeletePaintRegion()
Definition: viewimp.hxx:154
constexpr tools::Long Width() const
Point TopLeft() const
Definition: swrect.hxx:254
virtual void NotifyInvisibleLayers(SdrPageView &_rSdrPageView)=0
method to notify drawing page view about the invisible layers
bool IsReadonly() const
Definition: viewopt.hxx:476
short GetDivisionX() const
Definition: viewopt.hxx:457
const SwRect & getFrameArea() const
Definition: frame.hxx:180
bool getBrowseMode() const
Definition: viewopt.hxx:485
bool IsEmptyPage() const
Definition: pagefrm.hxx:157
short GetDivisionY() const
Definition: viewopt.hxx:459
std::unique_ptr< SwRegionRects > m_pPaintRegion
Definition: viewimp.hxx:67
void Width(tools::Long nNew)
Definition: swrect.hxx:189
void UpdateAccessiblePreview(const std::vector< std::unique_ptr< PreviewPage >> &_rPreviewPages, const Fraction &_rScale, const SwPageFrame *_pSelectedPageFrame, const Size &_rPreviewWinSize)
update data for accessible preview change method signature due to new page preview functionality ...
Definition: viewimp.cxx:466
const IDocumentDrawModelAccess & getIDocumentDrawModelAccess() const
Provides access to the document draw model interface.
Definition: viewsh.cxx:2773
void CheckWaitCursor()
If an Action is running we ask it to check whether it's time to enable the WaitCursor.
Definition: viewimp.cxx:176
std::vector< SwRect > m_pendingLOKInvalidations
Definition: viewimp.hxx:69
const SwViewShell * GetShell() const
Only for SwViewShell::Init()
Definition: viewimp.hxx:140
Point BottomRight() const
Definition: swrect.hxx:266
SdrPageView * m_pSdrPageView
Definition: viewimp.hxx:64
page preview functionality in the writer
#define TOOLS_WARN_EXCEPTION(area, stream)
bool IsCrossHair() const
Definition: viewopt.hxx:392
void CheckWaitCursor()
Definition: layact.cxx:70
void Init(const SwViewOption *)
Definition: viewimp.cxx:40
css::uno::Reference< css::accessibility::XAccessible > GetDocumentView()
Definition: accmap.cxx:1790
const SwRect & VisArea() const
Definition: viewsh.cxx:626
void InvalidateCursorPosition(const css::uno::Reference< css::accessibility::XAccessible > &rAcc)
bool IsViewLayoutBookMode() const
Definition: viewopt.hxx:492
SwRect GetBoundRect(OutputDevice const *pOutputDevice) const
Definition: paintfrm.cxx:6265
bool IsCalcLayoutProgress() const
Asks the LayAction if present.
Definition: viewimp.cxx:182
Size GetSize() const
const SwFrame * Lower() const
Definition: layfrm.hxx:101
bool IsPreview() const
Definition: viewsh.hxx:493
std::shared_ptr< SwAccessibleMap > m_pAccessibleMap
note: the map is uniquely owned here - the shared_ptr is only used so that SwAccessibleContext can ch...
Definition: viewimp.hxx:77
const SdrPage * GetPage(sal_uInt16 nPgNum) const
virtual const SwDrawModel * GetDrawModel() const =0
Draw Model and id accessors.
bool HasArea() const
Definition: swrect.hxx:300
void SetUpdateExpFields()
Definition: layact.hxx:159
ring_container GetRingContainer()
Definition: ring.hxx:240
Shell * m_pShell
bool IsUpdateExpFields()
Definition: viewimp.cxx:187
void SSize(const Size &rNew)
Definition: swrect.hxx:180
A page of the document layout.
Definition: pagefrm.hxx:57
const IDocumentLayoutAccess & getIDocumentLayoutAccess() const
Provides access to the document layout interface.
Definition: viewsh.cxx:2777
void AddPendingLOKInvalidation(const SwRect &rRect)
Definition: viewimp.cxx:161
SwAccessibleMap * CreateAccessibleMap()
Definition: viewimp.cxx:482
void UpdateAccessible()
Update (this) accessible view.
Definition: viewimp.cxx:323
std::unique_ptr< SwDrawView > m_pDrawView
Definition: viewimp.hxx:63
void Bottom(const tools::Long nBottom)
Definition: swrect.hxx:211
bool mbDocSizeChgd
Definition: viewsh.hxx:120
SwPageFrame * m_pFirstVisiblePage
Definition: viewimp.hxx:66
tools::Rectangle SVRect() const
Definition: swrect.hxx:292
SwDrawView * GetDrawView()
Definition: viewimp.hxx:161
general base class for all free-flowing frames
Definition: flyfrm.hxx:78
SwViewShell * m_pShell
Definition: viewimp.hxx:60
Color GetRetoucheColor() const
Definition: viewimp.cxx:283
constexpr tools::Long Height() const
virtual const SwViewShell * GetCurrentViewShell() const =0
Returns the layout set at the document.
const SwViewOption * GetViewOptions() const
Definition: viewsh.hxx:428
vcl::Window * GetWin() const
Definition: viewsh.hxx:338
const ::std::vector< Color > ImpSvNumberformatScan::StandardColor COL_WHITE
const Size & GetSnapSize() const
Definition: viewopt.hxx:371
virtual SwDrawModel * GetOrCreateDrawModel()=0
void InvalidateEditableStates(const SwFrame *_pFrame)
Definition: accmap.cxx:2762
void UpdatePreview(const std::vector< std::unique_ptr< PreviewPage >> &_rPreviewPages, const Fraction &_rScale, const SwPageFrame *_pSelectedPageFrame, const Size &_rPreviewWinSize)
Definition: accmap.cxx:2931
void Top(const tools::Long nTop)
Definition: swrect.hxx:206
static Color & GetDocColor()
Definition: viewopt.cxx:394
void SetActiveLayer(const OUString &rName)
void InvalidateAccessibleParaFlowRelation_(const SwTextFrame *_pFromTextFrame, const SwTextFrame *_pToTextFrame)
invalidate CONTENT_FLOWS_FROM/_TO relation for paragraphs
Definition: viewimp.cxx:415
std::unique_ptr< SwPagePreviewLayout > m_pPagePreviewLayout
Definition: viewimp.hxx:87
void InvalidateAccessibleEditableState(bool bAllShells, const SwFrame *pFrame=nullptr)
Invalidate editable state for all accessible frames.
Definition: viewimp.cxx:386
bool IsGridVisible() const
Definition: viewopt.hxx:373
Provides access to the layout of a document.
bool IsAccessibleFrame() const
Definition: frame.hxx:1251
SwLayIdle * m_pIdleAct
Definition: viewimp.hxx:73
bool AddPaintRect(const SwRect &rRect)
Definition: viewimp.cxx:116
void SetFirstVisPage(OutputDevice const *pRenderContext)
Definition: viewimp.cxx:197
bool IsSnap() const
Definition: viewopt.hxx:365
SwRootFrame * GetLayout() const
Definition: viewsh.cxx:2166
void Height(tools::Long nNew)
Definition: swrect.hxx:193
bool Overlaps(const SwRect &rRect) const
Definition: swrect.hxx:374
void InvalidateAccessiblePreviewSelection(sal_uInt16 nSelPage)
Definition: viewimp.cxx:476
void MoveAccessible(const SwFrame *pFrame, const SdrObject *pObj, const SwRect &rOldFrame)
Move a frame's position in the accessible view.
Definition: viewimp.cxx:358
void InitPagePreviewLayout()
Definition: viewimp.cxx:316
SwFrame * GetNext()
Definition: frame.hxx:677
std::vector< SwRect > TakePendingLOKInvalidations()
Definition: viewimp.cxx:169
void InvalidateAccessibleParaTextSelection_()
invalidate text selection for paragraphs
Definition: viewimp.cxx:443