LibreOffice Module embeddedobj (master) 1
specialobject.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
20#pragma once
21
22#include <com/sun/star/awt/Size.hpp>
23
24#include "commonembobj.hxx"
25
27{
28private:
29 css::awt::Size maSize;
30public:
32 const css::uno::Reference< css::uno::XComponentContext >& rxContext,
33 const css::uno::Sequence< css::beans::NamedValue >& aObjectProps );
34
35 // XInterface
36 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& rType ) override ;
37
38 // XVisualObject
39 virtual css::embed::VisualRepresentation SAL_CALL getPreferredVisualRepresentation( ::sal_Int64 nAspect ) override;
40
41 virtual void SAL_CALL setVisualAreaSize( sal_Int64 nAspect, const css::awt::Size& aSize ) override;
42
43 virtual css::awt::Size SAL_CALL getVisualAreaSize( sal_Int64 nAspect ) override;
44
45 virtual sal_Int32 SAL_CALL getMapUnit( sal_Int64 nAspect ) override;
46
47 virtual void SAL_CALL changeState( sal_Int32 nNewState ) override;
48
49 virtual void SAL_CALL doVerb( sal_Int32 nVerbID ) override;
50
51// XCommonEmbedPersist
52
53 virtual void SAL_CALL reload(
54 const css::uno::Sequence< css::beans::PropertyValue >& lArguments,
55 const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) override;
56
57 // XServiceInfo
58 OUString SAL_CALL getImplementationName() override;
59 sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
60 css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
61};
62
63/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Represents an OLE object that has native data and we loaded that data into a document model successfu...
virtual void SAL_CALL reload(const css::uno::Sequence< css::beans::PropertyValue > &lArguments, const css::uno::Sequence< css::beans::PropertyValue > &lObjArgs) override
virtual void SAL_CALL doVerb(sal_Int32 nVerbID) override
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
OUString SAL_CALL getImplementationName() override
virtual sal_Int32 SAL_CALL getMapUnit(sal_Int64 nAspect) override
OSpecialEmbeddedObject(const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Sequence< css::beans::NamedValue > &aObjectProps)
virtual css::embed::VisualRepresentation SAL_CALL getPreferredVisualRepresentation(::sal_Int64 nAspect) override
virtual void SAL_CALL changeState(sal_Int32 nNewState) override
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::awt::Size SAL_CALL getVisualAreaSize(sal_Int64 nAspect) override
virtual void SAL_CALL setVisualAreaSize(sal_Int64 nAspect, const css::awt::Size &aSize) override
unsigned char sal_Bool