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

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

branches/kmk: Implemented LuPopplerInputText? class.

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