11 Commits
Author SHA1 Message Date
Xisco Fauli ba3fb9026c merge UnoApiText and UnoApiXmlTest
in preparation for a follow-up commit

Change-Id: I3449c031696fe3ab13d4832e2671da08eb483cdb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199552
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-02-18 21:17:13 +01:00
Xisco Fauli 1bcd3df23c dbaccess: use createTempCopy instead of doing it in make
Change-Id: Ib1e550dbe5ea74827562e3706c4a310171df77af
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168675
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-06-11 16:23:22 +02:00
Stephan Bergmann eeb61b2072 Missing test dependency
> warn:vcl.builder:774639:774639:vcl/source/window/builder.cxx:480: DBG_UNHANDLED_EXCEPTION in VclBuilder
>     when: Unable to read .ui file exception: com.sun.star.container.NoSuchElementException message: "file:///.../instdir/share/config/soffice.cfg/dbaccess/ui/appborderwindow.ui at xmlreader/source/xmlreader.cxx:67"
> warn:dbaccess:774639:774639:dbaccess/source/filter/xml/dbloader2.cxx:460: DBG_UNHANDLED_EXCEPTION in load exception: com.sun.star.container.NoSuchElementException message: "file:///.../instdir/share/config/soffice.cfg/dbaccess/ui/appborderwindow.ui at xmlreader/source/xmlreader.cxx:67"
> unotest/source/cpp/macros_test.cxx:73:DialogSaveTest::test
> assertion failed
> - Expression: xComponent.is()
> - loading failed: file:///.../workdir/CppunitTest/testEmptyStdlibSave.odb

Change-Id: I5a02b07b133fef03502cfcf03ddba98d9f223432
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138777
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-08-25 10:47:41 +02:00
Caolán McNamara 1901cc1169 don't link to vbahelper for --disable-scripting case
Change-Id: I50dca4c11234677d2c6987d360b1317890b5484b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122427
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-09-22 14:38:27 +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
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
Michael Stahl 6a18fdceb5 trivial makefile cleanups
Change-Id: Ida5bdfa06ecd7907305f4f171ca5ab64260d0259
2016-11-22 13:14:57 +01:00
Caolán McNamara b32d3f24bb add uui component to some other places
Change-Id: Ia1e449f8f52e7d353944b8e80f9fc586f1eab2f7
2016-07-27 21:33:20 +01:00
Michael Stahl f5b00ec964 gbuild: gb_CppunitTest_use_filter_configuration was removed
... years ago in commit e1b51e7beb

Change-Id: I588370796830dc379f6a004ec7e673b020360eb5
2015-02-27 19:33:08 +01: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
Lionel Elie Mamane c4f7c5c689 fdo#52076 unittest
Change-Id: Iae10f9728db4c90c4a55ad692b32cddeb7adc48a
2014-09-04 12:06:52 +02:00