LibreOffice Module sw (master)  1
unomod.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 <swtypes.hxx>
21 #include <o3tl/any.hxx>
22 #include <osl/diagnose.h>
23 #include <unomod.hxx>
24 #include <unomid.h>
25 #include <unoprnms.hxx>
26 #include <unomap.hxx>
27 #include <usrpref.hxx>
28 #include <prtopt.hxx>
29 #include <swmodule.hxx>
30 #include <view.hxx>
31 #include <docsh.hxx>
32 #include <wrtsh.hxx>
33 #include <viewopt.hxx>
34 #include <vcl/svapp.hxx>
35 #include <doc.hxx>
37 #include <com/sun/star/beans/PropertyAttribute.hpp>
38 #include <com/sun/star/view/DocumentZoomType.hpp>
41 #include <edtwin.hxx>
42 #include <rtl/ustrbuf.hxx>
43 #include <tools/urlobj.hxx>
44 using namespace ::com::sun::star;
45 using namespace ::com::sun::star::uno;
46 using namespace ::com::sun::star::beans;
47 using namespace ::com::sun::star::lang;
48 using namespace ::comphelper;
49 
51 {
96 };
97 
99 {
118 };
119 
120 static ChainablePropertySetInfo * lcl_createViewSettingsInfo()
121 {
122  static PropertyInfo const aViewSettingsMap_Impl[] =
123  {
125  { OUString( "HorizontalRulerMetric"),HANDLE_VIEWSET_HORI_RULER_METRIC , cppu::UnoType<sal_Int32>::get(), PROPERTY_NONE},
126  { OUString( "IsRasterVisible"), HANDLE_VIEWSET_IS_RASTER_VISIBLE, cppu::UnoType<bool>::get(), PROPERTY_NONE},
127  { OUString( "IsSnapToRaster"), HANDLE_VIEWSET_IS_SNAP_TO_RASTER, cppu::UnoType<bool>::get(), PROPERTY_NONE},
128  { OUString( "IsVertRulerRightAligned"),HANDLE_VIEWSET_VRULER_RIGHT , cppu::UnoType<bool>::get(), PROPERTY_NONE},
129  { OUString( "ShowContentTips" ), HANDLE_VIEWSET_SHOW_CONTENT_TIPS , cppu::UnoType<bool>::get(), PROPERTY_NONE},
130  { OUString( "ShowInlineTooltips" ), HANDLE_VIEWSET_INLINECHANGES_TIPS , cppu::UnoType<bool>::get(), PROPERTY_NONE},
131  { OUString( "UseHeaderFooterMenu" ), HANDLE_VIEWSET_USE_HEADERFOOTERMENU , cppu::UnoType<bool>::get(), PROPERTY_NONE},
136  { OUString( "ShowAnnotations" ), HANDLE_VIEWSET_ANNOTATIONS , cppu::UnoType<bool>::get(), PROPERTY_NONE},
137  { OUString( "ShowBreaks"), HANDLE_VIEWSET_BREAKS , cppu::UnoType<bool>::get(), PROPERTY_NONE},
138  { OUString( "ShowDrawings"), HANDLE_VIEWSET_DRAWINGS , cppu::UnoType<bool>::get(), PROPERTY_NONE},
139  { OUString( "ShowFieldCommands"), HANDLE_VIEWSET_FIELD_COMMANDS , cppu::UnoType<bool>::get(), PROPERTY_NONE},
140  { OUString( "ShowFootnoteBackground"),HANDLE_VIEWSET_FOOTNOTE_BACKGROUND , cppu::UnoType<bool>::get(), PROPERTY_NONE},
141  { OUString( "ShowGraphics"), HANDLE_VIEWSET_GRAPHICS , cppu::UnoType<bool>::get(), PROPERTY_NONE},
142  { OUString( "ShowHiddenCharacters"), HANDLE_VIEWSET_HIDDEN_CHARACTERS , cppu::UnoType<bool>::get(), PROPERTY_NONE},
143  { OUString( "HideWhitespace"), HANDLE_VIEWSET_HIDE_WHITESPACE , cppu::UnoType<bool>::get(), PROPERTY_NONE},
144  { OUString( "ShowHiddenParagraphs"), HANDLE_VIEWSET_HIDDEN_PARAGRAPHS , cppu::UnoType<bool>::get(), PROPERTY_NONE},
145  { OUString( "ShowHiddenText"), HANDLE_VIEWSET_HIDDEN_TEXT , cppu::UnoType<bool>::get(), PROPERTY_NONE},
146  { OUString( "ShowHoriRuler"), HANDLE_VIEWSET_HRULER , cppu::UnoType<bool>::get(), PROPERTY_NONE},
147  { OUString( "ShowHoriScrollBar"), HANDLE_VIEWSET_HSCROLL , cppu::UnoType<bool>::get(), PROPERTY_NONE},
148  { OUString( "ShowIndexMarkBackground"),HANDLE_VIEWSET_INDEX_MARK_BACKGROUND, cppu::UnoType<bool>::get(),PROPERTY_NONE},
149  { OUString( "ShowNonprintingCharacters"),HANDLE_VIEWSET_NONPRINTING_CHARACTERS, cppu::UnoType<bool>::get(),PROPERTY_NONE},
150  { OUString( "ShowOnlineLayout"), HANDLE_VIEWSET_ONLINE_LAYOUT , cppu::UnoType<bool>::get(), PropertyAttribute::MAYBEVOID},
151  { OUString( "ShowParaBreaks"), HANDLE_VIEWSET_PARA_BREAKS , cppu::UnoType<bool>::get(), PROPERTY_NONE},
152  { OUString( "ShowProtectedSpaces"), HANDLE_VIEWSET_PROTECTED_SPACES , cppu::UnoType<bool>::get(), PROPERTY_NONE},
153  { OUString( "ShowRulers"), HANDLE_VIEWSET_SHOW_RULER , cppu::UnoType<bool>::get(), PROPERTY_NONE},
154  { OUString( "ShowScrollBarTips"), HANDLE_VIEWSET_SCROLLBAR_TIPS , cppu::UnoType<bool>::get(), PROPERTY_NONE},
155  { OUString( "ShowSoftHyphens"), HANDLE_VIEWSET_SOFT_HYPHENS , cppu::UnoType<bool>::get(), PROPERTY_NONE},
156  { OUString( "ShowSpaces"), HANDLE_VIEWSET_SPACES , cppu::UnoType<bool>::get(), PROPERTY_NONE},
157  { OUString( "ShowTableBoundaries"), HANDLE_VIEWSET_TABLE_BOUNDARIES , cppu::UnoType<bool>::get(), PROPERTY_NONE},
158  { OUString( "ShowTables"), HANDLE_VIEWSET_TABLES , cppu::UnoType<bool>::get(), PROPERTY_NONE},
159  { OUString( "ShowTabstops"), HANDLE_VIEWSET_TABSTOPS , cppu::UnoType<bool>::get(), PROPERTY_NONE},
160  { OUString( "ShowTextBoundaries"), HANDLE_VIEWSET_TEXT_BOUNDARIES , cppu::UnoType<bool>::get(), PROPERTY_NONE},
161  { OUString( "ShowTextFieldBackground"),HANDLE_VIEWSET_TEXT_FIELD_BACKGROUND, cppu::UnoType<bool>::get(),PROPERTY_NONE},
162  { OUString( "ShowVertRuler"), HANDLE_VIEWSET_VRULER , cppu::UnoType<bool>::get(), PROPERTY_NONE},
163  { OUString( "ShowVertScrollBar"), HANDLE_VIEWSET_VSCROLL , cppu::UnoType<bool>::get(), PROPERTY_NONE},
164  { OUString( "SmoothScrolling"), HANDLE_VIEWSET_SMOOTH_SCROLLING , cppu::UnoType<bool>::get(), PROPERTY_NONE},
165  { OUString( "VerticalRulerMetric"), HANDLE_VIEWSET_VERT_RULER_METRIC , cppu::UnoType<sal_Int32>::get(), PROPERTY_NONE},
167  { OUString( "ZoomValue"), HANDLE_VIEWSET_ZOOM , cppu::UnoType<sal_Int16>::get(), PROPERTY_NONE},
168  { OUString(), 0, css::uno::Type(), 0 }
169  };
170  return new ChainablePropertySetInfo ( aViewSettingsMap_Impl );
171 }
172 
173 static ChainablePropertySetInfo * lcl_createPrintSettingsInfo()
174 {
175  static PropertyInfo const aPrintSettingsMap_Impl[] =
176  {
177  { OUString( "PrintAnnotationMode" ), HANDLE_PRINTSET_ANNOTATION_MODE , cppu::UnoType<sal_Int16>::get(), PROPERTY_NONE},
178  { OUString( "PrintBlackFonts" ), HANDLE_PRINTSET_BLACK_FONTS , cppu::UnoType<bool>::get(), PROPERTY_NONE},
179  { OUString( "PrintControls" ), HANDLE_PRINTSET_CONTROLS , cppu::UnoType<bool>::get(), PROPERTY_NONE},
180  { OUString( "PrintDrawings" ), HANDLE_PRINTSET_DRAWINGS , cppu::UnoType<bool>::get(), PROPERTY_NONE},
181  { OUString( "PrintGraphics" ), HANDLE_PRINTSET_GRAPHICS , cppu::UnoType<bool>::get(), PROPERTY_NONE},
182  { OUString( "PrintHiddenText"), HANDLE_PRINTSET_HIDDEN_TEXT , cppu::UnoType<bool>::get(), PROPERTY_NONE},
183  { OUString( "PrintLeftPages" ), HANDLE_PRINTSET_LEFT_PAGES , cppu::UnoType<bool>::get(), PROPERTY_NONE},
184  { OUString( "PrintPageBackground" ), HANDLE_PRINTSET_PAGE_BACKGROUND , cppu::UnoType<bool>::get(), PROPERTY_NONE},
185  { OUString( "PrintProspect" ), HANDLE_PRINTSET_PROSPECT , cppu::UnoType<bool>::get(), PROPERTY_NONE},
186  { OUString( "PrintProspectRTL" ), HANDLE_PRINTSET_PROSPECT_RTL , cppu::UnoType<bool>::get(), PROPERTY_NONE},
187  { OUString( "PrintReversed" ), HANDLE_PRINTSET_REVERSED , cppu::UnoType<bool>::get(), PROPERTY_NONE},
188  { OUString( "PrintRightPages" ), HANDLE_PRINTSET_RIGHT_PAGES , cppu::UnoType<bool>::get(), PROPERTY_NONE},
189  { OUString( "PrintFaxName" ), HANDLE_PRINTSET_FAX_NAME , cppu::UnoType<OUString>::get(), PROPERTY_NONE},
190  { OUString( "PrintPaperFromSetup" ), HANDLE_PRINTSET_PAPER_FROM_SETUP , cppu::UnoType<bool>::get(), PROPERTY_NONE},
191  { OUString( "PrintTables" ), HANDLE_PRINTSET_TABLES , cppu::UnoType<bool>::get(), PROPERTY_NONE},
192  { OUString( "PrintTextPlaceholder"), HANDLE_PRINTSET_PLACEHOLDER , cppu::UnoType<bool>::get(), PROPERTY_NONE},
193  { OUString( "PrintSingleJobs" ), HANDLE_PRINTSET_SINGLE_JOBS , cppu::UnoType<bool>::get(), PROPERTY_NONE},
194  { OUString( "PrintEmptyPages" ), HANDLE_PRINTSET_EMPTY_PAGES , cppu::UnoType<bool>::get(), PROPERTY_NONE},
195  { OUString(), 0, css::uno::Type(), 0}
196  };
197  return new ChainablePropertySetInfo ( aPrintSettingsMap_Impl );
198 }
199 
201  mxViewSettings(),
202  mxPrintSettings()
203 {
204 }
205 
207 {
208 }
209 
210 Reference< XPropertySet > SwXModule::getViewSettings()
211 {
212  SolarMutexGuard aGuard;
213  if(!mxViewSettings.is())
214  {
215  OSL_FAIL("Web or Text?");
216  mxViewSettings = new SwXViewSettings( nullptr );
217  }
218  return mxViewSettings;
219 }
220 
221 Reference< XPropertySet > SwXModule::getPrintSettings()
222 {
223  SolarMutexGuard aGuard;
224  if(!mxPrintSettings.is())
225  {
226  OSL_FAIL("Web or Text?");
228  }
229  return mxPrintSettings;
230 }
231 
233 {
234  return "SwXModule";
235 }
236 
237 sal_Bool SwXModule::supportsService(const OUString& rServiceName)
238 {
239  return cppu::supportsService(this, rServiceName);
240 }
241 
243 {
244  return { "com.sun.star.text.GlobalSettings" };
245 }
246 
248 : ChainablePropertySet ( lcl_createPrintSettingsInfo (), &Application::GetSolarMutex() )
249 , meType(eType)
250 , mpPrtOpt ( nullptr )
251 , mpDoc ( pDoc )
252 {
253 }
254 
256  throw()
257 {
258 }
259 
261 {
262  switch (meType)
263  {
265  mpPrtOpt = SW_MOD()->GetPrtOptions( false );
266  break;
268  {
269  if (!mpDoc)
270  throw IllegalArgumentException ();
272  }
273  break;
274  }
275 }
276 
277 namespace
278 {
279  bool tryBoolAccess(const uno::Any &rValue)
280  {
281  const auto xPrSet = o3tl::tryAccess<bool>(rValue);
282  if (!xPrSet)
283  throw lang::IllegalArgumentException();
284  return *xPrSet;
285  }
286 }
287 
289 {
290  switch( rInfo.mnHandle )
291  {
293  {
294  mpPrtOpt->SetPrintLeftPage(tryBoolAccess(rValue));
295  }
296  break;
298  {
299  mpPrtOpt->SetPrintRightPage(tryBoolAccess(rValue));
300  }
301  break;
303  {
304  mpPrtOpt->SetPrintReverse(tryBoolAccess(rValue));
305  }
306  break;
308  {
309  mpPrtOpt->SetPrintProspect(tryBoolAccess(rValue));
310  }
311  break;
313  {
314  mpPrtOpt->SetPrintGraphic(tryBoolAccess(rValue));
315  }
316  break;
318  {
319  mpPrtOpt->SetPrintTable(tryBoolAccess(rValue));
320  }
321  break;
323  {
324  mpPrtOpt->SetPrintDraw(tryBoolAccess(rValue));
325  }
326  break;
328  {
329  mpPrtOpt->SetPrintControl(tryBoolAccess(rValue));
330  }
331  break;
333  {
334  mpPrtOpt->SetPrintPageBackground(tryBoolAccess(rValue));
335  }
336  break;
338  {
339  mpPrtOpt->SetPrintBlackFont(tryBoolAccess(rValue));
340  }
341  break;
343  {
344  mpPrtOpt->SetPrintSingleJobs(tryBoolAccess(rValue));
345  }
346  break;
348  {
349  mpPrtOpt->SetPaperFromSetup(tryBoolAccess(rValue));
350  }
351  break;
353  {
354  sal_Int16 nTmp = 0;
355  rValue >>= nTmp;
356  SwPostItMode nVal = static_cast<SwPostItMode>(nTmp);
357  if(nVal > SwPostItMode::EndPage)
358  throw lang::IllegalArgumentException();
359 
360  mpPrtOpt->SetPrintPostIts(nVal);
361  }
362  break;
364  {
365  mpPrtOpt->SetPrintEmptyPages(tryBoolAccess(rValue));
366  }
367  break;
369  {
370  OUString sString;
371  if ( !(rValue >>= sString))
372  throw lang::IllegalArgumentException();
373 
374  mpPrtOpt->SetFaxName(sString);
375  }
376  break;
378  {
379  mpPrtOpt->SetPrintProspect_RTL(tryBoolAccess(rValue));
380  }
381  break;
383  {
384  mpPrtOpt->SetPrintTextPlaceholder(tryBoolAccess(rValue));
385  }
386  break;
388  {
389  mpPrtOpt->SetPrintHiddenText(tryBoolAccess(rValue));
390  }
391  break;
392  default:
393  throw UnknownPropertyException();
394  }
395 }
396 
398 {
399  mpPrtOpt = nullptr;
400 }
401 
403 {
404  switch (meType)
405  {
407  mpPrtOpt = SW_MOD()->GetPrtOptions( false );
408  break;
410  {
411  if (!mpDoc)
412  throw IllegalArgumentException ();
414  }
415  break;
416  }
417 }
418 
420 {
421  switch( rInfo.mnHandle )
422  {
424  rValue <<= mpPrtOpt->IsPrintLeftPage();
425  break;
427  rValue <<= mpPrtOpt->IsPrintRightPage();
428  break;
430  rValue <<= mpPrtOpt->IsPrintReverse();
431  break;
433  rValue <<= mpPrtOpt->IsPrintProspect();
434  break;
436  rValue <<= mpPrtOpt->IsPrintGraphic();
437  break;
439  rValue <<= mpPrtOpt->IsPrintTable();
440  break;
442  rValue <<= mpPrtOpt->IsPrintDraw();
443  break;
445  rValue <<= mpPrtOpt->IsPrintControl();
446  break;
448  rValue <<= mpPrtOpt->IsPrintPageBackground();
449  break;
451  rValue <<= mpPrtOpt->IsPrintBlackFont();
452  break;
454  rValue <<= mpPrtOpt->IsPrintSingleJobs();
455  break;
457  rValue <<= mpPrtOpt->IsPrintEmptyPages();
458  break;
460  rValue <<= mpPrtOpt->IsPaperFromSetup();
461  break;
463  {
464  rValue <<= static_cast < sal_Int16 > ( mpPrtOpt->GetPrintPostIts() );
465  }
466  break;
468  {
469  rValue <<= mpPrtOpt->GetFaxName();
470  }
471  break;
473  {
474  rValue <<= mpPrtOpt->IsPrintProspectRTL();
475  }
476  break;
478  {
479  rValue <<= mpPrtOpt->IsPrintTextPlaceholder();
480  }
481  break;
483  {
484  rValue <<= mpPrtOpt->IsPrintHiddenText();
485  }
486  break;
487  default:
488  throw UnknownPropertyException();
489  }
490 }
491 
493 {
494  mpPrtOpt = nullptr;
495 }
496 
498 {
499  return "SwXPrintSettings";
500 }
501 
502 sal_Bool SwXPrintSettings::supportsService(const OUString& rServiceName)
503 {
504  return cppu::supportsService(this, rServiceName);
505 }
506 
508 {
509  Sequence<OUString> aRet { "com.sun.star.text.PrintSettings" };
510  return aRet;
511 }
512 
514  : ChainablePropertySet( lcl_createViewSettingsInfo (), &Application::GetSolarMutex() )
515  , pView(pVw)
516  , mpConstViewOption(nullptr)
517  , bObjectValid(true)
518  , mbApplyZoom(false)
519  , eHRulerUnit(FieldUnit::CM)
520  , mbApplyHRulerMetric(false)
521  , eVRulerUnit(FieldUnit::CM)
522  , mbApplyVRulerMetric(false)
523 {
524  // This property only exists if we have a view (ie, not at the module )
525  if ( !pView )
526  mxInfo->remove ( "HelpURL" );
527 
528 }
529 
531  throw()
532 {
533 
534 }
535 
537 {
538  const SwViewOption* pVOpt = nullptr;
539  if(pView)
540  {
541  if(!IsValid())
542  return;
543  pVOpt = pView->GetWrtShell().GetViewOptions();
544  }
545  else
546  pVOpt = SW_MOD()->GetViewOption(false);
547 
548  mpViewOption.reset( new SwViewOption (*pVOpt) );
549  mbApplyZoom = false;
550  if(pView)
551  mpViewOption->SetStarOneSetting(true);
552 }
553 
555 {
556  // the API flag should not be set to the application's view settings
557  switch( rInfo.mnHandle )
558  {
559  case HANDLE_VIEWSET_SHOW_RULER : mpViewOption->SetViewAnyRuler(*o3tl::doAccess<bool>(rValue)); break;
560  case HANDLE_VIEWSET_HRULER : mpViewOption->SetViewHRuler(*o3tl::doAccess<bool>(rValue)); break;
561  case HANDLE_VIEWSET_VRULER : mpViewOption->SetViewVRuler(*o3tl::doAccess<bool>(rValue));break;
562  case HANDLE_VIEWSET_VRULER_RIGHT : mpViewOption->SetVRulerRight(*o3tl::doAccess<bool>(rValue));break;
563  case HANDLE_VIEWSET_HSCROLL : mpViewOption->SetViewHScrollBar(*o3tl::doAccess<bool>(rValue));break;
564  case HANDLE_VIEWSET_VSCROLL : mpViewOption->SetViewVScrollBar(*o3tl::doAccess<bool>(rValue));break;
565  case HANDLE_VIEWSET_GRAPHICS : mpViewOption->SetGraphic(*o3tl::doAccess<bool>(rValue));break;
566  case HANDLE_VIEWSET_TABLES : mpViewOption->SetTable(*o3tl::doAccess<bool>(rValue)); break;
567  case HANDLE_VIEWSET_DRAWINGS : mpViewOption->SetDraw(*o3tl::doAccess<bool>(rValue)); break;
568  case HANDLE_VIEWSET_FIELD_COMMANDS : mpViewOption->SetFieldName(*o3tl::doAccess<bool>(rValue)); break;
569  case HANDLE_VIEWSET_ANNOTATIONS : mpViewOption->SetPostIts(*o3tl::doAccess<bool>(rValue)); break;
571  case HANDLE_VIEWSET_NONPRINTING_CHARACTERS: mpViewOption->SetViewMetaChars( *o3tl::doAccess<bool>(rValue) ); break;
572  case HANDLE_VIEWSET_FOOTNOTE_BACKGROUND : SwViewOption::SetAppearanceFlag(ViewOptFlags::FieldShadings, *o3tl::doAccess<bool>(rValue), true); break;
574  case HANDLE_VIEWSET_PARA_BREAKS : mpViewOption->SetParagraph(*o3tl::doAccess<bool>(rValue)); break;
575  case HANDLE_VIEWSET_SOFT_HYPHENS : mpViewOption->SetSoftHyph(*o3tl::doAccess<bool>(rValue)); break;
576  case HANDLE_VIEWSET_SPACES : mpViewOption->SetBlank(*o3tl::doAccess<bool>(rValue)); break;
577  case HANDLE_VIEWSET_PROTECTED_SPACES : mpViewOption->SetHardBlank(*o3tl::doAccess<bool>(rValue)); break;
578  case HANDLE_VIEWSET_TABSTOPS : mpViewOption->SetTab(*o3tl::doAccess<bool>(rValue)); break;
579  case HANDLE_VIEWSET_BREAKS : mpViewOption->SetLineBreak(*o3tl::doAccess<bool>(rValue)); break;
580  case HANDLE_VIEWSET_HIDDEN_TEXT : mpViewOption->SetShowHiddenField(*o3tl::doAccess<bool>(rValue)); break;
581  case HANDLE_VIEWSET_HIDDEN_CHARACTERS : mpViewOption->SetShowHiddenChar(*o3tl::doAccess<bool>(rValue)); break;
582  case HANDLE_VIEWSET_HIDDEN_PARAGRAPHS : mpViewOption->SetShowHiddenPara(*o3tl::doAccess<bool>(rValue)); break;
583  case HANDLE_VIEWSET_TABLE_BOUNDARIES : SwViewOption::SetAppearanceFlag(ViewOptFlags::TableBoundaries, *o3tl::doAccess<bool>(rValue), true); break;
584  case HANDLE_VIEWSET_TEXT_BOUNDARIES : SwViewOption::SetDocBoundaries(*o3tl::doAccess<bool>(rValue)); break;
585  case HANDLE_VIEWSET_SMOOTH_SCROLLING : mpViewOption->SetSmoothScroll(*o3tl::doAccess<bool>(rValue)); break;
586  case HANDLE_VIEWSET_SHOW_CONTENT_TIPS : mpViewOption->SetShowContentTips(*o3tl::doAccess<bool>(rValue)); break;
587  case HANDLE_VIEWSET_IS_RASTER_VISIBLE : mpViewOption->SetGridVisible(*o3tl::doAccess<bool>(rValue)); break;
588  case HANDLE_VIEWSET_IS_SNAP_TO_RASTER : mpViewOption->SetSnap(*o3tl::doAccess<bool>(rValue)); break;
589  case HANDLE_VIEWSET_SCROLLBAR_TIPS : mpViewOption->SetShowScrollBarTips(*o3tl::doAccess<bool>(rValue)); break;
590  case HANDLE_VIEWSET_INLINECHANGES_TIPS : mpViewOption->SetShowInlineTooltips(*o3tl::doAccess<bool>(rValue)); break;
591  case HANDLE_VIEWSET_USE_HEADERFOOTERMENU : mpViewOption->SetUseHeaderFooterMenu(*o3tl::doAccess<bool>(rValue)); break;
593  {
594  sal_Int32 nTmp = 0;
595  if(!(rValue >>= nTmp) || nTmp < 10)
596  throw IllegalArgumentException();
597  Size aSize( mpViewOption->GetSnapSize() );
598  aSize.setWidth( convertMm100ToTwip( nTmp ) );
599  mpViewOption->SetSnapSize( aSize );
600  }
601  break;
603  {
604  sal_Int32 nTmp = 0;
605  if(!(rValue >>= nTmp) || nTmp < 10)
606  throw IllegalArgumentException();
607  Size aSize( mpViewOption->GetSnapSize() );
608  aSize.setHeight( convertMm100ToTwip( nTmp ) );
609  mpViewOption->SetSnapSize( aSize );
610  }
611  break;
613  {
614  sal_Int32 nTmp = 0;
615  if(!(rValue >>= nTmp) || !(0 <= nTmp && nTmp < 100))
616  throw IllegalArgumentException();
617  mpViewOption->SetDivisionX( static_cast<short>(nTmp) );
618  }
619  break;
621  {
622  sal_Int32 nTmp = 0;
623  if(!(rValue >>= nTmp) || !(0 <= nTmp && nTmp < 100))
624  throw IllegalArgumentException();
625  mpViewOption->SetDivisionY( static_cast<short>(nTmp) );
626  }
627  break;
628  case HANDLE_VIEWSET_ZOOM :
629  {
630  sal_Int16 nZoom = 0;
631  if(!(rValue >>= nZoom) || nZoom > MAXZOOM || nZoom < MINZOOM)
632  throw lang::IllegalArgumentException();
633  mpViewOption->SetZoom(static_cast<sal_uInt16>(nZoom));
634  mbApplyZoom = true;
635  }
636  break;
638  {
639  sal_Int16 nZoom = 0;
640  if(!(rValue >>= nZoom))
641  throw IllegalArgumentException();
642  SvxZoomType eZoom;
643  switch (nZoom)
644  {
645  case view::DocumentZoomType::OPTIMAL:
646  eZoom = SvxZoomType::OPTIMAL;
647  break;
648  case view::DocumentZoomType::PAGE_WIDTH:
649  eZoom = SvxZoomType::PAGEWIDTH;
650  break;
651  case view::DocumentZoomType::ENTIRE_PAGE:
652  eZoom = SvxZoomType::WHOLEPAGE;
653  break;
654  case view::DocumentZoomType::BY_VALUE:
655  eZoom = SvxZoomType::PERCENT;
656  break;
657  case view::DocumentZoomType::PAGE_WIDTH_EXACT:
658  eZoom = SvxZoomType::PAGEWIDTH_NOBORDER;
659  break;
660  default:
661  throw IllegalArgumentException(
662  "SwXViewSettings: invalid zoom type", nullptr, 0);
663  }
664  mpViewOption->SetZoomType( eZoom );
665  mbApplyZoom = true;
666  }
667  break;
669  {
670  if ( pView )
671  {
672  bool bVal = *o3tl::doAccess<bool>(rValue);
674  if (!bVal != !aOpt.getBrowseMode())
675  {
676  aOpt.setBrowseMode( bVal );
678 
679  // must be set in mpViewOption as this will overwrite settings in _post!
680  if(mpViewOption)
681  mpViewOption->setBrowseMode(bVal);
682 
684  }
685  }
686  }
687  break;
689  {
690  if ( pView )
691  {
692  bool bVal = *o3tl::doAccess<bool>(rValue);
694  if (!bVal != !aOpt.IsHideWhitespaceMode())
695  {
696  aOpt.SetHideWhitespaceMode( bVal );
698 
699  // must be set in mpViewOption as this will overwrite settings in _post!
700  if(mpViewOption)
701  mpViewOption->SetHideWhitespaceMode(bVal);
702  }
703  }
704  }
705  break;
707  {
708  if ( !pView )
709  throw UnknownPropertyException();
710 
711  OUString sHelpURL;
712  if ( ! ( rValue >>= sHelpURL ) )
713  throw IllegalArgumentException();
714 
715  INetURLObject aHID( sHelpURL );
716  if ( aHID.GetProtocol() != INetProtocol::Hid )
717  throw IllegalArgumentException ();
718 
719  pView->GetEditWin().SetHelpId( OUStringToOString( aHID.GetURLPath(), RTL_TEXTENCODING_UTF8 ) );
720  }
721  break;
724  {
725  sal_uInt16 nUnit;
726  if( rValue >>= nUnit )
727  switch (static_cast<FieldUnit>(nUnit))
728  {
729  case FieldUnit::MM:
730  case FieldUnit::CM:
731  case FieldUnit::POINT:
732  case FieldUnit::PICA:
733  case FieldUnit::INCH:
735  {
736  eHRulerUnit = static_cast<FieldUnit>(nUnit);
737  mbApplyHRulerMetric = true;
738  }
739  else
740  {
741  eVRulerUnit = static_cast<FieldUnit>(nUnit);
742  mbApplyVRulerMetric = true;
743  }
744  break;
745  default:
746  throw IllegalArgumentException();
747  }
748  }
749  break;
750  default:
751  throw UnknownPropertyException();
752  }
753 }
754 
756 {
757  if( pView )
758  {
759  if(mbApplyZoom )
760  pView->SetZoom( mpViewOption->GetZoomType(),
761  mpViewOption->GetZoom(), true );
766 
767  }
768  else
769  {
771  SW_MOD()->ApplyRulerMetric( eHRulerUnit, true, false );
773  SW_MOD()->ApplyRulerMetric( eVRulerUnit, false, false );
774  }
775 
778 
779  mpViewOption.reset();
780 }
781 
783 {
784  if(pView)
785  {
786  if(!IsValid())
787  return;
789  }
790  else
791  mpConstViewOption = SW_MOD()->GetViewOption(false);
792 }
793 
795 {
796  bool bBool = true;
797  bool bBoolVal = false;
798  switch( rInfo.mnHandle )
799  {
801  case HANDLE_VIEWSET_HRULER : bBoolVal = mpConstViewOption->IsViewHRuler(true); break;
802  case HANDLE_VIEWSET_VRULER : bBoolVal = mpConstViewOption->IsViewVRuler(true);break;
806  case HANDLE_VIEWSET_GRAPHICS : bBoolVal = mpConstViewOption->IsGraphic();break;
807  case HANDLE_VIEWSET_TABLES : bBoolVal = mpConstViewOption->IsTable(); break;
808  case HANDLE_VIEWSET_DRAWINGS : bBoolVal = mpConstViewOption->IsDraw(); break;
809  case HANDLE_VIEWSET_FIELD_COMMANDS : bBoolVal = mpConstViewOption->IsFieldName(); break;
810  case HANDLE_VIEWSET_ANNOTATIONS : bBoolVal = mpConstViewOption->IsPostIts(); break;
815  case HANDLE_VIEWSET_PARA_BREAKS : bBoolVal = mpConstViewOption->IsParagraph(true); break;
816  case HANDLE_VIEWSET_SOFT_HYPHENS : bBoolVal = mpConstViewOption->IsSoftHyph(); break;
817  case HANDLE_VIEWSET_SPACES : bBoolVal = mpConstViewOption->IsBlank(true); break;
819  case HANDLE_VIEWSET_TABSTOPS : bBoolVal = mpConstViewOption->IsTab(true); break;
820  case HANDLE_VIEWSET_BREAKS : bBoolVal = mpConstViewOption->IsLineBreak(true); break;
831  case HANDLE_VIEWSET_IS_SNAP_TO_RASTER : bBoolVal = mpConstViewOption->IsSnap(); break;
834  bBool = false;
835  rValue <<= static_cast<sal_Int32>(convertTwipToMm100(mpConstViewOption->GetSnapSize().Width()));
836  break;
838  bBool = false;
839  rValue <<= static_cast<sal_Int32>(convertTwipToMm100(mpConstViewOption->GetSnapSize().Height()));
840  break;
842  bBool = false;
843  rValue <<= static_cast<sal_Int32>(mpConstViewOption->GetDivisionX());
844  break;
846  bBool = false;
847  rValue <<= static_cast<sal_Int32>(mpConstViewOption->GetDivisionY());
848  break;
849  case HANDLE_VIEWSET_ZOOM :
850  bBool = false;
851  rValue <<= static_cast<sal_Int16>(mpConstViewOption->GetZoom());
852  break;
854  {
855  bBool = false;
856  sal_Int16 nRet(0);
857  switch (mpConstViewOption->GetZoomType())
858  {
859  case SvxZoomType::OPTIMAL:
860  nRet = view::DocumentZoomType::OPTIMAL;
861  break;
862  case SvxZoomType::PAGEWIDTH:
863  nRet = view::DocumentZoomType::PAGE_WIDTH;
864  break;
865  case SvxZoomType::WHOLEPAGE:
866  nRet = view::DocumentZoomType::ENTIRE_PAGE;
867  break;
868  case SvxZoomType::PERCENT:
869  nRet = view::DocumentZoomType::BY_VALUE;
870  break;
871  case SvxZoomType::PAGEWIDTH_NOBORDER:
872  nRet = view::DocumentZoomType::PAGE_WIDTH_EXACT;
873  break;
874  default:
875  OSL_FAIL("SwXViewSettings: invalid zoom type");
876  break;
877  }
878  rValue <<= nRet;
879  }
880  break;
882  if(pView)
883  bBoolVal = pView->GetWrtShell().GetViewOptions()->getBrowseMode();
884  break;
886  {
887  if ( !pView )
888  throw UnknownPropertyException();
889 
890  bBool = false;
891  OUStringBuffer sHelpURL;
892  sHelpURL.append ( INET_HID_SCHEME );
893  SwEditWin &rEditWin = pView->GetEditWin();
894  sHelpURL.append( OUString::fromUtf8( rEditWin.GetHelpId() ) );
895  rValue <<= sHelpURL.makeStringAndClear();
896  }
897  break;
899  {
900  if ( pView )
901  {
902  FieldUnit eUnit;
903  pView->GetHRulerMetric( eUnit );
904  rValue <<= static_cast<sal_Int32>(eUnit);
905  }
906  else
907  {
908  const SwMasterUsrPref* pUsrPref = SW_MOD()->GetUsrPref( false );
909  rValue <<= static_cast<sal_Int32>(pUsrPref->GetHScrollMetric());
910  }
911  bBool = false;
912  }
913  break;
915  {
916  if ( pView )
917  {
918  FieldUnit eUnit;
919  pView->GetVRulerMetric( eUnit );
920  rValue <<= static_cast<sal_Int32>(eUnit);
921  }
922  else
923  {
924  const SwMasterUsrPref* pUsrPref = SW_MOD()->GetUsrPref( false );
925  rValue <<= static_cast<sal_Int32>(pUsrPref->GetVScrollMetric());
926  }
927  bBool = false;
928  }
929  break;
930  default: OSL_FAIL("there is no such ID!");
931  }
932  if( bBool )
933  rValue <<= bBoolVal;
934 }
935 
937 {
938  mpConstViewOption = nullptr;
939 }
940 
942 {
943  return "SwXViewSettings";
944 }
945 
946 sal_Bool SwXViewSettings::supportsService(const OUString& rServiceName)
947 {
948  return cppu::supportsService(this, rServiceName);
949 }
950 
952 {
953  Sequence<OUString> aRet { "com.sun.star.text.ViewSettings" };
954  return aRet;
955 }
956 
957 extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
958 SwXModule_get_implementation(css::uno::XComponentContext*,
959  css::uno::Sequence<css::uno::Any> const &)
960 {
961  return cppu::acquire(new SwXModule());
962 }
963 
964 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
bool IsPaperFromSetup() const
Definition: printdata.hxx:138
css::uno::Reference< css::beans::XPropertySet > mxPrintSettings
Definition: unomod.hxx:47
void SetPrintPostIts(SwPostItMode n)
Definition: printdata.hxx:159
long Width() const
#define MAXZOOM
Definition: view.hxx:83
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: unomod.cxx:237
static ChainablePropertySetInfo * lcl_createPrintSettingsInfo()
Definition: unomod.cxx:173
bool IsViewMetaChars() const
Definition: viewopt.hxx:336
bool IsSmoothScroll() const
Definition: viewopt.hxx:364
#define MINZOOM
Definition: view.hxx:82
FieldUnit
bool IsShowScrollBarTips() const
Definition: viewopt.hxx:504
static ChainablePropertySetInfo * lcl_createViewSettingsInfo()
Definition: unomod.cxx:120
void GetHRulerMetric(FieldUnit &rToFill) const
Definition: viewmdi.cxx:602
FieldUnit GetVScrollMetric() const
Definition: usrpref.hxx:225
void SetPrintLeftPage(bool b)
Definition: printdata.hxx:154
void SetPrintRightPage(bool b)
Definition: printdata.hxx:155
static bool IsDocBoundaries()
Definition: viewopt.hxx:626
SwPostItMode GetPrintPostIts() const
Definition: printdata.hxx:145
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: unomod.cxx:502
bool IsShowContentTips() const
Definition: viewopt.hxx:500
bool IsViewAnyRuler() const
Definition: viewopt.hxx:542
PrimitiveType meType
SwXPrintSettingsType const meType
Definition: unomod.hxx:76
SwXModule()
Definition: unomod.cxx:200
IDocumentDeviceAccess const & getIDocumentDeviceAccess() const
Definition: doc.cxx:270
void ToggleLayoutMode(SwView *pView)
Definition: docsh2.cxx:170
long Height() const
void SetPrintControl(bool b)
Definition: printdata.hxx:153
bool IsGraphic() const
Definition: viewopt.hxx:294
void ChangeTabMetric(FieldUnit eUnit)
Definition: viewmdi.cxx:579
OUString GetURLPath(DecodeMechanism eMechanism=DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const
void SetPrintTextPlaceholder(bool b)
Definition: printdata.hxx:167
bool IsPostIts() const
Definition: viewopt.hxx:256
static void SetDocBoundaries(bool bSet)
Definition: viewopt.hxx:638
virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL getPrintSettings() override
Definition: unomod.cxx:221
FieldUnit eVRulerUnit
Definition: unomod.hxx:111
Definition: doc.hxx:185
bool IsPrintTable() const
Definition: printdata.hxx:132
bool IsHardBlank() const
Definition: viewopt.hxx:224
SwEditWin & GetEditWin()
Definition: view.hxx:403
virtual ~SwXViewSettings() override
Definition: unomod.cxx:530
void SetHelpId(const OString &)
bool IsShowHiddenPara() const
Definition: viewopt.hxx:358
virtual OUString SAL_CALL getImplementationName() override
Definition: unomod.cxx:497
bool IsPrintProspectRTL() const
Definition: printdata.hxx:141
void SetPrintGraphic(bool b)
Definition: printdata.hxx:150
bool mbApplyZoom
Definition: unomod.hxx:107
bool IsPrintHiddenText() const
Definition: printdata.hxx:147
FieldUnit GetHScrollMetric() const
Definition: usrpref.hxx:217
SwWrtShell & GetWrtShell() const
Definition: view.hxx:400
virtual void _postSetValues() override
Definition: unomod.cxx:755
SvxZoomType GetZoomType() const
Definition: viewopt.hxx:507
bool IsPrintReverse() const
Definition: printdata.hxx:137
virtual void _preGetValues() override
Definition: unomod.cxx:782
SwXPrintSettingsType
Definition: unomod.hxx:66
SwXPrintSettings(SwXPrintSettingsType eType, SwDoc *pDoc=nullptr)
Definition: unomod.cxx:247
bool IsFieldName() const
Definition: viewopt.hxx:252
#define PROPERTY_NONE
Definition: unomap.hxx:27
SwXViewSettings(SwView *pView)
Definition: unomod.cxx:513
const OUString & GetFaxName() const
Definition: printdata.hxx:146
short GetDivisionX() const
Definition: viewopt.hxx:405
bool getBrowseMode() const
Definition: viewopt.hxx:433
short GetDivisionY() const
Definition: viewopt.hxx:407
virtual ~SwXPrintSettings() override
Definition: unomod.cxx:255
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
void setBrowseMode(bool bSet)
Definition: viewopt.hxx:434
bool mbApplyHRulerMetric
Definition: unomod.hxx:110
bool IsViewVScrollBar() const
Definition: viewopt.hxx:480
bool IsPrintGraphic() const
Definition: printdata.hxx:131
virtual void _preSetValues() override
Definition: unomod.cxx:260
void SetPrintEmptyPages(bool b)
Definition: printdata.hxx:158
bool IsViewHRuler(bool bDirect=false) const
Definition: viewopt.hxx:553
void SetFaxName(const OUString &rSet)
Definition: printdata.hxx:165
bool IsPrintPageBackground() const
Definition: printdata.hxx:142
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unomod.cxx:951
#define INET_HID_SCHEME
bool IsBlank(bool bHard=false) const
Definition: viewopt.hxx:218
virtual void _postGetValues() override
Definition: unomod.cxx:936
void SetHideWhitespaceMode(bool bMode)
Definition: viewopt.hxx:445
static void SetAppearanceFlag(ViewOptFlags nFlag, bool bSet, bool bSaveInConfig=false)
Definition: viewopt.cxx:524
void SetPrintProspect_RTL(bool b)
Definition: printdata.hxx:161
const OString & GetHelpId() const
void SetPrintBlackFont(bool b)
Definition: printdata.hxx:163
bool IsPrintRightPage() const
Definition: printdata.hxx:136
virtual void _setSingleValue(const comphelper::PropertyInfo &rInfo, const css::uno::Any &rValue) override
Definition: unomod.cxx:554
bool IsDraw() const
Definition: viewopt.hxx:309
#define SW_MOD()
Definition: swmodule.hxx:256
void SetPrintHiddenText(bool b)
Definition: printdata.hxx:166
virtual const SwPrintData & getPrintData() const =0
Returns the PrintData.
Window class for the Writer edit area, this is the one handling mouse and keyboard events and doing t...
Definition: edtwin.hxx:58
bool IsPrintSingleJobs() const
Definition: printdata.hxx:144
void SetPrintReverse(bool b)
Definition: printdata.hxx:156
virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL getViewSettings() override
Definition: unomod.cxx:210
bool IsParagraph(bool bHard=false) const
Definition: viewopt.hxx:229
bool IsViewVRuler(bool bDirect=false) const
Definition: viewopt.hxx:567
void SetPrintTable(bool b)
Definition: printdata.hxx:151
bool mbApplyVRulerMetric
Definition: unomod.hxx:112
unsigned char sal_Bool
bool IsTab(bool bHard=false) const
Definition: viewopt.hxx:212
SwView * pView
Definition: unomod.hxx:104
void SetPaperFromSetup(bool b)
Definition: printdata.hxx:157
bool IsPrintControl() const
Definition: printdata.hxx:134
virtual OUString SAL_CALL getImplementationName() override
Definition: unomod.cxx:232
css::uno::Type const & get()
bool IsLineBreak(bool bHard=false) const
Definition: viewopt.hxx:235
virtual void _postGetValues() override
Definition: unomod.cxx:492
void SetPrintPageBackground(bool b)
Definition: printdata.hxx:162
bool IsPrintTextPlaceholder() const
Definition: printdata.hxx:148
static bool IsFieldShadings()
Definition: viewopt.hxx:632
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unomod.cxx:507
bool IsPrintBlackFont() const
Definition: printdata.hxx:143
SwPostItMode
this must match the definitions in css::text::NotePrintMode
Definition: printdata.hxx:42
SwDocShell * GetDocShell()
Definition: view.cxx:1127
bool IsTable() const
Definition: viewopt.hxx:304
const SwViewOption * mpConstViewOption
Definition: unomod.hxx:106
OString OUStringToOString(const OUString &str, ConnectionSettings const *settings)
bool IsHideWhitespaceMode() const
Definition: viewopt.hxx:444
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: unomod.cxx:946
virtual OUString SAL_CALL getImplementationName() override
Definition: unomod.cxx:941
bool IsVRulerRight() const
Definition: viewopt.hxx:588
void SetZoom(SvxZoomType eZoomType, short nFactor=100, bool bViewOnly=false)
Definition: viewmdi.cxx:82
virtual ~SwXModule() override
Definition: unomod.cxx:206
virtual void _getSingleValue(const comphelper::PropertyInfo &rInfo, css::uno::Any &rValue) override
Definition: unomod.cxx:419
SwPrintSettingsPropertyHandles
Definition: unomod.cxx:98
void SetPrintSingleJobs(bool b)
Definition: printdata.hxx:164
bool IsPrintDraw() const
Definition: printdata.hxx:133
bool IsShowInlineTooltips() const
Definition: viewopt.hxx:271
const SwViewOption * GetViewOptions() const
Definition: viewsh.hxx:426
bool IsPrintEmptyPages() const
Definition: printdata.hxx:139
bool IsValid() const
Definition: unomod.hxx:132
const Size & GetSnapSize() const
Definition: viewopt.hxx:325
INetProtocol GetProtocol() const
SwPrintData * mpPrtOpt
Definition: unomod.hxx:77
css::uno::Reference< css::beans::XPropertySet > mxViewSettings
Definition: unomod.hxx:46
void ChangeVRulerMetric(FieldUnit eUnit)
Definition: viewmdi.cxx:588
sal_uInt16 GetZoom() const
Definition: viewopt.hxx:466
static bool IsTableBoundaries()
Definition: viewopt.hxx:628
virtual void _preSetValues() override
Definition: unomod.cxx:536
void GetVRulerMetric(FieldUnit &rToFill) const
Definition: viewmdi.cxx:597
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unomod.cxx:242
virtual void _getSingleValue(const comphelper::PropertyInfo &rInfo, css::uno::Any &rValue) override
Definition: unomod.cxx:794
bool IsSoftHyph() const
Definition: viewopt.hxx:247
void SetPrintProspect(bool b)
Definition: printdata.hxx:160
rtl::Reference< ChainablePropertySetInfo > mxInfo
constexpr sal_Int64 convertTwipToMm100(sal_Int64 n)
bool IsGridVisible() const
Definition: viewopt.hxx:327
std::unique_ptr< SwViewOption > mpViewOption
Definition: unomod.hxx:105
SwViewSettingsPropertyHandles
Definition: unomod.cxx:50
detail::Optional< bool >::type tryAccess< bool >(css::uno::Any const &any)
SvxZoomType
FieldUnit eHRulerUnit
Definition: unomod.hxx:109
bool IsShowHiddenChar(bool bHard=false) const
Definition: viewopt.hxx:282
SwDoc * mpDoc
Definition: unomod.hxx:78
bool IsShowHiddenField() const
Definition: viewopt.hxx:289
bool IsPrintLeftPage() const
Definition: printdata.hxx:135
virtual void _preGetValues() override
Definition: unomod.cxx:402
bool IsPrintProspect() const
Definition: printdata.hxx:140
constexpr sal_Int64 convertMm100ToTwip(sal_Int64 n)
bool IsSnap() const
Definition: viewopt.hxx:319
virtual void ApplyViewOptions(const SwViewOption &rOpt) override
Apply ViewOptions with Start-/EndAction.
Definition: wrtsh1.cxx:1779
void SetPrintDraw(bool b)
Definition: printdata.hxx:152
bool IsViewHScrollBar() const
Definition: viewopt.hxx:488
virtual void _postSetValues() override
Definition: unomod.cxx:397
void setWidth(long nWidth)
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SwXModule_get_implementation(css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &)
Definition: unomod.cxx:958
virtual void _setSingleValue(const comphelper::PropertyInfo &rInfo, const css::uno::Any &rValue) override
Definition: unomod.cxx:288
sal_Int32 const mnHandle
Definition: view.hxx:146
void setHeight(long nHeight)