Esempio n. 1
0
static int rowspan(DocHtmlCell *cell)
{
  int retval = 0;
  HtmlAttribList attrs = cell->attribs ();
  for (unsigned int i = 0; i < attrs.count(); ++i) 
  {
    if ("rowspan" == attrs.at(i)->name.lower())
    {
      retval = attrs.at(i)->value.toInt();
      break;
    }
  }
  return retval;
}
Esempio n. 2
0
static QCString align(DocHtmlCell *cell)
{
  HtmlAttribList attrs = cell->attribs();
  uint i;
  for (i=0; i<attrs.count(); ++i) 
  {
    if (attrs.at(i)->name.lower()=="align")
    {
      if (attrs.at(i)->value.lower()=="center") 
        return "\\qc ";
      else if (attrs.at(i)->value.lower()=="right") 
        return "\\qr ";
      else return "";
    }
  }
  return "";
}