diff options
author | Mikhail Voytenko <mav@openoffice.org> | 2011-01-06 14:57:12 +0100 |
---|---|---|
committer | Mikhail Voytenko <mav@openoffice.org> | 2011-01-06 14:57:12 +0100 |
commit | df5ccb739bed5666a8e053c90fe03527ecd9a75c (patch) | |
tree | cb09777611ba90419dbbe159c783969ce74e6520 /svx/inc/svx/EnhancedCustomShapeGeometry.hxx | |
parent | 8c3fc316ba4b8ebd3900273c788e98130b3dbe4e (diff) | |
parent | 04afdea56a69c2418231e0881dc37a8f490b1147 (diff) |
removetooltypes01: rebase to DEV300_m96
Diffstat (limited to 'svx/inc/svx/EnhancedCustomShapeGeometry.hxx')
-rw-r--r-- | svx/inc/svx/EnhancedCustomShapeGeometry.hxx | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/svx/inc/svx/EnhancedCustomShapeGeometry.hxx b/svx/inc/svx/EnhancedCustomShapeGeometry.hxx new file mode 100644 index 0000000000..1961227844 --- /dev/null +++ b/svx/inc/svx/EnhancedCustomShapeGeometry.hxx @@ -0,0 +1,101 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef _ENHANCEDCUSTOMSHAPEGEOMETRY_HXX +#define _ENHANCEDCUSTOMSHAPEGEOMETRY_HXX + +#include <sal/types.h> +#include <svx/msdffdef.hxx> + +struct SvxMSDffVertPair +{ + sal_Int32 nValA; + sal_Int32 nValB; +}; +struct SvxMSDffCalculationData +{ + sal_uInt16 nFlags; + sal_Int16 nVal[ 3 ]; +}; +struct SvxMSDffTextRectangles +{ + SvxMSDffVertPair nPairA; + SvxMSDffVertPair nPairB; +}; + +#define MSDFF_HANDLE_FLAGS_MIRRORED_X 0x0001 +#define MSDFF_HANDLE_FLAGS_MIRRORED_Y 0x0002 +#define MSDFF_HANDLE_FLAGS_SWITCHED 0x0004 +#define MSDFF_HANDLE_FLAGS_POLAR 0x0008 +#define MSDFF_HANDLE_FLAGS_MAP 0x0010 +#define MSDFF_HANDLE_FLAGS_RANGE 0x0020 +#define MSDFF_HANDLE_FLAGS_RANGE_X_MIN_IS_SPECIAL 0x0080 +#define MSDFF_HANDLE_FLAGS_RANGE_X_MAX_IS_SPECIAL 0x0100 +#define MSDFF_HANDLE_FLAGS_RANGE_Y_MIN_IS_SPECIAL 0x0200 +#define MSDFF_HANDLE_FLAGS_RANGE_Y_MAX_IS_SPECIAL 0x0400 +#define MSDFF_HANDLE_FLAGS_CENTER_X_IS_SPECIAL 0x0800 +#define MSDFF_HANDLE_FLAGS_CENTER_Y_IS_SPECIAL 0x1000 +#define MSDFF_HANDLE_FLAGS_RADIUS_RANGE 0x2000 + +struct SvxMSDffHandle +{ + sal_uInt32 nFlags; + sal_Int32 nPositionX, nPositionY, nCenterX, nCenterY, nRangeXMin, nRangeXMax, nRangeYMin, nRangeYMax; +}; +struct mso_CustomShape +{ + SvxMSDffVertPair* pVertices; + sal_uInt32 nVertices; + sal_uInt16* pElements; + sal_uInt32 nElements; + SvxMSDffCalculationData* pCalculation; + sal_uInt32 nCalculation; + sal_Int32* pDefData; + SvxMSDffTextRectangles* pTextRect; + sal_uInt32 nTextRect; + sal_Int32 nCoordWidth; + sal_Int32 nCoordHeight; + sal_Int32 nXRef; + sal_Int32 nYRef; + SvxMSDffVertPair* pGluePoints; + sal_uInt32 nGluePoints; + SvxMSDffHandle* pHandles; + sal_uInt32 nHandles; +}; + +#define MSO_I | (sal_Int32)0x80000000 + +sal_Bool SortFilledObjectsToBackByDefault( MSO_SPT eSpType ); +SVX_DLLPUBLIC sal_Bool IsCustomShapeFilledByDefault( MSO_SPT eSpType ); +SVX_DLLPUBLIC sal_Int16 GetCustomShapeConnectionTypeDefault( MSO_SPT eSpType ); + +// #i28269# +SVX_DLLPUBLIC sal_Bool IsCustomShapeStrokedByDefault( MSO_SPT eSpType ); + +SVX_DLLPUBLIC const mso_CustomShape* GetCustomShapeContent( MSO_SPT eSpType ); + +#endif |