// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "SVG_StreamRenderingContext.hh" SVG_StreamRenderingContext::SVG_StreamRenderingContext(const SmartPtr& logger, std::ostream& os) : SVG_RenderingContext(logger), output(os) { } SVG_StreamRenderingContext::~SVG_StreamRenderingContext() { } void SVG_StreamRenderingContext::wrapperStart(const scaled& x, const scaled& y, const BoundingBox& box, const SmartPtr& elem) { const String id = getId(elem); output << "" << std::endl; } String SVG_StreamRenderingContext::getId(const SmartPtr& elem) const { return ""; } void SVG_StreamRenderingContext::wrapperEnd() { output << "" << std::endl; } void SVG_StreamRenderingContext::beginDocument(const BoundingBox& bbox) { output << "" << std::endl; output << "" << std::endl; } void SVG_StreamRenderingContext::endDocument() { output << "" << std::endl; } void SVG_StreamRenderingContext::metadata(const String& content) { output << "" << content << "" << std::endl; } void SVG_StreamRenderingContext::rect(const scaled& x, const scaled& y, const scaled& width, const scaled& height, const RGBColor& fillColor, const RGBColor& strokeColor, const scaled& strokeWidth) { output << "" << std::endl; } void SVG_StreamRenderingContext::text(const scaled& x, const scaled& y, const String& family, const scaled& size, const RGBColor& fillColor, const RGBColor& strokeColor, const scaled& strokeWidth, const String& content) { #if 0 output << "" << std::endl; output << "" << std::endl; #endif output << "" << content << "" << std::endl; } void SVG_StreamRenderingContext::line(const scaled&, const scaled&, const scaled&, const scaled&, const RGBColor&, const scaled&) { assert(false); }