64 Commits
Author SHA1 Message Date
Stephan Bergmann 5e43ccb275 More CppunitTests need the ASan hack
...from e854abe076 "Avoid external processes
picking up instdir/program/libnspr4.so", after Xisco's recent CppunitTest clean-
up

Change-Id: Ia47e770a439af3476f81f8c28f2527bbf144baa4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141890
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-10-26 21:22:53 +02:00
Xisco Fauli a55812aa84 CppunitTest_sc_macros_test: split it into two
The .cxx are already separated, use a different
makefile for vba-macro-test.cxx
This might help to mitigate the CppunitTest_sc_macros_test
failure happening in Jenkins on Windows

Change-Id: I5708de3527041a5fcb33287f75f0e14642a88c4e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135862
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-06-15 11:17:33 +02:00
Tomaž Vajngerl 0c6ee963e1 sc: fix VBA Copy-Paste using same and separate document
This fixes 2 issues with VBA copy-paste:
- VBA command Range(..).Copy issue where the range wasn't selected
when copying and the copied cells were from the previous selection.
The Copy command now does the same selection as the Cut command.

- VBA PasteSpecial issue where the wrong view was used to get the
clip document.

- VBA Workbooks.Add issue where the new workbook wasn't activated
after it was created, which causes an issue when running tests, but
not when running in LO application. The Add command does now the same
as the Workbooks.Open command.

All the issues are supported by new test cases.

Change-Id: I36ec45c01f18f7f76e4f95a25a28402a6ee0e2e2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128720
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2022-01-21 10:42:02 +01:00
Tomaž Vajngerl 7bd62c00c5 Separate core drawinglayer func. into drawinglayercore library
This separates the drawinglayer core functionallity into a
separate library, to keep a strict separation what is backend
dependent and what is not. More strict separation can be done
at a later date.

This will make it possible to push part of drawinglayer
(part of processor2d) directly into VCL.

Change-Id: Ibc26580067e50bf20d7cdd37fa0e44eb10200878
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127286
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-12-22 12:10:10 +01:00
Caolán McNamara 26cfb57abf use Helper_optional SCRIPTING for libs that don't exist if --disable-scripting
Change-Id: Iec65d6395b903e13f788fe8322b60aac5b974cd4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120125
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-08-06 21:16:43 +02:00
Miklos Vajna 7e7a871bcd XLSX export: handle macros on button form controls
This builds on top of commit 1e3263a677
(XLSX export: handle button form controls, 2021-07-01).

The binary XLS export already had code to turn Calc macro names into
Excel ones, reuse that for XLSX purposes.

Also fix the unwanted named range on export,
oox::xls::FormulaParser::importMacroName() mentions how XLSX doesn't
have matching named ranges for vba macros (while XLS has), mirror this
on the export side as well.

Change-Id: I877b6ba2c2e834a2327482da5cadcddf1b4672bb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118485
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2021-07-06 15:50:08 +02:00
Mike Kaganski 4abb191916 tdf#57113: store UTF-16 stringpool data after legacy 1-byte data
This allows to correctly store and read Unicode strings used in
password-protected libraries. The additional data stored after all
legacy data of the stringpool record (after a magic number to mark
its presence), and so is invisible for older versions of program:
this allows to keep the version of data and backward compatibility.
Of course, older versions will only see legacy data, with broken
Unicode strings; and password-protected libraries edited and saved
in older versions will not contain Unicode data.

read_uInt16s_ToOUString and write_uInt16s_FromOUString are used
for correct handling of UTF-16 strings on LE/BE systems.

Change-Id: I990bc27b5cc7d499e71c43d45b7f263af41911e7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86065
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2020-01-01 19:21:50 +01:00
Luboš Luňák ba33189343 add gbuild function for a common PCH and use it in sc/ and sax/
And make it simple to disable the whole feature by setting
gb_DISABLE_PCH_REUSE=1, just in case.
Also work around a possible BOOST_ALL_NO_LIB mismatch when
using the common PCH.

Change-Id: I96fd507edf1ada6242ac225026250e5a588d0193
Reviewed-on: https://gerrit.libreoffice.org/79365
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2019-10-04 08:59:34 +02:00
Tomaž Vajngerl 7fbb96c2fb Move (and rename) graphic stuff from svtools to vcl
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: https://gerrit.libreoffice.org/51068
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2018-03-11 13:37:21 +01:00
Henry Castro 2356d9e499 tdf#107806: Semantic and syntax for .uno:RowHeight have been changed
Change-Id: If9ce7ff36ef3ba8e55103765f3260e74ab2eebd4
Reviewed-on: https://gerrit.libreoffice.org/41567
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2017-08-25 16:28:16 +02:00
Stephan Bergmann 098b685e90 No reason to silently misbehave when these UNO services are missing
...which e.g. made it unnecessarily hard to track down
7a23668e4f "Fix CppunitTest_cppcanvas_emfplus"

Change-Id: I2f537fabb067b77e82b900bd2cba30fd65c275aa
2017-07-18 14:22:54 +02:00
David Ostrovsky de030cd7a2 gbuild: Remove MSVC 2013 legacy code
Uwinapi is discontinued.

Change-Id: I063b4d0d8fab2d60de168e960a63b8181158ac01
Reviewed-on: https://gerrit.libreoffice.org/23198
Reviewed-by: David Ostrovsky <david@ostrovsky.org>
Tested-by: David Ostrovsky <david@ostrovsky.org>
2017-04-21 18:18:44 +02:00
Giuseppe Castagno fed8226315 Add various uui dependency
Change-Id: I926a0df300aad01f531832f857373e9764c32b1a
Reviewed-on: https://gerrit.libreoffice.org/27653
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-07-28 18:50:01 +00:00
Michael Stahl f0a6041559 gbuild: CppunitTest: always use unittest configuration
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
2015-02-27 19:33:07 +01:00
Tor Lillqvist 9ecac3874d Replace DISABLE_SCRIPTING with HAVE_FEATURE_SCRIPTING
Feature test macros that govern conditional compilation should be
defined in config_*.h include files, not on the compilation command
line.

Change-Id: I40575a4762fd2564f10927b6f38a112dd9f9a3d7
2014-10-22 09:30:23 +03:00
Markus Mohrhard 7847962863 sort libraries and components in sc test makefiles
Change-Id: I38cda4e1ba520c9bb15f71b27543cb80fd696424
2014-06-26 01:07:33 +02:00
Stephan Bergmann 369d95931f DeInitVCL at end of tests
This required some changes to the framework:

* Init-/DeInitVCL is no longer done per individual test in BootstrapFixture, but
  once per CppunitTest invocation in a new vclbootstrapprotector (similarly to
  the exisiting unobootstrapprotector).  CppunitTests that need VCL now need to
  declare gb_CppunitTest_use_vcl.

* For things to work properly, the UNO component context needs to be disposed
  from within DeInitVCL (cf. Desktop's Application::DeInit called from
  DeInitVCL).  The easiest solution was to introduce an
  Application::setDeInitHook (where the hook is called from DeInitVCL)
  specifically for vclbootstrapprotector to call.

* PythonTests don't (yet) call DeInitVCL; they still hook into
  BootstrapFixture's original test_init functionality (to call InitVCL), and do
  not make use of the vclbootstrapprotector.

Change-Id: I4f3a3c75db30b58c1cd49d81c51db14902ed68b2
2014-06-04 08:55:12 +02:00
Maxim Monastirsky 40a6b4863c sc: Fix bunch of tests
Change-Id: I7ea90d4be037d9935ef23822512f48b100a446a2
2014-05-04 19:41:47 +03:00
Tor Lillqvist be862ff4f7 Try making it possible to use --disable-avmedia for desktop platforms too
Unfinished work in progress.

Change-Id: I978755d73630b8653b169a53f937c1332799e22e
2014-04-18 00:07:20 +03:00
Matúš Kukan 6d564bac02 svx: Use constructor feature for SvXMLGraphicImportExportHelper.
Change-Id: Icc281ece80b81cdd95b6660c6a82077d283f5a62
2013-12-31 13:25:47 +01:00
Marcos Paulo de Souza eebc1e9a8a fdo#60698: Merge fastsax and sax_shared into expwrap
Change-Id: I6f8c6827c00db50184a46f39968f882b944d18d4
Reviewed-on: https://gerrit.libreoffice.org/6967
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
2013-12-11 20:45:30 +00:00
Stephan Bergmann 79acd67d1f Missing mdds_headers
Change-Id: I8a4ef636aef382d75ae5e84eeb4f3c5caf8ed02f
2013-10-23 22:04:25 +02:00
Marcos Paulo de Souza b538fc543e fdo#60698: Move fileaccess module to ucb
Change-Id: I4c688a4aeedcae56ed6404574bd1bb392d4190cb
Reviewed-on: https://gerrit.libreoffice.org/6311
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2013-10-18 12:25:11 +00:00
Matúš Kukan e1b51e7beb gbuild: use .xcd configuration files from instdir
..instead of .xcu files in solver/*/xml/registry
when running unittests and gengal.

Change-Id: I390a6c531d653acca7ef3379c49fe65fcb8f3c2a
Reviewed-on: https://gerrit.libreoffice.org/6057
Tested-by: Michael Stahl <mstahl@redhat.com>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2013-10-01 10:54:14 +00:00
Noel Power 063709590e adjust components needed for CheckOptionToggleValue.xls testfile
Change-Id: Id9aa26cac2f59829e8b00057c82dc52bbbbc20cb
2013-05-09 14:11:14 +01:00
Michael Meeks 62badf3828 Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-22 09:37:38 +01:00
Eike Rathke 876c619b94 new module i18nlangtag
Moved portions from module i18npool, all of former i18nisolang1 library
that now is i18nlangtag. Included are languagetag, isolang and mslangid.

This i18nlangtag code is now even used by module comphelper, so
disentangling i18npool and making this an own module was needed to not
create circular module dependencies.

Change-Id: Ib887c3d6dde667403fd22d382310ba5f1a9b0015
2013-04-05 19:10:48 +02:00
Noel Power 5eb1628b67 enable bag load of excel specific VBA api tests
Note: some of the test documents have some tests disabled in order to run
without errors, these are identified by the following lines

Rem [#FIXME disabled 3.6 ] in the macro source.

note: some of these errors are expected and were always happening, some
errors e.g. those pastespecial specific ones in
qa/unit/data/xls/TestCalc_Rangetest2.xls
seem to be to do with problems with the test harness.

note: there are some others ( e.g. in Window.xls & windows2.xls ) that seem
to be related to hard sizes and screen resolution ( these should be adjusted
sensibly )

Change-Id: I07a43a2802d4e1794ac2f8c648f666b5bcd13a04
2013-03-07 09:21:32 +00:00
Noel Grandin 8c31a6baf0 fdo#46808 use document::DocumentRevisionListPersistence constructor
Change-Id: I1a591ec4061c73657c26552d41c58b970696038f
2013-03-07 08:23:42 +02:00
Marcos Paulo de Souza 7226ac25e2 Use a method from UnoApitest instead of implement a new one in calc
In calc, we see a lot of implementations of createFileURL. So get ride
of all it and start to use the UnoAPitest::createFileURL method.

Also, clean the UnoApiRest::createFileURL method, fix the path from UnoApiTest and
moved some testing files to the right dir that the file belongs.

Conflicts:
	sc/qa/extras/scoutlineobj.cxx

Change-Id: Ic02f13777503729ac70da590f4a42866f17ea9b2
2013-01-31 04:31:10 +01:00
Michael Stahl a53586f4ef gbuild: do not copy boost headers around
- do not use gb_UnpackedTarball_copy_header_files for boost
- adapt the optimization in concat-deps.c for new path
- use boost_headers in all LinkTargets that require it
- add explicit include paths to mysqlc, mysqlcppconn, libvisio, liborcus

Change-Id: I0c43e73ed43cc9d2e6bce8faf55e992d655a0bb9
2013-01-26 22:20:06 +01:00
Noel Grandin 43d9f35c26 fdo#46808, Adapt linguistic2::LinguServiceManager UNO service to new style
Create a merged XLinguServiceManager2 interface for this service to implement.
Which is backwards-compatible, but does not require creating a new service.

Change-Id: I297bada1066cd74809108641b56ee4d5898112ec
2012-10-30 11:02:39 +01:00
Tor Lillqvist cc1a1123db No vbaobj component if DISABLE_SCRIPTING
Change-Id: I8b00febb62502280afa6106289104af151caf9c5
2012-10-01 15:43:00 +03:00
Michael Stahl 5032dc0fc3 gbuild: invert handling of standard system libraries:
Always link in gb_STDLIBS, except when the library explicitly opts out
with gb_LinkTarget_disable_standard_system_libs.

Change-Id: I489a99114fbfa46d0421a27cf6c7b899dc268a4a
2012-09-28 16:49:08 +02:00
Michael Stahl b85c349783 gbuild: replace direct gb_STDLIBS use with ...
... new gb_LinkTarget_add_standard_system_libs

Change-Id: Ib2bc843098db3d8c6822b45a3d21724e67f57d69
2012-09-28 16:49:06 +02:00
Michael Stahl 2e677c3981 gbuild: split uwinapi out of gb_STDLIBS
Change-Id: I53316e0b9369d806197bccb42cf22d3497af43e7
2012-09-28 16:49:05 +02:00
Matúš Kukan 9e04ae0b7d add more runtime deps on resource files for unit-tests
Change-Id: Id9bbb2bbcafe335eada3f36ae103a9074a56848f
2012-08-21 02:06:01 +02:00
Matúš Kukan 7530303bf9 gbuild: missing dep on $(OUTDIR)/unittest/registry for tests
Change-Id: Ic80f57946e7b3f9c1bd99ed65955cf3c280063d2
2012-08-10 12:02:40 +02:00
Noel Grandin b3c76dee6d fdo#46808, Adapt UNO services to new style, Part 7, updating ::create
Update calls to factories to use new ::create methods

Change-Id: I01d4417820f52718836c92faf3c2fae0dc96b30d
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, added some tweaks.
2012-06-04 16:57:55 +02:00
Matúš Kukan 5dce272584 move dependency on localedata_en to i18npool 2012-04-12 20:53:14 +02:00
David Tardon 5fcacd8408 rename gb_CppunitTest_uses_ure 2012-04-08 15:17:45 +02:00
David Tardon fbbb833dda compile- and run-time use of UNO must be split
There are unit tests that do not use URE, e.g., in cppuhelper.

This reverts commit 33e9f3d3d6.

Conflicts:

	sot/CppunitTest_sot_test_sot.mk
	svl/CppunitTest_svl_urihelper.mk
2012-04-08 15:12:18 +02:00
David Tardon cd2c512f9f clean up 2012-04-08 14:53:10 +02:00
David Tardon e3cf2b45f7 simplify use of configuration from unit tests 2012-04-08 14:53:09 +02:00
David Tardon e5f16b8d3e always use --protector for UNO tests 2012-04-08 14:53:08 +02:00
David Tardon 33e9f3d3d6 drop uses_ure 2012-04-08 14:53:08 +02:00
David Tardon fe209e78db let use_api handle the use of type rdbs at runtime
Or is there any use case where we would need to use UNO API headers, but
not require the appropriate type database at runtime?
2012-04-08 14:53:07 +02:00
Michael Stahl c923f7d2c2 gbuild: "use" vs. "add":
Naming convention for gbuild methods:
- "add" is used for stuff that is logically a part of the target
  (i.e. not registered at the Module, but defined in the target's makefile)
- "use" is used for stuff that is logically a different target
  (i.e. it is registered at the Module, has it's own makefile, may be
  in a different module than the target)
2012-04-08 01:05:52 +02:00
Luboš Luňák 802518c59a always pass --headless to cppunits
They should not need any actual UI anyway, and most of them already
pass the option manually.
http://lists.freedesktop.org/archives/libreoffice/2012-March/029109.html
2012-04-02 12:26:20 +02:00
Matúš Kukan 84b3f7b345 gbuild: get rid of realpath in gb_Foo_set_include 2012-03-10 21:23:20 +01:00