/* -*- 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 . */ #pragma once #include #include #include class SVXCORE_DLLPUBLIC SdrPolyEditView : public SdrEditView, public IPolyPolygonEditorController { friend class SdrEditView; bool bSetMarkedPointsSmoothPossible : 1; bool bSetMarkedSegmentsKindPossible : 1; SdrPathSmoothKind eMarkedPointsSmooth; SdrPathSegmentKind eMarkedSegmentsKind; private: SVX_DLLPRIVATE void ImpResetPolyPossibilityFlags(); SVX_DLLPRIVATE void ImpCheckPolyPossibilities(); typedef void (*PPolyTrFunc)(Point&, Point*, Point*, const void*, const void*, const void*, const void*); SVX_DLLPRIVATE void ImpTransformMarkedPoints(PPolyTrFunc pTrFunc, const void* p1, const void* p2=nullptr, const void* p3=nullptr, const void* p4=nullptr); protected: // #i71538# make constructors of SdrView sub-components protected to avoid incomplete incarnations which may get casted to SdrView SdrPolyEditView( SdrModel& rSdrModel, OutputDevice* pOut); virtual ~SdrPolyEditView() override; public: bool IsSetMarkedPointsSmoothPossible() const override; SdrPathSmoothKind GetMarkedPointsSmooth() const override; void SetMarkedPointsSmooth(SdrPathSmoothKind eKind) override; // A PolySegment can either be a segment or a Bézier curve bool IsSetMarkedSegmentsKindPossible() const override; SdrPathSegmentKind GetMarkedSegmentsKind() const override; void SetMarkedSegmentsKind(SdrPathSegmentKind eKind) override; // Probably Obj has been deleted afterwards void DeleteMarkedPoints() override; bool IsDeleteMarkedPointsPossible() const override; void MoveMarkedPoints(const Size& rSiz); void ResizeMarkedPoints(const Point& rRef, const Fraction& xFact, const Fraction& yFact); void RotateMarkedPoints(const Point& rRef, Degree100 nAngle); // This probably creates an arbitrary amount of new objects void RipUpAtMarkedPoints() override; bool IsRipUpAtMarkedPointsPossible() const override; // All marked Polylines are turned into polygons // All open Bézier curves are turned into closed ones bool IsOpenCloseMarkedObjectsPossible() const override; SdrObjClosedKind GetMarkedObjectsClosedState() const override; void CheckPolyPossibilitiesHelper( SdrMark* pM, bool& b1stSmooth, bool& b1stSegm, bool& bCurve, bool& bSmoothFuz, bool& bSegmFuz, basegfx::B2VectorContinuity& eSmooth ); }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ n value='distro/collabora/cp-4.0'>distro/collabora/cp-4.0 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2021-05-05WASM: add initial support for Emscripten cross buildJan-Marek Glogowski
2021-03-23Rename LO Windows arm64 ID to aarch64Jan-Marek Glogowski
2021-01-06openssl: upgrade to release 1.1.1iMichael Stahl
2020-08-07Update config.{guess,sub} with latest versions and handle fallout of thatTor Lillqvist
2020-07-17python3: update to 3.8.4Jan-Marek Glogowski
2020-07-17openssl: update to 1.1.1gJan-Marek Glogowski
2020-07-05Remove leftover thing for macOS on x86Tor Lillqvist
2020-07-05Initial attempt at macOS on arm64 support for OpenSSLTor Lillqvist
2020-07-05Bin leftover support for OS X on PowerPCTor Lillqvist
2020-07-05We don't build OpenSSL for iOS but if we did, it would be arm64Tor Lillqvist
2020-02-16GBUILD_TRACE, support for finding out where the build time is spentLuboš Luňák
2020-01-08python3: upgrade to release 3.7.6Michael Stahl
2018-11-01gbuild: rename value OS=IOS to OS=iOSMichael Stahl
2018-09-03define PURIFY for openssl for dbgutil to silence valgrind spewCaolán McNamara
2018-01-08openssl: fix MSVC 64-bit buildMichael Stahl
2018-01-08openssl: MSVC build: link and run MSASM with /SAFESEHMichael Stahl
2017-11-01external: consistently use gb_ExternalProject_use_nmakeMichael Stahl
2017-05-30openssl: remove Windows XP patchMichael Stahl
2017-02-10Remove MinGW supportStephan Bergmann
2017-02-01upload openssl 1.0.2kDavid Tardon
2016-10-23cond. build is already handled in Module_external.mkDavid Tardon
2016-09-20[API CHANGE] Remove HAVE_GCC_VISIBILITY_FEATURE, always trueStephan Bergmann
2016-03-09Revert "Add --with-prebuilt-openssl"Tor Lillqvist
2016-03-07openssl: fix WNT buildMichael Stahl
2016-03-07upgrade openssl to 1.0.2gCaolán McNamara
2016-01-22Revert "More LTO fixes for android"Tor Lillqvist
2016-01-22More LTO fixes for androidPeter Foley
2016-01-07configure: hard-code /usr/bin/{sort,find} for CygwinMichael Stahl
2015-12-10Add --with-prebuilt-opensslTor Lillqvist
2015-04-14openssl: drop SunStudio specific patch hunkMichael Stahl
2015-04-09upgrade to openssl-1.0.2aCaolán McNamara
2015-01-06external/openssl: Work around -fsanitize=nullStephan Bergmann
2014-08-14fdo#82430: configure: MSVC build: avoid using SSE2 instructionsMichael Stahl
2014-08-13win64: make openssl workThomas Arnhold
2014-07-11avoid -arch for bundled OpenSSL, Python3, and nss/nspr on OSX@PowerPCDouglas Mencken