エクスポートHTMLのCSS変更。特記事項を青色に変更。小数点文字がコンマだったときHTMLエクスポート時に"."に置き換え。

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlToolsRED@507 7061adef-622a-194b-ae81-725974e89856
This commit is contained in:
nishikawa_takeshi 2010-05-11 05:19:07 +00:00
parent 0e3c3ee283
commit e7824a9200
6 changed files with 51 additions and 7 deletions

View File

@ -46,6 +46,20 @@ static System::Xml::XmlElement^ CreateRomInfoListElement(System::Xml::XmlDocumen
return tag; return tag;
} }
static System::Xml::XmlElement^ CreateSpecialRomInfoListElement(System::Xml::XmlDocument ^doc,
System::String ^label, System::String ^val, System::String ^type)
{
System::Xml::XmlElement ^tag = doc->CreateElement("sp-info"); // “Á•ÊÈl
tag->SetAttribute( "num", ( s_NodeCount++ ).ToString() );
MasterEditorTWL::appendXmlTag( doc, tag, "label", label );
MasterEditorTWL::appendXmlTag( doc, tag, "value", val );
if( type )
{
MasterEditorTWL::appendXmlTag( doc, tag, "type", type );
}
return tag;
}
static System::Xml::XmlElement^ CreateSDKVersionListElement(System::Xml::XmlDocument ^doc, static System::Xml::XmlElement^ CreateSDKVersionListElement(System::Xml::XmlDocument ^doc,
System::String ^version, System::Boolean isStatic) System::String ^version, System::Boolean isStatic)
{ {
@ -128,7 +142,7 @@ void Form1::makeRomInfoListXml(System::Xml::XmlDocument ^doc, System::Boolean wi
tag->AppendChild( CreateRomInfoListElement(doc, this->labHeaderCRC->Text, this->tboxHeaderCRC->Text, nullptr) ); tag->AppendChild( CreateRomInfoListElement(doc, this->labHeaderCRC->Text, this->tboxHeaderCRC->Text, nullptr) );
tag->AppendChild( CreateRomInfoListElement(doc, this->labRomCRC->Text, this->tboxWholeCRC->Text, nullptr) ); tag->AppendChild( CreateRomInfoListElement(doc, this->labRomCRC->Text, this->tboxWholeCRC->Text, nullptr) );
} }
tag->AppendChild( CreateRomInfoListElement(doc, this->labCaptionEx->Text, this->tboxCaptionEx->Text, nullptr) ); tag->AppendChild( CreateSpecialRomInfoListElement(doc, this->labCaptionEx->Text, this->tboxCaptionEx->Text, nullptr) );
section->AppendChild(tag); section->AppendChild(tag);
} }
root->AppendChild(section); root->AppendChild(section);
@ -184,8 +198,8 @@ void Form1::makeRomInfoListXml(System::Xml::XmlDocument ^doc, System::Boolean wi
tag->AppendChild( CreateRomInfoListElement(doc, this->labPrivateSize->Text, this->tboxPrivateSizeFS->Text, nullptr) ); tag->AppendChild( CreateRomInfoListElement(doc, this->labPrivateSize->Text, this->tboxPrivateSizeFS->Text, nullptr) );
tag->AppendChild( CreateRomInfoListElement(doc, this->labSubBannerSize->Text, this->tboxSubBannerSizeFS->Text, nullptr) ); tag->AppendChild( CreateRomInfoListElement(doc, this->labSubBannerSize->Text, this->tboxSubBannerSizeFS->Text, nullptr) );
tag->AppendChild( CreateRomInfoListElement(doc, this->labTmdSize->Text, this->tboxTmdSizeFS->Text, nullptr) ); tag->AppendChild( CreateRomInfoListElement(doc, this->labTmdSize->Text, this->tboxTmdSizeFS->Text, nullptr) );
tag->AppendChild( CreateRomInfoListElement(doc, this->labSumSize->Text + " " + this->labSumSize2->Text, tag->AppendChild( CreateRomInfoListElement(doc, this->labSumSize->Text + " " + this->labSumSize2->Text,
this->tboxSumSize->Text + " (" + this->tboxSumSizeMB->Text + ")", nullptr) ); this->tboxSumSize->Text + " (" + this->tboxSumSizeMB->Text->Replace( ',', '.' ) + ")", nullptr) );
} }
section->AppendChild(tag); section->AppendChild(tag);
} }

View File

@ -69,8 +69,8 @@
} }
th { th {
font-size: 12px; font-size: 12px;
background-color: #D6D3CE; background-color: #000000;
color: black; color: #dddddd;
padding-top: 2px; padding-top: 2px;
padding-bottom: 2px; padding-bottom: 2px;
} }
@ -171,6 +171,7 @@
</div> </div>
<hr /> <hr />
<xsl:apply-templates select="error-info" /> <xsl:apply-templates select="error-info" />
<hr />
<xsl:apply-templates select="warning-info" /> <xsl:apply-templates select="warning-info" />
<hr /> <hr />
<xsl:apply-templates select="error-caption-list" /> <xsl:apply-templates select="error-caption-list" />

View File

@ -70,8 +70,8 @@
} }
th { th {
font-size: 12px; font-size: 12px;
background-color: #D6D3CE; background-color: #000000;
color: black; color: #dddddd;
padding-top: 2px; padding-top: 2px;
padding-bottom: 2px; padding-bottom: 2px;
} }
@ -123,6 +123,10 @@
td.value { td.value {
width: 300px; width: 300px;
} }
td.sp-value {
width: 300px;
color: #0000FF;
}
td.type { td.type {
width: 300px; width: 300px;
} }
@ -174,13 +178,21 @@
</div> </div>
<hr /> <hr />
<xsl:apply-templates select="basic-rom-info" /> <xsl:apply-templates select="basic-rom-info" />
<hr />
<xsl:apply-templates select="twl-extended-info" /> <xsl:apply-templates select="twl-extended-info" />
<hr />
<xsl:apply-templates select="access-control-info" /> <xsl:apply-templates select="access-control-info" />
<hr />
<xsl:apply-templates select="dsi-ware-info" /> <xsl:apply-templates select="dsi-ware-info" />
<hr />
<xsl:apply-templates select="market-and-rating-info" /> <xsl:apply-templates select="market-and-rating-info" />
<hr />
<xsl:apply-templates select="sdk-version-info" /> <xsl:apply-templates select="sdk-version-info" />
<hr />
<xsl:apply-templates select="middleware-info" /> <xsl:apply-templates select="middleware-info" />
<hr />
<xsl:apply-templates select="error-info" /> <xsl:apply-templates select="error-info" />
<hr />
<xsl:apply-templates select="warning-info" /> <xsl:apply-templates select="warning-info" />
<hr /> <hr />
<div class="footer"> <div class="footer">
@ -332,6 +344,23 @@
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template match="sp-info">
<xsl:if test="(@num mod 2)=1">
<tr class="odd">
<td class="name"><xsl:value-of select="label" /></td>
<td class="sp-value"><xsl:value-of select="value" /></td>
<td class="type"><xsl:value-of select="type" /></td>
</tr>
</xsl:if>
<xsl:if test="(@num mod 2)=0">
<tr class="even">
<td class="name"><xsl:value-of select="label" /></td>
<td class="sp-value"><xsl:value-of select="value" /></td>
<td class="type"><xsl:value-of select="type" /></td>
</tr>
</xsl:if>
</xsl:template>
<!-- Make the SDK version table --> <!-- Make the SDK version table -->
<xsl:template match="sdk-version-list"> <xsl:template match="sdk-version-list">