Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 : #ifndef _MSOCXIMEX_HXX
20 : #define _MSOCXIMEX_HXX
21 :
22 : #include <sot/storage.hxx>
23 :
24 : #include "filter/msfilter/msfilterdllapi.h"
25 :
26 : namespace com{namespace sun{namespace star{
27 : namespace drawing{
28 : class XDrawPage;
29 : class XShape;
30 : class XShapes;
31 : }
32 : namespace form{
33 : class XFormComponent;
34 : }
35 : namespace lang{
36 : class XMultiServiceFactory;
37 : }
38 : namespace container{
39 : class XIndexContainer;
40 : class XNameContainer;
41 : }
42 : namespace beans{
43 : class XPropertySet;
44 : }
45 : namespace text{
46 : class XText;
47 : }
48 : namespace awt{
49 : struct Size;
50 : class XControlModel;
51 : }
52 : namespace uno{
53 : class XComponentContext;
54 : }
55 : namespace frame{
56 : class XModel;
57 : }
58 :
59 : }}}
60 :
61 : class SfxObjectShell;
62 :
63 : class MSFILTER_DLLPUBLIC SvxMSConvertOCXControls
64 : {
65 : public:
66 : SvxMSConvertOCXControls( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& xModel );
67 : virtual ~SvxMSConvertOCXControls();
68 :
69 0 : virtual sal_Bool InsertControl(
70 : const com::sun::star::uno::Reference<
71 : com::sun::star::form::XFormComponent >& /*rFComp*/,
72 : const com::sun::star::awt::Size& /*rSize*/,
73 : com::sun::star::uno::Reference<
74 : com::sun::star::drawing::XShape >* /*pShape*/,
75 0 : sal_Bool /*bFloatingCtrl*/ ) {return sal_False;}
76 :
77 : /*begin: Backwards compatability with office 95 import, modify later*/
78 : const com::sun::star::uno::Reference<
79 : com::sun::star::lang::XMultiServiceFactory > & GetServiceFactory();
80 : protected:
81 : const com::sun::star::uno::Reference< com::sun::star::drawing::XShapes > &
82 : GetShapes();
83 :
84 : const com::sun::star::uno::Reference<
85 : com::sun::star::container::XIndexContainer > & GetFormComps();
86 :
87 : ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > mxModel;
88 :
89 : // gecachte Interfaces
90 : com::sun::star::uno::Reference< com::sun::star::drawing::XDrawPage >
91 : xDrawPage;
92 : com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >
93 : xShapes;
94 : com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory > xServiceFactory;
95 :
96 : // das einzige Formular
97 : com::sun::star::uno::Reference< com::sun::star::container::XIndexContainer >
98 : xFormComps;
99 :
100 : virtual const com::sun::star::uno::Reference<
101 : com::sun::star::drawing::XDrawPage > & GetDrawPage();
102 : };
103 :
104 : #endif
105 :
106 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|