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 INCLUDED_FILTER_MSFILTER_MSOCXIMEX_HXX
20 : #define INCLUDED_FILTER_MSFILTER_MSOCXIMEX_HXX
21 :
22 : #include <filter/msfilter/msfilterdllapi.h>
23 :
24 : namespace com{namespace sun{namespace star{
25 : namespace drawing{
26 : class XDrawPage;
27 : class XShape;
28 : class XShapes;
29 : }
30 : namespace form{
31 : class XFormComponent;
32 : }
33 : namespace lang{
34 : class XMultiServiceFactory;
35 : }
36 : namespace container{
37 : class XIndexContainer;
38 : class XNameContainer;
39 : }
40 : namespace beans{
41 : class XPropertySet;
42 : }
43 : namespace text{
44 : class XText;
45 : }
46 : namespace awt{
47 : struct Size;
48 : class XControlModel;
49 : }
50 : namespace uno{
51 : class XComponentContext;
52 : }
53 : namespace frame{
54 : class XModel;
55 : }
56 :
57 : }}}
58 :
59 : class SfxObjectShell;
60 :
61 : class MSFILTER_DLLPUBLIC SvxMSConvertOCXControls
62 : {
63 : public:
64 : SvxMSConvertOCXControls( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& xModel );
65 : virtual ~SvxMSConvertOCXControls();
66 :
67 0 : virtual bool InsertControl(
68 : const com::sun::star::uno::Reference<
69 : com::sun::star::form::XFormComponent >& /*rFComp*/,
70 : const com::sun::star::awt::Size& /*rSize*/,
71 : com::sun::star::uno::Reference<
72 : com::sun::star::drawing::XShape >* /*pShape*/,
73 0 : bool /*bFloatingCtrl*/ ) {return false;}
74 :
75 : /*begin: Backwards compatibility with office 95 import, modify later*/
76 : const com::sun::star::uno::Reference<
77 : com::sun::star::lang::XMultiServiceFactory > & GetServiceFactory();
78 : protected:
79 : const com::sun::star::uno::Reference< com::sun::star::drawing::XShapes > &
80 : GetShapes();
81 :
82 : const com::sun::star::uno::Reference<
83 : com::sun::star::container::XIndexContainer > & GetFormComps();
84 :
85 : ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > mxModel;
86 :
87 : // gecachte Interfaces
88 : com::sun::star::uno::Reference< com::sun::star::drawing::XDrawPage >
89 : xDrawPage;
90 : com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >
91 : xShapes;
92 : com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory > xServiceFactory;
93 :
94 : // das einzige Formular
95 : com::sun::star::uno::Reference< com::sun::star::container::XIndexContainer >
96 : xFormComps;
97 :
98 : virtual const com::sun::star::uno::Reference<
99 : com::sun::star::drawing::XDrawPage > & GetDrawPage();
100 : };
101 :
102 : #endif
103 :
104 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|