LibreOffice Module sd (master) 1
SdUnoDrawView.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 "DrawSubController.hxx"
23
25namespace com::sun::star::drawing { class XLayer; }
26
27namespace sd {
28
29class DrawViewShell;
30class View;
31
35{
36public:
38 DrawViewShell& rViewShell,
39 View& rView) noexcept;
40 virtual ~SdUnoDrawView() noexcept override;
41
42 // XSelectionSupplier
43
44 virtual sal_Bool SAL_CALL select (
45 const css::uno::Any& aSelection) override;
46
47 virtual css::uno::Any SAL_CALL getSelection() override;
48
49 virtual void SAL_CALL addSelectionChangeListener (
50 const css::uno::Reference<css::view::XSelectionChangeListener>& rxListener) override;
51
52 virtual void SAL_CALL removeSelectionChangeListener (
53 const css::uno::Reference<css::view::XSelectionChangeListener>& rxListener) override;
54
55 // XDrawView
56
57 virtual void SAL_CALL setCurrentPage (
58 const css::uno::Reference<css::drawing::XDrawPage >& xPage) override;
59
60 virtual css::uno::Reference<css::drawing::XDrawPage> SAL_CALL getCurrentPage() override;
61
62 // XFastPropertySet
63
64 virtual void SAL_CALL setFastPropertyValue (
65 sal_Int32 nHandle,
66 const css::uno::Any& rValue) override;
67
68 virtual css::uno::Any SAL_CALL getFastPropertyValue (
69 sal_Int32 nHandle) override;
70
71 // XServiceInfo
72 virtual OUString SAL_CALL getImplementationName( ) override;
73 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
74 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
75
81 css::uno::Reference< css::drawing::XLayer> getActiveLayer() const;
82
83private:
84 bool getMasterPageMode() const noexcept;
85 void setMasterPageMode(bool MasterPageMode_) noexcept;
86 bool getLayerMode() const noexcept;
87 void setLayerMode(bool LayerMode_) noexcept;
93 void setActiveLayer (const css::uno::Reference< css::drawing::XLayer>& rxLayer);
94
95 void SetZoom( sal_Int16 nZoom );
96 sal_Int16 GetZoom() const;
97
98 void SetViewOffset(const css::awt::Point& rWinPos );
99 css::awt::Point GetViewOffset() const;
100
101 void SetZoomType( sal_Int16 nType );
102
103 css::uno::Any getDrawViewMode() const;
104
105 SdXImpressDocument* GetModel() const noexcept;
106
109};
110
111} // end of namespace sd
112
113/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Base class of the stacked shells that provide graphical views to Draw and Impress documents and editi...
This class implements the DrawViewShell specific part of the controller.
DrawViewShell & mrDrawViewShell
css::uno::Any getDrawViewMode() const
virtual sal_Bool SAL_CALL select(const css::uno::Any &aSelection) override
virtual void SAL_CALL removeSelectionChangeListener(const css::uno::Reference< css::view::XSelectionChangeListener > &rxListener) override
SdXImpressDocument * GetModel() const noexcept
virtual ~SdUnoDrawView() noexcept override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
void SetZoom(sal_Int16 nZoom)
sal_Int16 GetZoom() const
virtual css::uno::Any SAL_CALL getFastPropertyValue(sal_Int32 nHandle) override
bool getLayerMode() const noexcept
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Reference< css::drawing::XDrawPage > SAL_CALL getCurrentPage() override
void setLayerMode(bool LayerMode_) noexcept
virtual void SAL_CALL setFastPropertyValue(sal_Int32 nHandle, const css::uno::Any &rValue) override
void SetViewOffset(const css::awt::Point &rWinPos)
void setMasterPageMode(bool MasterPageMode_) noexcept
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Any SAL_CALL getSelection() override
void SetZoomType(sal_Int16 nType)
SdUnoDrawView(DrawViewShell &rViewShell, View &rView) noexcept
css::awt::Point GetViewOffset() const
virtual void SAL_CALL addSelectionChangeListener(const css::uno::Reference< css::view::XSelectionChangeListener > &rxListener) override
virtual void SAL_CALL setCurrentPage(const css::uno::Reference< css::drawing::XDrawPage > &xPage) override
css::uno::Reference< css::drawing::XLayer > getActiveLayer() const
Return a reference to the active layer object.
void setActiveLayer(const css::uno::Reference< css::drawing::XLayer > &rxLayer)
Make the specified object the active layer.
bool getMasterPageMode() const noexcept
QPRO_FUNC_TYPE nType
sal_Int32 nHandle
unsigned char sal_Bool