Fold hyphen-c99.patch.0 into hyphen-fdo48017-wfopen.patch

Change-Id: I2f866aa16704bc5492e0e0b78136fdfe41caa7a5
coverity#1215400 Uninitialized scalar field

Change-Id: Ie82c16d7d7b3f4fed09bed1d6adec32d5d3934e5
coverity#1215386 Uncaught exception

Change-Id: I2eb374a9209cf4bbf9e2b533ec2522bc1efe6468
coverity#1215385 Uncaught exception

Change-Id: I765dd9bab26e3736c6b18a291cfd108342644e8e
coverity#1215384 Uncaught exception

Change-Id: I833b8b9532c61f666755ed5e92135da3aeb55f27
coverity#1215383 Uncaught exception

Change-Id: I568ba1a942acd622611fb53210e303147b77601f
coverity#1215382 Uncaught exception

and hopefully a gadzillion more, but I've said that before :-(

Change-Id: I2e36485ae2ce831fdf250464b254d42f5bc55fe3
coverity#1215313 Uncaught exception

Change-Id: I22cd98a35c6c638e3476d54b742762d8a2dfa7fa
coverity#1215312 Uncaught exception

Change-Id: I844561cc6f858b6aed55caaf0d92529486cb486e
coverity#1215311 Uncaught exception

Change-Id: Ic000d3a3920dddb8cc8585bb31127d14cfc35eb7
coverity#1215310 Uncaught exception

Change-Id: I8d9663f8dedda8e7006e7ac6545cb15188a1ec2d
coverity#704940 Unchecked dynamic_cast

Change-Id: I53662b9d48ae44c21c9cc79bda01487d87e8dfdd
oox, writerfilter: add a14 namespace and tokens

Added the artistic effects defined in the MS-ODRAWXML extension. Ref:
http://msdn.microsoft.com/en-us/library/dd905216(v=office.12).aspx

Change-Id: I24c5e5bbe569f160d300a7a7293ca047cb7a1b88.
ooxml: preserve artistic effects on shapes.

Bitmaps can define artistic effects like in the following example:

  <a:blip r:embed="rId5">
    <a:extLst>
      <a:ext uri="{BEBA8EAE-BF5A-486C-A8C5-ECC9F3942E4B}">
        <a14:imgProps
         xmlns:a14="http://schemas.microsoft.com/office/drawing/2010/main">
          <a14:imgLayer r:embed="rId6">
            <a14:imgEffect>
              <a14:artisticMarker trans="14000" size="80" />
            </a14:imgEffect>
          </a14:imgLayer>
        </a14:imgProps>
      </a:ext>
    </a:extLst>
  </a:blip>

LO core doesn't support them, but I'm preserving them using the shape
grab bag. Bitmaps must not be transformed to a SwXTextGraphicObject
so the grab bag of the XShape is not discarded.

Added several Context and Properties objects on the import side to
traverse and save the relevant tags, and added the corresponding code
on the export side to extract the grab bag and output the effect back.

Also added a unit test for a selection of artistic effects.

TODO: Word saves the original bitmap as an embedded wdp file so the
effect can be undone. We must preserve it too and add the reference to
the a14:imgLayer tag.

Change-Id: I61d427f83e4c8f353eb073da0114cd73ba50ba4b
ooxml: Preserve the original picture in artistic effects

When Word applies an artistic effect, it creates two embedded files;
one contains the bitmap with the effect and the other one contains the
original bitmap to be able to undo the effect.

This patch reads the original bitmap, stores it in the shape grab bag
and saves it back to the docx file. Added unit tests too.

TODO: right now, if two effects point to the same original bitmap it
is stored twice, we should improve this.

Change-Id: Ia72034a257739abe4ffafa0f42b2a912e4bf9436
ooxml: Do not repeat wdp files in artistic effects

When two pictures apply different effects to the same picture, it is
only saved once in the original document. Added a cache to DrawingML
to know if the picture has already been exported, and added a test
for it.

Change-Id: Ia25f3d8f2f46d61f18aefc22fdfdbcdc72f2d916
Always use CPPUNIT_ASSERT_DOUBLES_EQUAL when comparing floating point values

Change-Id: I2ea94a510fd79f6fe3dcc5021d142b7b5f99f67f
Avoid possible memory leaks in case of exceptions

Change-Id: Ifd98e11380bf00f6126e4c81bcd0cbaf5b22f70d
WaE: passing class rtl::OUString by value, rather pass by reference

Change-Id: I05aa9a5ad5d97a1ead3d30298f45e7aeb62d0652
OleObjectInfo is used from the scfilt library so must be public

Change-Id: Ib80278e52640b0c132bcc5b303d277a4e7ae2024