Commit Graph
68 Commits
Author SHA1 Message Date
Xisco Fauli 7782f9fd75 sd: split CppunitTest_sd_export_tests-ooxml2 into two
Change-Id: Ida23d59cd010d6fb9bf4fb8b5f82d2d764281773
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116826
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-06-08 18:33:13 +02:00
Xisco Fauli 6004f17ae6 sd: Use template for export test modules
Change-Id: Ib604d0ad64dc16dbf9c0115a0fb30a8e3c6da337
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116787
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-06-07 19:50:47 +02:00
Miklos Vajna 7032be2e9e tdf#127086 PPT export: fix lost bitmap fill for OOXML custom shapes
PPT can't store an OOXML custom shape with fill bitmap, PowerPoint
generates a fallback bitmap when saving to PPT.

We used to keep the bitmap and loose the custom shape geometry, but that
was changed with commit f4ba484183 (ooxml
import: supprt cropping to shape, 2019-05-13).

Fix the regression by going back to keeping the bitmap, a full fallback
bitmap (ala PowerPoint), would be more work, taking e.g. blurry shadows
(changing the shape position and size) into account.

Change-Id: I7192f912077f2de026573855dbebbdf576e39ebc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106219
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2020-11-20 13:26:49 +01:00
Xisco Fauli 701b46ae0e tdf#104722: sd_layout_tests: Add unittest
Change-Id: I5b255330a3cdd6bc9a5e6d47d894a6f6346d69bb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103251
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2020-09-23 17:38:37 +02:00
Tomaž Vajngerl 342d98b8aa SdrPdfImport: add a test class to sd and write a simple test
Open a simple PDF document, run the "break" action, check that
we get the expected text as a text object.

Change-Id: Iadb458f06b437689202eb013cb900edaabf17673
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93395
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2020-05-05 12:12:07 +02:00
Miklos Vajna 3a874f1c80 tdf#111522 svx: fix crash with view1 doing text edit and view2 doing sdr undo
If one view has an active text edit, then current code doesn't handle
manipulating the undo text outside the text edit, so avoid problems by
simply not adding an undo action to the undo stack for shape creation or
move.

Other actions might want to do the same in the future: check for
CanDoSdrUndo() before calling SdrUndoFactory member functions.

[ Found no existing test suite similar to CppunitTest_sw_uiwriter, so
added one. ]

Change-Id: I3a364bf4fe6f9b0c13aa07283681b1045368cf7a
Reviewed-on: https://gerrit.libreoffice.org/73558
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2019-06-05 23:20:38 +02:00
Miklos Vajna a3fdb6c5c2 uitest: disambiguate UITest_findReplace
There was an sw and an sd one as well.

Change-Id: I3d031674f6866a779d44ce642339ec59bf2c82cb
Reviewed-on: https://gerrit.libreoffice.org/70236
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2019-04-04 09:53:12 +02:00
Tor Lillqvist 42e8bf6df6 Build the sdui library for non-DESKTOP, too
In order to get the Impress-specific dialogs in the (new,
Online-based) iOS and Android apps, too.

Change-Id: I7400326bafc1b8a0470b5ed0fb631ae984b7b795
2019-02-25 15:55:57 +02:00
Zdeněk Crhonek e364c8c3e7 uitest add test for Impress / find and replace dialog
Change-Id: Id3479e790c9a1faf7ce3e0b542900c8875aac653
Reviewed-on: https://gerrit.libreoffice.org/67213
Tested-by: Jenkins
Reviewed-by: Zdenek Crhonek <zcrhonek@gmail.com>
2019-01-31 16:31:24 +01:00
Noel Grandin 2b5812e019 rename ENABLE_HEADLESS option to DISABLE_GUI
since it has nothing to do with the headless command line option, so
use the name it has in the configure.ac file

Change-Id: Ibf0615ed02695d6e48a797f5632e4f417c010c70
Reviewed-on: https://gerrit.libreoffice.org/59611
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-08-27 08:47:49 +02:00
Zdeněk Crhonek dc05737d46 uitest Impress Document properties
Change-Id: Ida877ab6e65d4bcbd42d37fd2567db63f84ed8ad
Reviewed-on: https://gerrit.libreoffice.org/58456
Tested-by: Jenkins
Reviewed-by: Zdenek Crhonek <zcrhonek@gmail.com>
2018-08-03 08:02:41 +02:00
Tamás Zolnai 0c5eda9876 Let's have activex control test also a slowcheck test
Change-Id: I55f8f0ca9478e676832ebbb08e98dbd1cf0fa4fc
Reviewed-on: https://gerrit.libreoffice.org/44666
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2017-11-13 11:53:38 +01:00
Tamás Zolnai 4d98283924 Move sd unit tests to slowcheck
Similar to sw modules we have mostly filters tests here which
takes a bigger amount of time.

Change-Id: I1305fa7904b74f849762ce4e4d7a005680b3a055
Reviewed-on: https://gerrit.libreoffice.org/44656
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2017-11-13 09:50:52 +01:00
Grzegorz Araminowicz 04749a1115 SmartArt: separate unit tests
Change-Id: I9bf522caae155de354c2d28dd92d85e4c016aa14
Reviewed-on: https://gerrit.libreoffice.org/41877
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2017-09-04 12:32:21 +02:00
Tamás Zolnai c0cc02e293 tdf#50097: DOCX: export form controls as MSO ActiveX controls
* Use the same structure for export what MSO uses
** Position and size information are exported as VML shape properties
** Different handling of inline and floating controls (pict or object)
** Do some changes on VML shape export to match how MSO exports these controls
** Write out activeX.xml and activeX.bin to store control properties
** Use persistStorage storage type defined in activeX.xml
* Drop grabbaging of activex.XML and activeX.bin
* Cleanup control related test code

Change-Id: I38bb2b2ffd2676c5459b61ec2549c31348bab41c
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/41256
Tested-by: Jenkins <ci@libreoffice.org>
2017-08-17 23:11:15 +02:00
Tamás Zolnai 595cfbc432 Add ActiveX control tests
Change-Id: I26e5ea3a5c3711139d88476b435a3a0b50dd9cb3
Reviewed-on: https://gerrit.libreoffice.org/41074
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2017-08-12 04:51:42 +02:00
Caolán McNamara 00657aef09 migrate to boost::gettext
* all .ui files go from <interface> to <interface domain="MODULE"> e.g. vcl
* all .src files go away and the english source strings folded into the .hrc as NC_("context", "source string")
* ResMgr is dropped in favour of std::locale imbued by boost::locale::generator pointed at matching
  MODULE .mo files
* UIConfig translations are folded into the module .mo, so e.g. UIConfig_cui
  goes from l10n target to normal one, so the res/lang.zips of UI files go away
* translation via Translation::get(hrc-define-key, imbued-std::locale)
* python can now be translated with its inbuilt gettext support (we keep the name strings.hrc there
  to keep finding the .hrc file uniform) so magic numbers can go away there
* java and starbasic components can be translated via the pre-existing css.resource.StringResourceWithLocation
  mechanism
* en-US res files go away, their strings are now the .hrc keys in the source code
* remaining .res files are replaced by .mo files
* in .res/.ui-lang-zip files, the old scheme missing translations of strings
  results in inserting the english original so something can be found, now the
  standard fallback of using the english original from the source key is used, so
  partial translations shrink dramatically in size
* extract .hrc strings with hrcex which backs onto
   xgettext -C --add-comments --keyword=NC_:1c,2 --from-code=UTF-8 --no-wrap
* extract .ui strings with uiex which backs onto
   xgettext --add-comments --no-wrap
* qtz for gettext translations is generated at runtime as ascii-ified crc32 of
   content + "|" + msgid
* [API CHANGE] remove deprecated binary .res resouce loader related uno apis
      com::sun::star::resource::OfficeResourceLoader
      com::sun::star::resource::XResourceBundleLoader
      com::sun::star::resource::XResourceBundle
    when translating strings via uno apis
      com.sun.star.resource.StringResourceWithLocation
    can continue to be used

Change-Id: Ia2594a2672b7301d9c3421fdf31b6cfe7f3f8d0a
2017-07-21 08:20:50 +01:00
Markus Mohrhard 9999d9ee61 disable the tiledrendering tests in the headless build mode
This was pointed out by the Random Config tb.

Change-Id: I8a4f70d6661178f2671e4e3588f5873c64885c07
Reviewed-on: https://gerrit.libreoffice.org/37175
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-05-02 22:18:35 +02:00
Armin Le Grand ce6cbf86a5 screenshots: add new global make target
Up to now the screenshot creation was added/dependent of
target slowcheck. Since quite some modules have added screenshot
creations now, I added an own target 'screenshot' to allow to keep
current slowcheck and screenshot creation separated

Change-Id: I80a49a0db607edf8e0405672d570f624d29912e7
2016-08-18 02:39:15 +02:00
Katarina Behrens a95241606c screenshots: gen screenshots during 'make slowcheck'
Change-Id: I666dfcb451367f5ac9f36207703cf090c1846b35
2016-08-18 02:39:11 +02:00
Katarina Behrens 28a806d3f1 screenshots: exclude sd tests for the while
Change-Id: Ia5fc46f5030285049acf4836ba4cbd6285cbe5ae
2016-08-18 02:39:08 +02:00
Armin Le Grand 3fb0839da3 screenshots: extend default paths where stuff gets written
Change-Id: I1886d832bb9474371ea27d4d36f0446b221246d0
2016-08-18 02:39:07 +02:00
Michael Stahl 3fc8262363 sd: sd_export_ooxml still takes the most time, split it in 2
Change-Id: Ib102ba9b54c4b7730c583e3cb5e769f70fcb5b09
2016-07-01 11:21:10 +02:00
Michael Stahl 0a93639221 sd: split up sd_export_tests
Move all PPTX export tests to a new file.

Change-Id: Idb90baf6b145cdfaf5301583489a7257c5fa23a4
2016-07-01 11:21:10 +02:00
Miklos Vajna e2667a55a8 CppunitTest_sd_tiledrendering: replace ifdefs with a single makefile condition
Change-Id: I61e5cad8dee9f6dace6fe78b01a6ecefbd9d8f78
Reviewed-on: https://gerrit.libreoffice.org/26144
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2016-06-10 08:15:43 +00:00
Mike Kaganski 6381fe554a tdf#96206: Avoid scaling objects while copying to clipboard
... to prevent duplicating masters on slide copy-paste.
Also fixed a 10-year copy-paste error (pRefPage wasn't replaced
with pNPage).
Fixed argument evaluation order issue (aStream.GetEndOfData()
depends on Flush() but doesn't call it, so will return incorrect
result if called before aStream.GetBuffer()).
Replaced compare of hashes with results of stringify(),
because it removes useless overhead (hashes are calculated from
stringify() anyway, and are not cached anywhere).
Removed Flush() called from SvMemoryStream::GetBuffer(), because
it calls GetData(), which calls Flush() itself.

Thanks to Andras Timar for unit test framework.

Change-Id: Ia46d4e9a017fc628d424949a9d229045a249a4ca
Reviewed-on: https://gerrit.libreoffice.org/20367
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-12-14 09:05:21 +00:00
Baptiste Daroussin 6ac9a4f0a3 Make .mk files more portable
Replace some -ldl by $(DLOPEN_LIBS)
Add some FREEBSD tests

Change-Id: Ic30fe29b938d877694db2927775f89de15c02d87
Reviewed-on: https://gerrit.libreoffice.org/20652
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Matúš Kukan <matus@libreoffice.org>
2015-12-12 10:03:37 +00:00
Miklos Vajna 327933f22a sd: CppunitTest_sd_svg_export_tests is Linux-only so far
Change-Id: If0f93ab9414f9013aab580bafc67f77891dfd8cc
2015-11-05 17:04:57 +01:00
Marco Cecchetti 87e0c9f6d7 sd: add support for svg export unit tests
Change-Id: Iafeaecad612b724c4eeb85e0c01c942afb6445d8
2015-11-05 16:13:12 +01:00
Miklos Vajna f8bd9687e7 Add testcase for sd::Window::LogicInvalidate().
Change-Id: I1d2e6ed9691ca43abb18bdf04fcf5a6c73a66f18
2015-04-07 09:18:03 +02:00
Matúš Kukan 3ff9136efe Disable more tests with _use_library_objects for mergelibs
Change-Id: Iad803091864fb1a1a974df7c8eea6dba566d186c
2015-02-21 20:22:39 +01:00
Markus Mohrhard f4dca0bfa5 split sd's import and export tests
Change-Id: I06d5b02ec94c7bb74b64cd210267acf2be1a4931
2014-07-04 15:59:58 +02:00
Tomaž Vajngerl e679c101ac sd html: impress html export test
Change-Id: I710868b4cb19cec2820c3cf699dd5d855e3da7e2
2014-04-13 23:13:57 +02:00
Matúš Kukan 9ad3fc29dd Avoid app specific CreateDialogFactory code for non-DESKTOP.
As happened in 7e9ac59527 for cui library.

Change-Id: If51201eb452d4b84729b37949fb9b949020b47b8
2014-02-19 12:26:41 +01:00
Bjoern Michaelsen 78c7eb3507 uiconfig is a l10n-relevant target
Change-Id: I8a2ca73c02fd6b04ce60e7701c51d2362ef7ec06
2013-12-16 17:36:26 +01:00
Bjoern Michaelsen 04dead1c6b make l10n buildable separately
- this renames the 'almost' module target to non-l10n
- and adds a l10n target which is intended to only build l10n parts of
  the product
- packagers should then be able to build l10n and non-l10n parts of the
  product independently, thus:
   - enable quicker rebuilds
   - distribution of load
   - updates to l10n without a full rebuild
   - security fixes to binaries without rebuilding all l10n
- the new targets are called build-l10n-only and build-non-l10n-only
- note this is not intended to move a concept of split packages
  upstream -- while this exsists in distros, the number of test
  scenarios for this would explode upstream

Change-Id: Ib8ccc9bc52718d9b0ebbfee76ad93dc29c260863

Conflicts:
	filter/Module_filter.mk
2013-11-14 16:45:02 +01:00
Jan Holesovsky 77b14c46aa sd unittests: Better name for the import tests.
Change-Id: I62c47cbfd71e7606770552368e97e1c92fadf211
2013-05-14 16:50:46 +02:00
David Tardon 2f8d2c4ce4 install impress xml config files using filelists
Change-Id: I072d5283f979b42ffbd359575209c09cf445b6df
2013-05-04 16:44:47 +02:00
David Tardon 80db6f58ef gbuild: drop unneeded package
Change-Id: I9d0fa82302f07b2ae3820d416556d2c4e40f70df
2013-04-23 23:40:57 +02:00
Michael Meeks 62badf3828 Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-22 09:37:38 +01:00
David Tardon bec67a2e7f deliver all uiconfig files by UIConfig
Change-Id: Ie78b7ce399ba34485146ca7622c59d31f8105d02
Reviewed-on: https://gerrit.libreoffice.org/3229
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-04-11 03:39:16 +00:00
David Tardon ed72983131 rename UI to UIConfig
I plan to use it to deliver all */uiconfig files, not just .ui, as a
preliminary step to get rid of postprocess/packconfig.

Change-Id: Ie7b4434b2f247165e3ab69a4d0c193418720a149
Reviewed-on: https://gerrit.libreoffice.org/3225
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-04-11 03:37:30 +00:00
Caolán McNamara 87b5cdd5ed convert writer, draw, impress, calc and starmath printer dialogs
to new-style widget layout mostly described in .ui format

Change-Id: I8ead53a246a8ac3e2d446d158f06d7e2e436ce60
2012-09-28 08:48:44 +01:00
Markus Mohrhard 4e4d568362 enable sd tests again
Change-Id: I773dc0dc4a2d5faf98420d3901d28c2a08e64c00
2012-07-13 21:20:38 +02:00
Artur Dorda 4024d14610 Restructurization of XShape- and EnhancedShape- dumpers, builds fine now
Change-Id: I57e230f5b2aff8cd6818b38776ae0b0b0d614d61
2012-07-12 03:10:14 +02:00
Markus Mohrhard 1f0555e001 add test back that I disabled accidently
Change-Id: I614c483b3c7182d9c8e9915ce8b280051d9ca690
2012-07-12 03:10:12 +02:00
Markus Mohrhard 22d863454c testing odp files makes much more sense
Change-Id: I4023855513016e7f9d850bf96815539696536552
2012-07-12 03:10:11 +02:00
Artur Dorda f5dbe0eaba Usage of XShapeDumper in Impress added
Change-Id: I7abb493d8baaa42a45e24276abdcadbfd186651a
2012-07-12 03:10:11 +02:00
Caolán McNamara bf4484037c fix filters test dependencies 2012-02-09 14:32:06 +00:00
Markus Mohrhard 925907767c disable sd's regression test again 2012-01-26 01:40:23 +01:00