path: root/sw/
AgeCommit message (Collapse)AuthorFilesLines
2019-11-08sw: no reason why SwModelTestBase can be used only by "extras" testsMiklos Vajna1-1/+1
So move it one level up, this way more tests can share code in the future. Change-Id: I35300b3c88ac9a5c39916f53b1b1743aa85869a0 Reviewed-on: Tested-by: Jenkins Reviewed-by: Miklos Vajna <>
2019-10-04use the common system PCH header in sw/Luboš Luňák1-0/+2
I suppose a number of these should even better use a shared PCH that also includes Writer headers. Change-Id: I3227bff71ddc2cd2e59ef18c1481606de16f9ea5 Reviewed-on: Tested-by: Jenkins Reviewed-by: Luboš Luňák <>
2019-06-07sw btlr writing mode: DOCX drawingML import for fly framesMiklos Vajna1-0/+1
By using the now working btlr direction of the underlying fly frame, instead of the character-level workaround. Change-Id: I3024e3348a30c72f461032b03b88c210f25eb75a Reviewed-on: Tested-by: Jenkins Reviewed-by: Miklos Vajna <>
2019-03-08sw: replace long lists of components with services.rdbMichael Stahl1-58/+1
This should be more maintainable. Change-Id: I60ee68cd79f7a0627bcaf8fd34d3036124ea0f9e Reviewed-on: Tested-by: Jenkins Reviewed-by: Michael Stahl <>
2019-01-24Clean up dead uses of DISABLE_ATLStephan Bergmann1-3/+1
...after e597ef0489d9d5504721d21eefa15c65da0fb240 "No need for --disable-activex and --disable-atl any longer" Change-Id: I6ea0026fd18e0097aaaf0c1b05618e2a9ddf1a94 Reviewed-on: Tested-by: Jenkins Reviewed-by: Stephan Bergmann <>
2018-10-01Change all font-based tests to depend on ooo_fontsJan-Marek Glogowski1-0/+2
Instead of depending on individual font packages. Most didn't depend on fonts at all. Change-Id: I190295bbecb1b44aa34aaf0874afadd35b5daeb4 Reviewed-on: Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <>
2018-05-31SwModule is a convenient (?) place for passing events to Automation clientsTor Lillqvist1-1/+5
Generate Application.DocumentChange and Application.Quit events. SfxHintId::DocChanged seems to correspond nicely enough to Application.DocumentChange. It is generated a bit eagerly, but as its documentation is fairly vague and no specific detailed information is passed in parameters anyway, it probably doesn't hurt if a client gets it a bit more often with LO than with some other product. Can now remove the FIXME-marked Quit event things in SwVbaApplication. Now need oovbaapi in many makefiles for them to compile. Change-Id: I4d0c5b93b584f198bcc854002eec7aaba7909ecc Reviewed-on: Reviewed-by: Tor Lillqvist <> Tested-by: Tor Lillqvist <>
2018-03-11Move (and rename) graphic stuff from svtools to vclTomaž Vajngerl1-0/+1
This is preparing to change how GraphicManager works where it won't base itself around GraphicObject anymore but Graphic. No functional or cosmetic change was made to the classes, only changes that were needed because of the move and rename. The only thing that wasn't moved is the GraphicRenderer as it is not needed in vcl for now (but makes sense to move it in the future to keep graphic stuff together). grfmgr was renamed to GraphicObject as the GraphicManager will be changed a lot and most likely moved out, so the name grfmgr won't make any sense anymore. All the UNO implementations were renamed with a prefix Uno and used the same name as the class name. This is made to be more specific which are the Uno objects (for example graphic.cxx contained the implementation of XGraphic, which is similar to graph.cxx contains Graphic). Change-Id: I54a2fa6c7e997469aaa7770db05244adb9f64137 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Tomaž Vajngerl <>
2017-08-17tdf#55427 ww8export: treat document-end-footnotes as endnotesJustin Luth1-0/+1
MSWord has two choices for footnotes - at page-end or page-bottom. LO has different choices for footnotes - at document-end or page-bottom. Since document-end footnotes act like endnotes, convert those footnotes into endnotes during DOC/DOCX/RTF export. No matter what happens in this situation, some compromises have to be made. The main compromise now is that the anchor numbering for endnotes defaults to i,ii,iii while footnotes are 1,2,3. The conversion obviously will switch to endnote style. This is user adjustable of course and will be retained on following round-trips. Also the (footnote) paragraph style is retained, but future endnotes will use a potentially different endnote paragraph style. Remedying those perceived deficiency is left as an exercise for the motivated reader, who of course will take into account the possibility of both endnotes and chapter-end footnotes existing in the same document... The unit tests' primary purpose is to ensure that footnotes following down the endnote export path don't cause LO to crash. Change-Id: I219d499df7981a14f824a664b15051ad10ff6642 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Justin Luth <> Reviewed-by: Miklos Vajna <>
2017-07-18No reason to silently misbehave when these UNO services are missingStephan Bergmann1-0/+1
...which e.g. made it unnecessarily hard to track down 7a23668e4f4e235c7a4e1c99e38506bd9c874be8 "Fix CppunitTest_cppcanvas_emfplus" Change-Id: I2f537fabb067b77e82b900bd2cba30fd65c275aa
2017-04-21gbuild: Remove MSVC 2013 legacy codeDavid Ostrovsky1-2/+1
Uwinapi is discontinued. Change-Id: I063b4d0d8fab2d60de168e960a63b8181158ac01 Reviewed-on: Reviewed-by: David Ostrovsky <> Tested-by: David Ostrovsky <>
2017-04-12take the .ui files from $BRAND_BASE_DIR/$BRAND_SHARE_SUBDIRCaolán McNamara1-1/+1
Change-Id: I9cffdc092206c038da32a32a2cfe629e68b5c258
2017-04-12ooxmlexport4 triggers .ui loading tooCaolán McNamara1-1/+5
Change-Id: I9ed7b3a90f87d9235f80b7d5201ea35ac1ec01e1
2017-03-08make SfxGetpApp just get and move GetOrCreate to the peripheryCaolán McNamara1-0/+1
Change-Id: If3b22635e46dbccf0fad101f51bb653cbbcd3a32 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Caolán McNamara <> Tested-by: Caolán McNamara <>
2017-01-18sw: roundtrip test of OOXML decryption/encryptionTomaž Vajngerl1-0/+1
Change-Id: Idea2a46a692aed666eb8dbc6185ae001d30757c2 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Tomaž Vajngerl <>
2016-10-11move round-tripables to ooxmlexportJustin Luth1-0/+1
This serves two purposes. It helps to prevent regressions and it allows focus on features that still don't export properly. The standard .mk file had trouble on the Mac, so I ended up copying instead of trying to tweak the export template. The huge section of tests excluded from Win32 testing is still excluded here. The ole-anchor test works as export in the import code, but didn't work from the ooxmlexport directory, so left that one as import only. Change-Id: I9d72202c577940ba94855096c5a11d4dec4790a5 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Justin Luth <>
2016-06-09tdf#94698 cleanup Makefiles. Get rid of udkapi and offapiGleb Mishchenko1-4/+1
This patch changes occurences in makefiles from $(eval $(call gb_CppunitTest_use_api,comphelper_test_config, \ udkapi \ offapi \ )) to $(eval $(call gb_CppunitTest_use_sdk_api,comphelper_test_config)) (corrected instead of abandon, jani) Change-Id: Ic96ec65d82d7452e288f05a8b6d576ef543b068e Reviewed-on: Tested-by: Jenkins <> Reviewed-by: jan iversen <> Tested-by: jan iversen <>
2016-03-24Revert "tdf93236 N-UP printing in combination 1/4"Jan-Marek Glogowski1-1/+0
Whole subject was: "tdf93236 N-UP printing in with mailmerge broken file-print 1/4" This reverts all dbmgr.cxx changes, which were a result of this commit. This patch merges the reverts for the following patches: * "sw: remove include of sw/source/inc/uibase/dbui.hxx from dbmgr.hxx" commit 4b01af28e6fee1ec3096ed713d1db832b3508420 * "coverity#1346891 Unused value" commit 1876d9a807ee0b3480ab108273930897cc697d88 * "tdf93236 N-UP printing in combination with mailmerge broken file-print 1/4" commit d8ff907197037045fd0cb173e341f515968b65b1 Change-Id: Ic51230c484fb9ee5dba2331c51ced1d20a787afa
2016-01-06WIP: Fix build with --disable-atl on WindowsTakeshi Abe1-1/+6
This avoids finding emboleobj's component in such case. Change-Id: Ie1bdef629a55b4ddb6be2538939867c182c184b3 Reviewed-on: Reviewed-by: Matúš Kukan <> Tested-by: Matúš Kukan <> Reviewed-by: Michael Stahl <>
2015-12-21tdf93236 N-UP printing in combination with mailmerge broken file-print 1/4Juergen Funk1-0/+1
Refactory the methode "MergeMailFiles" Change-Id: I65441ade522c06335b0da23cb2fed9afc5bcb72e Reviewed-on: Reviewed-by: Katarina Behrens <> Tested-by: Katarina Behrens <>
2015-12-20sw: add yet another stupid component for WNTMichael Stahl1-3/+1
Change-Id: I5b5ea7c2baa7fa3f779138168031935d2f1574bb
2015-12-03sw: fix DOCX export of embedded OOXML objectsMichael Stahl1-0/+6
OOXML embedded objects are converted to ODF during export, which prevents the export from working, as it expects a stream, and ODF uses a storage. There is already a unit test in testEmbeddedXlsx, but it wrongly succeeds because the components necessary to convert from OOXML to ODF are missing in the test environment. Change-Id: Ib4df346e04ecfb54ec1a728535be876db921b884
2015-12-02DOCX export: handle <w:smartTag>Miklos Vajna1-0/+2
A Writer document can have multiple arbitrary RDF graphs, handle the following subset: - instead of handling all graphs, have a whitelist, look at the TSCP graph the DOCX importer creates - look for (paragraph, key, value) statements and export those Change-Id: I142c24fb4c8140bde5fc1efad2932886de167b90
2015-05-18don't fail on export of ooo96040-2.odt to docxCaolán McNamara1-0/+1
If we want to close a cell of a table which encloses another table, then close that enclosed table first. These are pretty pathalogical old-school tables. For now assume this can only occur when the row of the enclosed table is cleanly closed and assert if that isn't the case. Change-Id: I28e4d40072cb8d92be361716e82574075b15dd89
2015-03-02tdf#89774 oox: TotalTime is in minutesMiklos Vajna1-0/+3
Change-Id: Ie65a8adbd077997f4a13914dd8e0ba4d55afd7b7
2015-02-27gbuild: CppunitTest: always use unittest configurationMichael Stahl1-2/+0
The sc_subsequent_filters_test was failing because of a lock file because it did not use the unittest configuration. Refactor gb_CppunitTest_use_configuration so it uses both the instdir and unittest configuration to prevent such errors. In case there ever is a test that does not work with the unittest configuration it should call gb_CppunitTest_use_instdir_configuration. Change-Id: Ibc00d42f8b6102d50d922f51173120798fa45c6e
2014-08-19split CppunitTest_sw_ooxmlexport into several testsLuboš Luňák1-0/+51
In order to allow running them in parallel. There are already enough tests to make it run for a couple of minutes and it's annoying to see only once core busy with it. I intentionally left the original file at the same name, without 1 appended, in order to avoid merge problems. Change-Id: I097c45c34797cc68f5d1790cf31eefc96fbaf44e
2014-03-12sw: the test_segfault_while_save.docx requires svl component...Michael Stahl1-0/+1
... to create a; without that importing a header is interrupted by exception without calling endParagraphGroup(). Change-Id: Ib5023329c9f944336582c05b1fa836bbce7813af
2014-02-26CppunitTest_sw_ooxmlexport: factor out drawing-related testcasesMiklos Vajna1-0/+63
As a start, moved 30 asserts to the new suite, still 378 is in the original one. Change-Id: I934bce63e286af3080ae014c3bd8f4f09866feb2