tedi2ad.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * This is the header file of tedi2ad
  3. * Copyright (C) <2022> <alkeon> [alkeon@autistici.org]
  4. * Texdi is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 3 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * Texdi is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with tedi2ad. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #ifndef __TEDI2AD__
  18. #define __TEDI2AD__
  19. #include <iostream>
  20. #include <string>
  21. #include "../tedi2lang/tedi2lang.h"
  22. using namespace std;
  23. class tedi2ad: public tedi2lang{
  24. public:
  25. tedi2ad(tags_definition td);
  26. tedi2ad();
  27. tags_definition default_tags_value();
  28. void convert_line_image(string& line);
  29. void convert_line_block(string& line);
  30. private:
  31. const string _start_paragraph_tag;
  32. bool _is_paragraph;
  33. };
  34. #endif