~ubuntu-branches/ubuntu/wily/libwpd/wily-proposed

« back to all changes in this revision

Viewing changes to src/conv/html/HtmlDocumentGenerator.cpp

  • Committer: Package Import Robot
  • Author(s): Rene Engelhard
  • Date: 2013-08-20 22:00:26 UTC
  • mfrom: (1.5.5)
  • Revision ID: package-import@ubuntu.com-20130820220026-9p9khyr1llcfkypl
Tags: 0.9.9-1
* New upstream release

* bump dh compat to 9, use /usr/share/dpkg/{architecture,buildflags}.mk 

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
 
57
57
void HtmlDocumentGenerator::setDocumentMetaData(const WPXPropertyList &propList)
58
58
{
59
 
        if (propList["author"])
60
 
                *m_pOutputStream << "<meta name=\"author\" content=\"" << propList["author"]->getStr().cstr() << "\">" << std::endl;
61
 
        if (propList["subject"])
62
 
                *m_pOutputStream << "<meta name=\"subject\" content=\"" << propList["subject"]->getStr().cstr() << "\">" << std::endl;
63
 
        if (propList["publisher"])
64
 
                *m_pOutputStream << "<meta name=\"publisher\" content=\"" << propList["publisher"]->getStr().cstr() << "\">" << std::endl;
65
 
        if (propList["keywords"])
66
 
                *m_pOutputStream << "<meta name=\"keywords\" content=\"" << propList["keywords"]->getStr().cstr() << "\">" << std::endl;
67
 
        if (propList["language"])
68
 
                *m_pOutputStream << "<meta name=\"language\" content=\"" << propList["language"]->getStr().cstr() << "\">" << std::endl;
69
 
        if (propList["abstract"])
70
 
                *m_pOutputStream << "<meta name=\"abstract\" content=\"" << propList["abstract"]->getStr().cstr() << "\">" << std::endl;
71
 
        if (propList["descriptive-name"])
72
 
                *m_pOutputStream << "<meta name=\"descriptive-name\" content=\"" << propList["descriptive-name"]->getStr().cstr() << "\">" << std::endl;
73
 
        if (propList["descriptive-type"])
74
 
                *m_pOutputStream << "<meta name=\"descriptive-type\" content=\"" << propList["descriptive-type"]->getStr().cstr() << "\">" << std::endl;
 
59
        if (propList["meta:initial-creator"])
 
60
                *m_pOutputStream << "<meta name=\"author\" content=\"" << propList["meta:initial-creator"]->getStr().cstr() << "\">" << std::endl;
 
61
        if (propList["dc:creator"])
 
62
                *m_pOutputStream << "<meta name=\"typist\" content=\"" << propList["dc:creator"]->getStr().cstr() << "\">" << std::endl;
 
63
        if (propList["dc:subject"])
 
64
                *m_pOutputStream << "<meta name=\"subject\" content=\"" << propList["dc:subject"]->getStr().cstr() << "\">" << std::endl;
 
65
        if (propList["dc:publisher"])
 
66
                *m_pOutputStream << "<meta name=\"publisher\" content=\"" << propList["dc:publisher"]->getStr().cstr() << "\">" << std::endl;
 
67
        if (propList["meta:keyword"])
 
68
                *m_pOutputStream << "<meta name=\"keywords\" content=\"" << propList["meta:keyword"]->getStr().cstr() << "\">" << std::endl;
 
69
        if (propList["dc:language"])
 
70
                *m_pOutputStream << "<meta name=\"language\" content=\"" << propList["dc:language"]->getStr().cstr() << "\">" << std::endl;
 
71
        if (propList["dc:description"])
 
72
                *m_pOutputStream << "<meta name=\"abstract\" content=\"" << propList["dc:description"]->getStr().cstr() << "\">" << std::endl;
 
73
        if (propList["libwpd:descriptive-name"])
 
74
        {
 
75
                *m_pOutputStream << "<meta name=\"descriptive-name\" content=\"" << propList["libwpd:descriptive-name"]->getStr().cstr() << "\">" << std::endl;
 
76
                *m_pOutputStream << "<title>" << propList["libwpd:descriptive-name"]->getStr().cstr() << "</title>" << std::endl;
 
77
        }
 
78
        if (propList["libwpd:descriptive-type"])
 
79
                *m_pOutputStream << "<meta name=\"descriptive-type\" content=\"" << propList["libwpd:descriptive-type"]->getStr().cstr() << "\">" << std::endl;
75
80
}
76
81
 
77
82
void HtmlDocumentGenerator::startDocument()