Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : : #ifndef _MSOCXIMEX_HXX
29 : : #define _MSOCXIMEX_HXX
30 : :
31 : : #include <sot/storage.hxx>
32 : :
33 : : #include "filter/msfilter/msfilterdllapi.h"
34 : :
35 : : namespace com{namespace sun{namespace star{
36 : : namespace drawing{
37 : : class XDrawPage;
38 : : class XShape;
39 : : class XShapes;
40 : : }
41 : : namespace form{
42 : : class XFormComponent;
43 : : }
44 : : namespace lang{
45 : : class XMultiServiceFactory;
46 : : }
47 : : namespace container{
48 : : class XIndexContainer;
49 : : class XNameContainer;
50 : : }
51 : : namespace beans{
52 : : class XPropertySet;
53 : : }
54 : : namespace text{
55 : : class XText;
56 : : }
57 : : namespace awt{
58 : : struct Size;
59 : : class XControlModel;
60 : : }
61 : : namespace uno{
62 : : class XComponentContext;
63 : : }
64 : : namespace frame{
65 : : class XModel;
66 : : }
67 : :
68 : : }}}
69 : :
70 : : class SfxObjectShell;
71 : :
72 : : class MSFILTER_DLLPUBLIC SvxMSConvertOCXControls
73 : : {
74 : : public:
75 : : SvxMSConvertOCXControls( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& xModel );
76 : : virtual ~SvxMSConvertOCXControls();
77 : :
78 : 0 : virtual sal_Bool InsertControl(
79 : : const com::sun::star::uno::Reference<
80 : : com::sun::star::form::XFormComponent >& /*rFComp*/,
81 : : const com::sun::star::awt::Size& /*rSize*/,
82 : : com::sun::star::uno::Reference<
83 : : com::sun::star::drawing::XShape >* /*pShape*/,
84 : 0 : sal_Bool /*bFloatingCtrl*/ ) {return sal_False;}
85 : :
86 : : /*begin: Backwards compatability with office 95 import, modify later*/
87 : : const com::sun::star::uno::Reference<
88 : : com::sun::star::lang::XMultiServiceFactory > & GetServiceFactory();
89 : : protected:
90 : : const com::sun::star::uno::Reference< com::sun::star::drawing::XShapes > &
91 : : GetShapes();
92 : :
93 : : const com::sun::star::uno::Reference<
94 : : com::sun::star::container::XIndexContainer > & GetFormComps();
95 : :
96 : : ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > mxModel;
97 : :
98 : : // gecachte Interfaces
99 : : com::sun::star::uno::Reference< com::sun::star::drawing::XDrawPage >
100 : : xDrawPage;
101 : : com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >
102 : : xShapes;
103 : : com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory > xServiceFactory;
104 : :
105 : : // das einzige Formular
106 : : com::sun::star::uno::Reference< com::sun::star::container::XIndexContainer >
107 : : xFormComps;
108 : :
109 : : virtual const com::sun::star::uno::Reference<
110 : : com::sun::star::drawing::XDrawPage > & GetDrawPage();
111 : : };
112 : :
113 : : #endif
114 : :
115 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|