Version 6.4.0.3, tag libreoffice-6.4.0.3
[LibreOffice.git] / embeddedobj / source / inc / specialobject.hxx
blob32ad61a7a58280e17a77d0d4936fea76b901567f
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 .
20 #ifndef INCLUDED_EMBEDDEDOBJ_SOURCE_INC_SPECIALOBJECT_HXX
21 #define INCLUDED_EMBEDDEDOBJ_SOURCE_INC_SPECIALOBJECT_HXX
23 #include <com/sun/star/awt/Size.hpp>
25 #include "commonembobj.hxx"
27 class OSpecialEmbeddedObject : public OCommonEmbeddedObject
29 private:
30 css::awt::Size maSize;
31 public:
32 OSpecialEmbeddedObject(
33 const css::uno::Reference< css::uno::XComponentContext >& rxContext,
34 const css::uno::Sequence< css::beans::NamedValue >& aObjectProps );
36 // XInterface
37 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& rType ) override ;
39 // XVisualObject
40 virtual css::embed::VisualRepresentation SAL_CALL getPreferredVisualRepresentation( ::sal_Int64 nAspect ) override;
42 virtual void SAL_CALL setVisualAreaSize( sal_Int64 nAspect, const css::awt::Size& aSize ) override;
44 virtual css::awt::Size SAL_CALL getVisualAreaSize( sal_Int64 nAspect ) override;
46 virtual sal_Int32 SAL_CALL getMapUnit( sal_Int64 nAspect ) override;
48 virtual void SAL_CALL changeState( sal_Int32 nNewState ) override;
50 virtual void SAL_CALL doVerb( sal_Int32 nVerbID ) override;
53 #endif
55 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */