source: trunk/Lucide/plugins/lupoppler/lupichoice.idl

Last change on this file was 649, checked in by Gregg Young, 3 years ago

Initial attempt to get Choice fields working in PDF fill in forms. It is disabled (doesn't work either).

  • Property svn:executable set to *
File size: 1.6 KB
RevLine 
[320]1#ifndef lupichoice_idl
2#define lupichoice_idl
3
4#include <luichoice.idl>
[649]5#include <lupifield.idl>
[320]6
[649]7interface FormWidgetChoice; // declared in poppler/Form.h
8
[320]9/**
10 * LuPopplerInputChoice represents a choice box in the PDF docuemnt.
11 *
12 * This interface exposes the FormWidgetChoice poppler class.
13 */
[649]14interface LuPopplerInputChoice : LuPopplerInputField, LuInputChoice
[320]15{
[649]16     void init_widgetChoice( inout somInitCtrl ctrl, in LuPopplerDocument aDoc,
17                            in long aPagenum, in Page aPage,
18                            in FormWidgetChoice aFormWidgetChoice );
[320]19
20#ifdef __SOMIDL__
21
22    implementation
23    {
[649]24        releaseorder: init_widgetChoice;
25
26        init_widgetChoice: init;
27        somDestruct: override;
28
[320]29        getCount: override;
30        getChoice: override;
31        select: override;
32        toggle: override;
33        deselectAll: override;
34        setChoiceText: override;
35        getChoiceText: override;
36        isSelected: override;
37        isComboBox: override;
38        isEditable: override;
39        isMultiSelectable: override;
40        isSpellCheckable: override;
41
42        long mCount;
43        string mChoiceText;
44        boolean mIsComboBox;
45        boolean mIsEditable;
46        boolean mIsMultiSelectable;
47        boolean mIsSpellCheckable;
[649]48
49        FormWidgetChoice widget;
50
51        passthru C_h_before =  ""
52            ""
53            "#include <poppler/Form.h>"
54            "";
55
56        passthru C_xh_before =  ""
57            ""
58            "#include <poppler/Form.h>"
59            "";
60
[320]61    };
62
63#endif // __SOMIDL__
64
65};
66
67#endif // lupichoice_idl
Note: See TracBrowser for help on using the repository browser.