流式文檔接口_第1頁(yè)
流式文檔接口_第2頁(yè)
流式文檔接口_第3頁(yè)
流式文檔接口_第4頁(yè)
流式文檔接口_第5頁(yè)
已閱讀5頁(yè),還剩208頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

ICS35.240.20

L76

團(tuán)體標(biāo)準(zhǔn)

T/XXXXX—XXXX

流式文檔接口

Re-flowabledocumentsapplicationprogramminginterface

(征求意見(jiàn)稿)

XXXX-XX-XX發(fā)布XXXX-XX-XX實(shí)施

中國(guó)電子工業(yè)標(biāo)準(zhǔn)化技術(shù)協(xié)會(huì)發(fā)布

GB/TXXXXX—XXXX

前??言

本標(biāo)準(zhǔn)按照GB/T1.1-2009給出的規(guī)則起草。

請(qǐng)注意本文件的某些內(nèi)容可能涉及專(zhuān)利。本文件的發(fā)布機(jī)構(gòu)不承擔(dān)識(shí)別這些專(zhuān)利的責(zé)任。

本標(biāo)準(zhǔn)由中國(guó)電子技術(shù)標(biāo)準(zhǔn)化研究院提出并歸口。

本標(biāo)準(zhǔn)起草單位:中國(guó)電子技術(shù)標(biāo)準(zhǔn)化研究院、北京信息科技大學(xué),北京金山軟件有限公司,永中

軟件股份有限公司,中標(biāo)軟件有限公司、北京紅旗中文貳仟軟件技術(shù)有限公司。

本標(biāo)準(zhǔn)主要起草人:李寧、吳新松、孫文龍、方春燕、詹欣坤、丁偉、張克俊、程林、安紅云、陳

文、張展新、李幸、王劍、姜瑜濤、高林、代紅、董建、吳志剛、許潔、馬楠、田娟等。

II

T/CESAXXXXX—XXXX

流式文檔接口

1范圍

本標(biāo)準(zhǔn)規(guī)定了與TB/TAAAA-XXXX《流式文檔格式》相適應(yīng)的流式文檔處理軟件應(yīng)用編程接口。

本標(biāo)準(zhǔn)適用于流式軟件產(chǎn)品的開(kāi)發(fā)人員、流式文檔處理的開(kāi)發(fā)人員和其他使用人員。

2規(guī)范性引用文件

下列文件對(duì)于本文件的應(yīng)用是必不可少的。凡是注日期的引用文件,僅注日期的版本適用于本文件。

凡是不注日期的引用文件,其最新版本(包括所有的修改單)適用于本文件。

TB/TAAAA-XXXX流式文檔格式

3術(shù)語(yǔ)和定義

下列術(shù)語(yǔ)和定義適用于本文件。

3.1

組件component

可復(fù)用的軟件組成成份,可被用來(lái)構(gòu)造其他軟件。它可以是被封裝的對(duì)象類(lèi)、類(lèi)樹(shù)、一些功能模塊、

軟件框架、軟件構(gòu)架(或體系結(jié)構(gòu))、文檔、分析件、設(shè)計(jì)模式等。

3.2

接口interface

對(duì)象所提供的一系列操作(方法)和屬性。

3.3

接口定義語(yǔ)言interfacedefinitionlanguage

用于描述對(duì)象實(shí)現(xiàn)所提供的,客戶(hù)端對(duì)象所調(diào)用的服務(wù)接口的描述語(yǔ)言。

3.4

孤行orphan

單獨(dú)打印在一頁(yè)頂部的某段的最后一行。

3.5

寡行widow

單獨(dú)打印在一頁(yè)底部的某段的第一行。

3.6

1

GB/TXXXXX—XXXX

文檔對(duì)象模型documentobjectmodel(DOM)

W3C制定的XML應(yīng)用程序接口。它將XML文檔表示成一個(gè)樹(shù)形的結(jié)構(gòu)。DOM規(guī)定了一系列編程指令,

允許應(yīng)用程序多次訪問(wèn)并操作文檔樹(shù)的組件。

3.7

應(yīng)用編程接口applicationprogramminginterface(API)

一個(gè)軟件系統(tǒng)與外部程序的接口。外部程序可以通過(guò)調(diào)用接口函數(shù)實(shí)現(xiàn)對(duì)系統(tǒng)的訪問(wèn)。

4縮略語(yǔ)

下列縮略語(yǔ)適用于本文件。

IDL:接口描述語(yǔ)言(InterfaceDescriptionLanguage)

LCC:?jiǎn)卧~下駝峰表示法(lowerCamelCase)

OMG:對(duì)象管理組織(ObjectManagementGroup)

W3C:萬(wàn)維網(wǎng)聯(lián)盟(WorldWideWebConsortium)

5約定

本標(biāo)準(zhǔn)遵循:

——API采用對(duì)象管理組織OMG定義的IDL3.0語(yǔ)言進(jìn)行描述(見(jiàn)參考文獻(xiàn)[1]);

——充分參考現(xiàn)有的API標(biāo)準(zhǔn),特別是W3C制定的與XML相關(guān)的API,目前包括制定完成的或正在制定

的API(見(jiàn)參考文獻(xiàn)[2]);

——充分尊重用戶(hù)的使用習(xí)慣,接近現(xiàn)有主流流式文檔處理軟件產(chǎn)品的API體系;

——僅規(guī)范接口,不規(guī)定實(shí)現(xiàn)相關(guān)的內(nèi)容;

——接口命名以字母“I”開(kāi)始。所有屬性與方法的名稱(chēng)采用LCC命名方式,盡量簡(jiǎn)潔直觀。

6接口描述

6.1概述

本標(biāo)準(zhǔn)共規(guī)定了9個(gè)接口模塊,每個(gè)模塊定義相關(guān)的數(shù)據(jù)類(lèi)型和接口,見(jiàn)表1。

表1流式文檔處理軟件應(yīng)用編程接口模塊

模塊名稱(chēng)模塊內(nèi)容

uof_base基礎(chǔ)接口模塊

uof_app應(yīng)用相關(guān)接口模塊

uof_shape圖形相關(guān)接口模塊

uof_format格式相關(guān)接口模塊

uof_doc文檔通用處理接口模塊

uof_text字處理相關(guān)接口模塊

uof_sheet電子表格處理相關(guān)接口模塊

uof_presentation演示文稿處理相關(guān)接口模塊

uof_err異常處理模塊

2

T/CESAXXXXX—XXXX

全部接口的IDL定義見(jiàn)附錄A。

6.2基礎(chǔ)接口模塊(uof_base)

6.2.1容器IContainer

繼承:

無(wú)。

屬性:

名稱(chēng):count

定義:readonlyattributeunsignedlongcount

說(shuō)明:容器單元數(shù)量

方法:

voidclear()

說(shuō)明:清空容器。

參數(shù):無(wú)

返回:無(wú)

anyinitialize(inanynewItem)

說(shuō)明:初始化,加入一個(gè)單元。

參數(shù):newItem為新加入的單元

返回:新加入的單元

anygetItemByIndex(inunsignedlongindex)raises(uof_err::UOFException)

說(shuō)明:獲取一個(gè)單元。

參數(shù):index為要獲取單元的位置

返回:得到對(duì)應(yīng)索引值的單元

anyinsertItemBefore(inanynewItem,inunsignedlongindex)

raises(uof_err::UOFException)

說(shuō)明:在某個(gè)位置前插入新單元。

參數(shù):

newItem為新插入的單元

index為要插入單元的位置,新單元將插入此位置之前

返回:新插入的單元

anyinsertItemAfter(inanynewItem,inunsignedlongindex)

raises(uof_err::UOFException)

說(shuō)明:在某個(gè)位置后插入新單元,返回所插入的對(duì)象。

參數(shù):

3

GB/TXXXXX—XXXX

newItem為新插入的單元

index為要插入單元的位置,新單元將插入此位置之后

返回:新插入的單元

booleanremoveItem(inunsignedlongindex)raises(uof_err::UOFException)

說(shuō)明:刪除某個(gè)位置的單元。

參數(shù):index為要?jiǎng)h除單元的位置

返回:成功為true,否則為false

anyappendItem(inanynewItem)

說(shuō)明:在容器末尾添加一個(gè)單元。

參數(shù):newItem為要添加的單元

返回:添加的單元

anygetItemByID(DOMStringid)

說(shuō)明:根據(jù)標(biāo)識(shí)符獲得對(duì)象。

參數(shù):id標(biāo)識(shí)符

返回:對(duì)應(yīng)標(biāo)識(shí)符的單元

anycreateItem()

說(shuō)明:創(chuàng)建默認(rèn)單元。

參數(shù):無(wú)

返回:新單元

6.3應(yīng)用相關(guān)接口模塊(uof_app)

6.3.1數(shù)據(jù)類(lèi)型定義

組件類(lèi)型AppTypeEnum

為枚舉類(lèi)型,取值可為:

TEXT_PROCESSOR文字處理

SPREADSHEET_PROCESSOR電子表格處理

PRESENTATION_PROCESSOR演示文稿處理

6.3.2組件接口的基礎(chǔ)接口IAppBase

繼承:

無(wú)。

屬性:

名稱(chēng):name

定義:readonlyattributeDOMStringname

4

T/CESAXXXXX—XXXX

說(shuō)明:組件的名稱(chēng)。

名稱(chēng):type

定義:readonlyattributeAppTypeEnumtype

說(shuō)明:組件的類(lèi)型標(biāo)識(shí)。參見(jiàn)AppTypeEnum的定義。

方法:

IDocumentopenDocument(inDOMStringurl)raises(uof_err::UOFException)

說(shuō)明:打開(kāi)url標(biāo)識(shí)的文檔。

參數(shù):url為打開(kāi)文檔的標(biāo)識(shí)。

返回:文檔對(duì)象。

voidsaveDocument(inDOMStringurl)raises(uof_err::UOFException)

說(shuō)明:保存文檔。

參數(shù):url為要保存文檔的標(biāo)識(shí)

返回:無(wú)

voidclose()

說(shuō)明:關(guān)閉當(dāng)前的文檔。

參數(shù):無(wú)

返回:成功為true,否則為false

6.3.3應(yīng)用接口IApplication

繼承:

無(wú)。

屬性:

無(wú)。

方法:

IAppBasecreateApplication(inAppTypeEnumtype)raises(uof_err::UOFException)

說(shuō)明:創(chuàng)建幾個(gè)主要組件之一。

參數(shù):type為組件類(lèi)型名,參見(jiàn)AppTypeEnum的定義。

返回:組件對(duì)象。

voidclose()

說(shuō)明:關(guān)閉桌面應(yīng)用。需分別關(guān)閉對(duì)應(yīng)組件。

參數(shù):無(wú)

返回:無(wú)

5

GB/TXXXXX—XXXX

6.4圖形相關(guān)接口模塊(uof_shape)

6.4.1點(diǎn)/坐標(biāo)IPoint

繼承:

無(wú)。

屬性:

名稱(chēng):x

定義:attributefloatx

說(shuō)明:點(diǎn)的X坐標(biāo)。

名稱(chēng):y

定義:attributefloaty

說(shuō)明:點(diǎn)的Y坐標(biāo)。

方法:

無(wú)。

6.4.2點(diǎn)集合IPointSet

繼承:

uof_base::IContainer。

屬性:

無(wú)。

方法:

無(wú)。

6.4.3圖片屬性IImageProperty

繼承:

無(wú)。

屬性:

名稱(chēng):imageColorMode

定義:attributeImageColorModeEnumimageColorMode

說(shuō)明:顏色模式。ImageColorModeEnum為枚舉類(lèi)型,取值可為:

AUTO自動(dòng)

GREYSCALE灰度

MONOCHROME黑白

6

T/CESAXXXXX—XXXX

EROSION水印

名稱(chēng):luminance

定義:attributeshortluminance

說(shuō)明:亮度(百分比數(shù)據(jù)類(lèi)型)。

名稱(chēng):contrast

定義:attributeshortcontrast

說(shuō)明:對(duì)比度(百分比數(shù)據(jù)類(lèi)型)。

名稱(chēng):cropTop

定義:attributeunsignedlongcropTop

說(shuō)明:圖片裁剪_上(長(zhǎng)度類(lèi)型)。

名稱(chēng):cropBottom

定義:attributeunsignedlongcropBottom

說(shuō)明:圖片裁剪_下(長(zhǎng)度類(lèi)型)。

名稱(chēng):cropLeft

定義:attributeunsignedlongcropLeft

說(shuō)明:圖片裁剪_左(長(zhǎng)度類(lèi)型)。

名稱(chēng):cropRight

定義:attributeunsignedlongcropRight

說(shuō)明:圖片裁剪_右(長(zhǎng)度類(lèi)型)。

6.4.4圖形集合IShapeSet

繼承:

uof_base::IContainer

屬性:

無(wú)。

方法:

無(wú)。

6.4.5預(yù)定義圖形的基礎(chǔ)接口IShape

繼承:

無(wú)。

屬性:

7

GB/TXXXXX—XXXX

名稱(chēng):controlPoints

定義:readonlyattributeIPointSetcontrolPoints

說(shuō)明:控制點(diǎn)集合。

名稱(chēng):type

定義:attributeDOMStringtype

說(shuō)明:圖形類(lèi)別。

名稱(chēng):name

定義:attributeDOMStringname

說(shuō)明:圖形的名稱(chēng)。

名稱(chēng):software

定義:attributeDOMStringsoftware

說(shuō)明:生成圖形的軟件名稱(chēng)與版本。

名稱(chēng):keyPoints

定義:attributeDOMStringkeyPoints

說(shuō)明:關(guān)鍵點(diǎn)集合,主要用于多點(diǎn)控制的折線和曲線等。

名稱(chēng):fillStyle

定義:attributeIFillStylefillStyle

說(shuō)明:填充屬性。

名稱(chēng):line

定義:attributeILineStyleline

說(shuō)明:線式樣(包括顏色、線型、虛實(shí)、粗細(xì)等)。

名稱(chēng):beginArrow

定義:attributeIArrowStylebeginArrow

說(shuō)明:前端箭頭。

名稱(chēng):endArrow

定義:attributeIArrowStyleendArrow

說(shuō)明:后端箭頭。

名稱(chēng):width

定義:attributefloatwidth

說(shuō)明:寬度。

名稱(chēng):height

定義:attributefloatheight

8

T/CESAXXXXX—XXXX

說(shuō)明:高度。

名稱(chēng):rotationAngle

定義:attributefloatrotationAngle

說(shuō)明:旋轉(zhuǎn)角度。

名稱(chēng):isKeepRatio

定義:attributebooleanisKeepRatio

說(shuō)明:鎖定縱橫比。

名稱(chēng):isProtect

定義:attributebooleanisProtect

說(shuō)明:錨點(diǎn)是否鎖定,此功能只限文字處理應(yīng)用,其他應(yīng)用無(wú)此功能。

名稱(chēng):isPrint

定義:attributebooleanisPrint

說(shuō)明:是否打印對(duì)象。

名稱(chēng):webText

定義:attributeDOMStringwebText

說(shuō)明:web文字。

名稱(chēng):svgElement

定義:attributeSVGElementsvgElement

說(shuō)明:SVG圖形。對(duì)于非預(yù)定義圖形,采用SVG作為圖形交換的格式。暫時(shí)不支持該屬性。

名稱(chēng):transparency

定義:attributeunsignedlongtransparency

說(shuō)明:透明度。

名稱(chēng):shadowStyle

定義:attributeIShadowshadowStyle

說(shuō)明:陰影屬性。

名稱(chēng):groupPosition

定義:attributeIPointgroupPosition

說(shuō)明:組合位置。

名稱(chēng):rotation

定義:attributeRotationEnumrotation

說(shuō)明:翻轉(zhuǎn)。RotationEnum為枚舉類(lèi)型,取值可為:

X水平翻轉(zhuǎn)

Y垂直翻轉(zhuǎn)

9

GB/TXXXXX—XXXX

XY水平垂直翻轉(zhuǎn)

名稱(chēng):flag

定義:attributeDOMStringflag

說(shuō)明:圖形標(biāo)識(shí)符

名稱(chēng):imageProperty

定義:attributeIImagePropertyimageProperty

說(shuō)明:圖片屬性

名稱(chēng):wordArt

定義:attributeIFontworkwordArt

說(shuō)明:藝術(shù)字

名稱(chēng):connectRef

定義:readonlyattributeIShapeconnectRef

說(shuō)明:連接線引用

名稱(chēng):startObjectRef

定義:attributeIShapestartObjectRef

說(shuō)明:始端對(duì)象引用

名稱(chēng):endObjectRef

定義:attributeIShapeendObjectRef

說(shuō)明:終端對(duì)象引用

名稱(chēng):startObjectIndex

定義:attributeunsignedlongstartObjectIndex

說(shuō)明:始端對(duì)象連接點(diǎn)索引

名稱(chēng):endObjectIndex

定義:attributeunsignedlongendObjectIndex

說(shuō)明:終端對(duì)象連接點(diǎn)索引

名稱(chēng):layer

定義:attributeunsignedlonglayer

說(shuō)明:層次

名稱(chēng):groupList

定義:readonlyattributeIShapeSetgroupList

說(shuō)明:組合列表

方法:

10

T/CESAXXXXX—XXXX

無(wú)。

6.4.6錨點(diǎn)IAnchor

繼承:

無(wú)。

屬性:

名稱(chēng):shapeRef

定義:readonlyattributeDOMString_ptrshapeRef;

說(shuō)明:圖形引用

名稱(chēng):move

定義:attributeDOMString_ptrmove;

說(shuō)明:隨動(dòng)方式

名稱(chēng):verticalAbsolutePosition

定義:attributefloatverticalAbsolutePosition;

說(shuō)明:水平絕對(duì)位置

名稱(chēng):horizontalAbsolutePosition

定義:attributefloathorizontalAbsolutePosition;

說(shuō)明:垂直絕對(duì)位置

名稱(chēng):verticalRelativePosition

定義:attributefloatverticalRelativePosition;

說(shuō)明:水平相對(duì)位置

名稱(chēng):horizontalRelativePosition

定義:attributefloathorizontalRelativePosition;

說(shuō)明:垂直相對(duì)位置

名稱(chēng):lenth

定義:attributefloatlenth;

說(shuō)明:長(zhǎng)

名稱(chēng):width

定義:attributefloatwidth;

說(shuō)明:寬

6.4.7藝術(shù)字IFontwork

11

GB/TXXXXX—XXXX

繼承:

無(wú)。

屬性:

名稱(chēng):fontStyle

定義:attributeIFontPropertyfontStyle

說(shuō)明:字體。

名稱(chēng):isBold

定義:attributebooleanisBold

說(shuō)明:是否粗體。

名稱(chēng):isItalic

定義:attributebooleanisItalic

說(shuō)明:是否斜體。

名稱(chēng):alignmentMode

定義:attributeAlignmentModeEnumalignmentMode

說(shuō)明:對(duì)齊方式。AlignmentModeEnum為枚舉類(lèi)型,取值可為:

LEFT左對(duì)齊

CENTER居中對(duì)齊

RIGHT右對(duì)齊

WORD單詞調(diào)整

LETTER字母調(diào)整

STRETCH伸展對(duì)齊

名稱(chēng):characterSpace

定義:attributeCharacterSpaceEnumcharacterSpace

說(shuō)明:字符間距。CharacterSpaceEnum為枚舉類(lèi)型,取值可為:

VERY_TIGHT非常緊密

TIGHT緊密

NORMAL一般

LOOSE松散

VERY_LOOSE非常松散

名稱(chēng):isVerticalAlignment

定義:attributebooleanisVerticalAlignment

說(shuō)明:是否豎排文字。

名稱(chēng):isSameHeight

定義:attributebooleanisSameHeight

說(shuō)明:是否文字高度相同。

12

T/CESAXXXXX—XXXX

名稱(chēng):isAutoKernCharPair

定義:attributebooleanisAutoKernCharPair

說(shuō)明:是否自動(dòng)縮緊字符對(duì)。

名稱(chēng):fontworkText

定義:attributeDOMStringfontworkText

說(shuō)明:藝術(shù)字文本。

6.5格式相關(guān)接口模塊(uof_format)

6.5.1式樣基礎(chǔ)接口IStyleBase

繼承:

無(wú)。

屬性:

名稱(chēng):identifier

定義:attributeDOMStringidentifier

說(shuō)明:標(biāo)識(shí)符。

名稱(chēng):name

定義:attributeDOMStringname

說(shuō)明:名稱(chēng)。

名稱(chēng):type

定義:attributeStyleTypeEnumtype

說(shuō)明:式樣類(lèi)型。StyleTypeEnum為枚舉類(lèi)型,取值可為:

DEFAULT表示系統(tǒng)默認(rèn)

CUSTOM表示用戶(hù)定義

AUTO表示自動(dòng)

名稱(chēng):alias

定義:attributeDOMStringalias

說(shuō)明:別名。

名稱(chēng):styleRef

定義:attributeIStyleBasestyleRef

說(shuō)明:基式樣。

名稱(chēng):nextStyleRef

定義:attributeIStyleBasenextStyleRef

13

GB/TXXXXX—XXXX

說(shuō)明:后續(xù)式樣。

方法:

無(wú)。

6.5.2顏色I(xiàn)Color

繼承:

無(wú)。

屬性:

名稱(chēng):red

定義:attributeunsignedlongred

說(shuō)明:紅色成分。

名稱(chēng):green

定義:attributeunsignedlonggreen

說(shuō)明:綠色成分。

名稱(chēng):blue

定義:attributeunsignedlongblue

說(shuō)明:藍(lán)色成分。

名稱(chēng):isAuto

定義:attributebooleanisAuto

說(shuō)明:是否自動(dòng)顏色。

名稱(chēng):type

定義:readonlyattributeColorTypeEnumtype

說(shuō)明:顏色類(lèi)型,ColorTypeEnum為枚舉值,取值可為:

AUTO自動(dòng)

COLORVALUE顏色值(如#FFFFFF)

方法:

無(wú)。

6.5.3陰影IShadow

繼承:

無(wú)。

屬性:

14

T/CESAXXXXX—XXXX

名稱(chēng):isWithShadow

定義:attributebooleanisWithShadow

說(shuō)明:是否有陰影。

名稱(chēng):shadowType

定義:attributeShadowTypeEnumshadowType

說(shuō)明:陰影類(lèi)型。ShadowTypeEnum為枚舉值,取值可為:

PERSPECTIVE透視

SINGLE單一陰影

SHAPERELATIVE圖形相對(duì)類(lèi)型

名稱(chēng):shadowColor

定義:attributeIColorshadowColor

說(shuō)明:陰影顏色。

名稱(chēng):shadowTransparence

定義:attributeshortshadowTransparence

說(shuō)明:陰影透明度。

名稱(chēng):shadowXDistance

定義:attributefloatshadowXDistance

說(shuō)明:陰影左偏移量。(陰影對(duì)象左上角點(diǎn)與原對(duì)象左上角坐標(biāo)位移。)

名稱(chēng):shadowYDistance

定義:attributefloatshadowYDistance

說(shuō)明:陰影上偏移量。(陰影對(duì)象左上角點(diǎn)與原對(duì)象左上角坐標(biāo)位移。)

方法:

無(wú)。

6.5.4填充式樣基礎(chǔ)接口IFillStyle

繼承:

無(wú)。

屬性:

名稱(chēng):color

定義:attributeIColorcolor

說(shuō)明:填充顏色。

名稱(chēng):fillType

15

GB/TXXXXX—XXXX

定義:readonlyattributeFillTypeEnumfillType

說(shuō)明:填充類(lèi)型。FillTypeEnum為枚舉值,取值可為:

NO無(wú)填充

COLOR顏色填充

GRADIENT漸變填充

HATCH圖案填充

PICTURE圖片填充

名稱(chēng):gradientFillStyle

定義:attributeIGradientFillStylegradientFillStyle

說(shuō)明:漸變填充。

名稱(chēng):pictureFillStyle

定義:readonlyattributeIPictureFillStylepictureFillStyle

說(shuō)明:圖片填充。

名稱(chēng):hatchFillStyle

定義:attributeIHatchFillStylehatchFillStyle

說(shuō)明:圖案填充。

方法:

無(wú)。

6.5.5漸變填充IGradientFillStyle

繼承:

無(wú)。

屬性:

名稱(chēng):gType

定義:attributeDOMStringgType

說(shuō)明:漸變類(lèi)型。記錄系統(tǒng)預(yù)設(shè)或用戶(hù)自定義的漸變類(lèi)型。

名稱(chēng):startColor

定義:attributeIColorstartColor

說(shuō)明:起始顏色。

名稱(chēng):endColor

定義:attributeIColorendColor

說(shuō)明:終止顏色。

名稱(chēng):startDense

16

T/CESAXXXXX—XXXX

定義:attributefloatstartDense

說(shuō)明:起始濃度。

名稱(chēng):endDense

定義:attributefloatendDense

說(shuō)明:終止?jié)舛取?/p>

名稱(chēng):seed

定義:attributeSeedTypeEnumseed

說(shuō)明:種子類(lèi)型。SeedTypeEnum為枚舉類(lèi)型,取值可為:

LINEAR線性

RADAR雷達(dá)

SQUARE正方形

RECTANGLE長(zhǎng)方形

OVAL橢圓形

AXIAL軸向

名稱(chēng):xOffset

定義:attributeunsignedlongxOffset

說(shuō)明:種子X(jué)_位置。

名稱(chēng):yOffset

定義:attributeunsignedlongyOffset

說(shuō)明:種子Y_位置。

名稱(chēng):border

定義:attributeunsignedlongborder

說(shuō)明:邊界。

名稱(chēng):orientation

定義:attributeOrientationEnumorientation

說(shuō)明:漸變方向。OrientationEnum為枚舉值,取值可為:

ZERO0度

FORTY_FIVE45度

NINETY90度

ONE_HUNDRED_THIRTY_FIVE135度

ONE_HUNDRED_EIGHTY180度

TWO_HUNDRED_TWENTY_FIVE225度

TWO_HUNDRED_SEVENTY270度

THREE_HUNDRED_FIFTEEN315度

THREE_HUNDRED_SIXTY360度

方法:

17

GB/TXXXXX—XXXX

無(wú)。

6.5.6圖片填充IPictureFillStyle

繼承:

無(wú)。

屬性:

名稱(chēng):align

定義:attributeAlignTypeEnumalign

說(shuō)明:擺放形式,為拉伸、平鋪、居中之一。AlignTypeEnum為枚舉類(lèi)型,取值可為:

STRETCH伸展

TILE平鋪

CENTER居中

名稱(chēng):pictureType

定義:attributeDOMStringpictureType

說(shuō)明:圖片的類(lèi)型。

名稱(chēng):pictureName

定義:attributeDOMStringpictureName

說(shuō)明:圖片的名稱(chēng)。

方法:

無(wú)。

6.5.7圖案填充IHatchFillStyle

繼承:

無(wú)。

屬性:

名稱(chēng):type

定義:attributeDOMStringtype

說(shuō)明:圖案的類(lèi)型。

名稱(chēng):fgColor

定義:attributeIColorfgColor

說(shuō)明:前景色。

名稱(chēng):bgColor

18

T/CESAXXXXX—XXXX

定義:attributeIColorbgColor

說(shuō)明:背景色。

方法:

無(wú)。

6.5.8線式樣ILineStyle

繼承:

無(wú)。

屬性:

名稱(chēng):lineType

定義:attributeLineTypeEnumlineType

說(shuō)明:線型。LineTypeEnum為枚舉類(lèi)型,取值可為:

NO無(wú)

SINGLE單線

DOUBLE_LINE雙線

THIN_THICK由細(xì)到粗

THICK_THIN由粗到細(xì)

THICK_BETWEEN_THIN三線

名稱(chēng):dashType

定義:attributeDashTypeEnumdashType

說(shuō)明:虛實(shí)。DashTypeEnum為枚舉類(lèi)型,取值可為:

SOLID實(shí)線

ROUND_DOT圓點(diǎn)線

SQUARE_DOT方點(diǎn)線

DASH虛線

DASH_DOT點(diǎn)虛線

LONG_DASH長(zhǎng)虛線

LONG_DASH_DOT長(zhǎng)點(diǎn)虛線

DASH_DOT_DOT長(zhǎng)雙點(diǎn)虛線

名稱(chēng):width

定義:attributefloatwidth

說(shuō)明:線寬度。

名稱(chēng):color

定義:attributeIColorcolor

說(shuō)明:顏色。

19

GB/TXXXXX—XXXX

方法:

無(wú)。

6.5.9箭頭式樣IArrowStyle

繼承:

無(wú)。

屬性:

名稱(chēng):style

定義:attributeArrowStyleEnumstyle

說(shuō)明:箭頭式樣。ArrowStyleEnum為枚舉類(lèi)型,取值可為:

NORMAL箭頭

OPEN開(kāi)箭頭

DIAMOND燕尾箭頭

STEALTH菱形箭頭

OVAL橢圓箭頭

名稱(chēng):size

定義:attributeunsignedlongsize

說(shuō)明:箭頭大小。

名稱(chēng):endConnectStyle

定義:attributeEndConnectStyleEnumendConnectStyle

說(shuō)明:端點(diǎn)結(jié)合方式。EndConnectStyleEnum為枚舉類(lèi)型,取值可為:

CENTER中端

END底端

6.5.10邊框式樣IBorderStyle

繼承:

無(wú)。

屬性:

名稱(chēng):top

定義:attributeILineStyletop

說(shuō)明:上邊線。

名稱(chēng):bottom

定義:attributeILineStylebottom

說(shuō)明:下邊線。

20

T/CESAXXXXX—XXXX

名稱(chēng):left

定義:attributeILineStyleleft

說(shuō)明:左邊線。

名稱(chēng):right

定義:attributeILineStyleright

說(shuō)明:右邊線。

名稱(chēng):TL2BR

定義:attributeILineStyleTL2BR

說(shuō)明:左上至右下對(duì)角線。

名稱(chēng):TR2BL

定義:attributeILineStyleTR2BL

說(shuō)明:右上至左下對(duì)角線。

名稱(chēng):insideHorizontal

定義:attributeILineStyleinsideHorizontal

說(shuō)明:內(nèi)部橫線,用于文字表的邊框。

名稱(chēng):insideVertical

定義:attributeILineStyleinsideVertical

說(shuō)明:內(nèi)部豎線,用于文字表的邊框。

方法:

無(wú)。

6.5.11邊距IMargin

繼承:

無(wú)。

屬性:

名稱(chēng):top

定義:attributefloattop

說(shuō)明:上邊距。

名稱(chēng):bottom

定義:attributefloatbottom

說(shuō)明:下邊距。

21

GB/TXXXXX—XXXX

名稱(chēng):left

定義:attributefloatleft

說(shuō)明:左邊距。

名稱(chēng):right

定義:attributefloatright

說(shuō)明:右邊距。

方法:

無(wú)。

6.5.12位置IPosition

繼承:

無(wú)。

屬性:

名稱(chēng):horizontalRelativeTo

定義:attributeHorizontalRelativeToEnumhorizontalRelativeTo

說(shuō)明:水平相對(duì)于。HorizontalRelativeToEnum為枚舉類(lèi)型,取值可為:

MARGIN頁(yè)邊距

PAGE頁(yè)面

COLUMN欄

CHARACTER字符

名稱(chēng):horizontalAbsolutePosition

定義:attributefloathorizontalAbsolutePosition

說(shuō)明:水平位置絕對(duì)值。

名稱(chēng):horizontalRelativePosition

定義:attributeHorizontalRelativePositionEnumhorizontalRelativePosition

說(shuō)明:水平位置相對(duì)值。HorizontalRelativePositionEnum為枚舉類(lèi)型,取值可為:

LEFT左側(cè)

CENTER居中

RIGHT右側(cè)

INSIDE內(nèi)側(cè)

OUTSIDE外側(cè)

名稱(chēng):verticalRelativeTo

定義:attributeVerticalRelativeToEnumverticalRelativeTo

說(shuō)明:垂直相對(duì)于。VerticalRelativeToEnum為枚舉類(lèi)型,取值可為:

MARGIN頁(yè)邊距

22

T/CESAXXXXX—XXXX

PAGE頁(yè)面

PARAGRAPH段落

LINE行

名稱(chēng):verticalAbsolutePositon

定義:attributefloatverticalAbsolutePositon

說(shuō)明:垂直位置絕對(duì)值。

名稱(chēng):verticalRelativePosition

定義:attributeVerticalRelativePositionEnumverticalRelativePosition

說(shuō)明:垂直位置相對(duì)值。VerticalRelativePositionEnum為枚舉類(lèi)型,取值可為:

TOP頂端

CENTER居中

BOTTOM底端

INSIDE內(nèi)側(cè)

OUTSIDE外側(cè)

方法:

無(wú)。

6.5.13字體IFontStyle

繼承:

無(wú)。

屬性:

名稱(chēng):identifier

定義:attributeDOMStringidentifier

說(shuō)明:標(biāo)識(shí)符。

名稱(chēng):name

定義:attributeDOMStringname

說(shuō)明:名稱(chēng)。

名稱(chēng):familyName

定義:attributeDOMStringfamilyName

說(shuō)明:字體族。

名稱(chēng):alternativeName

定義:attributeDOMStringalternativeName

說(shuō)明:替換字體。

23

GB/TXXXXX—XXXX

名稱(chēng):alternativeFamilyName

定義:attributeDOMStringalternativeFamilyName

說(shuō)明:替換字體族。

方法:

無(wú)。

6.5.14字體集IFontStyleSet

繼承:

Uof_base::IContainer

屬性:

無(wú)。

方法:

IFontStylegetFontByName(inDOMStringname)

說(shuō)明:根據(jù)名稱(chēng)獲得字體聲明。

參數(shù):name為字體名稱(chēng)。

返回:字體對(duì)象。

6.5.15字體屬性IFontProperty

繼承:

無(wú)。

屬性:

名稱(chēng):latinFont

定義:attributeIFontStylelatinFont

說(shuō)明:西文字體。

名稱(chēng):asiaFont

定義:attributeIFontStyleasiaFont

說(shuō)明:中文字體。

名稱(chēng):fontSize

定義:attributefloatfontSize

說(shuō)明:字號(hào)。

名稱(chēng):fontColor

定義:attributeIColorfontColor

說(shuō)明:字體顏色。

24

T/CESAXXXXX—XXXX

6.5.16超級(jí)鏈接IHyperlink

繼承:

無(wú)。

屬性:

名稱(chēng):identifier

定義:attributeDOMStringidentifier

說(shuō)明:標(biāo)識(shí)符。

名稱(chēng):target

定義:attributeDOMStringtarget

說(shuō)明:目標(biāo)。

名稱(chēng):bookmark

定義:attributeDOMStringbookmark

說(shuō)明:書(shū)簽。

名稱(chēng):styleRef

定義:attributeITextRunStylestyleRef

說(shuō)明:式樣引用。

名稱(chēng):visitedStyleRef

定義:attributeITextRunStylevisitedStyleRef

說(shuō)明:已訪問(wèn)式樣引用。

名稱(chēng):showText

定義:attributeDOMStringshowText

說(shuō)明:提示。

名稱(chēng):linkSource

定義:attributeDOMStringlinkSource

說(shuō)明:鏈源。

方法:

無(wú)。

6.5.17鏈接集IHyperlinkSet

繼承:

Uof_base::IContainer

25

GB/TXXXXX—XXXX

屬性:

無(wú)。

方法:

無(wú)。

6.5.18自動(dòng)編號(hào)級(jí)別IAutoNumLevel

繼承:

無(wú)。

屬性:

名稱(chēng):level

定義:attributeunsignedshortlevel

說(shuō)明:級(jí)別值。

名稱(chēng):levelChar

定義:attributeDOMStringlevelChar

說(shuō)明:項(xiàng)目符號(hào)。

名稱(chēng):symbolFont

定義:attributeITextRunPropertysymbolFont

說(shuō)明:符號(hào)字體。

名稱(chēng):numberFormat

定義:attributeNumberFormatEnumnumberFormat

說(shuō)明:編號(hào)格式。NumberFormatEnum為枚舉類(lèi)型,取值可為:

DECIMAL阿拉伯?dāng)?shù)字:1,2,3,…

UPPER_ROMAN大寫(xiě)羅馬數(shù)字:I,II,III,…

LOWER_ROMAN小寫(xiě)羅馬數(shù)字:I,II,III,…

UPPER_LETTER大寫(xiě)字母:A,B,C,…

LOWER_LETTER小寫(xiě)字母:A,B,C,…

ORDINAL英文序數(shù):1ST,2ND,3RD,…

CARDINAL_TEXT英文基數(shù):ONE,TWO,THREE,…

ORDINAL_TEXT英文文本序數(shù):FIRST,SECOND,THIRD,…

HEX十六進(jìn)制阿拉伯?dāng)?shù)字:01,02,03,…

DECIMAL_FULL_WIDTH全角數(shù)字:1,2,3,…

DECIMAL_HALF_WIDTH半角數(shù)字:1,2,3,…

DECIMAL_ENCLOSED_CIRCLE①,②,③,…

DECIMAL_ENCLOSED_FULLSTOP全角帶句點(diǎn):⒈,⒉,⒊,…

DECIMAL_ENCLOSED_PAREN(1),(2),(3),…

26

T/CESAXXXXX—XXXX

DECIMAL_ENCLOSED_CIRCLE_CHINESE中文:①,②,③,…

IDEOGRAPH_ENCLOSED_CIRCLE㈠,㈡,㈢,…

IDEOGRAPH_TRADITIONAL甲,乙,丙,…

IDEOGRAPH_ZODIAC子,丑,寅,…

CHINESE_COUNTING中文小寫(xiě):一,二,三,…

CHINESE_LEGAL_SIMPLIFIED中文大寫(xiě):壹,貳,叁,…

DECIMAL_IN_DASH阿拉伯?dāng)?shù)字+短劃線:-1-,-2-,-3-,…

名稱(chēng):numberText

定義:attributeDOMStringnumberText

說(shuō)明:編號(hào)值。

名稱(chēng):alignment

定義:attributeAutoNumAlignmentEnumalignment

說(shuō)明:編號(hào)對(duì)齊方式。AutoNumAlignmentEnum為枚舉類(lèi)型,取值可為:

LEFT左對(duì)齊

CENTER居中

RIGHT右對(duì)齊

名稱(chēng):leftIndent

定義:attributefloatleftIndent

說(shuō)明:左縮進(jìn)值。

名稱(chēng):lineIndent

定義:attributefloatlineIndent

說(shuō)明:首行縮進(jìn)值。

名稱(chēng):tabStopPos

定義:attributefloattabStopPos

說(shuō)明:制表符位置。

名稱(chēng):startNumber

定義:attributeshortstartNumber

說(shuō)明:起始編號(hào)。

名稱(chēng):followChar

定義:attributeFollowCharEnumfollowChar

說(shuō)明:尾隨字符。FollowCharEnum為枚舉類(lèi)型,取值可為:

TAB制表符

SPACE空格

NO無(wú)

名稱(chēng):isFormal

27

GB/TXXXXX—XXXX

定義:attributebooleanisFormal

說(shuō)明:是否使用正規(guī)格式。

方法:

無(wú)。

6.5.19自動(dòng)編號(hào)級(jí)別集IAutoNumLevelSet

繼承:

uof_base::IContainer

屬性:

無(wú)。

方法:

無(wú)。

6.5.20自動(dòng)編號(hào)式樣IAutoNumStyle

繼承:

無(wú)。

屬性:

名稱(chēng):levelSet

定義:readonlyattributeIAutoNumLevelSetlevelSet

說(shuō)明:級(jí)別集。

名稱(chēng):identifier

定義:attributeDOMStringidentifier

說(shuō)明:標(biāo)識(shí)符。

名稱(chēng):name

定義:attributeDOMStringname

說(shuō)明:名稱(chēng)。

名稱(chēng):parentAutoNum

定義:attributeIAutoNumStyleparentAutoNum

說(shuō)明:父編號(hào)。

名稱(chēng):isMultiNum

定義:attributebooleanisMultiNum

說(shuō)明:是否多級(jí)編號(hào)。

28

T/CESAXXXXX—XXXX

方法:

無(wú)。

6.5.21自動(dòng)編號(hào)式樣集IAutoNumStyleSet

繼承:

uof_base::IContainer

屬性:

無(wú)。

方法:

IAutoNumStylegetAutoNumStyleByName(inDOMStringname)

說(shuō)明:根據(jù)名稱(chēng)獲得自動(dòng)編號(hào)式樣。

參數(shù):identifier為自動(dòng)編號(hào)式樣名稱(chēng)。

返回:自動(dòng)編號(hào)式樣對(duì)象。

6.5.22字下劃線式樣IUnderlineStyle

繼承:

無(wú)。

屬性:

名稱(chēng):

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論