001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
017
018
019
020
021
022
023
024
025
026
027
028
029
030
031
032
033
034
035 #ifndef _SW_XPRINTPREVIEWSETTINGS_HXX_
036 #define _SW_XPRINTPREVIEWSETTINGS_HXX_
037
038 #ifdef PRECOMPILED
039 #include "ui_pch.hxx"
040 #endif
041
042 #ifndef _COMPHELPER_CHAINABLEPROPERTYSET_HXX_
043 #include <comphelper/ChainablePropertySet.hxx>
044 #endif
045 #ifndef _COM_SUN_STAR_TEXT_XTEXTDOCUMENT_HPP
046 #include <com/sun/star/text/XTextDocument.hpp>
047 #endif
048 #ifndef _CPPUHELPER_WEAK_HXX_
049 #include <cppuhelper/weak.hxx>
050 #endif
051 #ifndef _COM_SUN_STAR_LANG_XSERVICEINFO_HPP_
052 #include <com/sun/star/lang/XServiceInfo.hpp>
053 #endif
054
055 class SwDoc;
056 class SwPagePreViewPrtData;
057
058 class SwXPrintPreviewSettings :public comphelper::ChainablePropertySet,
059 public cppu::OWeakObject,
060 public com::sun::star::lang::XServiceInfo
061 {
062 friend class SwXDocumentSettings;
063 protected:
064 sal_Bool mbPreviewDataChanged;
065 SwDoc* mpDoc;
066 SwPagePreViewPrtData *mpPreViewData;
067 const SwPagePreViewPrtData *mpConstPreViewData;
068
069 virtual void _preSetValues ()
070 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException );
071 virtual void _setSingleValue( const comphelper::PropertyInfo & rInfo, const ::com::sun::star::uno::Any &rValue )
072 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException );
073 virtual void _postSetValues ()
074 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException );
075
076 virtual void _preGetValues ()
077 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException );
078 virtual void _getSingleValue( const comphelper::PropertyInfo & rInfo, ::com::sun::star::uno::Any & rValue )
079 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException );
080 virtual void _postGetValues ()
081 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException );
082 virtual ~SwXPrintPreviewSettings()
083 throw();
084 public:
085 SwXPrintPreviewSettings(SwDoc *pDoc);
086
087
088
089 virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType )
090 throw (::com::sun::star::uno::RuntimeException);
091 virtual void SAL_CALL acquire( )
092 throw ();
093 virtual void SAL_CALL release( )
094 throw ();
095
096
097 virtual rtl::OUString SAL_CALL getImplementationName(void)
098 throw( ::com::sun::star::uno::RuntimeException );
099 virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName)
100 throw( ::com::sun::star::uno::RuntimeException );
101 virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void)
102 throw( ::com::sun::star::uno::RuntimeException );
103 };
104 #endif