diff options
Diffstat (limited to 'src/conv/svg/ppp2xhtml.cpp')
-rw-r--r-- | src/conv/svg/ppp2xhtml.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/conv/svg/ppp2xhtml.cpp b/src/conv/svg/ppp2xhtml.cpp index 7b54a16..b3f0c8c 100644 --- a/src/conv/svg/ppp2xhtml.cpp +++ b/src/conv/svg/ppp2xhtml.cpp @@ -33,8 +33,9 @@ #include <stdio.h> #include <string.h> #include <libpgplus/libpgplus.h> -#include <libwpd-stream/libwpd-stream.h> -#include <libwpd/libwpd.h> +#include <librevenge-generators/librevenge-generators.h> +#include <librevenge-stream/librevenge-stream.h> +#include <librevenge/librevenge.h> namespace { @@ -68,7 +69,7 @@ int main(int argc, char *argv[]) if (!file) return printUsage(); - WPXFileStream input(file); + librevenge::RVNGFileStream input(file); if (!libpgplus::PGPLUSDocument::isSupported(&input)) { @@ -76,8 +77,9 @@ int main(int argc, char *argv[]) return 1; } - libpgplus::PGPLUSStringVector output; - if (!libpgplus::PGPLUSDocument::generateSVG(&input, output)) + librevenge::RVNGStringVector output; + librevenge::RVNGSVGDrawingGenerator generator(output, ""); + if (!libpgplus::PGPLUSDocument::parse(&input, &generator)) { std::cerr << "ERROR: SVG Generation failed!" << std::endl; return 1; |