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

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

branches/kmk: LuPopplerInputText?: Make sure LuPopplerInputField? is inherited first because we need its LuInputField? implementation rather than the LuInputText? (dummy) one.

  • 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_LuPopplerInputField_init_widget(somSelf, ev, ctrl,
70                                                            aDoc, aPagenum, aPage,
71                                                            aFormWidgetText);
72    LuPopplerInputText_Init_LuInputText_somDefaultInit(somSelf, ctrl);
73
74    /* local LuPopplerInputField initialization code */
75
76    somThis->widget = aFormWidgetText;
77}
78
79
80SOM_Scope void SOMLINK somDestruct(LuPopplerInputText *somSelf,
81                                   octet doFree, som3DestructCtrl* ctrl)
82{
83    LuPopplerInputTextData *somThis; /* set in BeginDestructor */
84    somDestructCtrl globalCtrl;
85    somBooleanVector myMask;
86    LuPopplerInputText_BeginDestructor;
87
88    /* local LuPopplerInputField deinitialization code */
89
90    LuPopplerInputText_EndDestructor;
91}
92
93
94SOM_Scope string  SOMLINK getContents(LuPopplerInputText *somSelf,
95                                       Environment *ev)
96{
97    LuPopplerInputTextData *somThis = LuPopplerInputTextGetData(somSelf);
98
99    GooString *contents = somThis->widget->getContent();
100    return contents->getCString();
101}
102
103SOM_Scope void  SOMLINK setContents(LuPopplerInputText *somSelf,
104                                     Environment *ev, string aContents)
105{
106    LuPopplerInputTextData *somThis = LuPopplerInputTextGetData(somSelf);
107
108    GooString *contents = new GooString(aContents);
109    somThis->widget->setContent(contents);
110    delete contents;
111}
112
113SOM_Scope boolean  SOMLINK isMultiLine(LuPopplerInputText *somSelf,
114                                        Environment *ev)
115{
116    LuPopplerInputTextData *somThis = LuPopplerInputTextGetData(somSelf);
117
118    return somThis->widget->isMultiline();
119}
120
121SOM_Scope boolean  SOMLINK isPassword(LuPopplerInputText *somSelf,
122                                       Environment *ev)
123{
124    LuPopplerInputTextData *somThis = LuPopplerInputTextGetData(somSelf);
125
126    return somThis->widget->isPassword();
127}
128
129SOM_Scope boolean  SOMLINK isFileName(LuPopplerInputText *somSelf,
130                                       Environment *ev)
131{
132    LuPopplerInputTextData *somThis = LuPopplerInputTextGetData(somSelf);
133
134    return somThis->widget->isFileSelect();
135}
136
137SOM_Scope boolean  SOMLINK isSpellCheckable(LuPopplerInputText *somSelf,
138                                             Environment *ev)
139{
140    LuPopplerInputTextData *somThis = LuPopplerInputTextGetData(somSelf);
141
142    return !somThis->widget->noSpellCheck();
143}
144
145SOM_Scope boolean  SOMLINK isScrollable(LuPopplerInputText *somSelf,
146                                         Environment *ev)
147{
148    LuPopplerInputTextData *somThis = LuPopplerInputTextGetData(somSelf);
149
150    return !somThis->widget->noScroll();
151}
152
153SOM_Scope boolean  SOMLINK isComb(LuPopplerInputText *somSelf,
154                                   Environment *ev)
155{
156    LuPopplerInputTextData *somThis = LuPopplerInputTextGetData(somSelf);
157
158    return somThis->widget->isComb();
159}
160
161SOM_Scope boolean  SOMLINK isRichText(LuPopplerInputText *somSelf,
162                                       Environment *ev)
163{
164    LuPopplerInputTextData *somThis = LuPopplerInputTextGetData(somSelf);
165
166    return somThis->widget->isRichText();
167}
168
169SOM_Scope long  SOMLINK getMaximumLength(LuPopplerInputText *somSelf,
170                                          Environment *ev)
171{
172    LuPopplerInputTextData *somThis = LuPopplerInputTextGetData(somSelf);
173
174    return somThis->widget->getMaxLen();
175}
176
Note: See TracBrowser for help on using the repository browser.