Better, Faster, Freer

The LXR Cross Referencer

source navigation ]
diff markup ]
identifier search ]
general search ]
 
 
Architecture: i386 ]
Version: HEAD ]

001 /*************************************************************************
002  *
003  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
004  * 
005  * Copyright 2008 by Sun Microsystems, Inc.
006  *
007  * OpenOffice.org - a multi-platform office productivity suite
008  *
009  * $RCSfile: SwXDocumentSettings.hxx,v $
010  * $Revision: 1.11 $
011  *
012  * This file is part of OpenOffice.org.
013  *
014  * OpenOffice.org is free software: you can redistribute it and/or modify
015  * it under the terms of the GNU Lesser General Public License version 3
016  * only, as published by the Free Software Foundation.
017  *
018  * OpenOffice.org is distributed in the hope that it will be useful,
019  * but WITHOUT ANY WARRANTY; without even the implied warranty of
020  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
021  * GNU Lesser General Public License version 3 for more details
022  * (a copy is included in the LICENSE file that accompanied this code).
023  *
024  * You should have received a copy of the GNU Lesser General Public License
025  * version 3 along with OpenOffice.org.  If not, see
026  * <http://www.openoffice.org/license.html>
027  * for a copy of the LGPLv3 License.
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     /** the printer should be set only once; since there are several
068      * printer-related properties, remember the last printer and set it in
069      * _postSetValues */
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         // XInterface
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         // XServiceInfo
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     // XTypeProvider
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

source navigation ] diff markup ] identifier search ] general search ]

This page was automatically generated by the LXR engine.
The LXR team
Valid HTML 4.01!