nsIMarkupDocumentViewer 编辑

docshell/base/nsIMarkupDocumentViewer.idlScriptable Describes the properties of a content viewer for an HTML or XML markup document. Inherits from: nsISupports Last changed in Gecko 7.0 (Firefox 7.0 / Thunderbird 7.0 / SeaMonkey 2.4)

Method overview

void scrollToNode(in nsIDOMNode node);
void sizeToContent();

Attributes

AttributeTypeDescription
allowPluginsbooleanIf true, plugins are allowed within the doc shell. default = true. Obsolete since Gecko 1.8
authorStyleDisabledbooleanDisable entire author style level (including HTML presentation hints)
bidiCharacterSetoctetWhether to force the user's character set 1 - use the document character set 2 - use the character set chosen by the user. Obsolete since Gecko 6.0
bidiControlsTextModeoctetThe order of bidirectional text in form controls. 1 - logical 2 - visual 3 - like the containing document. Obsolete since Gecko 2.0
bidiNumeraloctetThe type of numerals to display. 1 - depending on context, default is Arabic numerals 2 - depending on context, default is Hindi numerals 3 - Arabic numerals 4 - Hindi numerals.
bidiOptionsPRUint32Use this attribute to access all the Bidi options in one operation.
bidiSupportoctetWhether to use platform bidi support or Mozilla's bidi support 1 - Use Mozilla's bidi support 2 - Use the platform bidi support 3 - Disable bidi support.
bidiTextDirectionoctet

Options for Bidi presentation.

Use these attributes to access the individual Bidi options.

The default direction for the layout of bidirectional text. 1 - left to right 2 - right to left.
bidiTextTypeoctetThe ordering of bidirectional text. This may be either "logical" or "visual". Logical text will be reordered for presentation using the Unicode Bidi Algorithm. Visual text will be displayed without reordering. 1 - the default order for the charset 2 - logical order 3 - visual order.
defaultCharacterSetACString 
forceCharacterSetACString 
fullZoomfloatThe amount by which to scale all lengths. Default is 1.0.
hintCharacterSetACString 
hintCharacterSetSourcePRInt32 
minFontSizelongThe minimum font size to allow. Note: This attribute was added late in the Gecko 2.0 development cycle and was implemented by the nsIMarkupDocumentViewer_MOZILLA_2_0_BRANCH interface; it was merged into this interface in Gecko 7.0.
prevDocCharacterSetACString 
textZoomfloatThe amount by which to scale all text. Default is 1.0.

Methods

scrollToNode()

Scroll the make the specified node visible.

void scrollToNode(
  in nsIDOMNode node
);
Parameters
node
The nsIDOMNode of the node to make visible.

sizeToContent()

Tell the container to shrink-to-fit or grow-to-fit its contents.

void sizeToContent();
Parameters

None.

See also

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:70 次

字数:6288

最后编辑:6 年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文