LibreOffice Module filter (master) 1
msocximex.hxx
Go to the documentation of this file.
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 <com/sun/star/uno/Reference.hxx>
24
25namespace com::sun::star {
26 namespace drawing{
27 class XDrawPage;
28 class XShape;
29 class XShapes;
30 }
31 namespace form{
32 class XFormComponent;
33 }
34 namespace lang{
35 class XMultiServiceFactory;
36 }
37 namespace container{
38 class XIndexContainer;
39 }
40 namespace awt{
41 struct Size;
42 }
43 namespace frame{
44 class XModel;
45 }
46}
47
49{
50public:
51 SvxMSConvertOCXControls( css::uno::Reference< css::frame::XModel > xModel );
53
54 virtual bool InsertControl(
55 const css::uno::Reference<
56 css::form::XFormComponent >& /*rFComp*/,
57 const css::awt::Size& /*rSize*/,
58 css::uno::Reference<
59 css::drawing::XShape >* /*pShape*/,
60 bool /*bFloatingCtrl*/ ) {return false;}
61
62 /*begin: Backwards compatibility with office 95 import, modify later*/
63 const css::uno::Reference< css::lang::XMultiServiceFactory > & GetServiceFactory();
64protected:
65 const css::uno::Reference< css::drawing::XShapes > & GetShapes();
66
67 const css::uno::Reference< css::container::XIndexContainer > & GetFormComps();
68
69 css::uno::Reference< css::frame::XModel > mxModel;
70
71 // cached interfaces
72 css::uno::Reference< css::drawing::XDrawPage > xDrawPage;
73 css::uno::Reference< css::drawing::XShapes > xShapes;
74 css::uno::Reference< css::lang::XMultiServiceFactory > xServiceFactory;
75
76 // the only form
77 css::uno::Reference< css::container::XIndexContainer > xFormComps;
78
79 virtual void GetDrawPage();
80};
81
82#endif
83
84/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
css::uno::Reference< css::frame::XModel > mxModel
Definition: msocximex.hxx:69
css::uno::Reference< css::lang::XMultiServiceFactory > xServiceFactory
Definition: msocximex.hxx:74
virtual bool InsertControl(const css::uno::Reference< css::form::XFormComponent > &, const css::awt::Size &, css::uno::Reference< css::drawing::XShape > *, bool)
Definition: msocximex.hxx:54
css::uno::Reference< css::drawing::XShapes > xShapes
Definition: msocximex.hxx:73
css::uno::Reference< css::container::XIndexContainer > xFormComps
Definition: msocximex.hxx:77
css::uno::Reference< css::drawing::XDrawPage > xDrawPage
Definition: msocximex.hxx:72
#define MSFILTER_DLLPUBLIC
Shape IDs per cluster in DGG atom.
Reference< XModel > xModel