diff options
Diffstat (limited to 'Build/source/utils/asymptote/drawverbatim.h')
-rw-r--r-- | Build/source/utils/asymptote/drawverbatim.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Build/source/utils/asymptote/drawverbatim.h b/Build/source/utils/asymptote/drawverbatim.h index 186dc544422..454d22a3003 100644 --- a/Build/source/utils/asymptote/drawverbatim.h +++ b/Build/source/utils/asymptote/drawverbatim.h @@ -13,7 +13,7 @@ namespace camp { enum Language {PostScript,TeX}; - + class drawVerbatim : public drawElement { private: Language language; @@ -22,31 +22,31 @@ private: pair min,max; bool havebounds; public: - drawVerbatim(Language language, const string& text) : + drawVerbatim(Language language, const string& text) : language(language), text(text), userbounds(false), havebounds(false) {} - + drawVerbatim(Language language, const string& text, pair min, - pair max) : + pair max) : language(language), text(text), userbounds(true), min(min), max(max), havebounds(false) {} - + virtual ~drawVerbatim() {} void bounds(bbox& b, iopipestream& tex, boxvector&, bboxlist&) { if(havebounds) return; havebounds=true; - if(language == TeX) + if(language == TeX) tex << text << "%" << newl; if(userbounds) { b += min; b += max; } } - + bool islabel() { return language == TeX; } - + bool draw(psfile *out) { if(language == PostScript) out->verbatimline(text); return true; |