Source code

Revision control

Other Tools

1
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* This Source Code Form is subject to the terms of the Mozilla Public
3
* License, v. 2.0. If a copy of the MPL was not distributed with this
4
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6
#include "nsISupports.idl"
7
#include "domstubs.idl"
8
9
webidl Element;
10
11
[scriptable, builtinclass, uuid(8b396020-69d3-451f-80c1-1a96a7da25a9)]
12
interface nsIHTMLObjectResizer : nsISupports
13
{
14
%{C++
15
typedef short EResizerLocation;
16
%}
17
const short eTopLeft = 0;
18
const short eTop = 1;
19
const short eTopRight = 2;
20
const short eLeft = 3;
21
const short eRight = 4;
22
const short eBottomLeft = 5;
23
const short eBottom = 6;
24
const short eBottomRight = 7;
25
26
/**
27
* a boolean indicating if object resizing is enabled in the editor
28
*/
29
[can_run_script] // Setter only.
30
attribute boolean objectResizingEnabled;
31
32
/**
33
* Hide resizers if they are visible. If this is called while there is no
34
* visible resizers, this does not throw exception, just does nothing.
35
*/
36
void hideResizers();
37
38
/**
39
* Refresh positions of resizers. If you change size of target of resizers,
40
* you need to refresh position of resizers with calling this.
41
* FYI: Current user in script is only BlueGriffon.
42
*/
43
[can_run_script]
44
void refreshResizers();
45
};
46