1. 18 Ock, 2014 14 kayıt (commit)
    • Matúš Kukan's avatar
      fwk: Use constructor feature for ModuleUIConfigurationManager. · 72b5343b
      Matúš Kukan yazdı
      And avoid css::uno::XInitialization protocol.
      72b5343b
    • Matúš Kukan's avatar
      Initialize also implementations created directly by generated function. · a0ada918
      Matúš Kukan yazdı
      This was forgotten in commit bdeb57c2.
      
      Change-Id: Idd339222e3c464abc2524f78f16c8fe0a02dcd5b
      a0ada918
    • Jacobo Aragunde Pérez's avatar
      ooxml: unit test for shape theme attributes preservation · d185daec
      Jacobo Aragunde Pérez yazdı
      This tests checks that the shape style attribute for fill color is
      preserved, that the theme attibute for shape fill is preserved too
      and that the interaction between them and direct assignment of some
      color works properly.
      
      Change-Id: Ia934c46731ed38be14ed851e083d0ed6fc151b01
      d185daec
    • Jacobo Aragunde Pérez's avatar
      ooxml: Preserve shape theme attribute for solid fill · bc0a9076
      Jacobo Aragunde Pérez yazdı
      Users can select the fill color for a shape among the theme-defined
      colors. This results in the following XML:
      
        <wps:spPr>
          ...
          <a:solidFill>
            <a:schemeClr val="accent2"/>
          </a:solidFill>
          ...
        </wps:spPr>
      
      Now we store both the original fill color and the name of the
      theme-defined color, if it exists, on the import phase. They are put
      into the InteropGrabBag of the shape with the names
      OriginalSolidFillClr and SpPrSolidFillSchemeClr. Additionally, we
      needed to to store the decoded theme color inside StyleFillRef.
      
      On the export phase we have to take into account several combinations
      of factors:
      * If the final color for the shape fill is different from the
        original color, we must ignore any theme attributes and write the
        new color.
      * If the fill color is unchanged and some theme color exists, we must
        write the theme color.
      * If the fill color is unchanged and no theme color exists, we must
        check if the original color matches the style-defined color. If it
        does, we must not write any <a:solidFill> tag.
      * Otherwise we must write the <a:solidFill> tag with the RGB color.
      
      The method putPropertiesToGrabBag was added to the Shape object for
      convenience.
      
      The data files for some /sd/qa/ unit tests were updated to reflect
      the new properties inside the Shape InteropGrabBag.
      
      Change-Id: If0915c5442872a8acab0a8a081f60c89c97277bd
      bc0a9076
    • Jacobo Aragunde Pérez's avatar
      ooxml: Preserve shape style attribute fillRef · 15e01d90
      Jacobo Aragunde Pérez yazdı
      Shape style attributes contain the default format for the shape in
      case that no direct format is specified for it. This is an example
      of the attribute we want to preserve with this patch:
      
        <wps:style>
          ...
          <a:fillRef idx="1">
            <a:schemeClr val="accent1"/>
          </a:fillRef>
          ...
        </wps:style>
      
      The relevant values in these tags are stored at the maShapeStyleRefs
      member in the Shape object. The storage happens at
      ShapeStyleContext::onCreateContext which is run when the <a:fillRef>
      tag is opened. The ShapeStyleRef object contains the idx value and a
      Color object which will contain the inner tag <a:schemeClr>.
      
      The Color object has been modified to store the string value of
      schemeClr. The storage happens at ColorValueContext::onStartElement
      which is run when the tag <a:schemeClr> is opened.
      
      Later, Shape::createAndInsert is called by the ShapeContextHandler to
      create the actual XShape, this happens when the tag <wps:wsp> is
      closed. createAndInsert puts idx and schemeClr values into the
      InteropGrabBag property of the XShape with the name StyleFillRef.
      
      On export time, when the shape data is written at
      ShapeExport::WriteCustomShape, we added a call to
      DrawingML::WriteShapeStyle. This method will check the existence of
      the InteropGrabBag property in the shape, read the StyleFillRef prop
      inside it and output the proper XML to the style definition.
      
      DrawingML::WriteShapeStyle also writes some mock tags into the
      <wps:style> because we found that they are compulsory. We will
      replace them with the proper data in further patches.
      
      The method putPropertyToGrabBag was added to the Shape object for
      convenience.
      
      The data files for some /sd/qa/ unit tests were updated to reflect
      the new property StyleFillRef inside the InteropGrabBag.
      
      Change-Id: I5ffa5242852461a1a709a8f169d40f0d7a2c9aa3
      15e01d90
    • Miklos Vajna's avatar
      writerfilter: drop no longer needed LFO/LFOLevel classes in doctok · 2e34ceeb
      Miklos Vajna yazdı
      Change-Id: I594d854db54a74ddf3f32d4b30b1c4f1aa38d431
      2e34ceeb
    • Miklos Vajna's avatar
      writerfilter: whitespace fixes in SdtHelper · c16025ea
      Miklos Vajna yazdı
      Change-Id: Idcb74c5e911ec2337f1e8743dc4627464f1cfd27
      c16025ea
    • Miklos Vajna's avatar
      sw: add testcase for RTF_LEVELFOLLOW import · 4144858f
      Miklos Vajna yazdı
      I almost broke this during refactoring...
      
      Change-Id: If38e73f3b7d66e97bbcbad87447b8aa611ff79d1
      4144858f
    • Miklos Vajna's avatar
      writerfilter: refactor to remove redundant ListLevel class in doctok · 1abdfeee
      Miklos Vajna yazdı
      Change-Id: I762e4f09b55d957bdd57e76651417bed11cb1e74
      1abdfeee
    • Miklos Vajna's avatar
      writerfilter: unused List class in doctok · b54e35b6
      Miklos Vajna yazdı
      Change-Id: I2e3315584e66b7a99003512b197062807674f8aa
      b54e35b6
    • Miklos Vajna's avatar
      writerfilter: remove METAFILEPICT class in doctok · 1bdf0175
      Miklos Vajna yazdı
      Change-Id: Icb124a2f7445ca17f04dc0024dc17cbcc4b0ca6d
      1bdf0175
    • Miklos Vajna's avatar
      writerfilter: remove last NS_rtf usage in ooxml · da3e5e00
      Miklos Vajna yazdı
      Change-Id: I79e0fa9d0ee35e31912d36ec213acf1a83b3547e
      da3e5e00
    • Kohei Yoshida's avatar
      fdo#73487: Write unit tests for this. · a96b6f47
      Kohei Yoshida yazdı
      Also remove the files used for the old tests.
      
      Change-Id: I4fbf6acce205d15a35780524120e351e01dc6642
      a96b6f47
    • tsahi glik's avatar
      fix dropshadow on ios · af5b416c
      tsahi glik yazdı
      af5b416c
  2. 17 Ock, 2014 26 kayıt (commit)