Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/vis15/src/logging/log-analyze/svg.hxx
ViewVC logotype

Diff of /branches/vis15/src/logging/log-analyze/svg.hxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4888, Thu Jan 5 17:46:52 2017 UTC revision 4889, Thu Jan 5 19:32:00 2017 UTC
# Line 488  Line 488 
488    
489          void serialize (std::ostream &os)          void serialize (std::ostream &os)
490          {          {
491              os << "<?xml " << __details::attribute("version", "1.0")              os << "<svg "
                 << __details::attribute("standalone", "no")  
                 << "?>\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" "  
                 << "\"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n<svg "  
492                  << __details::attribute("width", this->_layout._dimensions.width, "px")                  << __details::attribute("width", this->_layout._dimensions.width, "px")
493                  << __details::attribute("height", this->_layout._dimensions.height, "px")                  << __details::attribute("height", this->_layout._dimensions.height, "px")
494                  << __details::attribute("xmlns", "http://www.w3.org/2000/svg")                  << __details::attribute("xmlns", "http://www.w3.org/2000/svg")
# Line 518  Line 515 
515          std::vector<Element *> _content;          std::vector<Element *> _content;
516      };      };
517    
518        void output_header (std::ostream &os)
519        {
520            os << "<?xml " << __details::attribute("version", "1.0")
521                << __details::attribute("encoding", "UTF-8")
522                << "?>\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" "
523                << "\"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n";
524        }
525    
526    
527  }  // namespace svg  }  // namespace svg
528    
529  #endif //!_SVG_HXX_  #endif //!_SVG_HXX_

Legend:
Removed from v.4888  
changed lines
  Added in v.4889

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0