1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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
{
36 class XMultiServiceFactory
;
39 class XIndexContainer
;
53 class XComponentContext
;
63 class MSFILTER_DLLPUBLIC SvxMSConvertOCXControls
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();
81 const com::sun::star::uno::Reference
< com::sun::star::drawing::XShapes
> &
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
>
92 com::sun::star::uno::Reference
< com::sun::star::drawing::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
>
100 virtual const com::sun::star::uno::Reference
<
101 com::sun::star::drawing::XDrawPage
> & GetDrawPage();
106 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */