Beispiel #1
0
def valueId(name):
    return 'wxCSS_VALUE_' + cpp.make_name(name).upper()
Beispiel #2
0
                        protected += '    bool SetCustomAnimatedValue(const wxString& name, const wxSVGAnimatedType& value);\n';
            except KeyError:
                pass
            if find_anim_dtd_attr_in_inherit(classdecl):
                methods_str = methods_str + '    bool SetAnimatedValue(const wxString& name, const wxSVGAnimatedType& value);\n';
                includes.append("SVGAnimatedType")
            elif classname == "SVGElement":
                methods_str = methods_str + '    virtual bool SetAnimatedValue(const wxString& name, const wxSVGAnimatedType& value) { return false; }\n';
                includes.append("SVGAnimatedType")

        element_string=None
        if classdecl in mapDtdIdl.elements_idl_dtd:
            element_string=mapDtdIdl.elements_idl_dtd[classdecl]
            typename = cpp.fix_typename("SVGDTD")
            dtdname = "SVG_" + element_string.upper() + "_ELEMENT"
            dtdname = cpp.fix_typename(cpp.make_name(dtdname))
            methods_str = methods_str + '    virtual %s GetDtd() const { return %s; }\n'%(typename,dtdname)
        
        try:
            fwds = interfaces.interfaces[classname].include_fwd_decls
            for toto in fwds:
                if toto not in fwd_decls:
                    fwd_decls.append(toto)
        except KeyError:
            pass
        
        if len(methods_str):
            if len(public):
                public = public + '  public:\n'
            public = public + methods_str
        
Beispiel #3
0
def propId(name):
    return 'wxCSS_PROPERTY_' + cpp.make_name(name).upper()