/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #ifndef INCLUDED_VCL_MAPMOD_HXX #define INCLUDED_VCL_MAPMOD_HXX #include #include class Point; class Fraction; class SvStream; class OutputDevice; class VCL_DLLPUBLIC MapMode { friend class OutputDevice; public: struct ImplMapMode; private: ImplMapMode* mpImplMapMode; SAL_DLLPRIVATE void ImplMakeUnique(); SAL_DLLPRIVATE bool IsSimple() const; public: MapMode(); MapMode( const MapMode& rMapMode ); MapMode( MapUnit eUnit ); MapMode( MapUnit eUnit, const Point& rLogicOrg, const Fraction& rScaleX, const Fraction& rScaleY ); ~MapMode(); void SetMapUnit( MapUnit eUnit ); MapUnit GetMapUnit() const; void SetOrigin( const Point& rOrigin ); const Point& GetOrigin() const; void SetScaleX( const Fraction& rScaleX ); const Fraction& GetScaleX() const; void SetScaleY( const Fraction& rScaleY ); const Fraction& GetScaleY() const; /// Gets the multiplier, which is relative to 1/100 mm units double GetUnitMultiplier() const; MapMode& operator=( const MapMode& rMapMode ); bool operator==( const MapMode& rMapMode ) const; bool operator!=( const MapMode& rMapMode ) const { return !(MapMode::operator==( rMapMode )); } bool IsDefault() const; friend VCL_DLLPUBLIC SvStream& ReadMapMode( SvStream& rIStm, MapMode& rMapMode ); friend VCL_DLLPUBLIC SvStream& WriteMapMode( SvStream& rOStm, const MapMode& rMapMode ); }; #endif // INCLUDED_VCL_MAPMOD_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ labora/co-24.04'>distro/collabora/co-24.04 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2019-05-22curl: upgrade to release 7.65.0Michael Stahl
2019-05-05Fix remaining uses of gb_SYMBOLStephan Bergmann
2019-03-01Some more WIN32 -> _WIN32Stephan Bergmann
2018-11-29Rename Mac OS X to official name macOS in comments and documentationBartosz Kosiorek
2018-11-01gbuild: rename value OS=IOS to OS=iOSMichael Stahl
2018-05-17curl: upgrade to release 7.60.0Thorsten Behrens
2018-05-04Removed executable permission on data filesAndrea Gelmini
2018-01-24curl: upgrade to release 7.58.0Michael Stahl
2017-11-01external: consistently use gb_ExternalProject_use_nmakeMichael Stahl
2017-10-27external/curl: Work around clang-cl not knowing /FDStephan Bergmann
2017-10-24curl: upgrade to release 7.56.1Michael Stahl
2017-09-20Pass --with-macosx-version-min-required into external/curlStephan Bergmann
2017-09-19connectx() is available only on Mac OS X 10.11 and newerTor Lillqvist
2017-09-07Pass --without-system-zlib into external/curlStephan Bergmann
2017-09-07Clean up passing CPPFLAGS/LDFLAGS into external/curlStephan Bergmann
2017-09-06Pass "verbose" flag into external/curlStephan Bergmann
2017-08-09curl: disable protocols nobody needs in MSVC buildMichael Stahl
2017-08-09curl: disable more unnecessary stuffMichael Stahl
2017-05-30curl: remove curl-xp.patch.1Michael Stahl
2017-02-10Remove MinGW supportStephan Bergmann
2017-01-26curl: get winProxy support backThorsten Behrens
2017-01-23curl: upgrade to version 7.52.1Thorsten Behrens
2016-12-20use new ENABLE_NSS for code which needs nssCaolán McNamara
2016-12-19with missing nss build curl and vcl appropiatelyCaolán McNamara
2016-11-02curl: upgrade to version 7.51.0Michael Stahl
2016-08-01curl: drop curl-android.patchMichael Stahl
2016-07-30fix curl android patch to applyCaolán McNamara
2016-07-29bump curl to 7.50.0Caolán McNamara
2016-07-09use EHs also for libcurlMarkus Mohrhard
2016-07-08tdf#100295: try to cover second place in curl using GetTickCount64Markus Mohrhard
2016-07-07tdf#100295 force curl to build for XPMarkus Mohrhard
2016-05-03Handle wchar_t as native C++11 type on windowsDavid Ostrovsky
2016-03-13tdf#98416 fix curl's configure check for nss (missing -lnssutil3)Christian Lohmaier
2016-03-11tdf#98416: Explicitly disable curl hardcoded CA certificate storeGiuseppe Castagno
2016-02-16use consistent #define checks for the Windows platformNoel Grandin
2015-07-03curl: upgrade to release 7.43.0Michael Stahl
2015-06-02curl: simplify SSL conditionalMichael Stahl
2015-06-02curl: disable loads more random stuff we don't needMichael Stahl
2015-06-02curl: sigh... *actually* disable rtmp supportMichael Stahl
2015-06-02curl: disable rtmp supportMichael Stahl
2014-11-28Fold URE: Linux ure/lib/* -> program/Stephan Bergmann
2014-10-16MAC_OS_X_VERSION_MIN_REQUIRED is always >= 1080 nowTor Lillqvist
2014-08-29Simplify some $ENABLE_DEBUG expressionsStephan Bergmann
2014-06-09curl: work around mysterious xcopy failureMichael Stahl
2014-05-11upgrade to curl-7.36.0Thomas Arnhold