summaryrefslogtreecommitdiff
path: root/sw
AgeCommit message (Collapse)Author
2014-07-17DOCX import: handle <w:noColumnBalance> compat settingMiklos Vajna
Change-Id: Ieffd1fe52d6167d84ada5ebb11686f20d6dce8fa
2014-07-17Add CppunitTest_sw_ooxmlfieldexport.mkMiklos Vajna
Change-Id: Ib3c26cf90a26db31a3d145beeecc877ef57ab249
2014-07-17extract CppunitTest_sw_ooxmlfieldexport from CppunitTest_sw_ooxmlimportMiklos Vajna
before: $ time make -sr CppunitTest_sw_ooxmlexport real 4m5.728s after: $ time make -sr CppunitTest_sw_ooxmlexport real 3m24.446s and the new CppunitTest_sw_ooxmlfieldexport can run in parallel. Change-Id: I5a1d121f51e2d09a1c2126a33484e956c5c706a8
2014-07-17CppunitTest_sw_ooxmlimport: allow running a single testMiklos Vajna
Change-Id: I494cc676f384edbac9f64c1bc02b14cf7973d0d8
2014-07-17DOCX import: set DontBalanceTextColumns=true for the last section ...Miklos Vajna
... if it has multiple columns. See wwSectionManager::InsertSegments() for the related binary import code which already did this. Change-Id: I919f585bd864db748cd349e01789ec7805f031a1
2014-07-17SwFmtNoBalancedColumns: add doxygen commentMiklos Vajna
Change-Id: Ifc538d8a51a333e79cec0312ab8cf4541abba7af
2014-07-17fix spelling structur -> structureNoel Grandin
Change-Id: I7aa4a9bf72732db95a67cee368f3a83a0d71bb9c
2014-07-17Renamed brdcst.[hc]xx to SfxBroadcaster.[hc]xxTobias Lippert
- Remove includes from files where they are not needed. - Update pch files Change-Id: I0188e3934ef429008c1ef495ab1d5b27f38664d5 Reviewed-on: https://gerrit.libreoffice.org/10342 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-07-17DocxSdrExport: move member to impl classMiklos Vajna
Change-Id: I37aef651cf6424e7935ea3584b8f493f6f24c484
2014-07-17sw: move testcase to the right suiteMiklos Vajna
Change-Id: Ieb89836facb28ef1432b48810532f6f0b4b00a89
2014-07-17fdo#80894 : Rotation value for textframe was missing after RT.sushil_shinde
- Rotation property is not available for TextFrame in LO. - Hence grabbaged this value. - Roundtripped rotation value by converting it properly for both dml and vml textbox. - Added UT for it. Change-Id: Ia040d55dc2ea79500df76877ba44a02971c872a8 Reviewed-on: https://gerrit.libreoffice.org/10190 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-07-16sw::util::IsPlausableSingleWordSection: take care of Boxes if LRSpace differsMiklos Vajna
The problem was the following: due to borders, the LR space items were not equal, but we still want to merge the page styles, as they only differ due to the page border. Change-Id: I55069368edba27ab9c70421e5e71ca24c73350e9
2014-07-16WaE: struct/class inconsistencyTor Lillqvist
Drop a couple of unnecessary forward declarations for classes defined in files included earlier from the same file. Change-Id: I9a0a24f88990447d7eafe0438f3713e58f649cf9
2014-07-16coverity#708510 Uninitialized scalar fieldCaolán McNamara
and coverity708511 Uninitialized scalar field Change-Id: I05b5d836f3a207e70f8fff84524866a54a15daa2
2014-07-16sw/qa/extras/README: document how to run a single testMiklos Vajna
This was already documented in the code, but first it got copy&pasted several times, then now it's "hidden" in a header, so not so easy to find. Change-Id: I6c6814a14bb6208d9f31ee66f0c0f9b843ee7157
2014-07-16DOCX import: handle SDT around citation fieldMiklos Vajna
There were two problems here: 1) Citation field was around a run, but was exported as around the paragraph. 2) The SDT properties were discarded, as they were inserted into a character context that was thrown away. To fix this, add a (character properties) context to the field state, so when it's inserted, it can have the requested properties. Change-Id: Ic36deff616060f049147874633c6c7264ae8ecf2
2014-07-16CppunitTest_sw_ooxmlexport: clean up testfdo79817Miklos Vajna
Instead of checking the third paragraph, remove everything else from the bugdoc, so checking the only paragraph is enough. Change-Id: I74e8db16cb1f27370ac88d9dff136aaeceb63cdb
2014-07-16fdo#80924: writerfilter: RTF import: fix shapeType PictureFrame importMichael Stahl
For shapeType PictureFrame, a default CustomShape was created and then RTFDocumentImpl::resolvePict() crashes because it actually operates on a previous shape, because in this special case RTFSdrImport::m_xShape is never actually set to the new shape, so contains the previous one. Also the new shape needs to be added to the draw-page, at least otherwise the assertion of the supported service fails because some SvxShape::mpObj weak-reference is dead? This essentially reverts commit 3cab1adf19d553663685e8198f0ec3f258a37c36 (except for the added testcase, which was slightly different because it did not have a "pib" property). (regression from ba9b63d8101197d3fd8612193b1ca188271dfc1a) Change-Id: I6539c4286850dff2d8564006487cc765f1d117be
2014-07-16Resolves: #i121443# register text frames and graphics...Oliver-Rainer Wittmann
on the correct page frame - trigger formatting of selected object when moving view to the selected object or when graphical horizontal line has been inserted. (cherry picked from commit 82fafc47de0c59c783c5df596c976a429ff8a21d) Conflicts: sw/source/core/frmedt/feshview.cxx sw/source/core/layout/fly.cxx sw/source/ui/shells/textsh.cxx Change-Id: I4b4b523ff445f2ce20d9b81ad1187db7b44bd145
2014-07-16Added #include <docedt.hxx> to DocumentContentOperationsManager.Valentin Kettner
For use of sw_JoinText and sw_GetJoinFlags. Change-Id: I6bda9a41fcb42663517b505098f74ec596ac6551
2014-07-15Fixed another build failure caused by 2 refactorings.Valentin Kettner
Change-Id: I71f678e60586706ba427485055c26059bb68caa6
2014-07-15fdo#79673 quartz: draw 'bullet' for 'space' directly in one passNorbert Thiebaud
the current implementation of CoreText simply dropped the proper implementation of DrawTextArray, by ignoring DXArray this very visibly borked the show-non-displayable character feature of writer.. the bullet representing the 'spaces' was quite misplaced. This solve specifically this problem. More work is needed to bring proper support of DXArray back to CoreText Conflicts: vcl/inc/sallayout.hxx vcl/source/outdev/text.cxx Change-Id: Idb2cc90d5ffaa8b83f79241cee2d512112d1c3be
2014-07-15Revert "fdo#79673 revert to old NPC for MacOSX only"Norbert Thiebaud
This reverts commit 3a2010c711b0ca4d762681dd0967ad08bc1e23fc. Prep to apply a full fix. Change-Id: I3b71ad79f65e48456d9fd9d257bf471faa0f3482
2014-07-15overriding destructor not explicitly marked 'virtual' [loplugin:saloverride]Michael Stahl
Change-Id: I5d2ee4952443b70ffacfb916423dbb600109c813
2014-07-15-Werror,-Wheader-guardMatúš Kukan
Change-Id: I6b13c77975d8aeef63b424e418a4a4a98ced159f
2014-07-15Related: bnc#875718 DOCX import: fix missing character grab-bag on fieldsMiklos Vajna
The problem was that in case: 1) The paragraph only had a single text portion, which was a field and char grab-bag was set on it and 2) The paragraph had a style which also set the character grab-bag then during import the field's gra-bag was set on the paragraph (as it's the only portion) and later the paragraph style overwrote this, in case that had a grab-bag, too. Work this around by ensuring that in case of portion fields (i.e. not ToC, which has its own paragraphs), there are always at least two portions in a paragraph (the second is removed later). This also fixes the fake paragraph problem at the end of the bnc#875718 testcase. (There was an empty paragraph at the end of the document, but not in the file itself.) Change-Id: Ie404bc043d46157ea6157b18c4a46395cf496118
2014-07-15Resolves: #i125171# support lossless embedding of linked jpegs...Armin Le Grand
in writer for PDF export (cherry picked from commit 131669af7168020750b726e4e6d1568975f73886) Conflicts: sw/source/core/doc/notxtfrm.cxx Add missing includes to fix build break (cherry picked from commit 662b23eb1f1b7c178a7a5507864c647a390fae34) Conflicts: sw/source/core/doc/notxtfrm.cxx 1e2c208ac91c8e666e4f3f6f89cd917736cdc44d Change-Id: Ie560fa05964b79240fbd97825be74b0543c97aba
2014-07-15Fixed build fail on MacOSX after f634ec5 .Valentin Kettner
Change-Id: I26b9063aca5518f21f76ff22690eb55d51f9c5aa
2014-07-15Refactored IDocumentContentOperations out of SwDoc.Valentin Kettner
Into the new class DocumentContentOperationsManager. Made SwNodes in sw/inc/ndarr.hxx friend class to DocumentContentOperationsManager so it can call DelNodes at end of DocumentContentOperationsManager::DeleteSection . Added DeleteAutoCorrExceptWord to SwDoc, its needed in the Manager. Added a non const version of SwDoc::GetDfltGrfFmtColl() to SwDoc because its needed in the Manager. Made SwDoc a friend class to DocumentContentOperationsManager so it can call SwDoc::checkRedlining and SwDocL::_MakeFlySection. Moved SwDoc::CopyImpl_ , SwDoc::CopyWithFlyInFly and SwDoc::CopyFlyInFlyImpl into the Manager. Moved "struct ParaRstFmt" and "lcl_RstTxtAttr" from docfmt.cxx in DocumentContentOperationsManager.hxx . Change-Id: Icaab57f4a8c158a85e549ecb4aacc752bc95bbc9
2014-07-15Refactored IDocumentOutlineNodes out of SwDoc.Valentin Kettner
Into the new class DocumentOutlineNodesManager. Change-Id: I05581391a1474872113ae91d6429709d181cabfe
2014-07-15Refactored IDocumentListsAccess out of SwDoc.Valentin Kettner
In the new class DocumentListsManager. The method listfunc::CreateUniqueListId was also moved there. Added a new method deleteListsByDefaultListStyle to the Interface, which is needed for SwDoc::DelNumRule. Change-Id: I75ea554a57d9402d2fcfeaedf9fbe50fbae2b020
2014-07-15Refactored IDocumentListItems out of SwDoc.Valentin Kettner
Into the new class DocumentListItemsManager. Change-Id: Ic86200280caa1b6e2c940bb12149235223ed0cd2
2014-07-15Refactored IDocumentLinksAdministration out of SwDoc.Valentin Kettner
To the new class DocumentLinksAdministrationManager. Additional to the Interface methods SwDoc::SelectServerObj was also moved and sw/source/core/doc/docdde.cxx was deleted as it became empty. Also fixed OUString usage in IDocumentLinksAdministration.hxx . Change-Id: I1f2bf0881a7d4add9c657b6441851ae14ad8d161
2014-07-15Refactored IDocumentTimerAccess in SwDoc into DocumentTimerManager.Valentin Kettner
Change-Id: Idb39ef2cdc34e0c0e7853de0a656f579ca3528da
2014-07-15Refactored IDocumentChartDataProviderAccess in SwDoc.Valentin Kettner
Into the new class DocumentChartDataProviderManager. Change-Id: I3be038ba276642546223c0c2fba3bea21980b33d
2014-07-15fdo#80054 change color for NPC to "solarized blue"Tomaž Vajngerl
Change-Id: I4ee3d2422982d37be3638b9647096e0b38314d56 Reviewed-on: https://gerrit.libreoffice.org/10327 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Reviewed-by: Joren De Cuyper <jorendc@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2014-07-15coverity#1224992 Uncaught exceptionCaolán McNamara
Change-Id: I328cf5e83e6532dfa5090f5c5e3a1568c48c11d2
2014-07-15coverity#738453 Uncaught exceptionCaolán McNamara
Change-Id: Id05fd31d3a62bec8d658b9ecbae484ac081b8960
2014-07-15coverity#738454 Uncaught exceptionCaolán McNamara
Change-Id: I9b344efa1b46a6e7c6b69d3044ef88b4cba826cb
2014-07-15DOCX FILEOPEN VML Shape (image) is lost on import fdo#81031Vinaya Mandke
ShapeContextHandler::getDrawingShapeContext mxDrawingShapeContext is set once and never reset. So in a file which has numPicBullets and vml shapes in document.xml there is a problem. First the fragment path is set as word/numbering.xml. But when msRelationFragmentPath changes to word/document.xml, mxDrawingShapeContext is not reset and hence the relationships are not resolved. Conflicts: sw/qa/extras/ooxmlexport/ooxmlexport.cxx Reviewed on: https://gerrit.libreoffice.org/10180 Change-Id: I4a1401103797972731257145430f2048b94a04bc
2014-07-15[loplugin:literaltoboolconversion]Michael Stahl
Change-Id: I9303249880ea0eb2f354fd3ae20c9eb3607a836b
2014-07-15fdo#76803: Unit test so that this never regresses.Jan Holesovsky
Change-Id: Id0b883b7d7b902c1f8e41bcf39220ef74b3488bf
2014-07-15fdo#79673 revert to old NPC for MacOSX onlyTomaž Vajngerl
Change-Id: I83cfa2f11e76e03b919216e8dd04d1121ea6afd8
2014-07-14fdo#81231 Make this macro work againMaxim Monastirsky
Change-Id: If655b5ef94657b2771d4e05dd6a2c494aa0e587d
2014-07-14Resolves: #i125228# correct consideration of InputFields...Oliver-Rainer Wittmann
in table cells are part of table formulas (cherry picked from commit b384441c10475c9784eae3ea501afb22e0317468) Conflicts: sw/source/core/fields/cellfml.cxx Change-Id: I4780ce0c1ac9ac911b654f61aa12938d7b225139
2014-07-14DOCX import: fix FooterBodyDistance for first pagesMiklos Vajna
The root cause was that code in SectionPropertyMap::PrepareHeaderFooterProperties() saved member variables on the stack, modified them, then restored them at the end of the method, but forgot to restore m_nBottomMargin there. The result of this was that First Page's FooterBodyDistance got set to zero, which is not the same as Default Style's FooterBodyDistance (150), so on export sw::util::IsPlausableSingleWordSection() returned false, which turned the page break into a section break. Change-Id: I1afa2603de1313ae1e2aaefd4b7c771fce27e21e
2014-07-14Resolves: fdo#52226 swap in graphics on .docx and .rtf exportCaolán McNamara
Change-Id: Ie818b382c0b17760c720ff2f2c73a3697989f97e
2014-07-14loplugin:unreffunNoel Grandin
Change-Id: Ia1b49091c91e257e4c9e1ef328c412ea3f1a451d
2014-07-14coverity#704062 Unchecked return valueCaolán McNamara
Change-Id: I6f9b9a2a4d5a6bf92428645df1226d9354f47210
2014-07-14coverity#738457 Uncaught exceptionCaolán McNamara
Change-Id: I152f105e7bd363528d9fa4e365d32d12c00b0a44