Ignore:
Timestamp:
Mar 27, 2010, 12:15:53 PM (12 years ago)
Author:
dmik
Message:

branches/kmk: Implemented LuPopplerInputText? class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/kmk/Lucide/plugins/lupoppler/lupitext.cpp

    r320 r323  
     1
     2/*
     3 *  This file was generated by the SOM Compiler.
     4 *  Generated using:
     5 *     SOM incremental update: 2.24
     6 */
     7
     8
    19/* ***** BEGIN LICENSE BLOCK *****
    210 * Version: CDDL 1.0/LGPL 2.1
     
    4856
    4957
     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
    5092SOM_Scope string  SOMLINK getContents(LuPopplerInputText *somSelf,
    5193                                       Environment *ev)
    5294{
    5395    LuPopplerInputTextData *somThis = LuPopplerInputTextGetData(somSelf);
    54     LuPopplerInputTextMethodDebug("LuPopplerInputText","getContents");
    5596
    56     return (LuPopplerInputText_parent_LuInputText_getContents(somSelf,
    57                                                               ev));
     97    GooString *contents = somThis->widget->getContent();
     98    return contents->getCString();
    5899}
    59100
     
    62103{
    63104    LuPopplerInputTextData *somThis = LuPopplerInputTextGetData(somSelf);
    64     LuPopplerInputTextMethodDebug("LuPopplerInputText","setContents");
    65105
    66     LuPopplerInputText_parent_LuInputText_setContents(somSelf,
    67                                                       ev, aContents);
     106    GooString *contents = new GooString(aContents);
     107    somThis->widget->setContent(contents);
     108    delete contents;
    68109}
    69110
     
    72113{
    73114    LuPopplerInputTextData *somThis = LuPopplerInputTextGetData(somSelf);
    74     LuPopplerInputTextMethodDebug("LuPopplerInputText","isMultiLine");
    75115
    76     return (LuPopplerInputText_parent_LuInputText_isMultiLine(somSelf,
    77                                                               ev));
     116    return somThis->widget->isMultiline();
    78117}
    79118
     
    82121{
    83122    LuPopplerInputTextData *somThis = LuPopplerInputTextGetData(somSelf);
    84     LuPopplerInputTextMethodDebug("LuPopplerInputText","isPassword");
    85123
    86     return (LuPopplerInputText_parent_LuInputText_isPassword(somSelf,
    87                                                              ev));
     124    return somThis->widget->isPassword();
    88125}
    89126
     
    92129{
    93130    LuPopplerInputTextData *somThis = LuPopplerInputTextGetData(somSelf);
    94     LuPopplerInputTextMethodDebug("LuPopplerInputText","isFileName");
    95131
    96     return (LuPopplerInputText_parent_LuInputText_isFileName(somSelf,
    97                                                              ev));
     132    return somThis->widget->isFileSelect();
    98133}
    99134
     
    102137{
    103138    LuPopplerInputTextData *somThis = LuPopplerInputTextGetData(somSelf);
    104     LuPopplerInputTextMethodDebug("LuPopplerInputText","isSpellCheckable");
    105139
    106     return (LuPopplerInputText_parent_LuInputText_isSpellCheckable(somSelf,
    107                                                                    ev));
     140    return !somThis->widget->noSpellCheck();
    108141}
    109142
     
    112145{
    113146    LuPopplerInputTextData *somThis = LuPopplerInputTextGetData(somSelf);
    114     LuPopplerInputTextMethodDebug("LuPopplerInputText","isScrollable");
    115147
    116     return (LuPopplerInputText_parent_LuInputText_isScrollable(somSelf,
    117                                                                ev));
     148    return !somThis->widget->noScroll();
    118149}
    119150
     
    122153{
    123154    LuPopplerInputTextData *somThis = LuPopplerInputTextGetData(somSelf);
    124     LuPopplerInputTextMethodDebug("LuPopplerInputText","isComb");
    125155
    126     return (LuPopplerInputText_parent_LuInputText_isComb(somSelf,
    127                                                          ev));
     156    return somThis->widget->isComb();
    128157}
    129158
     
    132161{
    133162    LuPopplerInputTextData *somThis = LuPopplerInputTextGetData(somSelf);
    134     LuPopplerInputTextMethodDebug("LuPopplerInputText","isRichText");
    135163
    136     return (LuPopplerInputText_parent_LuInputText_isRichText(somSelf,
    137                                                              ev));
     164    return somThis->widget->isRichText();
    138165}
    139166
     
    142169{
    143170    LuPopplerInputTextData *somThis = LuPopplerInputTextGetData(somSelf);
    144     LuPopplerInputTextMethodDebug("LuPopplerInputText","getMaximumLength");
    145171
    146     return (LuPopplerInputText_parent_LuInputText_getMaximumLength(somSelf,
    147                                                                    ev));
     172    return somThis->widget->getMaxLen();
    148173}
    149174
Note: See TracChangeset for help on using the changeset viewer.