source: branches/kmk/Lucide/plugins/lupoppler/lupitext.cpp @ 324

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

branches/kmk: DocumentViewer?: Change the cursor type to I-beam when over the input field.

  • Property svn:executable set to *
File size: 6.0 KB
Line 
1
2/*
3 *  This file was generated by the SOM Compiler.
4 *  Generated using:
5 *     SOM incremental update: 2.24
6 */
7
8
9/* ***** BEGIN LICENSE BLOCK *****
10 * Version: CDDL 1.0/LGPL 2.1
11 *
12 * The contents of this file are subject to the COMMON DEVELOPMENT AND
13 * DISTRIBUTION LICENSE (CDDL) Version 1.0 (the "License"); you may not use
14 * this file except in compliance with the License. You may obtain a copy of
15 * the License at http://www.sun.com/cddl/
16 *
17 * Software distributed under the License is distributed on an "AS IS" basis,
18 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
19 * for the specific language governing rights and limitations under the
20 * License.
21 *
22 * The Initial Developer of the Original Code is
23 * Dmitry A. Kuminov, netlabs.org.
24 * Portions created by the Initial Developer are Copyright (C) 2006
25 * the Initial Developer. All Rights Reserved.
26 *
27 * Contributor(s):
28 *
29 * Alternatively, the contents of this file may be used under the terms of
30 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
31 * in which case the provisions of the LGPL are applicable instead of those
32 * above. If you wish to allow use of your version of this file only under the
33 * terms of the LGPL, and not to allow others to use your version of this file
34 * under the terms of the CDDL, indicate your decision by deleting the
35 * provisions above and replace them with the notice and other provisions
36 * required by the LGPL. If you do not delete the provisions above, a recipient
37 * may use your version of this file under the terms of any one of the CDDL
38 * or the LGPL.
39 *
40 * ***** END LICENSE BLOCK ***** */
41
42
43
44/*
45 *  This file was generated by the SOM Compiler and Emitter Framework.
46 *  Generated using template emitter:
47 *      SOM Emitter emitxtm: 2.23.1.9
48 */
49
50#ifndef SOM_Module_lupitext_Source
51#define SOM_Module_lupitext_Source
52#endif
53#define LuPopplerInputText_Class_Source
54
55#include "lupitext.xih"
56
57
58SOM_Scope void SOMLINK init_widgetText(LuPopplerInputText *somSelf,
59                                        Environment *ev, somInitCtrl* ctrl,
60                                       LuPopplerDocument* aDoc,
61                                       long aPagenum, Page* aPage,
62                                       FormWidgetText* aFormWidgetText)
63{
64    LuPopplerInputTextData *somThis; /* set in BeginInitializer */
65    somInitCtrl globalCtrl;
66    somBooleanVector myMask;
67    LuPopplerInputText_BeginInitializer_init_widgetText;
68
69    LuPopplerInputText_Init_LuInputText_somDefaultInit(somSelf, ctrl);
70    LuPopplerInputText_Init_LuPopplerInputField_init_widget(somSelf, ev, ctrl,
71                                                            aDoc, aPagenum, aPage,
72                                                            aFormWidgetText);
73
74    /* local LuPopplerInputField initialization code */
75
76    somThis->widget = aFormWidgetText;
77    somThis->contents = NULL;
78}
79
80
81SOM_Scope void SOMLINK somDestruct(LuPopplerInputText *somSelf,
82                                   octet doFree, som3DestructCtrl* ctrl)
83{
84    LuPopplerInputTextData *somThis; /* set in BeginDestructor */
85    somDestructCtrl globalCtrl;
86    somBooleanVector myMask;
87    LuPopplerInputText_BeginDestructor;
88
89    /* local LuPopplerInputField deinitialization code */
90
91    LuPopplerInputText_EndDestructor;
92}
93
94
95SOM_Scope string  SOMLINK getContents(LuPopplerInputText *somSelf,
96                                       Environment *ev)
97{
98    LuPopplerInputTextData *somThis = LuPopplerInputTextGetData(somSelf);
99
100    GooString *contents = somThis->widget->getContent();
101    return contents->getCString();
102}
103
104SOM_Scope void  SOMLINK setContents(LuPopplerInputText *somSelf,
105                                     Environment *ev, string aContents)
106{
107    LuPopplerInputTextData *somThis = LuPopplerInputTextGetData(somSelf);
108
109    GooString *contents = new GooString(aContents);
110    somThis->widget->setContent(contents);
111    delete contents;
112}
113
114SOM_Scope boolean  SOMLINK isMultiLine(LuPopplerInputText *somSelf,
115                                        Environment *ev)
116{
117    LuPopplerInputTextData *somThis = LuPopplerInputTextGetData(somSelf);
118
119    return somThis->widget->isMultiline();
120}
121
122SOM_Scope boolean  SOMLINK isPassword(LuPopplerInputText *somSelf,
123                                       Environment *ev)
124{
125    LuPopplerInputTextData *somThis = LuPopplerInputTextGetData(somSelf);
126
127    return somThis->widget->isPassword();
128}
129
130SOM_Scope boolean  SOMLINK isFileName(LuPopplerInputText *somSelf,
131                                       Environment *ev)
132{
133    LuPopplerInputTextData *somThis = LuPopplerInputTextGetData(somSelf);
134
135    return somThis->widget->isFileSelect();
136}
137
138SOM_Scope boolean  SOMLINK isSpellCheckable(LuPopplerInputText *somSelf,
139                                             Environment *ev)
140{
141    LuPopplerInputTextData *somThis = LuPopplerInputTextGetData(somSelf);
142
143    return !somThis->widget->noSpellCheck();
144}
145
146SOM_Scope boolean  SOMLINK isScrollable(LuPopplerInputText *somSelf,
147                                         Environment *ev)
148{
149    LuPopplerInputTextData *somThis = LuPopplerInputTextGetData(somSelf);
150
151    return !somThis->widget->noScroll();
152}
153
154SOM_Scope boolean  SOMLINK isComb(LuPopplerInputText *somSelf,
155                                   Environment *ev)
156{
157    LuPopplerInputTextData *somThis = LuPopplerInputTextGetData(somSelf);
158
159    return somThis->widget->isComb();
160}
161
162SOM_Scope boolean  SOMLINK isRichText(LuPopplerInputText *somSelf,
163                                       Environment *ev)
164{
165    LuPopplerInputTextData *somThis = LuPopplerInputTextGetData(somSelf);
166
167    return somThis->widget->isRichText();
168}
169
170SOM_Scope long  SOMLINK getMaximumLength(LuPopplerInputText *somSelf,
171                                          Environment *ev)
172{
173    LuPopplerInputTextData *somThis = LuPopplerInputTextGetData(somSelf);
174
175    return somThis->widget->getMaxLen();
176}
177
Note: See TracBrowser for help on using the repository browser.