diff options
Diffstat (limited to 'src/generators')
| -rw-r--r-- | src/generators/latex/paragraph_g.cpp | 20 | ||||
| -rw-r--r-- | src/generators/latex/paragraph_g.h | 32 | ||||
| -rw-r--r-- | src/generators/latex_g.cpp | 2 | ||||
| -rw-r--r-- | src/generators/latex_g.h | 4 |
4 files changed, 55 insertions, 3 deletions
diff --git a/src/generators/latex/paragraph_g.cpp b/src/generators/latex/paragraph_g.cpp new file mode 100644 index 0000000..d93bc10 --- /dev/null +++ b/src/generators/latex/paragraph_g.cpp @@ -0,0 +1,20 @@ +/* +Copyright (c) 2010, 2011, Grégoire Duchêne <gduchene@fastmail.net> + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +*/ +#include "paragraph_g.h" + +latex::paragraph_g::paragraph_g() : paragraph_g::base_type(paragraph_) { + paragraph_ = +text_; +} diff --git a/src/generators/latex/paragraph_g.h b/src/generators/latex/paragraph_g.h new file mode 100644 index 0000000..8cbb750 --- /dev/null +++ b/src/generators/latex/paragraph_g.h @@ -0,0 +1,32 @@ +/* +Copyright (c) 2010, 2011, Grégoire Duchêne <gduchene@fastmail.net> + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +*/ +#ifndef _MPPDOWN_LATEX_PARAGRAPH_G +#define _MPPDOWN_LATEX_PARAGRAPH_G +#include <boost/spirit/include/karma.hpp> +#include "../../elements.h" +#include "text_g.h" + +namespace ka = boost::spirit::karma; + +namespace latex { +struct paragraph_g : ka::grammar<oiterator, paragraph_t()> { + ka::rule<oiterator, paragraph_t()> paragraph_; + text_g text_; + + paragraph_g(); +}; +} +#endif diff --git a/src/generators/latex_g.cpp b/src/generators/latex_g.cpp index a8d5191..8d5326f 100644 --- a/src/generators/latex_g.cpp +++ b/src/generators/latex_g.cpp @@ -16,5 +16,5 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include "latex_g.h" latex_g::latex_g() : latex_g::base_type(latex_) { - latex_ = +text_; + latex_ = +paragraph_; } diff --git a/src/generators/latex_g.h b/src/generators/latex_g.h index 29f1835..260e288 100644 --- a/src/generators/latex_g.h +++ b/src/generators/latex_g.h @@ -17,13 +17,13 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #define _MPPDOWN_LATEX_G #include <boost/spirit/include/karma.hpp> #include "../elements.h" -#include "latex/text_g.h" +#include "latex/paragraph_g.h" namespace ka = boost::spirit::karma; struct latex_g : ka::grammar<oiterator, document_t()> { ka::rule<oiterator, document_t()> latex_; - latex::text_g text_; + latex::paragraph_g paragraph_; latex_g(); }; |
