fix crash on re-export of fdo50057-2.odt to odt
[LibreOffice.git] / include / filter / msfilter / msocximex.hxx
blobc3877d721d85e8501544749de1dd3d19a287f091
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_FILTER_MSFILTER_MSOCXIMEX_HXX
20 #define INCLUDED_FILTER_MSFILTER_MSOCXIMEX_HXX
22 #include <sot/storage.hxx>
24 #include <filter/msfilter/msfilterdllapi.h>
26 namespace com{namespace sun{namespace star{
27 namespace drawing{
28 class XDrawPage;
29 class XShape;
30 class XShapes;
32 namespace form{
33 class XFormComponent;
35 namespace lang{
36 class XMultiServiceFactory;
38 namespace container{
39 class XIndexContainer;
40 class XNameContainer;
42 namespace beans{
43 class XPropertySet;
45 namespace text{
46 class XText;
48 namespace awt{
49 struct Size;
50 class XControlModel;
52 namespace uno{
53 class XComponentContext;
55 namespace frame{
56 class XModel;
59 }}}
61 class SfxObjectShell;
63 class MSFILTER_DLLPUBLIC SvxMSConvertOCXControls
65 public:
66 SvxMSConvertOCXControls( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& xModel );
67 virtual ~SvxMSConvertOCXControls();
69 virtual 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 bool /*bFloatingCtrl*/ ) {return false;}
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();
84 const com::sun::star::uno::Reference<
85 com::sun::star::container::XIndexContainer > & GetFormComps();
87 ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > mxModel;
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;
96 // das einzige Formular
97 com::sun::star::uno::Reference< com::sun::star::container::XIndexContainer >
98 xFormComps;
100 virtual const com::sun::star::uno::Reference<
101 com::sun::star::drawing::XDrawPage > & GetDrawPage();
104 #endif
106 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */