Index

PowerDoc Objects

Text Extras

Overview

This object represents extra text elements. This includes the baseline and row boundary.

Designated Rendering Function: NONE

pdBaselinePtr (1113)

Also appears in: Text Line, Text Arc, Text Area, Rich Text Line, Rich Text Arc, Rich Text Area, Text Path, Rich Text Path

Link to the Baseline object.

This link supplies parameters necessary to render the baselines of text rows.

pdRowBoundPtr (1173)

Link to the Row Boundary object.

This link supplies parameters necessary to render the boundaries of text rows.

Properties

None

Example

C/C++

DT_ID_SLONG obj[10];

obj[0] = pdObjAdd(pd, 0, "Line Style");
obj[1] = pdObjAdd(pd, 0, "Line Definition");
obj[2] = pdObjAdd(pd, 0, "Baseline");
obj[3] = pdObjAdd(pd, 0, "Row Boundary Outline Style");
obj[4] = pdObjAdd(pd, 0, "Row Boundary Body Style");
obj[5] = pdObjAdd(pd, 0, "Row Boundary Shadow Style");
obj[6] = pdObjAdd(pd, 0, "Row Boundary Outline");
obj[7] = pdObjAdd(pd, 0, "Row Boundary Shadow");
obj[8] = pdObjAdd(pd, 0, "Row Boundary");
obj[9] = pdObjAdd(pd, 0, "Text Extras");

/* Properties for object 0 */
pdPropAdd(pd, obj[0], pdRGBT, "50641400", PD_HEX);

/* Properties for object 1 */
pdLinkAdd(pd, obj[1], pdStylePtr, obj[0]);
pdPropAdd(pd, obj[1], pdLineThickness, "1500", PD_WORD_SIGNED);
pdPropAdd(pd, obj[1], pdLineSegment, "10", PD_WORD_UNSIGNED);
pdPropAdd(pd, obj[1], pdLineStart, "100", PD_BYTE_UNSIGNED);
pdPropAdd(pd, obj[1], pdLineEnd, "100", PD_BYTE_UNSIGNED);

/* Properties for object 2 */
pdLinkAdd(pd, obj[2], pdLinePtr, obj[1]);
pdPropAdd(pd, obj[2], pdMarginLeft, "200", PD_LONG_SIGNED);
pdPropAdd(pd, obj[2], pdMarginRight, "50", PD_LONG_SIGNED);

/* Properties for object 3 */
pdPropAdd(pd, obj[3], pdRGBT, "50641400", PD_HEX);

/* Properties for object 4 */
pdPropAdd(pd, obj[4], pdRGBT, "B4961400", PD_HEX);

/* Properties for object 5 */
pdPropAdd(pd, obj[5], pdRGBT, "80808078", PD_HEX);

/* Properties for object 6 */
pdLinkAdd(pd, obj[6], pdStylePtr, obj[3]);
pdPropAdd(pd, obj[6], pdLineThickness, "240", PD_WORD_SIGNED);

/* Properties for object 7 */
pdLinkAdd(pd, obj[7], pdStylePtr, obj[5]);
pdPropAdd(pd, obj[7], pdShadowDx, "5", PD_WORD_SIGNED);
pdPropAdd(pd, obj[7], pdShadowDy, "5", PD_WORD_SIGNED);

/* Properties for object 8 */
pdLinkAdd(pd, obj[8], pdBodyPtr, obj[4]);
pdLinkAdd(pd, obj[8], pdOutlinePtr, obj[6]);
pdLinkAdd(pd, obj[8], pdShadowPtr, obj[7]);
pdPropAdd(pd, obj[8], pdMarginLeft, "-200", PD_LONG_SIGNED);
pdPropAdd(pd, obj[8], pdMarginRight, "-200", PD_LONG_SIGNED);
pdPropAdd(pd, obj[8], pdMarginTop, "-100", PD_LONG_SIGNED);
pdPropAdd(pd, obj[8], pdMarginBottom, "-100", PD_LONG_SIGNED);
pdPropAdd(pd, obj[8], pdRound, "50", PD_WORD_UNSIGNED);
pdPropAdd(pd, obj[8], pdMerge, "1", PD_BYTE_UNSIGNED);

/* Properties for object 9 */
pdLinkAdd(pd, obj[9], pdBaselinePtr, obj[2]);
pdLinkAdd(pd, obj[9], pdRowBoundPtr, obj[8]);

INTEGRAL DSL

/* Lambda shortcuts */

local o = @(label = "") CDTObj(::my.doc, label); /* to make object */
local p = @(id, str, len = PD_DEFAULT) CDTProp(id, str, len); /* to add property - general */
local s = @(id, str) CDTPropStr(id, str); /* to add property - string */
local i = @(id, num) CDTPropInt(id, num); /* to add property - integer */
local l = @(id, obj) CDTLink(id, obj); /* to add link */

/* Objects */

local obj_0 = o("Line Style");
local obj_1 = o("Line Definition");
local obj_2 = o("Baseline");
local obj_3 = o("Row Boundary Outline Style");
local obj_4 = o("Row Boundary Body Style");
local obj_5 = o("Row Boundary Shadow Style");
local obj_6 = o("Row Boundary Outline");
local obj_7 = o("Row Boundary Shadow");
local obj_8 = o("Row Boundary");
local obj_9 = o("Text Extras");

/* Object Properties */

obj_0 + s(pdRGBT, "50641400");

obj_1 + l(pdStylePtr, obj_0);
obj_1 + i(pdLineThickness, 1500);
obj_1 + i(pdLineSegment, 10);
obj_1 + i(pdLineStart, 100);
obj_1 + i(pdLineEnd, 100);

obj_2 + l(pdLinePtr, obj_1);
obj_2 + i(pdMarginLeft, 200);
obj_2 + i(pdMarginRight, 50);

obj_3 + s(pdRGBT, "50641400");

obj_4 + s(pdRGBT, "B4961400");

obj_5 + s(pdRGBT, "80808078");

obj_6 + l(pdStylePtr, obj_3);
obj_6 + i(pdLineThickness, 240);

obj_7 + l(pdStylePtr, obj_5);
obj_7 + i(pdShadowDx, 5);
obj_7 + i(pdShadowDy, 5);

obj_8 + l(pdBodyPtr, obj_4);
obj_8 + l(pdOutlinePtr, obj_6);
obj_8 + l(pdShadowPtr, obj_7);
obj_8 + i(pdMarginLeft, -200);
obj_8 + i(pdMarginRight, -200);
obj_8 + i(pdMarginTop, -100);
obj_8 + i(pdMarginBottom, -100);
obj_8 + i(pdRound, 50);
obj_8 + i(pdMerge, 1);

obj_9 + l(pdBaselinePtr, obj_2);
obj_9 + l(pdRowBoundPtr, obj_8);
 

Index