LibreOffice Module drawinglayer (master) 1
viewinformation2d.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
23
24#include <sal/config.h>
25#include <o3tl/cow_wrapper.hxx>
26
27// predefines
28
30{
31class ImpViewInformation2D;
32}
33
34namespace basegfx
35{
36class B2DHomMatrix;
37class B2DRange;
38}
39
41{
42struct PropertyValue;
43}
44
46{
47class XDrawPage;
48}
49
50namespace com::sun::star::uno
51{
52template <class interface_type> class Reference;
53template <typename> class Sequence;
54}
55
57{
64{
65public:
67
68private:
71
72public:
108
111
113
116
120
122 bool operator==(const ViewInformation2D& rCandidate) const;
123 bool operator!=(const ViewInformation2D& rCandidate) const { return !operator==(rCandidate); }
124
126 const basegfx::B2DHomMatrix& getObjectTransformation() const;
127 void setObjectTransformation(const basegfx::B2DHomMatrix& rNew);
128
129 const basegfx::B2DHomMatrix& getViewTransformation() const;
130 void setViewTransformation(const basegfx::B2DHomMatrix& rNew);
131
133 const basegfx::B2DRange& getViewport() const;
134 void setViewport(const basegfx::B2DRange& rNew);
135
136 double getViewTime() const;
137 void setViewTime(double fNew);
138
139 const css::uno::Reference<css::drawing::XDrawPage>& getVisualizedPage() const;
140 void setVisualizedPage(const css::uno::Reference<css::drawing::XDrawPage>& rNew);
141
143 const basegfx::B2DHomMatrix& getObjectToViewTransformation() const;
144 const basegfx::B2DHomMatrix& getInverseObjectToViewTransformation() const;
145
148 const basegfx::B2DRange& getDiscreteViewport() const;
149
151 bool getReducedDisplayQuality() const;
152 void setReducedDisplayQuality(bool bNew);
153
155 bool getUseAntiAliasing() const;
156 void setUseAntiAliasing(bool bNew);
157
159 bool getPixelSnapHairline() const;
160 void setPixelSnapHairline(bool bNew);
161
162 static void setGlobalAntiAliasing(bool bAntiAliasing, bool bTemporary);
163 static bool getGlobalAntiAliasing();
164 static void forwardPixelSnapHairline(bool bPixelSnapHairline);
165};
166
167DRAWINGLAYERCORE_DLLPUBLIC ViewInformation2D
168createViewInformation2D(const css::uno::Sequence<css::beans::PropertyValue>& rViewParameters);
169
170} // end of namespace drawinglayer::geometry
171
172/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ImplType mpViewInformation2D
pointer to private implementation class
ViewInformation2D(const ViewInformation2D &)
copy constructor
o3tl::cow_wrapper< ImpViewInformation2D, o3tl::ThreadSafeRefCountingPolicy > ImplType
ViewInformation2D & operator=(const ViewInformation2D &)
assignment operator
bool operator!=(const ViewInformation2D &rCandidate) const
ViewInformation2D & operator=(ViewInformation2D &&)
#define DRAWINGLAYERCORE_DLLPUBLIC
ViewInformation2D createViewInformation2D(const css::uno::Sequence< css::beans::PropertyValue > &rViewParameters)
Reference
bool operator==(const XclFontData &rLeft, const XclFontData &rRight)