VirtualBox

Changeset 4097 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Aug 9, 2007 3:16:21 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
23551
Message:

Main, Installer:

  • XIDL Schema: Renamed module/ => library, class => module/class.
  • WiX: Created XSLT to generate the TypeLib block from XIDL to avoid usage of tallow.exe.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/COMWrappers.xsl

    r4071 r4097  
    102102<xsl:text>
    103103/*
    104  * This contains Qt-based wrapper classes for [XP]COM interfaces.
     104 *  DO NOT EDIT! This is a generated file.
    105105 *
    106  * DO NOT EDIT! This is a generated file.
    107  * Generated from: src/VBox/Main/idl/VirtualBox.xidl (VirtualBox's interface definitions in XML)
    108  * Generator: src/VBox/Frontends/VirtualBox/include/COMWrappers.xsl
     106 *  Qt-based wrapper classes for VirualBox Main API (COM interfaces)
     107 *  generated from XIDL (XML interface definition).
    109108 *
    110  * Note: this header must be included from COMDefs.h, never directly.
     109 *  Source    : src/VBox/Main/idl/VirtualBox.xidl
     110 *  Generator : src/VBox/Frontends/VirtualBox/include/COMWrappers.xsl
     111 *
     112 *  Note: this header must be included from COMDefs.h, never directly.
    111113 */
    112114</xsl:text>
     
    222224 *  libraries
    223225-->
    224 <xsl:template match="module">
     226<xsl:template match="library">
    225227    <!-- forward declarations -->
    226228    <xsl:text>// forward declarations&#x0A;&#x0A;</xsl:text>
     
    315317            </xsl:for-each>
    316318        </xsl:if>
    317         <!-- for definitions outside <if> (i.e. inside <module>) -->
     319        <!-- for definitions outside <if> (i.e. inside <library>) -->
    318320        <xsl:if test="name(..)!='if'">
    319321            <xsl:for-each select="
     
    405407        </xsl:for-each>
    406408    </xsl:if>
    407     <!-- for definitions outside <if> (i.e. inside <module>) -->
     409    <!-- for definitions outside <if> (i.e. inside <library>) -->
    408410    <xsl:if test="name(..)!='if'">
    409411        <xsl:for-each select="
     
    576578 *  co-classes
    577579-->
    578 <xsl:template match="class"/>
     580<xsl:template match="module/class"/>
    579581
    580582
     
    825827         ancestor-or-self::enumerator)[1]/@supportsErrorInfo
    826828    "/>
    827     <xsl:variable name="moduleSupportsErrorInfo" select="ancestor::module/@supportsErrorInfo"/>
     829    <xsl:variable name="librarySupportsErrorInfo" select="ancestor::library/@supportsErrorInfo"/>
    828830    <xsl:choose>
    829831        <xsl:when test="$ifaceSupportsErrorInfo">
     
    833835            </xsl:call-template>
    834836        </xsl:when>
    835         <xsl:when test="$moduleSupportsErrorInfo">
     837        <xsl:when test="$librarySupportsErrorInfo">
    836838            <xsl:call-template name="composeFetchErrorInfo">
    837                 <xsl:with-param name="supports" select="string($moduleSupportsErrorInfo)"/>
     839                <xsl:with-param name="supports" select="string($librarySupportsErrorInfo)"/>
    838840                <xsl:with-param name="mode" select="$mode"/>
    839841            </xsl:call-template>
     
    916918        <!-- enum types -->
    917919        <xsl:when test="
    918             (ancestor::module/enum[@name=current()/@type]) or
    919             (ancestor::module/if[@target=$self_target]/enum[@name=current()/@type])
     920            (ancestor::library/enum[@name=current()/@type]) or
     921            (ancestor::library/if[@target=$self_target]/enum[@name=current()/@type])
    920922        ">
    921923            <xsl:choose>
     
    946948        <xsl:when test="
    947949            @type='$unknown' or
    948             ((ancestor::module/enumerator[@name=current()/@type]) or
    949              (ancestor::module/if[@target=$self_target]/enumerator[@name=current()/@type])
     950            ((ancestor::library/enumerator[@name=current()/@type]) or
     951             (ancestor::library/if[@target=$self_target]/enumerator[@name=current()/@type])
    950952            ) or
    951             ((ancestor::module/interface[@name=current()/@type]) or
    952              (ancestor::module/if[@target=$self_target]/interface[@name=current()/@type])
     953            ((ancestor::library/interface[@name=current()/@type]) or
     954             (ancestor::library/if[@target=$self_target]/interface[@name=current()/@type])
    953955            ) or
    954             ((ancestor::module/collection[@name=current()/@type]) or
    955              (ancestor::module/if[@target=$self_target]/collection[@name=current()/@type])
     956            ((ancestor::library/collection[@name=current()/@type]) or
     957             (ancestor::library/if[@target=$self_target]/collection[@name=current()/@type])
    956958            )
    957959        ">
     
    11071109                        <!-- enum types -->
    11081110                        <xsl:when test="
    1109                             (ancestor::module/enum[@name=current()]) or
    1110                             (ancestor::module/if[@target=$self_target]/enum[@name=current()])
     1111                            (ancestor::library/enum[@name=current()]) or
     1112                            (ancestor::library/if[@target=$self_target]/enum[@name=current()])
    11111113                        ">
    11121114                            <xsl:value-of select="concat('CEnums::',string(.))"/>
     
    11151117                        <xsl:when test="
    11161118                            (name(current())='enumerator' and
    1117                              ((ancestor::module/enumerator[@name=current()]) or
    1118                               (ancestor::module/if[@target=$self_target]/enumerator[@name=current()]))
     1119                             ((ancestor::library/enumerator[@name=current()]) or
     1120                              (ancestor::library/if[@target=$self_target]/enumerator[@name=current()]))
    11191121                            ) or
    1120                             ((ancestor::module/interface[@name=current()]) or
    1121                              (ancestor::module/if[@target=$self_target]/interface[@name=current()])
     1122                            ((ancestor::library/interface[@name=current()]) or
     1123                             (ancestor::library/if[@target=$self_target]/interface[@name=current()])
    11221124                            ) or
    1123                             ((ancestor::module/collection[@name=current()]) or
    1124                              (ancestor::module/if[@target=$self_target]/collection[@name=current()])
     1125                            ((ancestor::library/collection[@name=current()]) or
     1126                             (ancestor::library/if[@target=$self_target]/collection[@name=current()])
    11251127                            )
    11261128                        ">
     
    12201222                        <!-- enum types initialized with 0 -->
    12211223                        <xsl:when test="
    1222                             (ancestor::module/enum[@name=current()]) or
    1223                             (ancestor::module/if[@target=$self_target]/enum[@name=current()])
     1224                            (ancestor::library/enum[@name=current()]) or
     1225                            (ancestor::library/if[@target=$self_target]/enum[@name=current()])
    12241226                        ">
    12251227                            <xsl:value-of select="concat(' = (CEnums::',string(.),') 0')"/>
     
    12451247            .='string' or
    12461248            .='wstring' or
    1247             ((ancestor::module/enum[@name=current()]) or
    1248              (ancestor::module/if[@target=$self_target]/enum[@name=current()])
     1249            ((ancestor::library/enum[@name=current()]) or
     1250             (ancestor::library/if[@target=$self_target]/enum[@name=current()])
    12491251            ) or
    12501252            .='$unknown' or
    1251             ((ancestor::module/enumerator[@name=current()]) or
    1252              (ancestor::module/if[@target=$self_target]/enumerator[@name=current()])
     1253            ((ancestor::library/enumerator[@name=current()]) or
     1254             (ancestor::library/if[@target=$self_target]/enumerator[@name=current()])
    12531255            ) or
    1254             ((ancestor::module/interface[@name=current()]) or
    1255              (ancestor::module/if[@target=$self_target]/interface[@name=current()])
     1256            ((ancestor::library/interface[@name=current()]) or
     1257             (ancestor::library/if[@target=$self_target]/interface[@name=current()])
    12561258            ) or
    1257             ((ancestor::module/collection[@name=current()]) or
    1258              (ancestor::module/if[@target=$self_target]/collection[@name=current()])
     1259            ((ancestor::library/collection[@name=current()]) or
     1260             (ancestor::library/if[@target=$self_target]/collection[@name=current()])
    12591261            )
    12601262        ">
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette