/////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance"). // All rights reserved. // // This software and its documentation and related materials are owned by // the Alliance. The software may only be incorporated into application // programs owned by members of the Alliance, subject to a signed // Membership Agreement and Supplemental Software License Agreement with the // Alliance. The structure and organization of this software are the valuable // trade secrets of the Alliance and its suppliers. The software is also // protected by copyright law and international treaty provisions. Application // programs incorporating this software must include the following statement // with their copyright notices: // // This application incorporates Open Design Alliance software pursuant to a license // agreement with Open Design Alliance. // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance. // All rights reserved. // // By use of this software, its documentation or related materials, you // acknowledge and accept the above terms. /////////////////////////////////////////////////////////////////////////////// #ifndef __DGTEXTPROPS__H__ #define __DGTEXTPROPS__H__ #include "DgProperties.h" #include "DgText.h" // Class OdDgText2d properties. Category "Text2d Properties": // Category "Text2d Properties" /* 1 - Text */ ODRX_DECLARE_RX_PROPERTY(OdDgText2d, Text, OdString, "Text2d Properties", 1, "Text", ""); /* 2 - FirstLineIndentationOverride */ ODRX_DECLARE_RX_PROPERTY(OdDgText2d, FirstLineIndentationOverride, double, "Text2d Properties", 2, "First line indentation override", ""); /* 3 - ParagraphIndentationOverride */ ODRX_DECLARE_RX_PROPERTY(OdDgText2d, ParagraphIndentationOverride, double, "Text2d Properties", 3, "Paragraph indentation override", ""); /* 4 - TextIndentationOverrideFlag */ ODRX_DECLARE_RX_PROPERTY(OdDgText2d, TextIndentationOverrideFlag, bool, "Text2d Properties", 4, "Text indentation override flag", ""); /* 5 - EndOfLineFlag */ ODRX_DECLARE_RX_PROPERTY(OdDgText2d, EndOfLineFlag, bool, "Text2d Properties", 5, "End of line flag", ""); /* 6 - Font */ ODRX_DECLARE_RX_PROPERTY(OdDgText2d, Font, OdDgElementId, "Text2d Properties", 6, "Font", "FontTableId/Items"); /* 7 - Justification */ ODRX_DECLARE_RX_PROPERTY(OdDgText2d, Justification, OdDg::TextJustification, "Text2d Properties", 7, "Justification", ""); /* 8 - Length */ ODRX_DECLARE_RX_PROPERTY(OdDgText2d, Length, double, "Text2d Properties", 8, "Length", ""); /* 9 - Height */ ODRX_DECLARE_RX_PROPERTY(OdDgText2d, Height, double, "Text2d Properties", 9, "Height", ""); /* 10 - LengthMultiplier */ ODRX_DECLARE_RX_PROPERTY(OdDgText2d, LengthMultiplier, double, "Text2d Properties", 10, "Length multiplier", ""); /* 11 - HeightMultiplier */ ODRX_DECLARE_RX_PROPERTY(OdDgText2d, HeightMultiplier, double, "Text2d Properties", 11, "Height multiplier", ""); /* 12 - Rotation */ ODRX_DECLARE_RX_PROPERTY(OdDgText2d, Rotation, double, "Text2d Properties", 12, "Rotation", ""); /* 13 - Origin */ ODRX_DECLARE_RX_PROPERTY(OdDgText2d, Origin, OdGePoint2d, "Text2d Properties", 13, "Origin", ""); /* 14 - AnnotationScaleFlag */ ODRX_DECLARE_RX_PROPERTY(OdDgText2d, AnnotationScaleFlag, bool, "Text2d Properties", 14, "Annotation scale flag", ""); /* 15 - AnnotationScale */ ODRX_DECLARE_RX_PROPERTY(OdDgText2d, AnnotationScale, double, "Text2d Properties", 15, "Annotation scale", ""); /* 16 - GeomExtents */ ODRX_DECLARE_RX_PROPERTY_RO(OdDgText2d, GeomExtents, OdGeExtents3d, "Text2d Properties", 16, "Geom extents"); /* 17 - TextEditFields */ ODRX_DECLARE_RX_PROPERTY_INDEXED(OdDgText2d, TextEditFields, OdDgTextEditField, "Text2d Properties", 17, "Array of text edit fields", ""); /* 18 - TabStopArrayOverride */ ODRX_DECLARE_RX_PROPERTY_INDEXED(OdDgText2d, TabStopArrayOverride, OdDouble, "Text2d Properties", 18, "Array of tab stops", ""); /* 19 - SpecialSymbolsAfterText */ ODRX_DECLARE_RX_PROPERTY_INDEXED(OdDgText2d, SpecialSymbolsAfterText, OdDgTextExtendedProperties::OdDgSpecialSymbol, "Text2d Properties", 19, "Array of special symbols after text", ""); /* 20 - BoundingPoints */ ODRX_DECLARE_RX_PROPERTY_COLLECTION(OdDgText2d, BoundingPoints, OdGePoint2d, "Text2d Properties", 20, "Array of bounding points"); /* 21 - UpsideDownFlag */ ODRX_DECLARE_RX_PROPERTY(OdDgText2d, UpsideDownFlag, bool, "Text2d Properties", 21, "Upside down flag", ""); /* 22 - LineSpacingType */ ODRX_DECLARE_RX_PROPERTY(OdDgText2d, LineSpacingType, OdDgTextExtendedProperties::LineSpacingType, "Text2d Properties", 22, "Line spacing type", ""); /* 23 - StackedFractionAlign */ ODRX_DECLARE_RX_PROPERTY(OdDgText2d, StackedFractionAlign, OdUInt8, "Text2d Properties", 23, "Stacked fraction align", ""); /* 24 - StackedFractionSection */ ODRX_DECLARE_RX_PROPERTY(OdDgText2d, StackedFractionSection, OdUInt8, "Text2d Properties", 24, "Stacked fraction section", ""); /* 25 - StackedFractionType */ ODRX_DECLARE_RX_PROPERTY(OdDgText2d, StackedFractionType, OdUInt8, "Text2d Properties", 25, "Stacked fraction type", ""); /* 26 - Slant */ ODRX_DECLARE_RX_PROPERTY_ANGLE(OdDgText2d, Slant, double, "Text2d Properties", 26, "Slant", ""); /* 27 - UnderlineSpacing */ ODRX_DECLARE_RX_PROPERTY(OdDgText2d, UnderlineSpacing, double, "Text2d Properties", 27, "Underline spacing", ""); /* 28 - LineOffset */ ODRX_DECLARE_RX_PROPERTY(OdDgText2d, LineOffset, OdGePoint2d, "Text2d Properties", 28, "Line offset", ""); /* 29 - CodePage */ ODRX_DECLARE_RX_PROPERTY(OdDgText2d, CodePage, OdUInt32, "Text2d Properties", 29, "Code page", ""); /* 30 - ShxBigFont */ ODRX_DECLARE_RX_PROPERTY_RO(OdDgText2d, ShxBigFont, OdDgElementId, "Text2d Properties", 30, "Shx big font"); /* 31 - BackgroundLineStyle */ ODRX_DECLARE_RX_PROPERTY_RO(OdDgText2d, BackgroundLineStyle, OdDgElementId, "Text2d Properties", 31, "Background linestyle"); /* 32 - BackgroundLineWeight */ ODRX_DECLARE_RX_PROPERTY_RO(OdDgText2d, BackgroundLineWeight, OdUInt32, "Text2d Properties", 32, "Background line weight"); /* 33 - BackgroundColor */ ODRX_DECLARE_RX_PROPERTY_RO(OdDgText2d, BackgroundColor, OdCmEntityColor, "Text2d Properties", 33, "Background color"); /* 34 - BackgroundFillColor */ ODRX_DECLARE_RX_PROPERTY_RO(OdDgText2d, BackgroundFillColor, OdCmEntityColor, "Text2d Properties", 34, "Background fill color"); /* 35 - BackgroundBorder */ ODRX_DECLARE_RX_PROPERTY_RO(OdDgText2d, BackgroundBorder, OdGePoint2d, "Text2d Properties", 35, "Background border"); /* 36 - OverlineSpacing */ ODRX_DECLARE_RX_PROPERTY(OdDgText2d, OverlineSpacing, double, "Text2d Properties", 36, "Overline spacing", ""); /* 37 - TextStyle */ ODRX_DECLARE_RX_PROPERTY_RO(OdDgText2d, TextStyle, OdDgElementId, "Text2d Properties", 37, "Text style"); /* 38 - UnderlineColor */ ODRX_DECLARE_RX_PROPERTY_RO(OdDgText2d, UnderlineColor, OdCmEntityColor, "Text2d Properties", 38, "Underline color"); /* 39 - UnderlineLineStyle */ ODRX_DECLARE_RX_PROPERTY_RO(OdDgText2d, UnderlineLineStyle, OdDgElementId, "Text2d Properties", 39, "Underline linestyle"); /* 40 - UnderlineLineWeight */ ODRX_DECLARE_RX_PROPERTY_RO(OdDgText2d, UnderlineLineWeight, OdUInt32, "Text2d Properties", 40, "Underline line weight"); /* 41 - OverlineColor */ ODRX_DECLARE_RX_PROPERTY_RO(OdDgText2d, OverlineColor, OdCmEntityColor, "Text2d Properties", 41, "Overline color"); /* 42 - OverlineLineStyle */ ODRX_DECLARE_RX_PROPERTY_RO(OdDgText2d, OverlineLineStyle, OdDgElementId, "Text2d Properties", 42, "Overline linestyle"); /* 43 - OverlineLineWeight */ ODRX_DECLARE_RX_PROPERTY_RO(OdDgText2d, OverlineLineWeight, OdUInt32, "Text2d Properties", 43, "Overline lineweight"); /* 44 - TextnodeWordWrapLength */ ODRX_DECLARE_RX_PROPERTY(OdDgText2d, TextnodeWordWrapLength, double, "Text2d Properties", 44, "Textnode word wrap length", ""); /* 45 - CrCount */ ODRX_DECLARE_RX_PROPERTY(OdDgText2d, CrCount, OdUInt8, "Text2d Properties", 45, "Cr count", ""); /* 46 - Color */ ODRX_DECLARE_RX_PROPERTY(OdDgText2d, Color, OdCmEntityColor, "Text2d Properties", 46, "Color", "/ColorPalette"); /* 47 - Position */ ODRX_DECLARE_RX_PROPERTY(OdDgText2d, Position, OdGePoint2d, "Text2d Properties", 47, "Position", ""); /* 48 - Italics */ ODRX_DECLARE_RX_PROPERTY(OdDgText2d, Italics, bool, "Text2d Properties", 48, "Is Italics", ""); /* 49 - Backwards */ ODRX_DECLARE_RX_PROPERTY(OdDgText2d, Backwards, bool, "Text2d Properties", 49, "Is Backwards", ""); // Class OdDgText3d properties. Category "Text3d Properties": // Category "Text3d Properties" /* 1 - Text */ ODRX_DECLARE_RX_PROPERTY(OdDgText3d, Text, OdString, "Text3d Properties", 1, "Text", ""); /* 2 - FirstLineIndentationOverride */ ODRX_DECLARE_RX_PROPERTY(OdDgText3d, FirstLineIndentationOverride, double, "Text3d Properties", 2, "First line indentation override", ""); /* 3 - ParagraphIndentationOverride */ ODRX_DECLARE_RX_PROPERTY(OdDgText3d, ParagraphIndentationOverride, double, "Text3d Properties", 3, "Paragraph indentation override", ""); /* 4 - TextIndentationOverrideFlag */ ODRX_DECLARE_RX_PROPERTY(OdDgText3d, TextIndentationOverrideFlag, bool, "Text3d Properties", 4, "Text indentation override flag", ""); /* 5 - EndOfLineFlag */ ODRX_DECLARE_RX_PROPERTY(OdDgText3d, EndOfLineFlag, bool, "Text3d Properties", 5, "End of line flag", ""); /* 6 - Font */ ODRX_DECLARE_RX_PROPERTY(OdDgText3d, Font, OdDgElementId, "Text3d Properties", 6, "Font", "FontTableId/Items"); /* 7 - Justification */ ODRX_DECLARE_RX_PROPERTY(OdDgText3d, Justification, OdDg::TextJustification, "Text3d Properties", 7, "Justification", ""); /* 8 - Length */ ODRX_DECLARE_RX_PROPERTY(OdDgText3d, Length, double, "Text3d Properties", 8, "Length", ""); /* 9 - Height */ ODRX_DECLARE_RX_PROPERTY(OdDgText3d, Height, double, "Text3d Properties", 9, "Height", ""); /* 10 - LengthMultiplier */ ODRX_DECLARE_RX_PROPERTY(OdDgText3d, LengthMultiplier, double, "Text3d Properties", 10, "Length multiplier", ""); /* 11 - HeightMultiplier */ ODRX_DECLARE_RX_PROPERTY(OdDgText3d, HeightMultiplier, double, "Text3d Properties", 11, "Height multiplier", ""); /* 12 - Rotation */ ODRX_DECLARE_RX_PROPERTY(OdDgText3d, Rotation, OdGeQuaternion, "Text3d Properties", 12, "Rotation", ""); /* 13 - Origin */ ODRX_DECLARE_RX_PROPERTY(OdDgText3d, Origin, OdGePoint3d, "Text3d Properties", 13, "Origin", ""); /* 14 - AnnotationScaleFlag */ ODRX_DECLARE_RX_PROPERTY(OdDgText3d, AnnotationScaleFlag, bool, "Text3d Properties", 14, "Annotation scale flag", ""); /* 15 - AnnotationScale */ ODRX_DECLARE_RX_PROPERTY(OdDgText3d, AnnotationScale, double, "Text3d Properties", 15, "Annotation scale", ""); /* 16 - GeomExtents */ ODRX_DECLARE_RX_PROPERTY_RO(OdDgText3d, GeomExtents, OdGeExtents3d, "Text3d Properties", 16, "Geom extents"); /* 17 - TextEditFields */ ODRX_DECLARE_RX_PROPERTY_INDEXED(OdDgText3d, TextEditFields, OdDgTextEditField, "Text3d Properties", 17, "Array of text edit fields", ""); /* 18 - TabStopArrayOverride */ ODRX_DECLARE_RX_PROPERTY_INDEXED(OdDgText3d, TabStopArrayOverride, OdDouble, "Text3d Properties", 18, "Array of tab stops", ""); /* 19 - SpecialSymbolsAfterText */ ODRX_DECLARE_RX_PROPERTY_INDEXED(OdDgText3d, SpecialSymbolsAfterText, OdDgTextExtendedProperties::OdDgSpecialSymbol, "Text3d Properties", 19, "Array of special symbols after text", ""); /* 20 - BoundingPoints */ ODRX_DECLARE_RX_PROPERTY_COLLECTION(OdDgText3d, BoundingPoints, OdGePoint3d, "Text3d Properties", 20, "Array of bounding points"); /* 21 - UpsideDownFlag */ ODRX_DECLARE_RX_PROPERTY(OdDgText3d, UpsideDownFlag, bool, "Text3d Properties", 21, "Upside down flag", ""); /* 22 - LineSpacingType */ ODRX_DECLARE_RX_PROPERTY(OdDgText3d, LineSpacingType, OdDgTextExtendedProperties::LineSpacingType, "Text3d Properties", 22, "Line spacing type", ""); /* 23 - StackedFractionAlign */ ODRX_DECLARE_RX_PROPERTY(OdDgText3d, StackedFractionAlign, OdUInt8, "Text3d Properties", 23, "Stacked fraction align", ""); /* 24 - StackedFractionSection */ ODRX_DECLARE_RX_PROPERTY(OdDgText3d, StackedFractionSection, OdUInt8, "Text3d Properties", 24, "Stacked fraction section", ""); /* 25 - StackedFractionType */ ODRX_DECLARE_RX_PROPERTY(OdDgText3d, StackedFractionType, OdUInt8, "Text3d Properties", 25, "Stacked fraction type", ""); /* 26 - Slant */ ODRX_DECLARE_RX_PROPERTY_ANGLE(OdDgText3d, Slant, double, "Text3d Properties", 26, "Slant", ""); /* 27 - UnderlineSpacing */ ODRX_DECLARE_RX_PROPERTY(OdDgText3d, UnderlineSpacing, double, "Text3d Properties", 27, "Underline spacing", ""); /* 28 - LineOffset */ ODRX_DECLARE_RX_PROPERTY(OdDgText3d, LineOffset, OdGePoint2d, "Text3d Properties", 28, "Line offset", ""); /* 29 - CodePage */ ODRX_DECLARE_RX_PROPERTY(OdDgText3d, CodePage, OdUInt32, "Text3d Properties", 29, "Code page", ""); /* 30 - ShxBigFont */ ODRX_DECLARE_RX_PROPERTY_RO(OdDgText3d, ShxBigFont, OdDgElementId, "Text3d Properties", 30, "Shx big font"); /* 31 - BackgroundLineStyle */ ODRX_DECLARE_RX_PROPERTY_RO(OdDgText3d, BackgroundLineStyle, OdDgElementId, "Text3d Properties", 31, "Background linestyle"); /* 32 - BackgroundLineWeight */ ODRX_DECLARE_RX_PROPERTY_RO(OdDgText3d, BackgroundLineWeight, OdUInt32, "Text3d Properties", 32, "Background line weight"); /* 33 - BackgroundColor */ ODRX_DECLARE_RX_PROPERTY_RO(OdDgText3d, BackgroundColor, OdCmEntityColor, "Text3d Properties", 33, "Background color"); /* 34 - BackgroundFillColor */ ODRX_DECLARE_RX_PROPERTY_RO(OdDgText3d, BackgroundFillColor, OdCmEntityColor, "Text3d Properties", 34, "Background fill color"); /* 35 - BackgroundBorder */ ODRX_DECLARE_RX_PROPERTY_RO(OdDgText3d, BackgroundBorder, OdGePoint2d, "Text3d Properties", 35, "Background border"); /* 36 - OverlineSpacing */ ODRX_DECLARE_RX_PROPERTY(OdDgText3d, OverlineSpacing, double, "Text3d Properties", 36, "Overline spacing", ""); /* 37 - TextStyle */ ODRX_DECLARE_RX_PROPERTY_RO(OdDgText3d, TextStyle, OdDgElementId, "Text3d Properties", 37, "Text style"); /* 38 - UnderlineColor */ ODRX_DECLARE_RX_PROPERTY_RO(OdDgText3d, UnderlineColor, OdCmEntityColor, "Text3d Properties", 38, "Underline color"); /* 39 - UnderlineLineStyle */ ODRX_DECLARE_RX_PROPERTY_RO(OdDgText3d, UnderlineLineStyle, OdDgElementId, "Text3d Properties", 39, "Underline linestyle"); /* 40 - UnderlineLineWeight */ ODRX_DECLARE_RX_PROPERTY_RO(OdDgText3d, UnderlineLineWeight, OdUInt32, "Text3d Properties", 40, "Underline line weight"); /* 41 - OverlineColor */ ODRX_DECLARE_RX_PROPERTY_RO(OdDgText3d, OverlineColor, OdCmEntityColor, "Text3d Properties", 41, "Overline color"); /* 42 - OverlineLineStyle */ ODRX_DECLARE_RX_PROPERTY_RO(OdDgText3d, OverlineLineStyle, OdDgElementId, "Text3d Properties", 42, "Overline linestyle"); /* 43 - OverlineLineWeight */ ODRX_DECLARE_RX_PROPERTY_RO(OdDgText3d, OverlineLineWeight, OdUInt32, "Text3d Properties", 43, "Overline lineweight"); /* 44 - TextnodeWordWrapLength */ ODRX_DECLARE_RX_PROPERTY(OdDgText3d, TextnodeWordWrapLength, double, "Text3d Properties", 44, "Textnode word wrap length", ""); /* 45 - CrCount */ ODRX_DECLARE_RX_PROPERTY(OdDgText3d, CrCount, OdUInt8, "Text3d Properties", 45, "Cr count", ""); /* 46 - Color */ ODRX_DECLARE_RX_PROPERTY(OdDgText3d, Color, OdCmEntityColor, "Text3d Properties", 46, "Color", "/ColorPalette"); /* 47 - Position */ ODRX_DECLARE_RX_PROPERTY(OdDgText3d, Position, OdGePoint3d, "Text3d Properties", 47, "Position", ""); /* 48 - Italics */ ODRX_DECLARE_RX_PROPERTY(OdDgText3d, Italics, bool, "Text3d Properties", 48, "Is Italics", ""); /* 49 - Backwards */ ODRX_DECLARE_RX_PROPERTY(OdDgText3d, Backwards, bool, "Text3d Properties", 49, "Is Backwards", ""); #endif // __DGTEXTPROPS__H__