20#include <com/sun/star/beans/PropertyAttribute.hpp>
21#include <com/sun/star/view/DocumentZoomType.hpp>
25#include <osl/diagnose.h>
50enum SwViewSettingsPropertyHandles
52 HANDLE_VIEWSET_ANNOTATIONS,
53 HANDLE_VIEWSET_BREAKS,
54 HANDLE_VIEWSET_DRAWINGS,
55 HANDLE_VIEWSET_FIELD_COMMANDS,
56 HANDLE_VIEWSET_FOOTNOTE_BACKGROUND,
57 HANDLE_VIEWSET_GRAPHICS,
58 HANDLE_VIEWSET_HIDDEN_CHARACTERS,
59 HANDLE_VIEWSET_HIDDEN_PARAGRAPHS,
60 HANDLE_VIEWSET_HIDDEN_TEXT,
61 HANDLE_VIEWSET_HRULER,
62 HANDLE_VIEWSET_HSCROLL,
63 HANDLE_VIEWSET_INDEX_MARK_BACKGROUND,
64 HANDLE_VIEWSET_NONPRINTING_CHARACTERS,
65 HANDLE_VIEWSET_ONLINE_LAYOUT,
66 HANDLE_VIEWSET_PARA_BREAKS,
67 HANDLE_VIEWSET_PROTECTED_SPACES,
68 HANDLE_VIEWSET_SOFT_HYPHENS,
69 HANDLE_VIEWSET_SPACES,
70 HANDLE_VIEWSET_TABLE_BOUNDARIES,
71 HANDLE_VIEWSET_TABLES,
72 HANDLE_VIEWSET_TABSTOPS,
73 HANDLE_VIEWSET_TEXT_BOUNDARIES,
74 HANDLE_VIEWSET_TEXT_FIELD_BACKGROUND,
75 HANDLE_VIEWSET_VRULER,
76 HANDLE_VIEWSET_VSCROLL,
77 HANDLE_VIEWSET_SMOOTH_SCROLLING,
78 HANDLE_VIEWSET_ZOOM_TYPE,
80 HANDLE_VIEWSET_SHOW_CONTENT_TIPS,
81 HANDLE_VIEWSET_HELP_URL,
82 HANDLE_VIEWSET_VRULER_RIGHT,
83 HANDLE_VIEWSET_SHOW_RULER,
84 HANDLE_VIEWSET_IS_RASTER_VISIBLE,
85 HANDLE_VIEWSET_IS_SNAP_TO_RASTER,
86 HANDLE_VIEWSET_RASTER_RESOLUTION_X,
87 HANDLE_VIEWSET_RASTER_RESOLUTION_Y,
88 HANDLE_VIEWSET_RASTER_SUBDIVISION_X,
89 HANDLE_VIEWSET_RASTER_SUBDIVISION_Y,
90 HANDLE_VIEWSET_HORI_RULER_METRIC,
91 HANDLE_VIEWSET_VERT_RULER_METRIC,
92 HANDLE_VIEWSET_SCROLLBAR_TIPS,
93 HANDLE_VIEWSET_INLINECHANGES_TIPS,
94 HANDLE_VIEWSET_HIDE_WHITESPACE,
95 HANDLE_VIEWSET_USE_HEADERFOOTERMENU,
96 HANDLE_VIEWSET_BOOKMARKS,
97 HANDLE_VIEWSET_SHOW_OUTLINECONTENTVISIBILITYBUTTON,
98 HANDLE_VIEWSET_TREAT_SUB_OUTLINE_LEVELS_AS_CONTENT,
99 HANDLE_VIEWSET_CHANGES_IN_MARGIN
102enum SwPrintSettingsPropertyHandles
104 HANDLE_PRINTSET_ANNOTATION_MODE,
105 HANDLE_PRINTSET_BLACK_FONTS,
106 HANDLE_PRINTSET_CONTROLS,
107 HANDLE_PRINTSET_DRAWINGS,
108 HANDLE_PRINTSET_GRAPHICS,
109 HANDLE_PRINTSET_LEFT_PAGES,
110 HANDLE_PRINTSET_PAGE_BACKGROUND,
111 HANDLE_PRINTSET_PROSPECT,
112 HANDLE_PRINTSET_REVERSED,
113 HANDLE_PRINTSET_RIGHT_PAGES,
114 HANDLE_PRINTSET_FAX_NAME,
115 HANDLE_PRINTSET_PAPER_FROM_SETUP,
116 HANDLE_PRINTSET_TABLES,
117 HANDLE_PRINTSET_SINGLE_JOBS,
118 HANDLE_PRINTSET_EMPTY_PAGES,
119 HANDLE_PRINTSET_PROSPECT_RTL,
120 HANDLE_PRINTSET_PLACEHOLDER,
121 HANDLE_PRINTSET_HIDDEN_TEXT
128 static PropertyInfo
const aViewSettingsMap_Impl[] =
160 { OUString(
"ShowOnlineLayout"), HANDLE_VIEWSET_ONLINE_LAYOUT ,
cppu::UnoType<bool>::get(), PropertyAttribute::MAYBEVOID},
178 { OUString(), 0, css::uno::Type(), 0 }
180 return new ChainablePropertySetInfo ( aViewSettingsMap_Impl );
185 static PropertyInfo
const aPrintSettingsMap_Impl[] =
205 { OUString(), 0, css::uno::Type(), 0}
207 return new ChainablePropertySetInfo ( aPrintSettingsMap_Impl );
223 OSL_FAIL(
"Web or Text?");
234 OSL_FAIL(
"Web or Text?");
252 return {
"com.sun.star.text.GlobalSettings" };
258, mpPrtOpt ( nullptr )
278 throw IllegalArgumentException ();
287 bool tryBoolAccess(
const uno::Any &rValue)
291 throw lang::IllegalArgumentException();
300 case HANDLE_PRINTSET_LEFT_PAGES:
305 case HANDLE_PRINTSET_RIGHT_PAGES:
310 case HANDLE_PRINTSET_REVERSED:
315 case HANDLE_PRINTSET_PROSPECT:
320 case HANDLE_PRINTSET_GRAPHICS:
325 case HANDLE_PRINTSET_TABLES:
330 case HANDLE_PRINTSET_DRAWINGS:
335 case HANDLE_PRINTSET_CONTROLS:
340 case HANDLE_PRINTSET_PAGE_BACKGROUND:
345 case HANDLE_PRINTSET_BLACK_FONTS:
350 case HANDLE_PRINTSET_SINGLE_JOBS:
355 case HANDLE_PRINTSET_PAPER_FROM_SETUP:
360 case HANDLE_PRINTSET_ANNOTATION_MODE:
366 throw lang::IllegalArgumentException();
371 case HANDLE_PRINTSET_EMPTY_PAGES:
376 case HANDLE_PRINTSET_FAX_NAME:
379 if ( !(rValue >>= sString))
380 throw lang::IllegalArgumentException();
385 case HANDLE_PRINTSET_PROSPECT_RTL:
390 case HANDLE_PRINTSET_PLACEHOLDER:
395 case HANDLE_PRINTSET_HIDDEN_TEXT:
401 throw UnknownPropertyException(OUString::number(rInfo.
mnHandle));
420 throw IllegalArgumentException ();
431 case HANDLE_PRINTSET_LEFT_PAGES:
434 case HANDLE_PRINTSET_RIGHT_PAGES:
437 case HANDLE_PRINTSET_REVERSED:
440 case HANDLE_PRINTSET_PROSPECT:
443 case HANDLE_PRINTSET_GRAPHICS:
446 case HANDLE_PRINTSET_TABLES:
449 case HANDLE_PRINTSET_DRAWINGS:
452 case HANDLE_PRINTSET_CONTROLS:
455 case HANDLE_PRINTSET_PAGE_BACKGROUND:
458 case HANDLE_PRINTSET_BLACK_FONTS:
461 case HANDLE_PRINTSET_SINGLE_JOBS:
464 case HANDLE_PRINTSET_EMPTY_PAGES:
467 case HANDLE_PRINTSET_PAPER_FROM_SETUP:
470 case HANDLE_PRINTSET_ANNOTATION_MODE:
475 case HANDLE_PRINTSET_FAX_NAME :
480 case HANDLE_PRINTSET_PROSPECT_RTL:
485 case HANDLE_PRINTSET_PLACEHOLDER:
490 case HANDLE_PRINTSET_HIDDEN_TEXT:
496 throw UnknownPropertyException(OUString::number(rInfo.
mnHandle));
507 return "SwXPrintSettings";
517 Sequence<OUString> aRet {
"com.sun.star.text.PrintSettings" };
524 , mpConstViewOption(nullptr)
525 , m_bObjectValid(true)
528 , mbApplyHRulerMetric(false)
530 , mbApplyVRulerMetric(false)
534 mxInfo->remove (
"HelpURL" );
554 pVOpt =
SW_MOD()->GetViewOption(
false);
567 case HANDLE_VIEWSET_SHOW_RULER :
mpViewOption->SetViewAnyRuler(*o3tl::doAccess<bool>(rValue));
break;
568 case HANDLE_VIEWSET_HRULER :
mpViewOption->SetViewHRuler(*o3tl::doAccess<bool>(rValue));
break;
569 case HANDLE_VIEWSET_VRULER :
mpViewOption->SetViewVRuler(*o3tl::doAccess<bool>(rValue));
break;
570 case HANDLE_VIEWSET_VRULER_RIGHT :
mpViewOption->SetVRulerRight(*o3tl::doAccess<bool>(rValue));
break;
571 case HANDLE_VIEWSET_HSCROLL :
mpViewOption->SetViewHScrollBar(*o3tl::doAccess<bool>(rValue));
break;
572 case HANDLE_VIEWSET_VSCROLL :
mpViewOption->SetViewVScrollBar(*o3tl::doAccess<bool>(rValue));
break;
573 case HANDLE_VIEWSET_GRAPHICS :
mpViewOption->SetGraphic(*o3tl::doAccess<bool>(rValue));
break;
574 case HANDLE_VIEWSET_TABLES :
mpViewOption->SetTable(*o3tl::doAccess<bool>(rValue));
break;
575 case HANDLE_VIEWSET_DRAWINGS :
mpViewOption->SetDraw(*o3tl::doAccess<bool>(rValue));
break;
576 case HANDLE_VIEWSET_FIELD_COMMANDS :
mpViewOption->SetFieldName(*o3tl::doAccess<bool>(rValue));
break;
577 case HANDLE_VIEWSET_ANNOTATIONS :
mpViewOption->SetPostIts(*o3tl::doAccess<bool>(rValue));
break;
579 case HANDLE_VIEWSET_NONPRINTING_CHARACTERS:
mpViewOption->SetViewMetaChars( *o3tl::doAccess<bool>(rValue) );
break;
582 case HANDLE_VIEWSET_PARA_BREAKS :
mpViewOption->SetParagraph(*o3tl::doAccess<bool>(rValue));
break;
583 case HANDLE_VIEWSET_SOFT_HYPHENS :
mpViewOption->SetSoftHyph(*o3tl::doAccess<bool>(rValue));
break;
584 case HANDLE_VIEWSET_SPACES :
mpViewOption->SetBlank(*o3tl::doAccess<bool>(rValue));
break;
585 case HANDLE_VIEWSET_PROTECTED_SPACES :
mpViewOption->SetHardBlank(*o3tl::doAccess<bool>(rValue));
break;
586 case HANDLE_VIEWSET_TABSTOPS :
mpViewOption->SetTab(*o3tl::doAccess<bool>(rValue));
break;
587 case HANDLE_VIEWSET_BREAKS :
mpViewOption->SetLineBreak(*o3tl::doAccess<bool>(rValue));
break;
588 case HANDLE_VIEWSET_BOOKMARKS :
mpViewOption->SetShowBookmarks(*o3tl::doAccess<bool>(rValue));
break;
589 case HANDLE_VIEWSET_HIDDEN_TEXT :
mpViewOption->SetShowHiddenField(*o3tl::doAccess<bool>(rValue));
break;
590 case HANDLE_VIEWSET_HIDDEN_CHARACTERS :
mpViewOption->SetShowHiddenChar(*o3tl::doAccess<bool>(rValue));
break;
591 case HANDLE_VIEWSET_HIDDEN_PARAGRAPHS :
mpViewOption->SetShowHiddenPara(*o3tl::doAccess<bool>(rValue));
break;
593 case HANDLE_VIEWSET_TEXT_BOUNDARIES :
mpViewOption->SetDocBoundaries(*o3tl::doAccess<bool>(rValue));
break;
594 case HANDLE_VIEWSET_SMOOTH_SCROLLING :
mpViewOption->SetSmoothScroll(*o3tl::doAccess<bool>(rValue));
break;
595 case HANDLE_VIEWSET_SHOW_CONTENT_TIPS :
mpViewOption->SetShowContentTips(*o3tl::doAccess<bool>(rValue));
break;
596 case HANDLE_VIEWSET_IS_RASTER_VISIBLE :
mpViewOption->SetGridVisible(*o3tl::doAccess<bool>(rValue));
break;
597 case HANDLE_VIEWSET_IS_SNAP_TO_RASTER :
mpViewOption->SetSnap(*o3tl::doAccess<bool>(rValue));
break;
598 case HANDLE_VIEWSET_SCROLLBAR_TIPS :
mpViewOption->SetShowScrollBarTips(*o3tl::doAccess<bool>(rValue));
break;
599 case HANDLE_VIEWSET_INLINECHANGES_TIPS :
mpViewOption->SetShowInlineTooltips(*o3tl::doAccess<bool>(rValue));
break;
600 case HANDLE_VIEWSET_USE_HEADERFOOTERMENU :
mpViewOption->SetUseHeaderFooterMenu(*o3tl::doAccess<bool>(rValue));
break;
601 case HANDLE_VIEWSET_SHOW_OUTLINECONTENTVISIBILITYBUTTON :
mpViewOption->SetShowOutlineContentVisibilityButton(*o3tl::doAccess<bool>(rValue));
break;
602 case HANDLE_VIEWSET_TREAT_SUB_OUTLINE_LEVELS_AS_CONTENT :
mpViewOption->SetTreatSubOutlineLevelsAsContent(*o3tl::doAccess<bool>(rValue));
break;
603 case HANDLE_VIEWSET_CHANGES_IN_MARGIN :
mpViewOption->SetShowChangesInMargin(*o3tl::doAccess<bool>(rValue));
break;
604 case HANDLE_VIEWSET_RASTER_RESOLUTION_X :
607 if(!(rValue >>= nTmp) || nTmp < 10)
608 throw IllegalArgumentException();
614 case HANDLE_VIEWSET_RASTER_RESOLUTION_Y :
617 if(!(rValue >>= nTmp) || nTmp < 10)
618 throw IllegalArgumentException();
624 case HANDLE_VIEWSET_RASTER_SUBDIVISION_X :
627 if(!(rValue >>= nTmp) || (0 > nTmp || nTmp >= 100))
628 throw IllegalArgumentException();
632 case HANDLE_VIEWSET_RASTER_SUBDIVISION_Y :
635 if(!(rValue >>= nTmp) || (0 > nTmp || nTmp >= 100))
636 throw IllegalArgumentException();
640 case HANDLE_VIEWSET_ZOOM :
644 throw lang::IllegalArgumentException();
645 mpViewOption->SetZoom(o3tl::narrowing<sal_uInt16>(nZoom));
649 case HANDLE_VIEWSET_ZOOM_TYPE:
652 if(!(rValue >>= nZoom))
653 throw IllegalArgumentException();
657 case view::DocumentZoomType::OPTIMAL:
658 eZoom = SvxZoomType::OPTIMAL;
660 case view::DocumentZoomType::PAGE_WIDTH:
661 eZoom = SvxZoomType::PAGEWIDTH;
663 case view::DocumentZoomType::ENTIRE_PAGE:
664 eZoom = SvxZoomType::WHOLEPAGE;
666 case view::DocumentZoomType::BY_VALUE:
667 eZoom = SvxZoomType::PERCENT;
669 case view::DocumentZoomType::PAGE_WIDTH_EXACT:
670 eZoom = SvxZoomType::PAGEWIDTH_NOBORDER;
673 throw IllegalArgumentException(
674 "SwXViewSettings: invalid zoom type",
nullptr, 0);
680 case HANDLE_VIEWSET_ONLINE_LAYOUT :
684 bool bVal = *o3tl::doAccess<bool>(rValue);
700 case HANDLE_VIEWSET_HIDE_WHITESPACE:
704 bool bVal = *o3tl::doAccess<bool>(rValue);
718 case HANDLE_VIEWSET_HELP_URL:
721 throw UnknownPropertyException();
724 if ( ! ( rValue >>= sHelpURL ) )
725 throw IllegalArgumentException();
729 throw IllegalArgumentException ();
734 case HANDLE_VIEWSET_HORI_RULER_METRIC:
735 case HANDLE_VIEWSET_VERT_RULER_METRIC:
738 if( rValue >>= nUnit )
743 case FieldUnit::POINT:
744 case FieldUnit::PICA:
745 case FieldUnit::INCH:
746 if( rInfo.
mnHandle == HANDLE_VIEWSET_HORI_RULER_METRIC )
758 throw IllegalArgumentException();
763 throw UnknownPropertyException(OUString::number(rInfo.
mnHandle));
809 bool bBoolVal =
false;
847 case HANDLE_VIEWSET_RASTER_RESOLUTION_X :
851 case HANDLE_VIEWSET_RASTER_RESOLUTION_Y :
855 case HANDLE_VIEWSET_RASTER_SUBDIVISION_X :
859 case HANDLE_VIEWSET_RASTER_SUBDIVISION_Y :
863 case HANDLE_VIEWSET_ZOOM :
867 case HANDLE_VIEWSET_ZOOM_TYPE:
873 case SvxZoomType::OPTIMAL:
874 nRet = view::DocumentZoomType::OPTIMAL;
876 case SvxZoomType::PAGEWIDTH:
877 nRet = view::DocumentZoomType::PAGE_WIDTH;
879 case SvxZoomType::WHOLEPAGE:
880 nRet = view::DocumentZoomType::ENTIRE_PAGE;
882 case SvxZoomType::PERCENT:
883 nRet = view::DocumentZoomType::BY_VALUE;
885 case SvxZoomType::PAGEWIDTH_NOBORDER:
886 nRet = view::DocumentZoomType::PAGE_WIDTH_EXACT;
889 OSL_FAIL(
"SwXViewSettings: invalid zoom type");
895 case HANDLE_VIEWSET_ONLINE_LAYOUT:
899 case HANDLE_VIEWSET_HELP_URL :
902 throw UnknownPropertyException();
910 case HANDLE_VIEWSET_HORI_RULER_METRIC:
916 rValue <<= static_cast<sal_Int32>(eUnit);
926 case HANDLE_VIEWSET_VERT_RULER_METRIC:
932 rValue <<= static_cast<sal_Int32>(eUnit);
942 default: OSL_FAIL(
"there is no such ID!");
955 return "SwXViewSettings";
965 Sequence<OUString> aRet {
"com.sun.star.text.ViewSettings" };
969extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
971 css::uno::Sequence<css::uno::Any>
const &)
constexpr auto convertTwipToMm100(N n)
virtual const SwPrintData & getPrintData() const =0
Returns the PrintData.
OUString GetURLPath(DecodeMechanism eMechanism=DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const
INetProtocol GetProtocol() const
constexpr tools::Long Height() const
void setWidth(tools::Long nWidth)
void setHeight(tools::Long nHeight)
constexpr tools::Long Width() const
void ToggleLayoutMode(SwView *pView)
IDocumentDeviceAccess const & getIDocumentDeviceAccess() const
Window class for the Writer edit area, this is the one handling mouse and keyboard events and doing t...
FieldUnit GetHScrollMetric() const
FieldUnit GetVScrollMetric() const
SwPostItMode GetPrintPostIts() const
void SetPrintReverse(bool b)
bool IsPrintReverse() const
void SetPrintHiddenText(bool b)
void SetPrintTable(bool b)
bool IsPrintBlackFont() const
bool IsPrintLeftPage() const
void SetPrintRightPage(bool b)
void SetPrintBlackFont(bool b)
bool IsPrintProspect() const
void SetFaxName(const OUString &rSet)
void SetPrintLeftPage(bool b)
void SetPaperFromSetup(bool b)
bool IsPrintRightPage() const
bool IsPrintControl() const
bool IsPrintTextPlaceholder() const
void SetPrintProspect_RTL(bool b)
bool IsPaperFromSetup() const
void SetPrintDraw(bool b)
void SetPrintSingleJobs(bool b)
bool IsPrintProspectRTL() const
void SetPrintTextPlaceholder(bool b)
void SetPrintGraphic(bool b)
bool IsPrintEmptyPages() const
void SetPrintControl(bool b)
bool IsPrintSingleJobs() const
void SetPrintPostIts(SwPostItMode n)
bool IsPrintGraphic() const
void SetPrintProspect(bool b)
void SetPrintEmptyPages(bool b)
bool IsPrintPageBackground() const
bool IsPrintHiddenText() const
void SetPrintPageBackground(bool b)
const OUString & GetFaxName() const
bool IsPrintTable() const
bool IsViewHRuler(bool bDirect=false) const
bool IsHideWhitespaceMode() const
bool IsParagraph(bool bHard=false) const
void SetHideWhitespaceMode(bool bMode)
bool IsVRulerRight() const
bool IsSmoothScroll() const
bool IsShowBookmarks(bool const bHard=false) const
bool IsBlank(bool bHard=false) const
bool IsGridVisible() const
SvxZoomType GetZoomType() const
bool IsShowHiddenField() const
bool IsShowHiddenPara() const
short GetDivisionY() const
sal_uInt16 GetZoom() const
bool IsShowScrollBarTips() const
bool IsViewAnyRuler() const
bool IsViewHScrollBar() const
const Size & GetSnapSize() const
bool IsShowContentTips() const
bool getBrowseMode() const
bool IsShowHiddenChar(bool bHard=false) const
bool IsViewVRuler(bool bDirect=false) const
bool IsViewVScrollBar() const
bool IsTableBoundaries() const
bool IsViewMetaChars() const
bool IsLineBreak(bool bHard=false) const
bool IsTab(bool bHard=false) const
short GetDivisionX() const
bool IsDocBoundaries() const
bool IsShowInlineTooltips() const
bool IsShowChangesInMargin() const
bool IsFieldShadings() const
void setBrowseMode(bool bSet)
const SwViewOption * GetViewOptions() const
void GetHRulerMetric(FieldUnit &rToFill) const
SwWrtShell & GetWrtShell() const
void GetVRulerMetric(FieldUnit &rToFill) const
void ChangeVRulerMetric(FieldUnit eUnit)
SwDocShell * GetDocShell()
void SetZoom(SvxZoomType eZoomType, short nFactor=100, bool bViewOnly=false)
void ChangeTabMetric(FieldUnit eUnit)
virtual void ApplyViewOptions(const SwViewOption &rOpt) override
Apply ViewOptions with Start-/EndAction.
virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL getViewSettings() override
virtual ~SwXModule() override
css::uno::Reference< css::beans::XPropertySet > mxViewSettings
virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL getPrintSettings() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual OUString SAL_CALL getImplementationName() override
css::uno::Reference< css::beans::XPropertySet > mxPrintSettings
virtual void _getSingleValue(const comphelper::PropertyInfo &rInfo, css::uno::Any &rValue) override
virtual void _postGetValues() override
virtual ~SwXPrintSettings() noexcept override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void _postSetValues() override
SwXPrintSettingsType meType
SwXPrintSettings(SwXPrintSettingsType eType, SwDoc *pDoc=nullptr)
virtual void _setSingleValue(const comphelper::PropertyInfo &rInfo, const css::uno::Any &rValue) override
virtual OUString SAL_CALL getImplementationName() override
virtual void _preGetValues() override
virtual void _preSetValues() override
Implements com.sun.star.text.ViewSettings: UNO access to per-view settings (e.g.
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void _postGetValues() override
virtual void _preGetValues() override
virtual ~SwXViewSettings() noexcept override
virtual void _getSingleValue(const comphelper::PropertyInfo &rInfo, css::uno::Any &rValue) override
virtual void _setSingleValue(const comphelper::PropertyInfo &rInfo, const css::uno::Any &rValue) override
std::unique_ptr< SwViewOption > mpViewOption
SwXViewSettings(SwView *pView)
const SwViewOption * mpConstViewOption
virtual OUString SAL_CALL getImplementationName() override
virtual void _preSetValues() override
virtual void _postSetValues() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
rtl::Reference< ChainablePropertySetInfo > mxInfo
css::uno::Type const & get()
const OUString & GetHelpId() const
void SetHelpId(const OUString &)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
detail::Optional< bool >::type tryAccess< bool >(css::uno::Any const &any)
constexpr auto toTwips(N number, Length from)
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
SwPostItMode
this must match the definitions in css::text::NotePrintMode
static rtl::Reference< ChainablePropertySetInfo > lcl_createViewSettingsInfo()
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SwXModule_get_implementation(css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &)
static rtl::Reference< ChainablePropertySetInfo > lcl_createPrintSettingsInfo()
constexpr OUStringLiteral INET_HID_SCHEME