[Libreoffice-commits] libvisio.git: src/conv
David Tardon
dtardon at redhat.com
Fri Nov 8 15:10:24 CET 2013
src/conv/text/vsd2text.cpp | 6 +++++-
src/conv/text/vss2text.cpp | 6 +++++-
2 files changed, 10 insertions(+), 2 deletions(-)
New commits:
commit dfbb827940bcf2e8b1ffcea48db10050c0d80e9e
Author: David Tardon <dtardon at redhat.com>
Date: Fri Nov 8 15:03:19 2013 +0100
adapt to librevenge generator changes
Change-Id: I3ab3ab4c8100fbd391780a4df6c01832cfd91d9d
diff --git a/src/conv/text/vsd2text.cpp b/src/conv/text/vsd2text.cpp
index e843fa4..5a3fb31 100644
--- a/src/conv/text/vsd2text.cpp
+++ b/src/conv/text/vsd2text.cpp
@@ -76,13 +76,17 @@ int main(int argc, char *argv[])
return 1;
}
- librevenge::RVNGTextDrawingGenerator painter;
+ librevenge::RVNGStringVector pages;
+ librevenge::RVNGTextDrawingGenerator painter(pages);
if (!libvisio::VisioDocument::parse(&input, &painter))
{
fprintf(stderr, "ERROR: Parsing of document failed!\n");
return 1;
}
+ for (unsigned i = 0; i != pages.size(); ++i)
+ printf("%s", pages[i].cstr());
+
return 0;
}
diff --git a/src/conv/text/vss2text.cpp b/src/conv/text/vss2text.cpp
index 217dc62..f7ba149 100644
--- a/src/conv/text/vss2text.cpp
+++ b/src/conv/text/vss2text.cpp
@@ -76,13 +76,17 @@ int main(int argc, char *argv[])
return 1;
}
- librevenge::RVNGTextDrawingGenerator painter;
+ librevenge::RVNGStringVector pages;
+ librevenge::RVNGTextDrawingGenerator painter(pages);
if (!libvisio::VisioDocument::parseStencils(&input, &painter))
{
fprintf(stderr, "ERROR: Parsing of document failed!\n");
return 1;
}
+ for (unsigned i = 0; i != pages.size(); ++i)
+ printf("%s", pages[i].cstr());
+
return 0;
}
More information about the Libreoffice-commits
mailing list