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 #ifndef _SW_XDOCUMENT_SETTINGS_HXX
032 #define _SW_XDOCUMENT_SETTINGS_HXX
033
034 #ifdef PRECOMPILED
035 #include "ui_pch.hxx"
036 #endif
037
038 #ifndef _COMPHELPER_MASTERPROPERTYSET_HXX_
039 #include <comphelper/MasterPropertySet.hxx>
040 #endif
041 #ifndef _COM_SUN_STAR_TEXT_XTEXTDOCUMENT_HPP
042 #include <com/sun/star/text/XTextDocument.hpp>
043 #endif
044 #include <com/sun/star/lang/XServiceInfo.hpp>
045 #include <com/sun/star/lang/XTypeProvider.hpp>
046 #include <cppuhelper/weak.hxx>
047 #include <cppuhelper/implbase5.hxx>
048
049
050 class SwXTextDocument;
051 class SwDocShell;
052 class SwDoc;
053 class SfxPrinter;
054
055 class SwXDocumentSettings :
056 public comphelper::MasterPropertySet,
057 public com::sun::star::lang::XServiceInfo,
058 public com::sun::star::lang::XTypeProvider,
059 public cppu::OWeakObject
060 {
061 protected:
062 com::sun::star::uno::Reference< com::sun::star::text::XTextDocument > mxModel;
063 SwXTextDocument* mpModel;
064 SwDocShell* mpDocSh;
065 SwDoc* mpDoc;
066
067
068
069
070 SfxPrinter* mpPrinter;
071
072 virtual void _preSetValues ()
073 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException );
074 virtual void _setSingleValue( const comphelper::PropertyInfo & rInfo, const ::com::sun::star::uno::Any &rValue )
075 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException );
076 virtual void _postSetValues ()
077 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException );
078
079 virtual void _preGetValues ()
080 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException );
081 virtual void _getSingleValue( const comphelper::PropertyInfo & rInfo, ::com::sun::star::uno::Any & rValue )
082 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException );
083 virtual void _postGetValues ()
084 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException );
085 protected:
086 virtual ~SwXDocumentSettings()
087 throw();
088 public:
089 SwXDocumentSettings( SwXTextDocument* pModel );
090
091
092
093 virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType )
094 throw (::com::sun::star::uno::RuntimeException);
095 virtual void SAL_CALL acquire( )
096 throw ();
097 virtual void SAL_CALL release( )
098 throw ();
099
100
101 virtual ::rtl::OUString SAL_CALL getImplementationName( )
102 throw(com::sun::star::uno::RuntimeException);
103 virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
104 throw(com::sun::star::uno::RuntimeException);
105 virtual com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( )
106 throw(com::sun::star::uno::RuntimeException);
107
108
109 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw (::com::sun::star::uno::RuntimeException);
110 virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) throw (::com::sun::star::uno::RuntimeException);
111 };
112 #endif