[Libreoffice-commits] libcdr.git: src/conv

David Tardon dtardon at redhat.com
Fri Nov 8 15:21:49 CET 2013


 src/conv/text/cdr2text.cpp |    6 +++++-
 src/conv/text/cmx2text.cpp |    6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

New commits:
commit e7ea841053efbbc8cb2ee25bf6339315713e08dc
Author: David Tardon <dtardon at redhat.com>
Date:   Fri Nov 8 15:21:28 2013 +0100

    adapt to generator changes
    
    Change-Id: I2cde7e92dc1b0407bbd5c143cdd585e21f0494d7

diff --git a/src/conv/text/cdr2text.cpp b/src/conv/text/cdr2text.cpp
index 32dd298..d386e5d 100644
--- a/src/conv/text/cdr2text.cpp
+++ b/src/conv/text/cdr2text.cpp
@@ -76,13 +76,17 @@ int main(int argc, char *argv[])
     return 1;
   }
 
-  librevenge::RVNGTextDrawingGenerator painter;
+  librevenge::RVNGStringVector pages;
+  librevenge::RVNGTextDrawingGenerator painter(pages);
   if (!libcdr::CDRDocument::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/cmx2text.cpp b/src/conv/text/cmx2text.cpp
index 899f59c..18560ee 100644
--- a/src/conv/text/cmx2text.cpp
+++ b/src/conv/text/cmx2text.cpp
@@ -75,13 +75,17 @@ int main(int argc, char *argv[])
     return 1;
   }
 
-  librevenge::RVNGTextDrawingGenerator painter;
+  librevenge::RVNGStringVector pages;
+  librevenge::RVNGTextDrawingGenerator painter(pages);
   if (!libcdr::CDRDocument::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;
 }
 


More information about the Libreoffice-commits mailing list