From 264a29ab91d00e9fecb04121498afb6f642805c8 Mon Sep 17 00:00:00 2001 From: ishmal Date: Fri, 30 Jun 2006 01:46:47 +0000 Subject: [PATCH] New placeholder code for gradients --- src/extension/internal/odf.cpp | 64 ++++++++++++++++++++++++++++++---- 1 file changed, 58 insertions(+), 6 deletions(-) diff --git a/src/extension/internal/odf.cpp b/src/extension/internal/odf.cpp index 9a8d9ecfa..7610caef1 100644 --- a/src/extension/internal/odf.cpp +++ b/src/extension/internal/odf.cpp @@ -1470,14 +1470,13 @@ bool OdfOutput::writeStyle(Writer &outs) } //## Dump our gradient table + int gradientCount = 0; outs.printf("\n"); outs.printf("\n"); std::vector::iterator giter; for (giter = gradientTable.begin() ; giter != gradientTable.end() ; giter++) { GradientInfo gi(*giter); - outs.printf(" =================================================================== */ - outs.printf("draw:display-name=\"linear borderless\" "); + outs.printf("\n", + gi.x2, gi.y2); + outs.printf(" \n"); + outs.printf(" \n"); + outs.printf("\n"); } else if (gi.style == "radial") { @@ -1507,14 +1527,46 @@ bool OdfOutput::writeStyle(Writer &outs) draw:border="0%"/> =================================================================== */ - outs.printf("draw:display-name=\"radial borderless\" "); - outs.printf("draw:cx=\".2f%%\" draw:cy=\".2f%%\" ", gi.cx, gi.cy); + outs.printf("\n", + gi.r); + outs.printf(" \n"); + outs.printf(" \n"); + outs.printf("\n"); } else { g_warning("unsupported gradient style '%s'", gi.style.c_str()); } - outs.printf("/>\n"); + outs.printf("\n"); + outs.printf(" \n"); + outs.printf("\n\n"); + + gradientCount++; } outs.printf("\n"); -- 2.30.2