summaryrefslogtreecommitdiff
path: root/sw
AgeCommit message (Collapse)Author
2014-01-22longparas: sneaky sal_uInt16 casts truncating values causing loopCaolán McNamara
on exporting a longpara document to our own .odt format Change-Id: I2e517cd5ec6a29c8bcf853361a24bde25df15abb
2014-01-22DOCX import: set document-level font size default based on default para styleMiklos Vajna
DOCX has two defaults: there can be default paragraph/run properties, and also a paragraph/character style can be marked as default. In this case the problem was that no doc-level default was specified, but the default para style set a char height, and shape text is expected to inherit that. Fix this by setting doc-level font size to default para style, in case it's not set yet -- that matches what the binary import does. Also, adjust the export side, so that these duplicated default font size is not written on export. Change-Id: I63b368e7704142171d58f48d08052ac7616ab166
2014-01-22bool improvements (related to mixing bool/sal_Bool in &=, |=, ^=)Stephan Bergmann
Change-Id: I9869d9709f28b68ef7b518527175589d80644668
2014-01-22bool improvementsStephan Bergmann
Change-Id: Ib65a1e987ad6511e90fd66a36c0105593a1df27c
2014-01-22VML import: parse shape text run inside w:smartTagMiklos Vajna
Change-Id: I26c2f9e3f5e560f22d3de0a7378c5cd7d0413184
2014-01-22fdo#73534 : Table row data was getting displayed twice after RTTushar Bende
There was a problem for some documents(containing table on page spanning across multiple pages & pages having different Header-Footer type), during export Invalid sectPr was getting added because of wrong condition check in the code. Because of this: 1)Table row data was getting displayed twice after RT. 2)Increased number of pages after RT. 3)Header & footer were also divided into sections (like: Header-Section1 Footer-Section1 & Header-Section2 Footer-Section2). Conflicts: sw/qa/extras/ooxmlexport/ooxmlexport.cxx Reviewed on: https://gerrit.libreoffice.org/7440 Change-Id: I6c07e47321353e84af306c6285702852303ccee0
2014-01-22Typo in commentKhaled Hosny
Change-Id: I97252a66da63e25166acf3a7bc5a00ad1f8e94f0
2014-01-22Writer, please stop harassing meKhaled Hosny
This debug code was behind > 1 before 9ace8bebd88ff41d65eeaa87a6d1f1dfd8875b6d, so it probably was broken for ages (or even forever), and all it does now is obscure my terminal with hundreds of useless messages whenever I open an RTL document since basically any weak LTR run next to RTL one will have the same script type, but this code warns about it without explaining what one should fix here. I got fed up, whoever knows what to fix here, please do, but for now I’m just hiding it. Change-Id: Ifa50e47a080f335ef6fe06bc0f0b5ed5ddbc7338
2014-01-21Fix bogus mass-conversion equalsAsciiL -> startsWithStephan Bergmann
3af99e4d59d89c343965a928681a30f36b1007d2 "convert equalsAsciiL calls to startsWith calls" should rather have converted to oprator ==. Change-Id: Id4a8836c5d6d570e54661c40be7214632e202b21
2014-01-21drawingML export: fix position of wrapped shapes in DOCXMiklos Vajna
In case of DOCX, the DOCX wrapper around the drawingML fragment already contains the real position of the shape (which talks about paragraphs and other concepts which are unavailable in a spreadsheet / presentation), and the inner position should be 0, otherwise the shape is shifted towards the bottom right corner. Note that this only affects drawinglayer shapes in DOCX, Writer pictures are handled in sw, and those always had a 0,0 position in the inner drawingML fragment. Change-Id: I582b1ae64387b50ffb051e1f5017eab0e5d5ab34
2014-01-21fdo#68959: sw: fix painting of tab fill characters in small caps textMichael Stahl
The member SwDrawTextInfo::pPos was changed from a pointer to some externally provided Point to a real object; unfortunately there were some functions which hold backups of the current pPos as a reference/pointer and then restore it, and the restore is a no-op now. So use real Points as backups. (regression from f22006dc6ac34a35a060e15466cf6b2d2058617d) Change-Id: I8470143ec494cb194a88ddcbd12d96867974278f
2014-01-21Consistently let SetDesingMode functions take bool argumentStephan Bergmann
...to avoid "warning C4805: '!=' : unsafe mix of type 'bool' and type 'sal_Bool' in opertaion" style errors. Additionally, mark those functions that are virtual overrides as such. Change-Id: I64f919f7e2d8f6224303f9bac67f6270d58de014
2014-01-21Use boost::scoped_ptr to avoid resource leaks in case of exceptionTakeshi Abe
Change-Id: I05a17a061bfd4c3dbd15fe80c1f1f4f8d8267ea7
2014-01-20drawingML export: zero rotation shouldn't alter the shape positionMiklos Vajna
I'm not exactly sure why existing code didn't do this implicitly, but at least this improves the situation. Change-Id: Id2bb169c513827b7ef48640dc88fad90a83d2bee
2014-01-20Related: #i56998# use locale rules to format percentageCaolán McNamara
Change-Id: I4b744cf10165383153d2a71c05df0c0ed327c641
2014-01-20Resolves: #i124039# assure correct line break for multi-lined Input FieldsOliver-Rainer Wittmann
(cherry picked from commit 14e0270c3ebad9a1fb817fcfced2aa8ee2f3e3f0) Change-Id: If5664a5260e683cd5a80885b3f39b04f85de8db9
2014-01-20fdo#73389 Writer does not show a docx-document with nested table correctlyZolnai Tamás
The table manager can work with more table simultaneously and so m_aCellWidths contains more table's properties.Only one item of it belongs to the current table (getCurrentCellwidths). Regression from 74c5ed19f430327988194cdcd6bdff09591a93fa Change-Id: I93efac0c004af1b2524c955ffb20c3ecd74a2920
2014-01-20Related: #i56998# use locale rules to format percentageCaolán McNamara
Change-Id: I26af0abee94c911fd0d2b84e829f4489e625c0b2
2014-01-20misuse of OUString::boolean on sal_uInt8 valuesCaolán McNamara
regression since 64b993e046f23baaacaff1572b7d2a816588b5ef Change-Id: Ifc907a34430c36a64318fc42342e630e2b84ad13
2014-01-20Resolves: #i56998# add a space separater between value and unit...Tsutomu Uchino
and remove separator between value and percent to match with ISO 31-0 (cherry picked from commit 0cea884e3f417e4b58d2fdcfc7b0111f3bfc6f30) Conflicts: chart2/source/controller/dialogs/tp_SeriesToAxis.src cui/source/dialogs/colorpicker.cxx cui/source/dialogs/colorpicker.src cui/source/dialogs/grfflt.src cui/source/dialogs/zoom.src cui/source/tabpages/tabline.src editeng/source/items/frmitems.cxx editeng/source/items/textitem.cxx sd/source/ui/animations/CustomAnimationDialog.src sd/source/ui/animations/SlideTransitionPane.src svx/source/dialog/bmpmask.src svx/source/engine3d/float3d.src svx/source/items/algitem.cxx svx/source/sidebar/text/TextCharacterSpacingControl.cxx svx/source/xoutdev/xattr.cxx sw/source/ui/utlui/attrdesc.cxx sw/source/ui/utlui/uiitems.cxx Change-Id: I554309cb72dd8956077c5ca6866a982cdd6529aa
2014-01-20drawingML export: write TextShape outline propertiesMiklos Vajna
Change-Id: I3742c960016bbe1d82b58a16d464b329d2612c10
2014-01-20fdo#69613 : Fix for TOC with flag '\u' should get preserved after RT.Pallavi Jadhav
Issue : DOCX contatining TOC Code field '\u' was not getting preserved after RT. Implementation : 1] Provided import & export support for TOC field flag '\u'. 2] Written export Unit Test for code field '\u'. Conflicts: sw/qa/extras/ooxmlexport/ooxmlexport.cxx Reviewed on: https://gerrit.libreoffice.org/7202 Change-Id: I43872c7db21c25e0586bf874d5bb0c9115ab76af
2014-01-20Remove dead codeTakeshi Abe
pDialog was always 0 Change-Id: I0874755d5b01bb3ccf6a3acb8dfdafdea78c31ee
2014-01-19make strings localizable in *.ui (bin/ui-translatable.sh)Andras Timar
Change-Id: I60b74cecc17352681fac7dfa0e41114515dbd6f5
2014-01-19CID#1158520: use after freeMarkus Mohrhard
2014-01-19CID#1157755 and CID#1157756: resource leaksMarkus Mohrhard
2014-01-18ooxml: unit test for shape theme attributes preservationJacobo Aragunde Pérez
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
2014-01-18sw: add testcase for RTF_LEVELFOLLOW importMiklos Vajna
I almost broke this during refactoring... Change-Id: If38e73f3b7d66e97bbcbad87447b8aa611ff79d1
2014-01-18Window::PreNotify should return boolStephan Bergmann
Change-Id: Ic9903fd887f2c3fab2630ebeb20df39392177c8d
2014-01-18Replace deprecated std::auto_ptr with boost::scoped_ptrTakeshi Abe
Change-Id: Ib05c6d509a71e01b50b2e23588da607f29036711
2014-01-17fdo#73660: sw: fix Find of words containing soft-hyphenMichael Stahl
Soft hyphen was not detected if there is no hint (-1). (regression from ebeff3f074dd94dce4ce6cc55abd0495103684bd) Change-Id: I09108796a32429a01eff93f797a6de521ab1d08a
2014-01-17Window::Notify should return bool, reduxStephan Bergmann
Change-Id: Ib41ed9ace428081e1948cf109de095ea9e7c45c2
2014-01-17bool improvementsStephan Bergmann
Change-Id: I9324483db587be43238af79c2148d724397a4622
2014-01-17EndDialog takes long nResult, not boolStephan Bergmann
Change-Id: Id57ad91eb6f2a5f7f4801ebc3a1317bb7bf46adf
2014-01-17VML import: handle shape with text inside groupshape as TextShapeMiklos Vajna
This matches the behavior of the WW8 import and gives us the required text wrapping when the shape text doesn't fit in a single line. Change-Id: I32a13516503620344d313593834be29a3dc9f726
2014-01-17Window::Notify should return boolStephan Bergmann
Change-Id: I72081b1022582c8b6f95a611e21d9c78f7581efe
2014-01-17VML import: fix height of textboxes when border distance is non-zeroMiklos Vajna
The VML concept is that the height / width of a textbox is absolute, and border distances only affect the position of the shape text, not the size of it. OTOH, when we set the Text*Distance UNO properties on a textbox, the size may change. Make sure that during VML import setting those properties doesn't change the size. Change-Id: I53b328b66572fc05027be344869bc1a78d855558
2014-01-17Add the Navigation buttons to the Search toolbarSamuel Mehrbrodt
They were remove from below the scrollbar before and it was decided to put them on the Search toolbar: http://nabble.documentfoundation.org/Libreoffice-ux-advise-Remove-the-Navigator-button-below-the-scrollbar-in-Writer-tp4083097p4086370.html Change-Id: I5f7dfc0aa522e97cf3821c494525c967dcd6a92c Reviewed-on: https://gerrit.libreoffice.org/7006 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-17VML import: fix rotation of simple shapes inside group shapesMiklos Vajna
Change-Id: I28d2e2d801b06b92b5348123d88604fb4d10d828
2014-01-17Translate some German comments to English in sw/source/core/text/txtfrm.cxx.Sven Wehner
Change-Id: I54ee2e7341edbe3bbfe6429bedb4315a64bfb593 Reviewed-on: https://gerrit.libreoffice.org/7481 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-17Translate German ("kein break") comments to English ("no break").Sven Wehner
Change-Id: Ibbc706d1c3cd36e21da2a15077392f9d75ba39fd Reviewed-on: https://gerrit.libreoffice.org/7498 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-17Resolves: #i123480# assure sorting of subset mark containers...Oliver-Rainer Wittmann
before the intrinsic deletion of marks (cherry picked from commit 93ab293354bb322a7d57b7eaf21bcd2479453e87) Conflicts: sw/source/core/doc/docbm.cxx Change-Id: I24e3b935df402f42dde135c7feda3b6e664370de
2014-01-17WaE: comparison between signed and unsigned integer expressionsTor Lillqvist
Change-Id: I821b403a14a6c889a2652e766f59ada79b1dcb88
2014-01-17Small efficiency fix - move command out of loop.Adam Co
Change-Id: I790c3a8363f611ca10c6d816613848ec6f39c515 Reviewed-on: https://gerrit.libreoffice.org/7465 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-01-16sw: CppunitTest_uiwriter has grown a dep on msword libraryMichael Stahl
Change-Id: Ia991a4c85a9e79f03d0f3fb45d6daeed5db27c39
2014-01-16fdo#73414 Remove Increase Font limits for WriterMaxim Monastirsky
and re-use the same code in sidebar. Change-Id: Ic342be479f6f5b23ea2dd79b7cf6c77897b27dc1 Reviewed-on: https://gerrit.libreoffice.org/7398 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-16Assert SwReaderWriter::GetReader returning non-nullStephan Bergmann
...happened to fail for me once, for unclear reasons. Change-Id: Idf88ff4952924a814e465b039fbae384691ba7a6
2014-01-16Introduce com.sun.star.frame.theGlobalEventBroadcaster singletonStephan Bergmann
...to supersede com.sun.star.frame.GlobalEventBroadcaster single-instance service. Change-Id: I74ecaadadb4c600d39979aa7c13b6389bed38fd7
2014-01-16Resolves: #i124030# do not delete UNO mark which are not expanded...Oliver-Rainer Wittmann
and only touch the start of the given range. (cherry picked from commit ae295f7d009842cdceb50c4daffe948ede2b4b88) Conflicts: sw/source/core/doc/docbm.cxx Change-Id: Id7317eeb8e9c063c9d8b30bca97ed0afee3ec8c5
2014-01-16sw: the Assign Styles dialog is not called Insert Database ColumnsMichael Stahl
Change-Id: I96e0ee5fa0c7e45989cee663378d2ea7516fddfe