Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/LibreOffice/include/svx/   (Office von Apache Version 25.8.3.2©)  Datei vom 5.10.2025 mit Größe 3 kB image not shown  

Quelle  EnhancedCustomShapeGeometry.hxx   Sprache: C

 
/* -*- 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_SVX_ENHANCEDCUSTOMSHAPEGEOMETRY_HXX
#define INCLUDED_SVX_ENHANCEDCUSTOMSHAPEGEOMETRY_HXX

#include <sal/types.h>
#include <svx/msdffdef.hxx>
#include <svx/svxdllapi.h>
#include <o3tl/typed_flags_set.hxx>

struct SvxMSDffVertPair
{
    sal_Int32   nValA;
    sal_Int32   nValB;
};
struct SvxMSDffCalculationData
{
    sal_uInt16  nFlags;
    sal_Int32   nVal[ 3 ];
};
struct SvxMSDffTextRectangles
{
    SvxMSDffVertPair    nPairA;
    SvxMSDffVertPair    nPairB;
};

enum class SvxMSDffHandleFlags
{
    NONE                         = 0x0000,
    MIRRORED_X                   = 0x0001,
    MIRRORED_Y                   = 0x0002,
    SWITCHED                     = 0x0004,
    POLAR                        = 0x0008,
    MAP                          = 0x0010,
    RANGE                        = 0x0020,
    RANGE_X_MIN_IS_SPECIAL       = 0x0080,
    RANGE_X_MAX_IS_SPECIAL       = 0x0100,
    RANGE_Y_MIN_IS_SPECIAL       = 0x0200,
    RANGE_Y_MAX_IS_SPECIAL       = 0x0400,
    CENTER_X_IS_SPECIAL          = 0x0800,
    CENTER_Y_IS_SPECIAL          = 0x1000,
    RADIUS_RANGE                 = 0x2000,
};
namespace o3tl
{
    template<> struct typed_flags<SvxMSDffHandleFlags> : is_typed_flags<SvxMSDffHandleFlags, 0x3fbf> {};
}

struct SvxMSDffHandle
{
    SvxMSDffHandleFlags nFlags;
    sal_Int32   nPositionX, nPositionY, nCenterX, nCenterY, nRangeXMin, nRangeXMax, nRangeYMin, nRangeYMax;
};
struct mso_CustomShape
{
    std::span<const SvxMSDffVertPair>       pVertices;
    sal_uInt16*                             pElements;
    sal_uInt32                              nElements;
    std::span<const SvxMSDffCalculationData> pCalculation;
    sal_Int32*                              pDefData;
    std::span<const SvxMSDffTextRectangles> pTextRect;
    sal_Int32                               nCoordWidth;
    sal_Int32                               nCoordHeight;
    sal_Int32                               nXRef;
    sal_Int32                               nYRef;
    std::span<const SvxMSDffVertPair>       pGluePoints;
    std::span<const SvxMSDffHandle>         pHandles;
};

#define MSO_I | sal_Int32(0x80000000)

bool                        SortFilledObjectsToBackByDefault( MSO_SPT eSpType );
SVXCORE_DLLPUBLIC bool          IsCustomShapeFilledByDefault( MSO_SPT eSpType );
SVXCORE_DLLPUBLIC sal_Int16     GetCustomShapeConnectionTypeDefault( MSO_SPT eSpType );

// #i28269#
SVXCORE_DLLPUBLIC bool          IsCustomShapeStrokedByDefault( MSO_SPT eSpType );

SVXCORE_DLLPUBLIC const mso_CustomShape*    GetCustomShapeContent( MSO_SPT eSpType );

#endif

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Messung V0.5
C=99 H=97 G=97

¤ Dauer der Verarbeitung: 0.4 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.