/* -*- 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_BASEGFX_CURVE_B2DBEZIERTOOLS_HXX #define INCLUDED_BASEGFX_CURVE_B2DBEZIERTOOLS_HXX #include #include #include // predefines namespace basegfx { class B2DCubicBezier; } namespace basegfx { class BASEGFX_DLLPUBLIC B2DCubicBezierHelper { private: ::std::vector< double > maLengthArray; sal_uInt32 mnEdgeCount; public: explicit B2DCubicBezierHelper(const B2DCubicBezier& rBase, sal_uInt32 nDivisions = 9); double getLength() const { if(!maLengthArray.empty()) return maLengthArray[maLengthArray.size() - 1]; else return 0.0; } double distanceToRelative(double fDistance) const; }; } // end of namespace basegfx #endif // INCLUDED_BASEGFX_CURVE_B2DBEZIERTOOLS_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 6-1 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2018-08-01add operator+=(OUStringBuffer) method to OUStringNoel Grandin
2017-11-11Avoid using O[U]StringConcat lvalues containing dangling refs to temporariesStephan Bergmann
2017-10-23loplugin:includeform: UNO API include filesStephan Bergmann
2017-05-26create SAL_RETURNS_NONNULL annotationNoel Grandin
2017-04-04Finally switch MSVC to sal_Unicode = char16_t, tooStephan Bergmann
2017-03-30remove type decorations on char literalsJochen Nitschke
2017-03-24Better check for 'defined LIBO_INTERNAL_ONLY'Stephan Bergmann
2017-03-03Remove redundant 'inline' keywordStephan Bergmann
2017-02-10Remove MinGW supportStephan Bergmann
2017-01-09New loplugin:externvar: salStephan Bergmann
2017-01-05Replace side-effect--only uses of makeStringAndClear() with setLength(0)Stephan Bergmann
2016-12-17Make OUStringLiteral more usefulStephan Bergmann
2016-10-12Don't allow O[U]StringBuffer in string concatenationStephan Bergmann
2016-09-20Related cid#1371289: Work around missing OUStringBuffer move semanticsStephan Bergmann
2016-08-29Support ConstCharArrayDetector also for UTF-16 arraysStephan Bergmann
2015-11-28Adapt to true wchar_t in clang-clStephan Bergmann
2015-11-18Use C++11 char16_t for sal_UnicodeStephan Bergmann
2015-11-10Missing includes (for NULL)Stephan Bergmann
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
2015-06-25Revert "Revert "Generalize OUStringLiteral1""Stephan Bergmann
2015-06-24Revert "Generalize OUStringLiteral1"Stephan Bergmann
2015-06-24Generalize OUStringLiteral1Stephan Bergmann
2015-06-23Avoid conversion warning in O[U]String[Buffer] constructorsMatteo Casalin
2015-02-18TyposJulien Nabet
2015-02-06sal: add back the append / insert assertions that were...Michael Stahl
2015-02-05sal: add some argument checking assertions for strings and buffersMichael Stahl
2015-01-23sal: remove GCC 4.6 check, it does not claim C++11 supportMichael Stahl
2015-01-23sal: try to fix prematurely pushed 853c2fc71a96755a9dee629fd5d0e1cff9a48034Michael Stahl
2015-01-23sal: try to avoid abuse of OUStringBuffer(int) ctorMichael Stahl
2014-12-19This is not java.lang.StringBufferStephan Bergmann
2014-12-19No need for RTL_FAST_STRING in addition to LIBO_INTERNAL_ONLYStephan Bergmann
2014-12-19No need for RTL_USING in addition to LIBO_INTERNAL_ONLYStephan Bergmann
2014-11-20Clean up Mac _imp_getProcessLocaleStephan Bergmann
2014-11-17sal: clean up public headers with include-what-you-useMichael Stahl
2014-10-17Increase assert coverage of OUStringBuffer argumentsMatthew J. Francis
2014-07-17fix spelling structur -> structureNoel Grandin
2014-07-08'internal' is a keyword in current C++/CLITor Lillqvist
2014-06-05sal/rtl: remove SAL_THROW macroNoel Grandin
2014-01-23Let C++ inline functions return bool instead of sal_BoolStephan Bergmann
2013-12-20typo fixesAndras Timar
2013-12-10Fix addition of OStringBuffer::append(bool) overloadStephan Bergmann
2013-11-09fdo#65108 inter-module includes <> include/rtlNorbert Thiebaud
2013-11-04Convert code that calls OUString::getStr()[] to use the [] operatorNoel Grandin
2013-10-23fixincludeguards.sh: include - the restThomas Arnhold
2013-06-18fdo#43460 include,registry,svtools,svx,unodevtools: use isEmpty()Jelle van der Waa
2013-04-24move URE headers to include/David Tardon