LibreOffice Module svx (master)  1
fmdpage.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_SVX_FMDPAGE_HXX
20 #define INCLUDED_SVX_FMDPAGE_HXX
21 
22 #include <com/sun/star/form/XFormsSupplier2.hpp>
23 #include <svx/unopage.hxx>
24 #include <comphelper/uno3.hxx>
25 #include <svx/svxdllapi.h>
26 
27 
28 // SvxFmDrawPage
29 
31  ,public css::form::XFormsSupplier2
32 {
33 protected:
34 
35  // Creating a SdrObject based on a Description. Can be used by derived classes to
36  // support own css::drawing::Shapes (for example Controls)
37  virtual SdrObject *CreateSdrObject_( const css::uno::Reference< css::drawing::XShape > & xShape ) override;
38 
39  // The following method is called when a SvxShape object should be created.
40  // Derived classes can create a derivation or an object aggregating SvxShape.
41  virtual css::uno::Reference< css::drawing::XShape > CreateShape( SdrObject *pObj ) const override;
42 
43 public:
44  SvxFmDrawPage( SdrPage* pPage );
45  virtual ~SvxFmDrawPage() throw () override;
46 
47  // UNO binding
49 
50  virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type& aType ) override;
51  virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
52 
53  virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
54 
55  // XFormsSupplier
56  virtual css::uno::Reference< css::container::XNameContainer > SAL_CALL getForms() override;
57 
58  // XFormsSupplier2
59  virtual sal_Bool SAL_CALL hasForms() override;
60 };
61 
62 #endif // INCLUDED_SVX_FMDPAGE_HXX
63 
64 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual SdrObject * CreateSdrObject_(const css::uno::Reference< css::drawing::XShape > &xShape)
Definition: unopage.cxx:499
unsigned char sal_Bool
virtual css::uno::Reference< css::drawing::XShape > CreateShape(SdrObject *pObj) const
Definition: unopage.cxx:826
Abstract DrawObject.
Definition: svdobj.hxx:312
#define DECLARE_UNO3_AGG_DEFAULTS(classname, baseclass)
#define SVXCORE_DLLPUBLIC
Definition: svxdllapi.h:35
A SdrPage contains exactly one SdrObjList and a description of the physical page dimensions (size / m...
Definition: svdpage.hxx:365