// ***** AUTOGENERATED CODE, DO NOT EDIT *****
            // ***** This class is not copyable.
        
        #include "REcmaSharedPointerLayout.h"
        #include "RMetaTypes.h"
        #include "../REcmaHelper.h"

        // forwards declarations mapped to includes
        
                #include "RDocument.h"
            
                #include "RTransaction.h"
            
            
        // includes for base ecma wrapper classes
        
                  #include "REcmaSharedPointerObject.h"
                 void REcmaSharedPointerLayout::initEcma(QScriptEngine& engine, QScriptValue* proto 
    
    ) 
    
    {

    bool protoCreated = false;
    if(proto == NULL){
        proto = new QScriptValue(engine.newVariant(qVariantFromValue(
                (RLayoutPointer*) 0)));
        protoCreated = true;
    }

    
        // primary base class RObject:
        
            proto->setPrototype(engine.defaultPrototype(
            qMetaTypeId<RObjectPointer>()));
          
        /*
        
        */
    

    QScriptValue fun;

    // toString:
    REcmaHelper::registerFunction(&engine, proto, toString, "toString");
    
        // shared pointer support:
        REcmaHelper::registerFunction(&engine, proto, data, "data");
        

        REcmaHelper::registerFunction(&engine, proto, isNull, "isNull");
        

    // destroy:
    REcmaHelper::registerFunction(&engine, proto, destroy, "destroy");
    
        // conversion for base class RObject
        REcmaHelper::registerFunction(&engine, proto, getRObject, "getRObject");
        

    // get class name
    REcmaHelper::registerFunction(&engine, proto, getClassName, "getClassName");
    

    // conversion to all base classes (multiple inheritance):
    REcmaHelper::registerFunction(&engine, proto, getBaseClasses, "getBaseClasses");
    

    // properties:
    

    // methods:
    
            REcmaHelper::registerFunction(&engine, proto, getType, "getType");
            
            REcmaHelper::registerFunction(&engine, proto, clone, "clone");
            
            REcmaHelper::registerFunction(&engine, proto, getName, "getName");
            
            REcmaHelper::registerFunction(&engine, proto, setName, "setName");
            
            REcmaHelper::registerFunction(&engine, proto, getTabOrder, "getTabOrder");
            
            REcmaHelper::registerFunction(&engine, proto, setTabOrder, "setTabOrder");
            
            REcmaHelper::registerFunction(&engine, proto, setMinLimits, "setMinLimits");
            
            REcmaHelper::registerFunction(&engine, proto, getMinLimits, "getMinLimits");
            
            REcmaHelper::registerFunction(&engine, proto, setMaxLimits, "setMaxLimits");
            
            REcmaHelper::registerFunction(&engine, proto, getMaxLimits, "getMaxLimits");
            
            REcmaHelper::registerFunction(&engine, proto, setInsertionBase, "setInsertionBase");
            
            REcmaHelper::registerFunction(&engine, proto, getInsertionBase, "getInsertionBase");
            
            REcmaHelper::registerFunction(&engine, proto, setMinExtents, "setMinExtents");
            
            REcmaHelper::registerFunction(&engine, proto, getMinExtents, "getMinExtents");
            
            REcmaHelper::registerFunction(&engine, proto, setMaxExtents, "setMaxExtents");
            
            REcmaHelper::registerFunction(&engine, proto, getMaxExtents, "getMaxExtents");
            
            REcmaHelper::registerFunction(&engine, proto, setPlotPaperMarginLeftMM, "setPlotPaperMarginLeftMM");
            
            REcmaHelper::registerFunction(&engine, proto, setPlotPaperMarginBottomMM, "setPlotPaperMarginBottomMM");
            
            REcmaHelper::registerFunction(&engine, proto, setPlotPaperMarginRightMM, "setPlotPaperMarginRightMM");
            
            REcmaHelper::registerFunction(&engine, proto, setPlotPaperMarginTopMM, "setPlotPaperMarginTopMM");
            
            REcmaHelper::registerFunction(&engine, proto, setPlotPaperSize, "setPlotPaperSize");
            
            REcmaHelper::registerFunction(&engine, proto, setPlotOrigin, "setPlotOrigin");
            
            REcmaHelper::registerFunction(&engine, proto, setPlotWindowAreaMin, "setPlotWindowAreaMin");
            
            REcmaHelper::registerFunction(&engine, proto, setPlotWindowAreaMax, "setPlotWindowAreaMax");
            
            REcmaHelper::registerFunction(&engine, proto, setNumeratorCustomScale, "setNumeratorCustomScale");
            
            REcmaHelper::registerFunction(&engine, proto, setDenominatorCustomScale, "setDenominatorCustomScale");
            
            REcmaHelper::registerFunction(&engine, proto, setPlotPaperUnits, "setPlotPaperUnits");
            
            REcmaHelper::registerFunction(&engine, proto, setPlotRotation, "setPlotRotation");
            
            REcmaHelper::registerFunction(&engine, proto, setPlotType, "setPlotType");
            
            REcmaHelper::registerFunction(&engine, proto, setUseStandardScale, "setUseStandardScale");
            
            REcmaHelper::registerFunction(&engine, proto, setStandardScale, "setStandardScale");
            
            REcmaHelper::registerFunction(&engine, proto, setStandardScaleType, "setStandardScaleType");
            
            REcmaHelper::registerFunction(&engine, proto, setCanonicalMediaName, "setCanonicalMediaName");
            
            REcmaHelper::registerFunction(&engine, proto, getPlotPaperMarginLeftMM, "getPlotPaperMarginLeftMM");
            
            REcmaHelper::registerFunction(&engine, proto, getPlotPaperMarginBottomMM, "getPlotPaperMarginBottomMM");
            
            REcmaHelper::registerFunction(&engine, proto, getPlotPaperMarginRightMM, "getPlotPaperMarginRightMM");
            
            REcmaHelper::registerFunction(&engine, proto, getPlotPaperMarginTopMM, "getPlotPaperMarginTopMM");
            
            REcmaHelper::registerFunction(&engine, proto, getPlotPaperSize, "getPlotPaperSize");
            
            REcmaHelper::registerFunction(&engine, proto, getPlotOrigin, "getPlotOrigin");
            
            REcmaHelper::registerFunction(&engine, proto, getPlotWindowAreaMin, "getPlotWindowAreaMin");
            
            REcmaHelper::registerFunction(&engine, proto, getPlotWindowAreaMax, "getPlotWindowAreaMax");
            
            REcmaHelper::registerFunction(&engine, proto, getNumeratorCustomScale, "getNumeratorCustomScale");
            
            REcmaHelper::registerFunction(&engine, proto, getDenominatorCustomScale, "getDenominatorCustomScale");
            
            REcmaHelper::registerFunction(&engine, proto, getPlotPaperUnits, "getPlotPaperUnits");
            
            REcmaHelper::registerFunction(&engine, proto, getPlotRotation, "getPlotRotation");
            
            REcmaHelper::registerFunction(&engine, proto, getPlotType, "getPlotType");
            
            REcmaHelper::registerFunction(&engine, proto, getUseStandardScale, "getUseStandardScale");
            
            REcmaHelper::registerFunction(&engine, proto, getStandardScale, "getStandardScale");
            
            REcmaHelper::registerFunction(&engine, proto, getStandardScaleType, "getStandardScaleType");
            
            REcmaHelper::registerFunction(&engine, proto, getCanonicalMediaName, "getCanonicalMediaName");
            
            REcmaHelper::registerFunction(&engine, proto, getProperty, "getProperty");
            
            REcmaHelper::registerFunction(&engine, proto, setProperty, "setProperty");
            
        engine.setDefaultPrototype(
            qMetaTypeId<RLayoutPointer>(), *proto);
      
    

    QScriptValue ctor = engine.newFunction(createEcma, *proto, 2);
    
    // static methods:
    
            REcmaHelper::registerFunction(&engine, &ctor, init, "init");
            

    // static properties:
    
            ctor.setProperty("PropertyType",
                qScriptValueFromValue(&engine, RLayout::PropertyType),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyCustom",
                qScriptValueFromValue(&engine, RLayout::PropertyCustom),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyName",
                qScriptValueFromValue(&engine, RLayout::PropertyName),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyTabOrder",
                qScriptValueFromValue(&engine, RLayout::PropertyTabOrder),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyMinLimitsX",
                qScriptValueFromValue(&engine, RLayout::PropertyMinLimitsX),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyMinLimitsY",
                qScriptValueFromValue(&engine, RLayout::PropertyMinLimitsY),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyMinLimitsZ",
                qScriptValueFromValue(&engine, RLayout::PropertyMinLimitsZ),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyMaxLimitsX",
                qScriptValueFromValue(&engine, RLayout::PropertyMaxLimitsX),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyMaxLimitsY",
                qScriptValueFromValue(&engine, RLayout::PropertyMaxLimitsY),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyMaxLimitsZ",
                qScriptValueFromValue(&engine, RLayout::PropertyMaxLimitsZ),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyInsertionBaseX",
                qScriptValueFromValue(&engine, RLayout::PropertyInsertionBaseX),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyInsertionBaseY",
                qScriptValueFromValue(&engine, RLayout::PropertyInsertionBaseY),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyInsertionBaseZ",
                qScriptValueFromValue(&engine, RLayout::PropertyInsertionBaseZ),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyMinExtentsX",
                qScriptValueFromValue(&engine, RLayout::PropertyMinExtentsX),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyMinExtentsY",
                qScriptValueFromValue(&engine, RLayout::PropertyMinExtentsY),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyMinExtentsZ",
                qScriptValueFromValue(&engine, RLayout::PropertyMinExtentsZ),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyMaxExtentsX",
                qScriptValueFromValue(&engine, RLayout::PropertyMaxExtentsX),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyMaxExtentsY",
                qScriptValueFromValue(&engine, RLayout::PropertyMaxExtentsY),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyMaxExtentsZ",
                qScriptValueFromValue(&engine, RLayout::PropertyMaxExtentsZ),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyPlotPaperMarginLeftMM",
                qScriptValueFromValue(&engine, RLayout::PropertyPlotPaperMarginLeftMM),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyPlotPaperMarginBottomMM",
                qScriptValueFromValue(&engine, RLayout::PropertyPlotPaperMarginBottomMM),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyPlotPaperMarginRightMM",
                qScriptValueFromValue(&engine, RLayout::PropertyPlotPaperMarginRightMM),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyPlotPaperMarginTopMM",
                qScriptValueFromValue(&engine, RLayout::PropertyPlotPaperMarginTopMM),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyPlotPaperSizeWidth",
                qScriptValueFromValue(&engine, RLayout::PropertyPlotPaperSizeWidth),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyPlotPaperSizeHeight",
                qScriptValueFromValue(&engine, RLayout::PropertyPlotPaperSizeHeight),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyPlotOriginX",
                qScriptValueFromValue(&engine, RLayout::PropertyPlotOriginX),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyPlotOriginY",
                qScriptValueFromValue(&engine, RLayout::PropertyPlotOriginY),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyPlotWindowAreaMinX",
                qScriptValueFromValue(&engine, RLayout::PropertyPlotWindowAreaMinX),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyPlotWindowAreaMinY",
                qScriptValueFromValue(&engine, RLayout::PropertyPlotWindowAreaMinY),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyPlotWindowAreaMaxX",
                qScriptValueFromValue(&engine, RLayout::PropertyPlotWindowAreaMaxX),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyPlotWindowAreaMaxY",
                qScriptValueFromValue(&engine, RLayout::PropertyPlotWindowAreaMaxY),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyNumeratorCustomScale",
                qScriptValueFromValue(&engine, RLayout::PropertyNumeratorCustomScale),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyDenominatorCustomScale",
                qScriptValueFromValue(&engine, RLayout::PropertyDenominatorCustomScale),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyPlotPaperUnits",
                qScriptValueFromValue(&engine, RLayout::PropertyPlotPaperUnits),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyPlotRotation",
                qScriptValueFromValue(&engine, RLayout::PropertyPlotRotation),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyPlotType",
                qScriptValueFromValue(&engine, RLayout::PropertyPlotType),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyUseStandardScale",
                qScriptValueFromValue(&engine, RLayout::PropertyUseStandardScale),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyStandardScale",
                qScriptValueFromValue(&engine, RLayout::PropertyStandardScale),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyStandardScaleType",
                qScriptValueFromValue(&engine, RLayout::PropertyStandardScaleType),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            
            ctor.setProperty("PropertyCanonicalMediaName",
                qScriptValueFromValue(&engine, RLayout::PropertyCanonicalMediaName),
                QScriptValue::SkipInEnumeration | QScriptValue::ReadOnly);
            

    // enum values:
    

    ctor.setProperty("Inches",
    QScriptValue(RLayout::Inches),
    QScriptValue::ReadOnly);


    ctor.setProperty("Millimeters",
    QScriptValue(RLayout::Millimeters),
    QScriptValue::ReadOnly);


    ctor.setProperty("Pixels",
    QScriptValue(RLayout::Pixels),
    QScriptValue::ReadOnly);


    ctor.setProperty("Zero",
    QScriptValue(RLayout::Zero),
    QScriptValue::ReadOnly);


    ctor.setProperty("CounterClockWise",
    QScriptValue(RLayout::CounterClockWise),
    QScriptValue::ReadOnly);


    ctor.setProperty("Inverted",
    QScriptValue(RLayout::Inverted),
    QScriptValue::ReadOnly);


    ctor.setProperty("ClockWise",
    QScriptValue(RLayout::ClockWise),
    QScriptValue::ReadOnly);


    ctor.setProperty("Display",
    QScriptValue(RLayout::Display),
    QScriptValue::ReadOnly);


    ctor.setProperty("Extents",
    QScriptValue(RLayout::Extents),
    QScriptValue::ReadOnly);


    ctor.setProperty("Limits",
    QScriptValue(RLayout::Limits),
    QScriptValue::ReadOnly);


    ctor.setProperty("View",
    QScriptValue(RLayout::View),
    QScriptValue::ReadOnly);


    ctor.setProperty("Window",
    QScriptValue(RLayout::Window),
    QScriptValue::ReadOnly);


    ctor.setProperty("Layout",
    QScriptValue(RLayout::Layout),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_ScaleToFit",
    QScriptValue(RLayout::Scale_ScaleToFit),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_1_128in_1ft",
    QScriptValue(RLayout::Scale_1_128in_1ft),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_1_64in_1ft",
    QScriptValue(RLayout::Scale_1_64in_1ft),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_1_32in_1ft",
    QScriptValue(RLayout::Scale_1_32in_1ft),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_1_16in_1ft",
    QScriptValue(RLayout::Scale_1_16in_1ft),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_3_32in_1ft",
    QScriptValue(RLayout::Scale_3_32in_1ft),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_1_8in_1ft",
    QScriptValue(RLayout::Scale_1_8in_1ft),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_3_16in_1ft",
    QScriptValue(RLayout::Scale_3_16in_1ft),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_1_4in_1ft",
    QScriptValue(RLayout::Scale_1_4in_1ft),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_3_8in_1ft",
    QScriptValue(RLayout::Scale_3_8in_1ft),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_1_2in_1ft",
    QScriptValue(RLayout::Scale_1_2in_1ft),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_3_4in_1ft",
    QScriptValue(RLayout::Scale_3_4in_1ft),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_1in_1ft",
    QScriptValue(RLayout::Scale_1in_1ft),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_3in_1ft",
    QScriptValue(RLayout::Scale_3in_1ft),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_6in_1ft",
    QScriptValue(RLayout::Scale_6in_1ft),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_1ft_1ft",
    QScriptValue(RLayout::Scale_1ft_1ft),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_1_1",
    QScriptValue(RLayout::Scale_1_1),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_1_2",
    QScriptValue(RLayout::Scale_1_2),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_1_4",
    QScriptValue(RLayout::Scale_1_4),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_1_5",
    QScriptValue(RLayout::Scale_1_5),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_1_8",
    QScriptValue(RLayout::Scale_1_8),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_1_10",
    QScriptValue(RLayout::Scale_1_10),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_1_16",
    QScriptValue(RLayout::Scale_1_16),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_1_20",
    QScriptValue(RLayout::Scale_1_20),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_1_30",
    QScriptValue(RLayout::Scale_1_30),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_1_40",
    QScriptValue(RLayout::Scale_1_40),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_1_50",
    QScriptValue(RLayout::Scale_1_50),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_1_100",
    QScriptValue(RLayout::Scale_1_100),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_2_1",
    QScriptValue(RLayout::Scale_2_1),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_4_1",
    QScriptValue(RLayout::Scale_4_1),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_8_1",
    QScriptValue(RLayout::Scale_8_1),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_10_1",
    QScriptValue(RLayout::Scale_10_1),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_100_1",
    QScriptValue(RLayout::Scale_100_1),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_1000_1",
    QScriptValue(RLayout::Scale_1000_1),
    QScriptValue::ReadOnly);


    ctor.setProperty("Scale_1and1_2in_1ft",
    QScriptValue(RLayout::Scale_1and1_2in_1ft),
    QScriptValue::ReadOnly);


    // enum conversions:
    
    qScriptRegisterMetaType<RLayout::PlotPaperUnits>(
        &engine,
        toScriptValueEnumPlotPaperUnits,
        fromScriptValueEnumPlotPaperUnits,
        ctor.property(QString::fromLatin1("prototype"))
    );

    qScriptRegisterMetaType<RLayout::PlotRotation>(
        &engine,
        toScriptValueEnumPlotRotation,
        fromScriptValueEnumPlotRotation,
        ctor.property(QString::fromLatin1("prototype"))
    );

    qScriptRegisterMetaType<RLayout::PlotType>(
        &engine,
        toScriptValueEnumPlotType,
        fromScriptValueEnumPlotType,
        ctor.property(QString::fromLatin1("prototype"))
    );

    qScriptRegisterMetaType<RLayout::StandardScaleType>(
        &engine,
        toScriptValueEnumStandardScaleType,
        fromScriptValueEnumStandardScaleType,
        ctor.property(QString::fromLatin1("prototype"))
    );

        
    // init class:
    engine.globalObject().setProperty("RLayoutPointer",
    ctor, QScriptValue::SkipInEnumeration);
    
    if( protoCreated ){
       delete proto;
    }
    
    }
     QScriptValue REcmaSharedPointerLayout::createEcma(QScriptContext* context, QScriptEngine* engine) 
    
    {
    if (context->thisObject().strictlyEquals(
       engine->globalObject())) {
       return REcmaHelper::throwError(
       QString::fromLatin1("RLayout(): Did you forget to construct with 'new'?"),
           context);
    }

    QScriptValue result;
        
            // generate constructor variants:
            
    if( context->argumentCount() ==
        0
    ){
    // prepare arguments:
    
    // end of arguments

    // call C++ constructor:
    
            // non-copyable class:
            RLayout
                    * cppResult =
                    new
                    RLayout
                    ();
                
                    // TODO: triggers: Warning: QScriptEngine::newVariant(): changing class of non-QScriptObject not supported:
                    result = engine->newVariant(context->thisObject(), qVariantFromValue(cppResult));
                
    } else 

    if( context->argumentCount() ==
        2
                && (
                
                        context->argument(
                        0
                        ).isVariant()
                        ||
                    
                        context->argument(
                        0
                        ).isQObject()
                        ||
                    
                        context->argument(
                        0
                        ).isNull()
                ) /* type: RDocument * */
            
                && (
                
                        context->argument(
                        1
                        ).isString()
                ) /* type: QString */
            
    ){
    // prepare arguments:
    
                    // argument is pointer
                    RDocument * a0 = NULL;

                    a0 = 
                        REcmaHelper::scriptValueTo<RDocument >(
                            context->argument(0)
                        );
                    
                    if (a0==NULL && 
                        !context->argument(0).isNull()) {
                        return REcmaHelper::throwError("RLayout: Argument 0 is not of type RDocument *RDocument *.", context);                    
                    }
                
                    // argument isStandardType
                    QString
                    a1 =
                    (QString)
                    
                    context->argument( 1 ).
                    toString();
                
    // end of arguments

    // call C++ constructor:
    
            // non-copyable class:
            RLayout
                    * cppResult =
                    new
                    RLayout
                    (
                    a0
        ,
    a1
                    );
                
                    // TODO: triggers: Warning: QScriptEngine::newVariant(): changing class of non-QScriptObject not supported:
                    result = engine->newVariant(context->thisObject(), qVariantFromValue(cppResult));
                
    } else 

    {
       return REcmaHelper::throwError(
       QString::fromLatin1("RLayout(): no matching constructor found."),
           context);
    }
    
    return result;
    }
    

    // conversion functions for base classes:
     QScriptValue REcmaSharedPointerLayout::getRObject(QScriptContext *context,
            QScriptEngine *engine)
        
            {
                RObject* cppResult =
                    qscriptvalue_cast<RLayout*> (context->thisObject());
                QScriptValue result = qScriptValueFromValue(engine, cppResult);
                return result;
            }
            

    // returns class name:
     QScriptValue REcmaSharedPointerLayout::getClassName(QScriptContext *context, QScriptEngine *engine) 
        
    {
        return qScriptValueFromValue(engine, QString("RLayout"));
    }
    

    // returns all base classes (in case of multiple inheritance):
     QScriptValue REcmaSharedPointerLayout::getBaseClasses(QScriptContext *context, QScriptEngine *engine) 
        
    {
        QStringList list;
        
        list.append("RObject");
    

        return qScriptValueFromSequence(engine, list);
    }
    

    // properties:
    

    // public methods:
     QScriptValue
        REcmaSharedPointerLayout::init
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::init", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::init";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
    
    if( context->argumentCount() ==
    0
    ){
    // prepare arguments:
    
    // end of arguments

    // call C++ function:
    // return type 'void'
    RLayout::
       init();
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.init().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::init", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::getType
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::getType", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::getType";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("getType", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    0
    ){
    // prepare arguments:
    
    // end of arguments

    // call C++ function:
    // return type 'RS::EntityType'
    RS::EntityType cppResult =
        
               self->getType();
        // return type: RS::EntityType
                // standard Type
                result = QScriptValue(cppResult);
            
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.getType().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::getType", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::clone
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::clone", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::clone";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("clone", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    0
    ){
    // prepare arguments:
    
    // end of arguments

    // call C++ function:
    // return type 'RLayout *'
    RLayout * cppResult =
        
               self->clone();
        // return type: RLayout *
                // not standard type nor reference
                result = qScriptValueFromValue(engine, cppResult);
            
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.clone().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::clone", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::getName
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::getName", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::getName";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("getName", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    0
    ){
    // prepare arguments:
    
    // end of arguments

    // call C++ function:
    // return type 'QString'
    QString cppResult =
        
               self->getName();
        // return type: QString
                // standard Type
                result = QScriptValue(cppResult);
            
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.getName().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::getName", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::setName
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::setName", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::setName";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("setName", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    1 && (
            context->argument(0).isString()
        ) /* type: QString */
    
    ){
    // prepare arguments:
    
                    // argument isStandardType
                    QString
                    a0 =
                    (QString)
                    
                    context->argument( 0 ).
                    toString();
                
    // end of arguments

    // call C++ function:
    // return type 'void'
    
               self->setName(a0);
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.setName().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::setName", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::getTabOrder
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::getTabOrder", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::getTabOrder";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("getTabOrder", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    0
    ){
    // prepare arguments:
    
    // end of arguments

    // call C++ function:
    // return type 'int'
    int cppResult =
        
               self->getTabOrder();
        // return type: int
                // standard Type
                result = QScriptValue(cppResult);
            
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.getTabOrder().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::getTabOrder", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::setTabOrder
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::setTabOrder", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::setTabOrder";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("setTabOrder", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    1 && (
            context->argument(0).isNumber()
        ) /* type: int */
    
    ){
    // prepare arguments:
    
                    // argument isStandardType
                    int
                    a0 =
                    (int)
                    
                    context->argument( 0 ).
                    toNumber();
                
    // end of arguments

    // call C++ function:
    // return type 'void'
    
               self->setTabOrder(a0);
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.setTabOrder().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::setTabOrder", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::setMinLimits
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::setMinLimits", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::setMinLimits";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("setMinLimits", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    1 && (
            context->argument(0).isVariant() || 
            context->argument(0).isQObject() || 
            context->argument(0).isNull()
        ) /* type: RVector */
    
    ){
    // prepare arguments:
    
                    // argument isCopyable and has default constructor and isSimpleClass 
                    RVector*
                    ap0 =
                    qscriptvalue_cast<
                    RVector*
                        >(
                        context->argument(
                        0
                        )
                    );
                    if (ap0 == NULL) {
                           return REcmaHelper::throwError("RLayout: Argument 0 is not of type RVector.",
                               context);                    
                    }
                    RVector 
                    a0 = 
                    *ap0;
                
    // end of arguments

    // call C++ function:
    // return type 'void'
    
               self->setMinLimits(a0);
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.setMinLimits().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::setMinLimits", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::getMinLimits
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::getMinLimits", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::getMinLimits";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("getMinLimits", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    0
    ){
    // prepare arguments:
    
    // end of arguments

    // call C++ function:
    // return type 'RVector'
    RVector cppResult =
        
               self->getMinLimits();
        // return type: RVector
                // not standard type nor reference
                result = qScriptValueFromValue(engine, cppResult);
            
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.getMinLimits().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::getMinLimits", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::setMaxLimits
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::setMaxLimits", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::setMaxLimits";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("setMaxLimits", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    1 && (
            context->argument(0).isVariant() || 
            context->argument(0).isQObject() || 
            context->argument(0).isNull()
        ) /* type: RVector */
    
    ){
    // prepare arguments:
    
                    // argument isCopyable and has default constructor and isSimpleClass 
                    RVector*
                    ap0 =
                    qscriptvalue_cast<
                    RVector*
                        >(
                        context->argument(
                        0
                        )
                    );
                    if (ap0 == NULL) {
                           return REcmaHelper::throwError("RLayout: Argument 0 is not of type RVector.",
                               context);                    
                    }
                    RVector 
                    a0 = 
                    *ap0;
                
    // end of arguments

    // call C++ function:
    // return type 'void'
    
               self->setMaxLimits(a0);
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.setMaxLimits().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::setMaxLimits", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::getMaxLimits
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::getMaxLimits", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::getMaxLimits";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("getMaxLimits", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    0
    ){
    // prepare arguments:
    
    // end of arguments

    // call C++ function:
    // return type 'RVector'
    RVector cppResult =
        
               self->getMaxLimits();
        // return type: RVector
                // not standard type nor reference
                result = qScriptValueFromValue(engine, cppResult);
            
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.getMaxLimits().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::getMaxLimits", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::setInsertionBase
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::setInsertionBase", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::setInsertionBase";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("setInsertionBase", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    1 && (
            context->argument(0).isVariant() || 
            context->argument(0).isQObject() || 
            context->argument(0).isNull()
        ) /* type: RVector */
    
    ){
    // prepare arguments:
    
                    // argument isCopyable and has default constructor and isSimpleClass 
                    RVector*
                    ap0 =
                    qscriptvalue_cast<
                    RVector*
                        >(
                        context->argument(
                        0
                        )
                    );
                    if (ap0 == NULL) {
                           return REcmaHelper::throwError("RLayout: Argument 0 is not of type RVector.",
                               context);                    
                    }
                    RVector 
                    a0 = 
                    *ap0;
                
    // end of arguments

    // call C++ function:
    // return type 'void'
    
               self->setInsertionBase(a0);
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.setInsertionBase().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::setInsertionBase", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::getInsertionBase
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::getInsertionBase", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::getInsertionBase";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("getInsertionBase", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    0
    ){
    // prepare arguments:
    
    // end of arguments

    // call C++ function:
    // return type 'RVector'
    RVector cppResult =
        
               self->getInsertionBase();
        // return type: RVector
                // not standard type nor reference
                result = qScriptValueFromValue(engine, cppResult);
            
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.getInsertionBase().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::getInsertionBase", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::setMinExtents
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::setMinExtents", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::setMinExtents";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("setMinExtents", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    1 && (
            context->argument(0).isVariant() || 
            context->argument(0).isQObject() || 
            context->argument(0).isNull()
        ) /* type: RVector */
    
    ){
    // prepare arguments:
    
                    // argument isCopyable and has default constructor and isSimpleClass 
                    RVector*
                    ap0 =
                    qscriptvalue_cast<
                    RVector*
                        >(
                        context->argument(
                        0
                        )
                    );
                    if (ap0 == NULL) {
                           return REcmaHelper::throwError("RLayout: Argument 0 is not of type RVector.",
                               context);                    
                    }
                    RVector 
                    a0 = 
                    *ap0;
                
    // end of arguments

    // call C++ function:
    // return type 'void'
    
               self->setMinExtents(a0);
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.setMinExtents().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::setMinExtents", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::getMinExtents
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::getMinExtents", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::getMinExtents";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("getMinExtents", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    0
    ){
    // prepare arguments:
    
    // end of arguments

    // call C++ function:
    // return type 'RVector'
    RVector cppResult =
        
               self->getMinExtents();
        // return type: RVector
                // not standard type nor reference
                result = qScriptValueFromValue(engine, cppResult);
            
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.getMinExtents().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::getMinExtents", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::setMaxExtents
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::setMaxExtents", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::setMaxExtents";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("setMaxExtents", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    1 && (
            context->argument(0).isVariant() || 
            context->argument(0).isQObject() || 
            context->argument(0).isNull()
        ) /* type: RVector */
    
    ){
    // prepare arguments:
    
                    // argument isCopyable and has default constructor and isSimpleClass 
                    RVector*
                    ap0 =
                    qscriptvalue_cast<
                    RVector*
                        >(
                        context->argument(
                        0
                        )
                    );
                    if (ap0 == NULL) {
                           return REcmaHelper::throwError("RLayout: Argument 0 is not of type RVector.",
                               context);                    
                    }
                    RVector 
                    a0 = 
                    *ap0;
                
    // end of arguments

    // call C++ function:
    // return type 'void'
    
               self->setMaxExtents(a0);
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.setMaxExtents().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::setMaxExtents", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::getMaxExtents
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::getMaxExtents", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::getMaxExtents";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("getMaxExtents", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    0
    ){
    // prepare arguments:
    
    // end of arguments

    // call C++ function:
    // return type 'RVector'
    RVector cppResult =
        
               self->getMaxExtents();
        // return type: RVector
                // not standard type nor reference
                result = qScriptValueFromValue(engine, cppResult);
            
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.getMaxExtents().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::getMaxExtents", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::setPlotPaperMarginLeftMM
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::setPlotPaperMarginLeftMM", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::setPlotPaperMarginLeftMM";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("setPlotPaperMarginLeftMM", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    1 && (
            context->argument(0).isNumber()
        ) /* type: double */
    
    ){
    // prepare arguments:
    
                    // argument isStandardType
                    double
                    a0 =
                    (double)
                    
                    context->argument( 0 ).
                    toNumber();
                
    // end of arguments

    // call C++ function:
    // return type 'void'
    
               self->setPlotPaperMarginLeftMM(a0);
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.setPlotPaperMarginLeftMM().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::setPlotPaperMarginLeftMM", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::setPlotPaperMarginBottomMM
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::setPlotPaperMarginBottomMM", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::setPlotPaperMarginBottomMM";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("setPlotPaperMarginBottomMM", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    1 && (
            context->argument(0).isNumber()
        ) /* type: double */
    
    ){
    // prepare arguments:
    
                    // argument isStandardType
                    double
                    a0 =
                    (double)
                    
                    context->argument( 0 ).
                    toNumber();
                
    // end of arguments

    // call C++ function:
    // return type 'void'
    
               self->setPlotPaperMarginBottomMM(a0);
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.setPlotPaperMarginBottomMM().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::setPlotPaperMarginBottomMM", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::setPlotPaperMarginRightMM
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::setPlotPaperMarginRightMM", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::setPlotPaperMarginRightMM";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("setPlotPaperMarginRightMM", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    1 && (
            context->argument(0).isNumber()
        ) /* type: double */
    
    ){
    // prepare arguments:
    
                    // argument isStandardType
                    double
                    a0 =
                    (double)
                    
                    context->argument( 0 ).
                    toNumber();
                
    // end of arguments

    // call C++ function:
    // return type 'void'
    
               self->setPlotPaperMarginRightMM(a0);
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.setPlotPaperMarginRightMM().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::setPlotPaperMarginRightMM", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::setPlotPaperMarginTopMM
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::setPlotPaperMarginTopMM", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::setPlotPaperMarginTopMM";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("setPlotPaperMarginTopMM", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    1 && (
            context->argument(0).isNumber()
        ) /* type: double */
    
    ){
    // prepare arguments:
    
                    // argument isStandardType
                    double
                    a0 =
                    (double)
                    
                    context->argument( 0 ).
                    toNumber();
                
    // end of arguments

    // call C++ function:
    // return type 'void'
    
               self->setPlotPaperMarginTopMM(a0);
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.setPlotPaperMarginTopMM().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::setPlotPaperMarginTopMM", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::setPlotPaperSize
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::setPlotPaperSize", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::setPlotPaperSize";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("setPlotPaperSize", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    1 && (
            context->argument(0).isVariant() || 
            context->argument(0).isQObject() || 
            context->argument(0).isNull()
        ) /* type: RVector */
    
    ){
    // prepare arguments:
    
                    // argument isCopyable and has default constructor and isSimpleClass 
                    RVector*
                    ap0 =
                    qscriptvalue_cast<
                    RVector*
                        >(
                        context->argument(
                        0
                        )
                    );
                    if (ap0 == NULL) {
                           return REcmaHelper::throwError("RLayout: Argument 0 is not of type RVector.",
                               context);                    
                    }
                    RVector 
                    a0 = 
                    *ap0;
                
    // end of arguments

    // call C++ function:
    // return type 'void'
    
               self->setPlotPaperSize(a0);
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.setPlotPaperSize().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::setPlotPaperSize", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::setPlotOrigin
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::setPlotOrigin", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::setPlotOrigin";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("setPlotOrigin", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    1 && (
            context->argument(0).isVariant() || 
            context->argument(0).isQObject() || 
            context->argument(0).isNull()
        ) /* type: RVector */
    
    ){
    // prepare arguments:
    
                    // argument isCopyable and has default constructor and isSimpleClass 
                    RVector*
                    ap0 =
                    qscriptvalue_cast<
                    RVector*
                        >(
                        context->argument(
                        0
                        )
                    );
                    if (ap0 == NULL) {
                           return REcmaHelper::throwError("RLayout: Argument 0 is not of type RVector.",
                               context);                    
                    }
                    RVector 
                    a0 = 
                    *ap0;
                
    // end of arguments

    // call C++ function:
    // return type 'void'
    
               self->setPlotOrigin(a0);
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.setPlotOrigin().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::setPlotOrigin", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::setPlotWindowAreaMin
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::setPlotWindowAreaMin", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::setPlotWindowAreaMin";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("setPlotWindowAreaMin", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    1 && (
            context->argument(0).isVariant() || 
            context->argument(0).isQObject() || 
            context->argument(0).isNull()
        ) /* type: RVector */
    
    ){
    // prepare arguments:
    
                    // argument isCopyable and has default constructor and isSimpleClass 
                    RVector*
                    ap0 =
                    qscriptvalue_cast<
                    RVector*
                        >(
                        context->argument(
                        0
                        )
                    );
                    if (ap0 == NULL) {
                           return REcmaHelper::throwError("RLayout: Argument 0 is not of type RVector.",
                               context);                    
                    }
                    RVector 
                    a0 = 
                    *ap0;
                
    // end of arguments

    // call C++ function:
    // return type 'void'
    
               self->setPlotWindowAreaMin(a0);
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.setPlotWindowAreaMin().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::setPlotWindowAreaMin", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::setPlotWindowAreaMax
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::setPlotWindowAreaMax", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::setPlotWindowAreaMax";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("setPlotWindowAreaMax", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    1 && (
            context->argument(0).isVariant() || 
            context->argument(0).isQObject() || 
            context->argument(0).isNull()
        ) /* type: RVector */
    
    ){
    // prepare arguments:
    
                    // argument isCopyable and has default constructor and isSimpleClass 
                    RVector*
                    ap0 =
                    qscriptvalue_cast<
                    RVector*
                        >(
                        context->argument(
                        0
                        )
                    );
                    if (ap0 == NULL) {
                           return REcmaHelper::throwError("RLayout: Argument 0 is not of type RVector.",
                               context);                    
                    }
                    RVector 
                    a0 = 
                    *ap0;
                
    // end of arguments

    // call C++ function:
    // return type 'void'
    
               self->setPlotWindowAreaMax(a0);
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.setPlotWindowAreaMax().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::setPlotWindowAreaMax", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::setNumeratorCustomScale
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::setNumeratorCustomScale", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::setNumeratorCustomScale";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("setNumeratorCustomScale", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    1 && (
            context->argument(0).isNumber()
        ) /* type: double */
    
    ){
    // prepare arguments:
    
                    // argument isStandardType
                    double
                    a0 =
                    (double)
                    
                    context->argument( 0 ).
                    toNumber();
                
    // end of arguments

    // call C++ function:
    // return type 'void'
    
               self->setNumeratorCustomScale(a0);
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.setNumeratorCustomScale().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::setNumeratorCustomScale", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::setDenominatorCustomScale
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::setDenominatorCustomScale", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::setDenominatorCustomScale";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("setDenominatorCustomScale", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    1 && (
            context->argument(0).isNumber()
        ) /* type: double */
    
    ){
    // prepare arguments:
    
                    // argument isStandardType
                    double
                    a0 =
                    (double)
                    
                    context->argument( 0 ).
                    toNumber();
                
    // end of arguments

    // call C++ function:
    // return type 'void'
    
               self->setDenominatorCustomScale(a0);
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.setDenominatorCustomScale().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::setDenominatorCustomScale", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::setPlotPaperUnits
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::setPlotPaperUnits", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::setPlotPaperUnits";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("setPlotPaperUnits", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    1 && (
            context->argument(0).isVariant() || 
            context->argument(0).isQObject() || 
            context->argument(0).isNull()
        ) /* type: RLayout::PlotPaperUnits */
    
    ){
    // prepare arguments:
    
                    // argument is reference
                    RLayout::PlotPaperUnits*
                    ap0 =
                    qscriptvalue_cast<
                    RLayout::PlotPaperUnits*
                        >(
                        context->argument(
                        0
                        )
                    );
                    if( ap0 == NULL ){
                           return REcmaHelper::throwError("RLayout: Argument 0 is not of type RLayout::PlotPaperUnits*.",
                               context);                    
                    }
                    RLayout::PlotPaperUnits& a0 = *ap0;
                
    // end of arguments

    // call C++ function:
    // return type 'void'
    
               self->setPlotPaperUnits(a0);
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.setPlotPaperUnits().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::setPlotPaperUnits", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::setPlotRotation
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::setPlotRotation", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::setPlotRotation";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("setPlotRotation", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    1 && (
            context->argument(0).isVariant() || 
            context->argument(0).isQObject() || 
            context->argument(0).isNull()
        ) /* type: RLayout::PlotRotation */
    
    ){
    // prepare arguments:
    
                    // argument is reference
                    RLayout::PlotRotation*
                    ap0 =
                    qscriptvalue_cast<
                    RLayout::PlotRotation*
                        >(
                        context->argument(
                        0
                        )
                    );
                    if( ap0 == NULL ){
                           return REcmaHelper::throwError("RLayout: Argument 0 is not of type RLayout::PlotRotation*.",
                               context);                    
                    }
                    RLayout::PlotRotation& a0 = *ap0;
                
    // end of arguments

    // call C++ function:
    // return type 'void'
    
               self->setPlotRotation(a0);
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.setPlotRotation().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::setPlotRotation", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::setPlotType
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::setPlotType", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::setPlotType";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("setPlotType", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    1 && (
            context->argument(0).isVariant() || 
            context->argument(0).isQObject() || 
            context->argument(0).isNull()
        ) /* type: RLayout::PlotType */
    
    ){
    // prepare arguments:
    
                    // argument is reference
                    RLayout::PlotType*
                    ap0 =
                    qscriptvalue_cast<
                    RLayout::PlotType*
                        >(
                        context->argument(
                        0
                        )
                    );
                    if( ap0 == NULL ){
                           return REcmaHelper::throwError("RLayout: Argument 0 is not of type RLayout::PlotType*.",
                               context);                    
                    }
                    RLayout::PlotType& a0 = *ap0;
                
    // end of arguments

    // call C++ function:
    // return type 'void'
    
               self->setPlotType(a0);
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.setPlotType().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::setPlotType", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::setUseStandardScale
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::setUseStandardScale", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::setUseStandardScale";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("setUseStandardScale", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    1 && (
            context->argument(0).isBool()
        ) /* type: bool */
    
    ){
    // prepare arguments:
    
                    // argument isStandardType
                    bool
                    a0 =
                    (bool)
                    
                    context->argument( 0 ).
                    toBool();
                
    // end of arguments

    // call C++ function:
    // return type 'void'
    
               self->setUseStandardScale(a0);
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.setUseStandardScale().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::setUseStandardScale", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::setStandardScale
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::setStandardScale", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::setStandardScale";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("setStandardScale", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    1 && (
            context->argument(0).isNumber()
        ) /* type: double */
    
    ){
    // prepare arguments:
    
                    // argument isStandardType
                    double
                    a0 =
                    (double)
                    
                    context->argument( 0 ).
                    toNumber();
                
    // end of arguments

    // call C++ function:
    // return type 'void'
    
               self->setStandardScale(a0);
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.setStandardScale().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::setStandardScale", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::setStandardScaleType
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::setStandardScaleType", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::setStandardScaleType";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("setStandardScaleType", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    1 && (
            context->argument(0).isVariant() || 
            context->argument(0).isQObject() || 
            context->argument(0).isNull()
        ) /* type: RLayout::StandardScaleType */
    
    ){
    // prepare arguments:
    
                    // argument is reference
                    RLayout::StandardScaleType*
                    ap0 =
                    qscriptvalue_cast<
                    RLayout::StandardScaleType*
                        >(
                        context->argument(
                        0
                        )
                    );
                    if( ap0 == NULL ){
                           return REcmaHelper::throwError("RLayout: Argument 0 is not of type RLayout::StandardScaleType*.",
                               context);                    
                    }
                    RLayout::StandardScaleType& a0 = *ap0;
                
    // end of arguments

    // call C++ function:
    // return type 'void'
    
               self->setStandardScaleType(a0);
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.setStandardScaleType().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::setStandardScaleType", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::setCanonicalMediaName
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::setCanonicalMediaName", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::setCanonicalMediaName";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("setCanonicalMediaName", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    1 && (
            context->argument(0).isString()
        ) /* type: QString */
    
    ){
    // prepare arguments:
    
                    // argument isStandardType
                    QString
                    a0 =
                    (QString)
                    
                    context->argument( 0 ).
                    toString();
                
    // end of arguments

    // call C++ function:
    // return type 'void'
    
               self->setCanonicalMediaName(a0);
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.setCanonicalMediaName().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::setCanonicalMediaName", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::getPlotPaperMarginLeftMM
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::getPlotPaperMarginLeftMM", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::getPlotPaperMarginLeftMM";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("getPlotPaperMarginLeftMM", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    0
    ){
    // prepare arguments:
    
    // end of arguments

    // call C++ function:
    // return type 'double'
    double cppResult =
        
               self->getPlotPaperMarginLeftMM();
        // return type: double
                // standard Type
                result = QScriptValue(cppResult);
            
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.getPlotPaperMarginLeftMM().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::getPlotPaperMarginLeftMM", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::getPlotPaperMarginBottomMM
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::getPlotPaperMarginBottomMM", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::getPlotPaperMarginBottomMM";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("getPlotPaperMarginBottomMM", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    0
    ){
    // prepare arguments:
    
    // end of arguments

    // call C++ function:
    // return type 'double'
    double cppResult =
        
               self->getPlotPaperMarginBottomMM();
        // return type: double
                // standard Type
                result = QScriptValue(cppResult);
            
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.getPlotPaperMarginBottomMM().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::getPlotPaperMarginBottomMM", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::getPlotPaperMarginRightMM
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::getPlotPaperMarginRightMM", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::getPlotPaperMarginRightMM";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("getPlotPaperMarginRightMM", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    0
    ){
    // prepare arguments:
    
    // end of arguments

    // call C++ function:
    // return type 'double'
    double cppResult =
        
               self->getPlotPaperMarginRightMM();
        // return type: double
                // standard Type
                result = QScriptValue(cppResult);
            
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.getPlotPaperMarginRightMM().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::getPlotPaperMarginRightMM", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::getPlotPaperMarginTopMM
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::getPlotPaperMarginTopMM", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::getPlotPaperMarginTopMM";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("getPlotPaperMarginTopMM", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    0
    ){
    // prepare arguments:
    
    // end of arguments

    // call C++ function:
    // return type 'double'
    double cppResult =
        
               self->getPlotPaperMarginTopMM();
        // return type: double
                // standard Type
                result = QScriptValue(cppResult);
            
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.getPlotPaperMarginTopMM().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::getPlotPaperMarginTopMM", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::getPlotPaperSize
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::getPlotPaperSize", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::getPlotPaperSize";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("getPlotPaperSize", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    0
    ){
    // prepare arguments:
    
    // end of arguments

    // call C++ function:
    // return type 'RVector'
    RVector cppResult =
        
               self->getPlotPaperSize();
        // return type: RVector
                // not standard type nor reference
                result = qScriptValueFromValue(engine, cppResult);
            
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.getPlotPaperSize().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::getPlotPaperSize", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::getPlotOrigin
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::getPlotOrigin", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::getPlotOrigin";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("getPlotOrigin", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    0
    ){
    // prepare arguments:
    
    // end of arguments

    // call C++ function:
    // return type 'RVector'
    RVector cppResult =
        
               self->getPlotOrigin();
        // return type: RVector
                // not standard type nor reference
                result = qScriptValueFromValue(engine, cppResult);
            
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.getPlotOrigin().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::getPlotOrigin", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::getPlotWindowAreaMin
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::getPlotWindowAreaMin", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::getPlotWindowAreaMin";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("getPlotWindowAreaMin", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    0
    ){
    // prepare arguments:
    
    // end of arguments

    // call C++ function:
    // return type 'RVector'
    RVector cppResult =
        
               self->getPlotWindowAreaMin();
        // return type: RVector
                // not standard type nor reference
                result = qScriptValueFromValue(engine, cppResult);
            
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.getPlotWindowAreaMin().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::getPlotWindowAreaMin", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::getPlotWindowAreaMax
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::getPlotWindowAreaMax", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::getPlotWindowAreaMax";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("getPlotWindowAreaMax", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    0
    ){
    // prepare arguments:
    
    // end of arguments

    // call C++ function:
    // return type 'RVector'
    RVector cppResult =
        
               self->getPlotWindowAreaMax();
        // return type: RVector
                // not standard type nor reference
                result = qScriptValueFromValue(engine, cppResult);
            
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.getPlotWindowAreaMax().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::getPlotWindowAreaMax", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::getNumeratorCustomScale
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::getNumeratorCustomScale", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::getNumeratorCustomScale";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("getNumeratorCustomScale", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    0
    ){
    // prepare arguments:
    
    // end of arguments

    // call C++ function:
    // return type 'double'
    double cppResult =
        
               self->getNumeratorCustomScale();
        // return type: double
                // standard Type
                result = QScriptValue(cppResult);
            
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.getNumeratorCustomScale().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::getNumeratorCustomScale", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::getDenominatorCustomScale
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::getDenominatorCustomScale", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::getDenominatorCustomScale";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("getDenominatorCustomScale", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    0
    ){
    // prepare arguments:
    
    // end of arguments

    // call C++ function:
    // return type 'double'
    double cppResult =
        
               self->getDenominatorCustomScale();
        // return type: double
                // standard Type
                result = QScriptValue(cppResult);
            
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.getDenominatorCustomScale().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::getDenominatorCustomScale", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::getPlotPaperUnits
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::getPlotPaperUnits", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::getPlotPaperUnits";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("getPlotPaperUnits", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    0
    ){
    // prepare arguments:
    
    // end of arguments

    // call C++ function:
    // return type 'RLayout::PlotPaperUnits'
    RLayout::PlotPaperUnits cppResult =
        
               self->getPlotPaperUnits();
        // return type: RLayout::PlotPaperUnits
                // not standard type nor reference
                result = qScriptValueFromValue(engine, cppResult);
            
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.getPlotPaperUnits().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::getPlotPaperUnits", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::getPlotRotation
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::getPlotRotation", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::getPlotRotation";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("getPlotRotation", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    0
    ){
    // prepare arguments:
    
    // end of arguments

    // call C++ function:
    // return type 'RLayout::PlotRotation'
    RLayout::PlotRotation cppResult =
        
               self->getPlotRotation();
        // return type: RLayout::PlotRotation
                // not standard type nor reference
                result = qScriptValueFromValue(engine, cppResult);
            
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.getPlotRotation().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::getPlotRotation", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::getPlotType
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::getPlotType", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::getPlotType";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("getPlotType", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    0
    ){
    // prepare arguments:
    
    // end of arguments

    // call C++ function:
    // return type 'RLayout::PlotType'
    RLayout::PlotType cppResult =
        
               self->getPlotType();
        // return type: RLayout::PlotType
                // not standard type nor reference
                result = qScriptValueFromValue(engine, cppResult);
            
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.getPlotType().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::getPlotType", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::getUseStandardScale
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::getUseStandardScale", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::getUseStandardScale";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("getUseStandardScale", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    0
    ){
    // prepare arguments:
    
    // end of arguments

    // call C++ function:
    // return type 'bool'
    bool cppResult =
        
               self->getUseStandardScale();
        // return type: bool
                // standard Type
                result = QScriptValue(cppResult);
            
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.getUseStandardScale().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::getUseStandardScale", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::getStandardScale
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::getStandardScale", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::getStandardScale";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("getStandardScale", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    0
    ){
    // prepare arguments:
    
    // end of arguments

    // call C++ function:
    // return type 'double'
    double cppResult =
        
               self->getStandardScale();
        // return type: double
                // standard Type
                result = QScriptValue(cppResult);
            
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.getStandardScale().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::getStandardScale", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::getStandardScaleType
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::getStandardScaleType", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::getStandardScaleType";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("getStandardScaleType", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    0
    ){
    // prepare arguments:
    
    // end of arguments

    // call C++ function:
    // return type 'RLayout::StandardScaleType'
    RLayout::StandardScaleType cppResult =
        
               self->getStandardScaleType();
        // return type: RLayout::StandardScaleType
                // not standard type nor reference
                result = qScriptValueFromValue(engine, cppResult);
            
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.getStandardScaleType().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::getStandardScaleType", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::getCanonicalMediaName
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::getCanonicalMediaName", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::getCanonicalMediaName";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("getCanonicalMediaName", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    0
    ){
    // prepare arguments:
    
    // end of arguments

    // call C++ function:
    // return type 'QString'
    QString cppResult =
        
               self->getCanonicalMediaName();
        // return type: QString
                // standard Type
                result = QScriptValue(cppResult);
            
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.getCanonicalMediaName().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::getCanonicalMediaName", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::getProperty
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::getProperty", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::getProperty";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("getProperty", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    1 && (
            context->argument(0).isVariant() || 
            context->argument(0).isQObject() || 
            context->argument(0).isNull()
        ) /* type: RPropertyTypeId */
    
    ){
    // prepare arguments:
    
                    // argument isCopyable and has default constructor and isSimpleClass 
                    RPropertyTypeId*
                    ap0 =
                    qscriptvalue_cast<
                    RPropertyTypeId*
                        >(
                        context->argument(
                        0
                        )
                    );
                    if (ap0 == NULL) {
                           return REcmaHelper::throwError("RLayout: Argument 0 is not of type RPropertyTypeId.",
                               context);                    
                    }
                    RPropertyTypeId 
                    a0 = 
                    *ap0;
                
    // end of arguments

    // call C++ function:
    // return type 'QPair < QVariant , RPropertyAttributes >'
    QPair < QVariant , RPropertyAttributes > cppResult =
        
               self->getProperty(a0);
        // return type: QPair < QVariant , RPropertyAttributes >
                // Pair of ...:
                //result = REcmaHelper::pairToScriptValue(engine, cppResult);
                QVariantList vl;
                QVariant v;
                
                    // first type of pair is variant:
                    if (QString(cppResult.first.typeName())=="RLineweight::Lineweight") {
                        v.setValue((int)cppResult.first.value<RLineweight::Lineweight>());
                    }
                    else {
                        v.setValue(cppResult.first);
                    }
                  

                vl.append(v);
                v.setValue(cppResult.second);
                vl.append(v);
                result = qScriptValueFromValue(engine, vl);
            
    } else


        
    
    if( context->argumentCount() ==
    2 && (
            context->argument(0).isVariant() || 
            context->argument(0).isQObject() || 
            context->argument(0).isNull()
        ) /* type: RPropertyTypeId */
     && (
            context->argument(1).isBool()
        ) /* type: bool */
    
    ){
    // prepare arguments:
    
                    // argument isCopyable and has default constructor and isSimpleClass 
                    RPropertyTypeId*
                    ap0 =
                    qscriptvalue_cast<
                    RPropertyTypeId*
                        >(
                        context->argument(
                        0
                        )
                    );
                    if (ap0 == NULL) {
                           return REcmaHelper::throwError("RLayout: Argument 0 is not of type RPropertyTypeId.",
                               context);                    
                    }
                    RPropertyTypeId 
                    a0 = 
                    *ap0;
                
                    // argument isStandardType
                    bool
                    a1 =
                    (bool)
                    
                    context->argument( 1 ).
                    toBool();
                
    // end of arguments

    // call C++ function:
    // return type 'QPair < QVariant , RPropertyAttributes >'
    QPair < QVariant , RPropertyAttributes > cppResult =
        
               self->getProperty(a0
        ,
    a1);
        // return type: QPair < QVariant , RPropertyAttributes >
                // Pair of ...:
                //result = REcmaHelper::pairToScriptValue(engine, cppResult);
                QVariantList vl;
                QVariant v;
                
                    // first type of pair is variant:
                    if (QString(cppResult.first.typeName())=="RLineweight::Lineweight") {
                        v.setValue((int)cppResult.first.value<RLineweight::Lineweight>());
                    }
                    else {
                        v.setValue(cppResult.first);
                    }
                  

                vl.append(v);
                v.setValue(cppResult.second);
                vl.append(v);
                result = qScriptValueFromValue(engine, vl);
            
    } else


        
    
    if( context->argumentCount() ==
    3 && (
            context->argument(0).isVariant() || 
            context->argument(0).isQObject() || 
            context->argument(0).isNull()
        ) /* type: RPropertyTypeId */
     && (
            context->argument(1).isBool()
        ) /* type: bool */
     && (
            context->argument(2).isBool()
        ) /* type: bool */
    
    ){
    // prepare arguments:
    
                    // argument isCopyable and has default constructor and isSimpleClass 
                    RPropertyTypeId*
                    ap0 =
                    qscriptvalue_cast<
                    RPropertyTypeId*
                        >(
                        context->argument(
                        0
                        )
                    );
                    if (ap0 == NULL) {
                           return REcmaHelper::throwError("RLayout: Argument 0 is not of type RPropertyTypeId.",
                               context);                    
                    }
                    RPropertyTypeId 
                    a0 = 
                    *ap0;
                
                    // argument isStandardType
                    bool
                    a1 =
                    (bool)
                    
                    context->argument( 1 ).
                    toBool();
                
                    // argument isStandardType
                    bool
                    a2 =
                    (bool)
                    
                    context->argument( 2 ).
                    toBool();
                
    // end of arguments

    // call C++ function:
    // return type 'QPair < QVariant , RPropertyAttributes >'
    QPair < QVariant , RPropertyAttributes > cppResult =
        
               self->getProperty(a0
        ,
    a1
        ,
    a2);
        // return type: QPair < QVariant , RPropertyAttributes >
                // Pair of ...:
                //result = REcmaHelper::pairToScriptValue(engine, cppResult);
                QVariantList vl;
                QVariant v;
                
                    // first type of pair is variant:
                    if (QString(cppResult.first.typeName())=="RLineweight::Lineweight") {
                        v.setValue((int)cppResult.first.value<RLineweight::Lineweight>());
                    }
                    else {
                        v.setValue(cppResult.first);
                    }
                  

                vl.append(v);
                v.setValue(cppResult.second);
                vl.append(v);
                result = qScriptValueFromValue(engine, vl);
            
    } else


        
    
    if( context->argumentCount() ==
    4 && (
            context->argument(0).isVariant() || 
            context->argument(0).isQObject() || 
            context->argument(0).isNull()
        ) /* type: RPropertyTypeId */
     && (
            context->argument(1).isBool()
        ) /* type: bool */
     && (
            context->argument(2).isBool()
        ) /* type: bool */
     && (
            context->argument(3).isBool()
        ) /* type: bool */
    
    ){
    // prepare arguments:
    
                    // argument isCopyable and has default constructor and isSimpleClass 
                    RPropertyTypeId*
                    ap0 =
                    qscriptvalue_cast<
                    RPropertyTypeId*
                        >(
                        context->argument(
                        0
                        )
                    );
                    if (ap0 == NULL) {
                           return REcmaHelper::throwError("RLayout: Argument 0 is not of type RPropertyTypeId.",
                               context);                    
                    }
                    RPropertyTypeId 
                    a0 = 
                    *ap0;
                
                    // argument isStandardType
                    bool
                    a1 =
                    (bool)
                    
                    context->argument( 1 ).
                    toBool();
                
                    // argument isStandardType
                    bool
                    a2 =
                    (bool)
                    
                    context->argument( 2 ).
                    toBool();
                
                    // argument isStandardType
                    bool
                    a3 =
                    (bool)
                    
                    context->argument( 3 ).
                    toBool();
                
    // end of arguments

    // call C++ function:
    // return type 'QPair < QVariant , RPropertyAttributes >'
    QPair < QVariant , RPropertyAttributes > cppResult =
        
               self->getProperty(a0
        ,
    a1
        ,
    a2
        ,
    a3);
        // return type: QPair < QVariant , RPropertyAttributes >
                // Pair of ...:
                //result = REcmaHelper::pairToScriptValue(engine, cppResult);
                QVariantList vl;
                QVariant v;
                
                    // first type of pair is variant:
                    if (QString(cppResult.first.typeName())=="RLineweight::Lineweight") {
                        v.setValue((int)cppResult.first.value<RLineweight::Lineweight>());
                    }
                    else {
                        v.setValue(cppResult.first);
                    }
                  

                vl.append(v);
                v.setValue(cppResult.second);
                vl.append(v);
                result = qScriptValueFromValue(engine, vl);
            
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.getProperty().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::getProperty", context, engine);
            return result;
        }
         QScriptValue
        REcmaSharedPointerLayout::setProperty
        (QScriptContext* context, QScriptEngine* engine) 
        
        {
            //REcmaHelper::functionStart("REcmaSharedPointerLayout::setProperty", context, engine);
            //qDebug() << "ECMAScript WRAPPER: REcmaSharedPointerLayout::setProperty";
            //QCoreApplication::processEvents();

            QScriptValue result = engine->undefinedValue();
            
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    RLayout* self = 
                        getSelf("setProperty", context);
                  

                //Q_ASSERT(self!=NULL);
                if (self==NULL) {
                    return REcmaHelper::throwError("self is NULL", context);
                }
                
    
    if( context->argumentCount() ==
    2 && (
            context->argument(0).isVariant() || 
            context->argument(0).isQObject() || 
            context->argument(0).isNull()
        ) /* type: RPropertyTypeId */
     && (
            context->argument(1).isVariant() || 
            context->argument(1).isQObject() || 
            context->argument(1).isNumber() || 
            context->argument(1).isString() || 
            context->argument(1).isBool() || 
            context->argument(1).isArray() || 
            context->argument(1).isNull() || 
            context->argument(1).isUndefined()
        ) /* type: QVariant */
    
    ){
    // prepare arguments:
    
                    // argument isCopyable and has default constructor and isSimpleClass 
                    RPropertyTypeId*
                    ap0 =
                    qscriptvalue_cast<
                    RPropertyTypeId*
                        >(
                        context->argument(
                        0
                        )
                    );
                    if (ap0 == NULL) {
                           return REcmaHelper::throwError("RLayout: Argument 0 is not of type RPropertyTypeId.",
                               context);                    
                    }
                    RPropertyTypeId 
                    a0 = 
                    *ap0;
                
                    // argument isCopyable or pointer
                    QVariant
                    a1 =
                    qscriptvalue_cast<
                    QVariant
                        >(
                        context->argument(
                        1
                        )
                    );
                
    // end of arguments

    // call C++ function:
    // return type 'bool'
    bool cppResult =
        
               self->setProperty(a0
        ,
    a1);
        // return type: bool
                // standard Type
                result = QScriptValue(cppResult);
            
    } else


        
    
    if( context->argumentCount() ==
    3 && (
            context->argument(0).isVariant() || 
            context->argument(0).isQObject() || 
            context->argument(0).isNull()
        ) /* type: RPropertyTypeId */
     && (
            context->argument(1).isVariant() || 
            context->argument(1).isQObject() || 
            context->argument(1).isNumber() || 
            context->argument(1).isString() || 
            context->argument(1).isBool() || 
            context->argument(1).isArray() || 
            context->argument(1).isNull() || 
            context->argument(1).isUndefined()
        ) /* type: QVariant */
     && (
            context->argument(2).isVariant() || 
            context->argument(2).isQObject() || 
            context->argument(2).isNull()
        ) /* type: RTransaction * */
    
    ){
    // prepare arguments:
    
                    // argument isCopyable and has default constructor and isSimpleClass 
                    RPropertyTypeId*
                    ap0 =
                    qscriptvalue_cast<
                    RPropertyTypeId*
                        >(
                        context->argument(
                        0
                        )
                    );
                    if (ap0 == NULL) {
                           return REcmaHelper::throwError("RLayout: Argument 0 is not of type RPropertyTypeId.",
                               context);                    
                    }
                    RPropertyTypeId 
                    a0 = 
                    *ap0;
                
                    // argument isCopyable or pointer
                    QVariant
                    a1 =
                    qscriptvalue_cast<
                    QVariant
                        >(
                        context->argument(
                        1
                        )
                    );
                
                    // argument is pointer
                    RTransaction * a2 = NULL;

                    a2 = 
                        REcmaHelper::scriptValueTo<RTransaction >(
                            context->argument(2)
                        );
                    
                    if (a2==NULL && 
                        !context->argument(2).isNull()) {
                        return REcmaHelper::throwError("RLayout: Argument 2 is not of type RTransaction *RTransaction *.", context);                    
                    }
                
    // end of arguments

    // call C++ function:
    // return type 'bool'
    bool cppResult =
        
               self->setProperty(a0
        ,
    a1
        ,
    a2);
        // return type: bool
                // standard Type
                result = QScriptValue(cppResult);
            
    } else


        
            {
               return REcmaHelper::throwError("Wrong number/types of arguments for RLayout.setProperty().",
                   context);
            }
            //REcmaHelper::functionEnd("REcmaSharedPointerLayout::setProperty", context, engine);
            return result;
        }
         QScriptValue REcmaSharedPointerLayout::toString
    (QScriptContext *context, QScriptEngine *engine)
    
    {

    RLayout* self = getSelf("toString", context);
    
    QString result;
    
            result = QString("RLayoutPointer(0x%1)").arg((unsigned long int)self, 0, 16);
        
    return QScriptValue(result);
    }
     QScriptValue REcmaSharedPointerLayout::destroy(QScriptContext *context, QScriptEngine *engine)
    
    {

        RLayout* self = getSelf("RLayout", context);
        //Q_ASSERT(self!=NULL);
        if (self==NULL) {
            return REcmaHelper::throwError("self is NULL", context);
        }
        
    
        delete self;
        context->thisObject().setData(engine->nullValue());
        context->thisObject().prototype().setData(engine->nullValue());
        context->thisObject().setPrototype(engine->nullValue());
        context->thisObject().setScriptClass(NULL);
        return engine->undefinedValue();
    }
    RLayout* REcmaSharedPointerLayout::getSelf(const QString& fName, QScriptContext* context)
    
        {
            RLayout* self = NULL;

            
                // self could be a normal object (e.g. from an UI file) or
                // an ECMA shell object (made from an ECMA script):
                //self = getSelfShell(fName, context);
                

            //if (self==NULL) {
                self = REcmaHelper::scriptValueTo<RLayoutPointer >(context->thisObject())
                
                    ->data()
                
                ;
            //}

            if (self == NULL){
                // avoid recursion (toString is used by the backtrace):
                if (fName!="toString") {
                    REcmaHelper::throwError(QString("RLayout.%1(): "
                        "This object is not a RLayout").arg(fName),
                        context);
                }
                return NULL;
            }

            return self;
        }
        RLayout* REcmaSharedPointerLayout::getSelfShell(const QString& fName, QScriptContext* context)
    
        {
          RLayout* selfBase = getSelf(fName, context);
                RLayout* self = dynamic_cast<RLayout*>(selfBase);
                //return REcmaHelper::scriptValueTo<RLayout >(context->thisObject());
            if(self == NULL){
                REcmaHelper::throwError(QString("RLayout.%1(): "
                    "This object is not a RLayout").arg(fName),
                    context);
            }

            return self;
            


        }
         QScriptValue REcmaSharedPointerLayout::data
    (QScriptContext *context, QScriptEngine *engine)
    
    {

    RLayout* self = getSelf("data", context);
    return qScriptValueFromValue(engine, self);
    }
     QScriptValue REcmaSharedPointerLayout::isNull
    (QScriptContext *context, QScriptEngine *engine)
    
    {

    RLayoutPointer* self = REcmaHelper::scriptValueTo<RLayoutPointer >(context->thisObject());

    //RLayout* self = getSelf("isNull", context);
    //Q_ASSERT(self!=NULL);
    if (self==NULL) {
        return REcmaHelper::throwError("self is NULL", context);
    }
    return qScriptValueFromValue(engine, self->isNull());
    }
     QScriptValue REcmaSharedPointerLayout::toScriptValueEnumPlotPaperUnits(QScriptEngine* engine, const RLayout::PlotPaperUnits& value)
    
        {
            return QScriptValue(engine, (int)value);
        }
         void REcmaSharedPointerLayout::fromScriptValueEnumPlotPaperUnits(const QScriptValue& value, RLayout::PlotPaperUnits& out)
    
        {
            out = qvariant_cast<RLayout::PlotPaperUnits>(value.toVariant());
        }
         QScriptValue REcmaSharedPointerLayout::toScriptValueEnumPlotRotation(QScriptEngine* engine, const RLayout::PlotRotation& value)
    
        {
            return QScriptValue(engine, (int)value);
        }
         void REcmaSharedPointerLayout::fromScriptValueEnumPlotRotation(const QScriptValue& value, RLayout::PlotRotation& out)
    
        {
            out = qvariant_cast<RLayout::PlotRotation>(value.toVariant());
        }
         QScriptValue REcmaSharedPointerLayout::toScriptValueEnumPlotType(QScriptEngine* engine, const RLayout::PlotType& value)
    
        {
            return QScriptValue(engine, (int)value);
        }
         void REcmaSharedPointerLayout::fromScriptValueEnumPlotType(const QScriptValue& value, RLayout::PlotType& out)
    
        {
            out = qvariant_cast<RLayout::PlotType>(value.toVariant());
        }
         QScriptValue REcmaSharedPointerLayout::toScriptValueEnumStandardScaleType(QScriptEngine* engine, const RLayout::StandardScaleType& value)
    
        {
            return QScriptValue(engine, (int)value);
        }
         void REcmaSharedPointerLayout::fromScriptValueEnumStandardScaleType(const QScriptValue& value, RLayout::StandardScaleType& out)
    
        {
            out = qvariant_cast<RLayout::StandardScaleType>(value.toVariant());
        }
        