~ubuntu-branches/ubuntu/trusty/libodfgen/trusty-proposed

« back to all changes in this revision

Viewing changes to src/OdtGenerator.cxx

  • Committer: Package Import Robot
  • Author(s): Rene Engelhard
  • Date: 2013-05-22 15:17:31 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20130522151731-0ihrnt8y3sob5e1g
Tags: 0.0.2-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
#include <stack>
31
31
#include <string>
32
32
 
33
 
#include "OdtGenerator.hxx"
 
33
#include <libodfgen/libodfgen.hxx>
 
34
 
34
35
#include "DocumentElement.hxx"
35
36
#include "TextRunStyle.hxx"
36
37
#include "FontStyle.hxx"
1318
1319
 
1319
1320
        // check if the frame has border, background attributes
1320
1321
        static char const *(bordersString[])=
1321
 
        {"fo:border","fo:border-top","fo:border-left","fo:border-bottom","fo:border-right"};
1322
 
        for (int b = 0; b < 5; b++)
 
1322
        {
 
1323
                "fo:border","fo:border-top","fo:border-left","fo:border-bottom","fo:border-right",
 
1324
                "style:border-line-width","style:border-line-width-top","style:border-line-width-left",
 
1325
                "style:border-line-width-bottom","style:border-line-width-right"
 
1326
        };
 
1327
        for (int b = 0; b < 10; b++)
1323
1328
        {
1324
1329
                if (propList[bordersString[b]])
1325
1330
                        frameAutomaticStylePropertiesElement->addAttribute(bordersString[b], propList[bordersString[b]]->getStr());
1326
1331
        }
1327
 
        if (propList["style:border-line-width"])
1328
 
                frameAutomaticStylePropertiesElement->addAttribute("style:border-line-width", propList["style:border-line-width"]->getStr());
1329
1332
        if (propList["fo:background-color"])
1330
1333
                frameAutomaticStylePropertiesElement->addAttribute("fo:background-color", propList["fo:background-color"]->getStr());
1331
1334
        if (propList["style:background-transparency"])