1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: unomodel.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef SVX_UNOMODEL_HXX
32 #define SVX_UNOMODEL_HXX
36 #ifndef _COM_SUN_STAR_DRAWING_XDRAWPAGESSUPPLIER_HPP_
37 #include <com/sun/star/drawing/XDrawPagesSupplier.hpp>
40 #ifndef _COM_SUN_STAR_LANG_XSERVICEINFO_HPP_
41 #include <com/sun/star/lang/XServiceInfo.hpp>
44 #ifndef _COM_SUN_STAR_UCB_XANYCOMPAREFACTORY_HPP_
45 #include <com/sun/star/ucb/XAnyCompareFactory.hpp>
48 #ifndef _COM_SUN_STAR_IO_XOUTPUTSTREAM_HPP_
49 #include <com/sun/star/io/XOutputStream.hpp>
52 #ifndef _COM_SUN_STAR_IO_XINPUTSTREAM_HPP_
53 #include <com/sun/star/io/XInputStream.hpp>
56 #ifndef _SFX_SFXBASEMODEL_HXX_
57 #include <bf_sfx2/sfxbasemodel.hxx>
60 #ifndef _SVX_FMDMOD_HXX
61 #include <bf_svx/fmdmod.hxx>
67 class SvxUnoDrawingModel
: public SfxBaseModel
, // implements SfxListener, OWEAKOBJECT & other
68 public SvxFmMSFactory
,
69 public ::com::sun::star::drawing::XDrawPagesSupplier
,
70 public ::com::sun::star::lang::XServiceInfo
,
71 public ::com::sun::star::ucb::XAnyCompareFactory
73 friend class SvxUnoDrawPagesAccess
;
78 ::com::sun::star::uno::WeakReference
< ::com::sun::star::drawing::XDrawPages
> mxDrawPagesAccess
;
80 ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XInterface
> mxDashTable
;
81 ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XInterface
> mxGradientTable
;
82 ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XInterface
> mxHatchTable
;
83 ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XInterface
> mxBitmapTable
;
84 ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XInterface
> mxTransGradientTable
;
85 ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XInterface
> mxMarkerTable
;
87 ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Type
> maTypeSequence
;
90 virtual ~SvxUnoDrawingModel() throw();
92 SdrModel
* GetDoc() const { return mpDoc
; }
95 virtual ::com::sun::star::uno::Any SAL_CALL
queryInterface( const ::com::sun::star::uno::Type
& rType
) throw(::com::sun::star::uno::RuntimeException
);
96 virtual void SAL_CALL
acquire() throw();
97 virtual void SAL_CALL
release() throw();
100 virtual void SAL_CALL
lockControllers( ) throw(::com::sun::star::uno::RuntimeException
);
101 virtual void SAL_CALL
unlockControllers( ) throw(::com::sun::star::uno::RuntimeException
);
102 virtual sal_Bool SAL_CALL
hasControllersLocked( ) throw(::com::sun::star::uno::RuntimeException
);
105 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Type
> SAL_CALL
getTypes( ) throw(::com::sun::star::uno::RuntimeException
);
106 virtual ::com::sun::star::uno::Sequence
< sal_Int8
> SAL_CALL
getImplementationId( ) throw(::com::sun::star::uno::RuntimeException
);
108 // XDrawPagesSupplier
109 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::drawing::XDrawPages
> SAL_CALL
getDrawPages( ) throw(::com::sun::star::uno::RuntimeException
);
111 // XMultiServiceFactory ( SvxFmMSFactory )
112 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XInterface
> SAL_CALL
createInstance( const ::rtl::OUString
& aServiceSpecifier
) throw(::com::sun::star::uno::Exception
, ::com::sun::star::uno::RuntimeException
);
113 virtual ::com::sun::star::uno::Sequence
< ::rtl::OUString
> SAL_CALL
getAvailableServiceNames( ) throw(::com::sun::star::uno::RuntimeException
);
116 virtual ::rtl::OUString SAL_CALL
getImplementationName() throw(::com::sun::star::uno::RuntimeException
);
117 virtual sal_Bool SAL_CALL
supportsService( const ::rtl::OUString
& ServiceName
) throw(::com::sun::star::uno::RuntimeException
);
118 virtual ::com::sun::star::uno::Sequence
< ::rtl::OUString
> SAL_CALL
getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException
);
120 // XAnyCompareFactory
121 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::ucb::XAnyCompare
> SAL_CALL
createAnyCompareByName( const ::rtl::OUString
& PropertyName
) throw(::com::sun::star::uno::RuntimeException
);
123 }//end of namespace binfilter