Test repository to check push and ssh key
Find a file
Michel Thomas 8d8f62852a tdf#84553 Correctly handle failures while getting a WMI Object.
The output before this patch : checking for active Antivirus software... C:\cygwin\home\tdf\lode\jenkins\workspace\gerrit_windows\antivirusDetection.vbs(1, 1) (null): 0x8004100E

found

The link for which is : https://ci.libreoffice.org/job/gerrit_windows/57035/consoleFull

Change-Id: I714442739a8daf132e95b9f6a750aa7abab3561e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88465
Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2020-02-12 09:14:03 +01:00
.git-hooks git hooks: update commit-msg to Gerrit 2.16.15 2020-02-01 04:14:09 +01:00
.github Add donation info for GitHub 2019-08-07 10:42:30 +02:00
accessibility make update_pch also consider files in <module>/src/**/inc 2020-02-01 20:12:21 +01:00
android Fix typo 2020-02-09 19:42:52 +01:00
animations Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
apple_remote Fix typo 2019-04-11 08:54:41 +02:00
avmedia tdf#124176: Use pragma once instead of include guards 2020-02-11 12:27:12 +01:00
basctl ensure the module combobox gets updated with the current selection 2020-02-11 17:24:09 +01:00
basegfx tdf#130478 Enhance Dashed line drawing on all systems 2020-02-07 18:49:18 +01:00
basic move some headers inside basic 2020-02-08 13:21:31 +01:00
bean tdf#117331 Merge jurt and unoil into ridl 2020-02-04 22:03:54 +01:00
bin Remove erroneous whitespace in update_pch 2020-02-07 00:07:31 +01:00
binaryurp tdf#42949 Add back includes to binaryurp/ 2020-01-28 10:31:53 +01:00
bridges Hack to dynamically adapt to __cxa_exceptiom in LLVM 5.0 libcxxabi 2020-02-12 09:11:45 +01:00
canvas loplugin:makeshared (clang-cl) 2020-02-03 23:38:37 +01:00
chart2 Fix undo and redo dropdowns in non-sfx2 modules 2020-02-09 18:11:04 +01:00
cli_ure Fix typos 2019-09-10 14:18:59 +02:00
codemaker clang-tidy modernize-concat-nested-namespace in codemaker..configmgr 2020-01-15 06:58:20 +01:00
comphelper android hunspell: All languages we pack are the supported ones. 2020-02-11 10:22:46 +01:00
compilerplugins sort compilerplugin sources 2020-02-10 14:38:05 +01:00
config_host HAVE_GCC_ATTRIBUTE_WARN_UNUSED should always be true now for Clang/GCC 2020-01-28 18:35:49 +01:00
configmgr GenericCommands: fix Fontwork tooltips 2020-02-06 23:11:39 +01:00
connectivity -Werror,-Wnon-c-typedef-for-linkage 2020-02-10 08:03:05 +01:00
cppcanvas make update_pch also consider files in <module>/src/**/inc 2020-02-01 20:12:21 +01:00
cppu clang-tidy modernize-concat-nested-namespace in cppcanvas..cppuhelper 2020-01-15 06:58:12 +01:00
cppuhelper android: Actually let's avoid the exceptions via bridges only on aarch4. 2020-02-11 15:24:34 +01:00
cpputools sal_Char->char in cppcanvas..cui 2019-12-18 17:40:23 +01:00
cui tdf#114694: Make default value in language settings the first element 2020-02-11 18:25:37 +01:00
dbaccess -Werror,-Wnon-c-typedef-for-linkage 2020-02-10 11:22:49 +01:00
desktop android hunspell: Hardcode the ReferenceOOoMajorMinor for version check. 2020-02-10 18:16:34 +01:00
dictionaries@3097066a2e Update git submodules 2020-01-12 20:39:28 +01:00
distro-configs Introduce INCLUDE: in the distro-configs... 2020-02-11 20:25:32 +01:00
drawinglayer remove graphicprimitive2d.{cxx,hxx} from clang-format blacklist 2020-02-11 18:53:46 +01:00
dtrans loplugin:nullptr (clang-cl) 2020-02-04 08:01:39 +01:00
editeng rename nFirstLineOfst -> nFirstLineOffset 2020-02-06 17:30:32 +01:00
embeddedobj test: move component context from subclasses to BootstrapFixture 2020-02-07 09:13:50 +01:00
embedserv sal_Char->char in editeng..eventattacher 2019-12-19 08:12:46 +01:00
emfio make update_pch also consider files in <module>/src/**/inc 2020-02-01 20:12:21 +01:00
eventattacher sal_Char->char in editeng..eventattacher 2019-12-19 08:12:46 +01:00
extensions Resolves: tdf#130541 null-deref on detaching already-detached page 2020-02-10 20:16:35 +01:00
external Fix a crash in OpenSSL when checking updates in dbgutil build on Windows 2020-02-12 05:44:19 +01:00
extras [en_GB] 6 new autocorrect words 2020-02-10 17:21:19 +01:00
filter tdf#130262 ignore negative wrap distance values in doc prop import 2020-02-10 09:35:13 +01:00
forms make update_pch also consider files in <module>/src/**/inc 2020-02-01 20:12:21 +01:00
formula tdf#124176: Use pragma once instead of include guards 2020-01-25 19:10:42 +01:00
fpicker rename URLBox back to SvtURLBox 2020-02-07 16:03:10 +01:00
framework tdf#126700 allow replacing the default documents 2020-02-12 00:27:51 +01:00
helpcompiler Avoid -Werror,-Wdeprecated-enum-enum-conversion 2019-12-30 08:32:26 +01:00
helpcontent2@e6e4a01c2a Update git submodules 2020-02-11 09:32:56 +01:00
hwpfilter loplugin:duplicatedefines (clang-cl) 2020-02-03 20:28:22 +01:00
i18nlangtag Resolves: tdf#130550 Add Ligurian [lij-IT] to language list 2020-02-10 20:50:27 +01:00
i18npool tdf#129240 More date acceptance patterns for Hungarian language 2020-01-31 19:51:53 +01:00
i18nutil Add case table for Warang Citi 2020-02-10 20:56:26 +01:00
icon-themes elementary: Fix for tdf#130533; list in Impress Sidebar 2020-02-10 15:17:51 +01:00
idl loplugin:finalclasses in i18npool..linguistic 2020-01-14 07:12:31 +01:00
idlc New loplugin:unsignedcompare 2020-01-28 07:42:15 +01:00
include tdf#126700 allow replacing the default documents 2020-02-12 00:27:51 +01:00
instsetoo_native tdf#117331 Merge jurt and unoil into ridl 2020-02-04 22:03:54 +01:00
io remove some unused local vars 2020-01-26 08:01:42 +01:00
ios android: Avoid throwing exceptions through the bridges. 2019-12-05 11:02:01 +01:00
javaunohelper tdf#117331 Merge jurt and unoil into ridl 2020-02-04 22:03:54 +01:00
jurt Cleanup: Move unit tests to ridljar 2020-02-10 09:48:05 +01:00
jvmaccess tdf#42949 Fix IWYU warnings in jvmfwk/ & jvmaccess/ 2019-04-26 14:54:54 +02:00
jvmfwk tdf#96505: Get rid of cargo cult long integer literals 2020-02-03 15:45:39 +01:00
l10ntools avoid flex-caused warnings about unused functions 2020-02-03 16:33:20 +01:00
librelogo sanitize LibreLogo calls 2019-06-07 06:29:13 +02:00
libreofficekit Prefer O3TL_UNREACHABLE over assert(false) 2019-12-09 16:25:00 +01:00
lingucomponent tdf#130137 Replace remaining uses of WNT define checks with _WIN32 2020-01-25 22:02:16 +01:00
linguistic tdf#117331 Merge jurt and unoil into ridl 2020-02-04 22:03:54 +01:00
lotuswordpro use color instead of int 2020-02-10 10:16:44 +01:00
m4 add -latomic configure check... 2019-09-02 19:11:38 +02:00
nlpsolver tdf#117331 Merge jurt and unoil into ridl 2020-02-04 22:03:54 +01:00
o3tl Adapt o3tl::span to P1872R0 2019-12-07 09:00:00 +01:00
odk Cleanup: Move files to ridljar 2020-02-10 09:46:43 +01:00
offapi tdf#126700 allow replacing the default documents 2020-02-12 00:27:51 +01:00
officecfg make Base install via packagekit also confgurable (like fonts/langpacks) 2020-02-11 18:33:33 +01:00
onlineupdate Fix accidental variable shadowing 2020-02-10 01:03:22 +01:00
oovbaapi Fix typo 2019-11-26 20:01:51 +01:00
oox Fix typo 2020-02-09 12:25:36 +01:00
opencl merge OpenGLZone and OpenCLZone into one generic code 2020-02-07 09:11:32 +01:00
osx Add some more source files for breakpointing convenience 2019-11-20 14:19:05 +02:00
package make update_pch also consider files in <module>/src/**/inc 2020-02-01 20:12:21 +01:00
pch Removed duplicated includes 2019-12-04 07:06:49 +01:00
postprocess android hunspell: Turn on the hunspell build on Android... 2020-02-10 18:14:40 +01:00
pyuno -Werror,-Wnon-c-typedef-for-linkage 2020-02-10 08:03:05 +01:00
qadevOOo Fix typo 2020-02-09 19:41:10 +01:00
readlicense_oo update credits 2020-02-11 12:43:10 +01:00
registry clang-tidy modernize-concat-nested-namespace 2020-01-31 18:36:09 +01:00
remotebridges tdf#88205: Adapt uses of css::uno::Sequence to use initializer_list ctor 2020-01-27 22:14:11 +01:00
reportbuilder tdf#117331 Merge jurt and unoil into ridl 2020-02-04 22:03:54 +01:00
reportdesign reportdesign: Hide some internal commands from customization 2020-02-10 21:05:34 +01:00
ridljar Cleanup: Move unit tests to ridljar 2020-02-10 09:48:05 +01:00
sal loplugin:unsignedcompare (clang-cl) 2020-02-03 20:27:29 +01:00
salhelper tdf#130137 Replace remaining uses of WNT define checks with _WIN32 2020-01-25 22:02:16 +01:00
sax remove some unused local vars 2020-01-26 08:01:42 +01:00
sc Fix FontColor does not change selected cells on calc 2020-02-11 22:29:26 +01:00
scaddins clang-tidy modernize-concat-nested-namespace 2020-01-31 18:36:09 +01:00
sccomp remove some unused local vars 2020-01-28 09:18:31 +01:00
schema tdf#121658 Add option to not hyphenate words in CAPS 2019-12-06 12:00:37 +01:00
scp2 tdf#117331 Merge jurt and unoil into ridl 2020-02-04 22:03:54 +01:00
scripting tdf#117331 Merge jurt and unoil into ridl 2020-02-04 22:03:54 +01:00
sd tdf#129388: Avoid any actual painting of the slide sorter in the LOKit case 2020-02-11 22:28:57 +01:00
sdext replace boost::bimap in sdext pdfimport 2020-02-04 10:33:04 +01:00
setup_native Set INSTALLLOCATION in one single place 2020-02-03 21:51:37 +01:00
sfx2 tdf#126700 allow replacing the default documents 2020-02-12 00:27:51 +01:00
shell loplugin:stringadd (clang-cl) 2020-02-03 23:47:01 +01:00
slideshow always define GLM_FORCE_CTOR_INIT when using glm 2020-02-06 21:04:40 +01:00
smoketest tdf#117331 Merge jurt and unoil into ridl 2020-02-04 22:03:54 +01:00
solenv Fix duplicate "stringresource" in MERGE_LIBRARY_LIST 2020-02-11 22:11:31 +01:00
soltools tdf#130137 Replace remaining uses of WNT define checks with _WIN32 2020-01-25 22:02:16 +01:00
sot New loplugin:unsignedcompare 2020-01-28 07:42:15 +01:00
starmath make update_pch also consider files in <module>/src/**/inc 2020-02-01 20:12:21 +01:00
stoc Be more verbose about JNI errors at least with --enable-dbgutil 2020-02-06 11:16:42 +01:00
store cppcheck: shadowFunction in store/storbase 2020-01-26 11:44:05 +01:00
svgio make update_pch also consider files in <module>/src/**/inc 2020-02-01 20:12:21 +01:00
svl tdf#130501: Fix off-by-one error in URIHelper::resolveIdnaHost 2020-02-07 21:27:00 +01:00
svtools fix svtools' sVendor for langpack install for Debian 2020-02-11 22:29:59 +01:00
svx tdf#114694: Make default value in language settings the first element 2020-02-11 18:25:37 +01:00
sw tdf#126700 allow replacing the default documents 2020-02-12 00:27:51 +01:00
swext tdf#117331 Merge jurt and unoil into ridl 2020-02-04 22:03:54 +01:00
sysui sysui: Add C header to libreofficekitgtk introspection 2019-11-19 09:59:05 +01:00
test cppcheck: redundantInitialization in XSheetCondition::testGetSetOperator() 2020-02-10 01:01:21 +01:00
testtools tdf#117331 Merge jurt and unoil into ridl 2020-02-04 22:03:54 +01:00
toolkit replace some more copy/clear with swap 2020-02-08 11:23:19 +01:00
tools loplugin:unsignedcompare (clang-cl) 2020-02-03 20:27:29 +01:00
translations@614eb34296 Update git submodules 2020-02-11 19:23:35 +01:00
ucb clang-tidy modernize-concat-nested-namespace 2020-01-31 18:36:09 +01:00
ucbhelper move some headers inside ucbhelper 2020-02-04 06:21:41 +01:00
udkapi Revert "tdf#124176: Use "pragma once" on udkapi/*" 2019-12-28 19:55:35 +01:00
uitest tdf#129568 Rename Default Style to Default Paragraph/Page/Table Style 2020-02-02 15:40:45 +01:00
UnoControls tdf#124176: Use "pragma once" on UnoControls/* 2019-12-28 10:31:38 +01:00
unodevtools clang-tidy modernize-concat-nested-namespace 2020-01-31 18:36:09 +01:00
unoidl avoid flex-caused warnings about unused functions 2020-02-03 16:33:20 +01:00
unoil tdf#117331 Merge jurt and unoil into ridl 2020-02-04 22:03:54 +01:00
unotest Fix mis-merge 2020-02-06 22:22:23 +01:00
unotools tdf#126700 allow replacing the default documents 2020-02-12 00:27:51 +01:00
unoxml -Werror,-Wnon-c-typedef-for-linkage 2020-02-10 08:03:05 +01:00
ure tdf#117331 Merge jurt and unoil into ridl 2020-02-04 22:03:54 +01:00
uui tdf#42949 Fix IWYU warnings in uui/ 2020-02-04 13:25:51 +01:00
vbahelper make update_pch also consider files in <module>/src/**/inc 2020-02-01 20:12:21 +01:00
vcl vcl: fix UB in Window::ImplGetFirstOverlapWindow() 2020-02-12 09:10:55 +01:00
winaccessibility Fix typo 2020-02-06 07:08:32 +01:00
wizards Fix typo 2020-02-09 12:20:37 +01:00
writerfilter tdf#130494: DOCX import: limit paragraph-level character property 2020-02-11 16:32:32 +01:00
writerperfect Fix typo 2020-02-11 16:26:18 +01:00
xmerge tdf#117331 Merge jurt and unoil into ridl 2020-02-04 22:03:54 +01:00
xmlhelp New loplugin:unsignedcompare 2020-01-28 07:42:15 +01:00
xmloff Fix typo 2020-02-09 11:43:53 +01:00
xmlreader Revert "Optimize getNamespaceId (xmlreader)" 2019-10-10 07:55:00 +02:00
xmlscript make update_pch also consider files in <module>/src/**/inc 2020-02-01 20:12:21 +01:00
xmlsecurity Fix typo 2020-02-09 12:23:56 +01:00
.buckconfig Add build toolchain to upload LibreOffice API to Maven Central 2015-12-03 23:32:11 +00:00
.buckversion Add build toolchain to upload LibreOffice API to Maven Central 2015-12-03 23:32:11 +00:00
.clang-format clang-format: don't fix up namespace comments 2019-11-14 08:30:47 +01:00
.editorconfig We have some Objective-C source files, too 2017-12-01 12:59:43 +02:00
.git-blame-ignore-revs put clang-format commits to .git-blame-ignore-revs 2020-02-07 00:41:48 +01:00
.gitattributes Ignore schema files for src tarball generation 2016-08-30 23:59:15 +00:00
.gitignore Add QtCreator-specific file to .gitignore 2019-06-08 15:36:20 +02:00
.gitmodules uset https:// instead of git:// for submodules 2018-12-20 19:52:51 +01:00
.gitreview git-review: Use the hostname instead of alias. 2019-05-15 15:13:47 +02:00
antivirusDetection.vbs tdf#84553 Correctly handle failures while getting a WMI Object. 2020-02-12 09:14:03 +01:00
autogen.sh Introduce INCLUDE: in the distro-configs... 2020-02-11 20:25:32 +01:00
BUCK Add build toolchain to upload LibreOffice API to Maven Central 2015-12-03 23:32:11 +00:00
config.guess Fixing '....' 2019-09-06 14:12:27 +02:00
config.sub Update config.{guess,sub} 2019-05-13 10:07:05 +02:00
config_host.mk.in use -Wl,-dead_strip on Mac, its linker doesn't know -Wl,--gc-sections 2020-01-18 16:55:55 +01:00
config_host_lang.mk.in gbuild: allow to react on change in configured langs 2015-03-25 17:52:20 +01:00
configure.ac tdf#84553 Correctly handle failures while getting a WMI Object. 2020-02-12 09:14:03 +01:00
COPYING Licencing files 2011-01-11 21:49:39 +00:00
COPYING.LGPL Licencing files 2011-01-11 21:49:39 +00:00
COPYING.MPL Targetted text updates, with seasonable changes before l10n freeze. 2013-12-13 17:00:07 +00:00
download.lst Update mdds to 1.6.0. 2020-02-09 22:21:30 +01:00
g ./g: don't exit early on ./g checkout -f 2018-07-02 23:51:08 +02:00
hardened_runtime.xcent macOS: enable hardened runtime when signing 2019-05-31 21:13:31 +02:00
install-sh Fix typos 2019-08-12 22:12:57 +02:00
leak-suppress.txt fix doc 2019-11-13 06:13:09 +01:00
Library_merged.mk gbuild: Remove MSVC 2013 legacy code 2017-04-21 18:18:44 +02:00
lo.xcent No more need to generate lo.xcent from lo.xcent.in 2018-12-18 09:37:00 +01:00
logerrit logerrit: Upgrade URIs to https:// 2020-01-16 01:01:58 +01:00
Makefile.fetch python3: bundle libffi for GNU/Linux builds 2020-01-09 17:56:19 +01:00
Makefile.gbuild updater: workaround cygwin python bug around command line arguments 2017-08-05 05:31:06 +02:00
Makefile.in allow root under podman 2020-01-04 18:35:26 +01:00
README.cross Rename Mac OS X to official name macOS in comments and documentation 2018-11-29 14:08:26 +01:00
README.md Self-certify LibreOffice licenses as OSI-approved 2020-02-06 10:13:55 +01:00
README.Solaris remove use of Archive::Zip 2016-06-04 08:09:56 +02:00
Repository.mk add support for Clang's -building-pch-with-obj 2020-01-18 14:56:12 +01:00
RepositoryExternal.mk always define GLM_FORCE_CTOR_INIT when using glm 2020-02-06 21:04:40 +01:00
RepositoryFixes.mk Rename Mac OS X to official name macOS in comments and documentation 2018-11-29 14:08:26 +01:00
RepositoryModule_build.mk migrate to boost::gettext 2017-07-21 08:20:50 +01:00
RepositoryModule_host.mk tdf#129375: Avoid crash when inserting bibliography entry on iOS 2019-12-31 15:07:09 +01:00
sanitize-ubsan-blacklist file for ci-based ubsan build 2015-10-31 01:32:18 -05:00
setup.cfg
TEMPLATE.SOURCECODE.HEADER Add fill-column: 100 to the Emacs mode line 2016-11-08 14:59:30 +02:00

LibreOffice

Coverity Scan Build Status CII Best Practices Translation status

LibreOffice is an integrated office suite based on copyleft licenses and compatible with most document formats and standards. Libreoffice is backed by The Document Foundation, which represents a large independent community of enterprises, developers and other volunteers moved by the common goal of bringing to the market the best software for personal productivity. LibreOffice is open source, and free to download, use and distribute.

A quick overview of the LibreOffice code structure.

Overview

You can develop for LibreOffice in one of two ways, one recommended and one much less so. First the somewhat less recommended way: it is possible to use the SDK to develop an extension, for which you can read the API docs here and here. This re-uses the (extremely generic) UNO APIs that are also used by macro scripting in StarBasic.

The best way to add a generally useful feature to LibreOffice is to work on the code base however. Overall this way makes it easier to compile and build your code, it avoids any arbitrary limitations of our scripting APIs, and in general is far more simple and intuitive - if you are a reasonably able C++ programmer.

The build chain and runtime baselines

These are the current minimal operating system and compiler versions to run and compile LibreOffice, also used by the TDF builds:

  • Windows:
    • Runtime: Windows 7
    • Build: Cygwin + Visual Studio 2017 version 15.7
  • macOS:
    • Runtime: 10.10
    • Build: 10.13.2 + Xcode 9.3
  • Linux:
    • Runtime: RHEL 7 or CentOS 7
    • Build: either GCC 7.0.0; or Clang 5.0.2 with libstdc++ 7.3.0
  • iOS (only for LibreOfficeKit):
    • Runtime: 11.4 (only support for newer i devices == 64 bit)
    • Build: Xcode 9.3 and iPhone SDK 11.4
  • Android:
    • Build: NDK r19c and SDK 22.6.2

If you want to use Clang with the LibreOffice compiler plugins, the minimal version of Clang is 5.0.2. Since Xcode doesn't provide the compiler plugin headers, you have to compile your own Clang to use them on macOS.

You can find the TDF configure switches in the distro-configs/ directory.

To setup your initial build environment on Windows and macOS, we provide the LibreOffice Development Environment (LODE) scripts.

For more information see the build instructions for your platform in the TDF wiki.

The important bits of code

Each module should have a README file inside it which has some degree of documentation for that module; patches are most welcome to improve those. We have those turned into a web page here:

https://docs.libreoffice.org/

However, there are two hundred modules, many of them of only peripheral interest for a specialist audience. So - where is the good stuff, the code that is most useful. Here is a quick overview of the most important ones:

Module Description
sal/ this provides a simple System Abstraction Layer
tools/ this provides basic internal types: 'Rectangle', 'Color' etc.
vcl/ this is the widget toolkit library and one rendering abstraction
framework UNO framework, responsible for building toolbars, menus, status bars, and the chrome around the document using widgets from VCL, and XML descriptions from /uiconfig/ files
sfx2/ legacy core framework used by Writer/Calc/Draw: document model / load/save / signals for actions etc.
svx/ drawing model related helper code, including much of Draw/Impress

Then applications

Module Description
desktop/ this is where the 'main' for the application lives, init / bootstrap. the name dates back to an ancient StarOffice that also drew a desktop
sw/ Writer
sc/ Calc
sd/ Draw / Impress

There are several other libraries that are helpful from a graphical perspective:

Module Description
basegfx/ algorithms and data-types for graphics as used in the canvas
canvas/ new (UNO) canvas rendering model with various backends
cppcanvas/ C++ helper classes for using the UNO canvas
drawinglayer/ View code to render drawable objects and break them down into primitives we can render more easily.

Rules for #include directives (C/C++)

Use the "..." form if and only if the included file is found next to the including file. Otherwise, use the <...> form. (For further details, see the mail Re: C[++]: Normalizing include syntax ("" vs <>).)

The UNO API include files should consistently use double quotes, for the benefit of external users of this API.

loplugin:includeform (compilerplugins/clang/includeform.cxx) enforces these rules.

Finding out more

Beyond this, you can read the README files, send us patches, ask on the mailing list libreoffice@lists.freedesktop.org (no subscription required) or poke people on IRC #libreoffice-dev on irc.freenode.net - we're a friendly and generally helpful mob. We know the code can be hard to get into at first, and so there are no silly questions.