source: branches/kmk/Lucide/plugins/ludoc/luifield.idl @ 337

Last change on this file since 337 was 323, checked in by dmik, 12 years ago

branches/kmk: Implemented LuPopplerInputText? class.

  • Property svn:executable set to *
File size: 1.5 KB
Line 
1#ifndef luifield_idl
2#define luifield_idl
3
4#include <somobj.idl>
5#include <lutypes.h>
6
7/**
8 * LuInputField represents a generic interface for document input fields.
9 */
10interface LuInputField : SOMObject
11{
12    /**
13     * Possible values for getType().
14     */
15    enum Type {
16        Undefined, Button, Text, Choice, Signature
17    };
18
19    /**
20     * Returns the type of the input field.
21     *
22     * To be overriden. By default, returns Undefined.
23     */
24    Type getType();
25
26    /**
27     * Returns the bounding rectangle of the input field.
28     *
29     * To be overriden. By default, returns NULL.
30     *
31     * Note: the returned pointer must be valid until the object destriction.
32     */
33    LuRectangle *getRectangle();
34
35    /**
36     * Returns the ID of the input field.
37     */
38    unsigned long getID();
39
40    /**
41     * Returns TRUE if the input field was modified.
42     *
43     * To be overriden. By default, returns FALSE.
44     */
45    boolean isModified();
46
47    /**
48     * Returns TRUE if the input field is read-only.
49     *
50     * To be overriden. By default, returns FALSE.
51     */
52    boolean isReadOnly();
53
54#ifdef __SOMIDL__
55
56    implementation
57    {
58        releaseorder: getType, getRectangle, getID, isModified, isReadOnly;
59
60        passthru C_h_before =  ""
61            ""
62            "#include <lutypes.h>"
63            "";
64
65        passthru C_xh_before =  ""
66            ""
67            "#include <lutypes.h>"
68            "";
69    };
70
71#endif // __SOMIDL__
72
73};
74
75#endif // luifield_idl
Note: See TracBrowser for help on using the repository browser.