30 "<hr><table border=0>" 36 " <td><b>" +
_(
"Keywords" ) +
"</b></td>" 37 " <td>__KEYWORDS__</td>" 42 " <td><b>" +
_(
"Documentation" ) +
"</b></td>" 43 " <td><a href=\"__HREF__\">__TEXT__</a></td>" 68 wxCHECK_RET(
m_fp_lib_table,
"Footprint library table pointer is not valid" );
80 wxLogError(
wxString::Format(
_(
"Error loading footprint %s from library %s.\n\n%s" ),
95 int idx = desc.find( wxT(
"http:" ) );
99 doc = desc.substr( (
unsigned) idx );
101 desc = desc.substr( 0, (
unsigned) idx );
102 desc = desc.Trim(
true );
104 if( !desc.IsEmpty() && desc.Last() ==
',' )
105 desc.RemoveLast( 1 );
112 keywordsHtml.Replace(
"__KEYWORDS__",
EscapeHTML( keywords ) );
115 docHtml.Replace(
"__HREF__",
EscapeHTML( doc ) );
117 if( doc.Length() > 75 )
118 doc = doc.Left( 72 ) + wxT(
"..." );
120 docHtml.Replace(
"__TEXT__",
EscapeHTML( doc ) );
122 m_html.Replace(
"__FIELDS__", keywordsHtml + docHtml );
141 return gen.GetHtml();
const UTF8 & GetLibItemName() const
A logical library item identifier and consists of various portions much like a URI.
bool IsValid() const
Check if this LID_ID is valid.
#define gen(mvar, chg_bit, get, set, add, sub, changed)
virtual const wxString What() const
A composite of Problem() and Where()
const UTF8 & GetLibNickname() const
Return the logical library name portion of a LIB_ID.
const FOOTPRINT * GetEnumeratedFootprint(const wxString &aNickname, const wxString &aFootprintName)
A version of FootprintLoad() for use after FootprintEnumerate() for more efficient cache management.
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
wxString EscapeHTML(const wxString &aString)
Return a new wxString escaped for embedding in HTML.
Hold an error message and may be used when throwing exceptions containing meaningful error messages.