LibreOffice Module sw (master) 1
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
SwXViewSettings Class Referencefinal

Implements com.sun.star.text.ViewSettings: UNO access to per-view settings (e.g. More...

#include <unomod.hxx>

Inheritance diagram for SwXViewSettings:
[legend]
Collaboration diagram for SwXViewSettings:
[legend]

Public Member Functions

 SwXViewSettings (SwView *pView)
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
bool IsValid () const
 
void Invalidate ()
 
- Public Member Functions inherited from comphelper::ChainablePropertySet
 ChainablePropertySet (comphelper::ChainablePropertySetInfo *pInfo, SolarMutex *pMutex) noexcept
 
virtual ~ChainablePropertySet () noexcept override
 
css::uno::Any SAL_CALL queryInterface (const css::uno::Type &aType) override
 
void SAL_CALL acquire () noexcept override
 
void SAL_CALL release () noexcept override
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual void SAL_CALL setPropertyValue (const OUString &aPropertyName, const css::uno::Any &aValue) override
 
virtual css::uno::Any SAL_CALL getPropertyValue (const OUString &PropertyName) override
 
virtual void SAL_CALL addPropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
 
virtual void SAL_CALL removePropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
 
virtual void SAL_CALL addVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
 
virtual void SAL_CALL removeVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
 
virtual void SAL_CALL setPropertyValues (const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Sequence< css::uno::Any > &aValues) override
 
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues (const css::uno::Sequence< OUString > &aPropertyNames) override
 
virtual void SAL_CALL addPropertiesChangeListener (const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
 
virtual void SAL_CALL removePropertiesChangeListener (const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
 
virtual void SAL_CALL firePropertiesChangeEvent (const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
 
virtual css::beans::PropertyState SAL_CALL getPropertyState (const OUString &PropertyName) override
 
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates (const css::uno::Sequence< OUString > &aPropertyName) override
 
virtual void SAL_CALL setPropertyToDefault (const OUString &PropertyName) override
 
virtual css::uno::Any SAL_CALL getPropertyDefault (const OUString &aPropertyName) override
 

Private Member Functions

virtual void _preSetValues () override
 
virtual void _setSingleValue (const comphelper::PropertyInfo &rInfo, const css::uno::Any &rValue) override
 
virtual void _postSetValues () override
 
virtual void _preGetValues () override
 
virtual void _getSingleValue (const comphelper::PropertyInfo &rInfo, css::uno::Any &rValue) override
 
virtual void _postGetValues () override
 
virtual ~SwXViewSettings () noexcept override
 

Private Attributes

SwViewm_pView
 
std::unique_ptr< SwViewOptionmpViewOption
 
const SwViewOptionmpConstViewOption
 
bool m_bObjectValid:1
 
bool mbApplyZoom
 
FieldUnit m_eHRulerUnit
 
bool mbApplyHRulerMetric
 
FieldUnit m_eVRulerUnit
 
bool mbApplyVRulerMetric
 

Friends

class SwXDocumentSettings
 

Additional Inherited Members

virtual void _preSetValues ()=0
 
virtual void _setSingleValue (const comphelper::PropertyInfo &rInfo, const css::uno::Any &rValue)=0
 
virtual void _postSetValues ()=0
 
virtual void _preGetValues ()=0
 
virtual void _getSingleValue (const comphelper::PropertyInfo &rInfo, css::uno::Any &rValue)=0
 
virtual void _postGetValues ()=0
 
- Protected Attributes inherited from comphelper::ChainablePropertySet
SolarMutex *const mpMutex
 
rtl::Reference< ChainablePropertySetInfomxInfo
 

Detailed Description

Implements com.sun.star.text.ViewSettings: UNO access to per-view settings (e.g.

if formatting marks are visible or not.)

Definition at line 103 of file unomod.hxx.

Constructor & Destructor Documentation

◆ ~SwXViewSettings()

SwXViewSettings::~SwXViewSettings ( )
overrideprivatevirtualnoexcept

Definition at line 538 of file unomod.cxx.

◆ SwXViewSettings()

SwXViewSettings::SwXViewSettings ( SwView pView)

Definition at line 521 of file unomod.cxx.

References CM, m_pView, and comphelper::ChainablePropertySet::mxInfo.

Member Function Documentation

◆ _getSingleValue()

void SwXViewSettings::_getSingleValue ( const comphelper::PropertyInfo rInfo,
css::uno::Any &  rValue 
)
overrideprivatevirtual

Implements comphelper::ChainablePropertySet.

Definition at line 806 of file unomod.cxx.

References convertTwipToMm100(), SwViewOption::getBrowseMode(), SwViewOption::GetDivisionX(), SwViewOption::GetDivisionY(), SwView::GetEditWin(), vcl::Window::GetHelpId(), SwView::GetHRulerMetric(), SwMasterUsrPref::GetHScrollMetric(), SwViewOption::GetSnapSize(), SwViewShell::GetViewOptions(), SwView::GetVRulerMetric(), SwMasterUsrPref::GetVScrollMetric(), SwView::GetWrtShell(), SwViewOption::GetZoom(), SwViewOption::GetZoomType(), Size::Height(), INET_HID_SCHEME, SwViewOption::IsBlank(), SwViewOption::IsDocBoundaries(), SwViewOption::IsDraw(), SwViewOption::IsFieldName(), SwViewOption::IsFieldShadings(), SwViewOption::IsGraphic(), SwViewOption::IsGridVisible(), SwViewOption::IsHardBlank(), SwViewOption::IsHideWhitespaceMode(), SwViewOption::IsLineBreak(), SwViewOption::IsParagraph(), SwViewOption::IsPostIts(), SwViewOption::IsShowBookmarks(), SwViewOption::IsShowChangesInMargin(), SwViewOption::IsShowContentTips(), SwViewOption::IsShowHiddenChar(), SwViewOption::IsShowHiddenField(), SwViewOption::IsShowHiddenPara(), SwViewOption::IsShowInlineTooltips(), SwViewOption::IsShowScrollBarTips(), SwViewOption::IsSmoothScroll(), SwViewOption::IsSnap(), SwViewOption::IsSoftHyph(), SwViewOption::IsTab(), SwViewOption::IsTable(), SwViewOption::IsTableBoundaries(), SwViewOption::IsViewAnyRuler(), SwViewOption::IsViewHRuler(), SwViewOption::IsViewHScrollBar(), SwViewOption::IsViewMetaChars(), SwViewOption::IsViewVRuler(), SwViewOption::IsViewVScrollBar(), SwViewOption::IsVRulerRight(), m_pView, comphelper::PropertyInfo::mnHandle, mpConstViewOption, SW_MOD, and Size::Width().

◆ _postGetValues()

void SwXViewSettings::_postGetValues ( )
overrideprivatevirtual

Implements comphelper::ChainablePropertySet.

Definition at line 948 of file unomod.cxx.

References mpConstViewOption.

◆ _postSetValues()

void SwXViewSettings::_postSetValues ( )
overrideprivatevirtual

◆ _preGetValues()

void SwXViewSettings::_preGetValues ( )
overrideprivatevirtual

◆ _preSetValues()

void SwXViewSettings::_preSetValues ( )
overrideprivatevirtual

◆ _setSingleValue()

void SwXViewSettings::_setSingleValue ( const comphelper::PropertyInfo rInfo,
const css::uno::Any &  rValue 
)
overrideprivatevirtual

◆ getImplementationName()

OUString SwXViewSettings::getImplementationName ( )
overridevirtual

Definition at line 953 of file unomod.cxx.

◆ getSupportedServiceNames()

Sequence< OUString > SwXViewSettings::getSupportedServiceNames ( )
overridevirtual

Definition at line 963 of file unomod.cxx.

◆ Invalidate()

void SwXViewSettings::Invalidate ( )
inline

Definition at line 136 of file unomod.hxx.

◆ IsValid()

bool SwXViewSettings::IsValid ( ) const
inline

Definition at line 135 of file unomod.hxx.

Referenced by _preGetValues(), and _preSetValues().

◆ supportsService()

sal_Bool SwXViewSettings::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 958 of file unomod.cxx.

References cppu::supportsService().

Friends And Related Function Documentation

◆ SwXDocumentSettings

friend class SwXDocumentSettings
friend

Definition at line 105 of file unomod.hxx.

Member Data Documentation

◆ m_bObjectValid

bool SwXViewSettings::m_bObjectValid
private

Definition at line 110 of file unomod.hxx.

◆ m_eHRulerUnit

FieldUnit SwXViewSettings::m_eHRulerUnit
private

Definition at line 112 of file unomod.hxx.

Referenced by _postSetValues(), and _setSingleValue().

◆ m_eVRulerUnit

FieldUnit SwXViewSettings::m_eVRulerUnit
private

Definition at line 114 of file unomod.hxx.

Referenced by _postSetValues(), and _setSingleValue().

◆ m_pView

SwView* SwXViewSettings::m_pView
private

◆ mbApplyHRulerMetric

bool SwXViewSettings::mbApplyHRulerMetric
private

Definition at line 113 of file unomod.hxx.

Referenced by _postSetValues(), and _setSingleValue().

◆ mbApplyVRulerMetric

bool SwXViewSettings::mbApplyVRulerMetric
private

Definition at line 115 of file unomod.hxx.

Referenced by _postSetValues(), and _setSingleValue().

◆ mbApplyZoom

bool SwXViewSettings::mbApplyZoom
private

Definition at line 110 of file unomod.hxx.

Referenced by _postSetValues(), _preSetValues(), and _setSingleValue().

◆ mpConstViewOption

const SwViewOption* SwXViewSettings::mpConstViewOption
private

Definition at line 109 of file unomod.hxx.

Referenced by _getSingleValue(), _postGetValues(), and _preGetValues().

◆ mpViewOption

std::unique_ptr<SwViewOption> SwXViewSettings::mpViewOption
private

Definition at line 108 of file unomod.hxx.

Referenced by _postSetValues(), _preSetValues(), and _setSingleValue().


The documentation for this class was generated from the following files: