summaryrefslogtreecommitdiff
path: root/sw
AgeCommit message (Collapse)Author
2014-01-30swpagerelsize: implement ODF import/exportMiklos Vajna
Export rel-height-rel / rel-width-rel only in case rel-height / rel-width is non-zero, though. Change-Id: I36120cbd8679ac4fc072d1e7cf4dfc024836b5ac
2014-01-30Introduce com.sun.star.ui.theModuleUIConfigurationManagerSupplier singleton.Matúš Kukan
Change-Id: I7b503e5d49865c9ff287bf72eaff1995ce871790
2014-01-30Resolves: #i124085# disabled CF_DIBV5...Armin Le Grand
(no advantages but some problems), increased png support (cherry picked from commit c991f7cae8dcb306cb0d1f32bc5fcd8ea0a1ea81) Change-Id: I52bef1295b32eb3692a0428c96edd0c55287f34a
2014-01-30fdo#73550 : Fix for files having spacing issues due to missing pPr/rPrNikhil Walvekar
for empty paragraphs. Change-Id: I7e73a750982a0bd57da602379ea47c8bf9c194fe Reviewed-on: https://gerrit.libreoffice.org/7587 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-01-30drawingML export: transparency of solid filled shapeZolnai Tamás
Change-Id: I97968dd5f5233e17870bdfdf2864ae8ce9179080
2014-01-30Drop unnecessary #includeTakeshi Abe
Change-Id: I2a879712adfad3307d608eca0b27f674d32e6a73
2014-01-30Avoid resource leaks in case of exceptionTakeshi Abe
Change-Id: I4461ab619a71fcbe18d4d805a964fd358e857eda
2014-01-29coverity#100869-708452 : Uninitialized scalar fieldNorbert Thiebaud
Change-Id: I62fdff624360839ce16ed183c61c6dae73afebec
2014-01-29fdo#63553: sw: fix copy/paste of cross referencesMichael Stahl
If one of aIds or aDestIds contains nSeqNo then adding an identity mapping for it will actually re-define a previous mapping. Likely this can only happen when clipboard document is the source. (regression from 44f971506c0ed37928c48e55d8007f24b0c43a5f) (also it looks like 4b0b0a5b3045902d9a6b95510ec30a3027181e29 has subtly changed what the "else" branch does when it is erroneously taken - results are differently wrong) Change-Id: I34e2979e45cffeb62ebf3d7b3e5ac6d2afff0c2b
2014-01-29swpagerelsize: fix RelativeHeightRelation UNO APIMiklos Vajna
Change-Id: I0c1969785d7e6a0e9082f628d9c490123f287000
2014-01-29swpagerelsize: fix typo in SwFlyFrm::CalcRel()Miklos Vajna
Change-Id: Ie371919e67261cdc021fc5487b35cc45f7f4105e
2014-01-29swpagerelsize: fix RelativeWidthRelation UNO APIMiklos Vajna
Code was missing to handle the case when properties are set before the frame is attached. Change-Id: I22389a8a162cb37b365b7655e048b1ece9774813
2014-01-29coverity#735949 Unchecked dynamic_castCaolán McNamara
Change-Id: I30c08b98c5bf92c3b73ac0e9ae21facd1e135303
2014-01-29coverity#1157758 Dead default in switchCaolán McNamara
Change-Id: I1df0e8e159daff0ad29894c8d8f1984cd70fd130
2014-01-29coverity#1158060 Dereference after null checkCaolán McNamara
Change-Id: I6e87e36aeb3416a38c11402ebc5bfb59b123173d
2014-01-29coverity#1158197 Dereference null return valueCaolán McNamara
Change-Id: I199668668ceff1731b10d63c51fa3bda56d7ae2a
2014-01-29coverity#1158198 Dereference null return valueCaolán McNamara
Change-Id: I72bb6d3c2a140653b35dc1bffe764114ca4f0578
2014-01-29coverity#1158276 Uncaught exceptionCaolán McNamara
Change-Id: Ifff7d9c83d8e757817b2886e12c2aebf453157b1
2014-01-29coverity#1158277 Uncaught exceptionCaolán McNamara
Change-Id: Ifa1cd70f830a3afa6b3a503b831bcfe99c5cf2fd
2014-01-29swpagerelsize: take care of GetHeightPercentRelation() in SwFlyFrm::CalcRelMiklos Vajna
Layout part, height. Change-Id: Iee239e1a39dd495ee965ac45325a0f7087fdcdfa
2014-01-29swpagerelsize: implement RelativeHeightRelation UNO property for SwXFrameMiklos Vajna
UNO API, height. Change-Id: Ie61fb7f6de42b9dfb8b8f6f0982239d1c30f84ab
2014-01-29swpagerelsize: add an eHeightPercentRelation member to SwFmtFrmSizeMiklos Vajna
This is the doc model part, height. Change-Id: I99eb4cadc2bd5f2025bc1b8793d4eede5b106d72
2014-01-29Fix for :DOCX-Preservation of Line style Dash type of "Shape with text inside"Pallavi Jadhav
Issue : File containing Shape with text inside it having Line style as Dash type is not getting preserved after RT. Implementation : 1] Added XML element <a:prstDash> with attribute val="dash". 2] Written Export Unit test case. Conflicts: sw/qa/extras/ooxmlexport/ooxmlexport.cxx Reviewed on: https://gerrit.libreoffice.org/7572 Change-Id: I27ca9f8786426a224b32dbd2aeabc40be244c9db
2014-01-29sw: CheckBookmarks: can't store OOo XML any moreMichael Stahl
Change-Id: Ib9e92043d8483feb47f024ee067f2103625dd031
2014-01-29writer shadow: Avoid a whole load of unnecessary scaling.Jan Holesovsky
Instead of always scaling the bitmap to the right dimensions, only enlarge it when necessary, and crop it while painting by using DrawBitmapEx() that accepts the source size. Also use BMP_SCALE_FAST, it is enough here. Change-Id: I702ea5c9f119257ab83d49cf050ce8840e50b196
2014-01-28coverity#1028589 : Uninitialized scalar fieldNorbert Thiebaud
Change-Id: I96f52e1fafddfb1818fd03f1440b1eff949db47b
2014-01-28sw: hardcoded NS_sprm::LN_CPbiGrfMiklos Vajna
Change-Id: I2a63d1c937392be194c00909213bc89ffe26a550
2014-01-28sw: style cleanup in GetFieldIdsFromDocMichael Stahl
Change-Id: Ib7141b47d5c2a27b75e47756adb4c644aace721a
2014-01-28bool improvementsStephan Bergmann
Change-Id: Ibeb658e73b588f90242c95d23149f2ef45a7a815
2014-01-28Fix apparently broken OSL_ASSERT (that would have never fired)Stephan Bergmann
Change-Id: Id766129caefc845d3c9318ee0d9178657200d226
2014-01-28Apparently missing "cChar =="Stephan Bergmann
Change-Id: Id99ed7633e960bc690b3e37e958485486658f88a
2014-01-28Introduce com.sun.star.frame.theUICommandDescription singleton.Matúš Kukan
Change-Id: Ic88cca3722d555ba48d7da8c176556fa1ff90650
2014-01-28MSVC apparently does not pack bitfields of different typeStephan Bergmann
...so c963d7e642c24f40c19fb9dc227db5da96728c12 "bool improvements" changed the size of some structs in sw/source/filter/ww8/ww8struc.hxx that are used for raw IO and thus have fixed layout requirements. Reverted that part of the commit and instead use explicit conversion between bool and sal_uInt16 where necessary. Also added static asserts for those structs that were easily identifiable as being used for raw IO. (Also reverted the bools in some other structs that were not (easily) identified as being used for raw IO even if that might thus not be necessary, but better safe than sorry.) Change-Id: I60e17a2821d67961f50691625999f2aa72c5ebce
2014-01-28ooxml: Preserve shape style effect attributesJacobo Aragunde Pérez
Preserve <a:effectRef> tag and its contents from inside shape style properties tag <wps:style>. Added some lines to existing unit tests to check for the preservation of these attributes. Change-Id: I6e47b228dcc9788a4a2dfe87bd1186d2f04dbeea
2014-01-28swpagerelsize: take care of Sz.GetWidthPercentRelation() in SwFlyFrm::CalcRelMiklos Vajna
This allows two type of relative sizes: relative to margin (default, what we had before) and relative to the entire page. Change-Id: I1625f072365e418352f3d507764e03484bb812be
2014-01-28swpagerelsize: implement RelativeWidthRelation UNO property for SwXFrameMiklos Vajna
Which exposes SwFmtFrmSize::eWidthPercentRelation. Do not document yet, will be done if layout/filters/UI confirms that the data structure is suitable. Change-Id: Ic4eac3356452f4bedf9809ff5678e299b7339053
2014-01-28swpagerelsize: add an eWidthPercentRelation member to SwFmtFrmSizeMiklos Vajna
Relative width so far was always relative to margin. This new member can describe if the relative width should be relative to e.g. page. Change-Id: Idaed3c1ade8cd49021ed3406abd6f79cf8e742be
2014-01-28coverity#705513 Dereference null return valueCaolán McNamara
Change-Id: I7fd1569fe5d5c4383f028915af95fec55b8f8121
2014-01-28sw: remove __WW8_NEEDS_COPY over-optimizationMichael Stahl
Since commit 166a79df88853847528d558ea98656ad358f4645 effectively increased SAL_TYPES_ALIGNMENT4 it caused __WW8_NEEDS_COPY to be defined for MSVC too so the !__WW8_NEEDS_COPY case is dead code now. Change-Id: Ia5c20588a2efdd341f1406e091fecf16a12c3f2f
2014-01-28coverity#1130476 Uninitialized pointer fieldCaolán McNamara
Change-Id: I8c91942fef7456e1a371d435710907afa35f6f89
2014-01-28coverity#1158281 Uncaught exceptionCaolán McNamara
Change-Id: I44e0d45de692414a11249068b122b33de4856458
2014-01-28coverity#1158280 Uncaught exceptionCaolán McNamara
Change-Id: I39e9470f65afa57b0c636c68b0a7dfea86c45bac
2014-01-28coverity#1158279 Uncaught exceptionCaolán McNamara
Change-Id: Ie3e09c02a819b61291dec3230b3dd16c93de23eb
2014-01-28coverity#1158278 Uncaught exceptionCaolán McNamara
Change-Id: Ib64bb9e5db6d1176e507ba4ba43ff332c42bf397
2014-01-28coverity#1158282 Uncaught exceptionCaolán McNamara
Change-Id: I7d3188fb2ab7ea496c468cb8080a9a299fc92dce
2014-01-28coverity#158285 Uncaught exceptionCaolán McNamara
Change-Id: I84c0f48f8899f9120005a514bff85a07ff91a377
2014-01-28coverity#1158286 Uncaught exceptionCaolán McNamara
Change-Id: Ie072cf53a483ae5115d708adfaa0817a60389446
2014-01-28ooxml: Preserve shape style and theme attributes for lineJacobo Aragunde Pérez
Line style and color can be defined by the shape style attributes or can be directly assigned by the user (and even using a theme color in the case of color attribute). This patch aims to preserve the relevant attributes of this feature after a roundtrip. For style attributes (wps:style/a:lnRef), they are kept and preserved in the "StyleLnRef" property of the shape InteropGrabBag. To be able to access to some of them, the methods getLineStyle, getLineJoint and getLineWidth were added to LineProperties object. For the line theme color (a:ln/a:solidFill/a:schemeClr), the original line color and the theme color name are preserved in the properties "OriginalLnSolidFillClr" and "SpPrLnSolidFillSchemeClr"of the Shape InteropGrabBag. On export time, we must check if the user has changed any properties of the shape line, this is done comparing the new shape attributes with the original values coming from the style and theme definitions. In case some of the attributes is different, the new attribute must be saved overwriting the old one. The data files for some /sd/qa/ unit tests were updated to reflect the new properties inside the Shape InteropGrabBag. Besides, an existing unit test in ooxmlexport was modified to include checks for the preservation of line style, line theme color and custom line style that override the style attributes. Change-Id: Iabb0cef9e3cc433676c201bc296fb7b373839a3f
2014-01-28fdo#73545 Shape position is wrongPriyankaGaikwad
Issue: The <wp:align> is missing after roundtrip XML Difference: Original: <wp:positionH relativeFrom="page"> <wp:align> center </wp:align> </wp:positionH> Roundtrip: <wp:positionH relativeFrom="page"> <wp:posOffset> 0 </wp:posOffset> </wp:positionH> Conflicts: sw/qa/extras/ooxmlexport/ooxmlexport.cxx Reviewed on: https://gerrit.libreoffice.org/7571 Change-Id: I3c8ef2f0ee3dd84a23fab197ab95f152b850067e
2014-01-28Deleting NULL is safeTakeshi Abe
Change-Id: I673fd307d3f5f8c5c27b5dd6968775f81c0af8a0