Test repository to check push and ssh key
Find a file
Noel Grandin 5f19287a9c loplugin:simplifybool in accessibility..basic
Change-Id: Ibf6cef4baa2d3d400d953ac8bc97a66b5901def9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94972
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-05-28 09:05:11 +02:00
.git-hooks
.github
accessibility loplugin:simplifybool in accessibility..basic 2020-05-28 09:05:11 +02:00
android
animations
apple_remote
avmedia remove some unused defines 2020-05-24 10:20:19 +02:00
basctl loplugin:simplifybool in accessibility..basic 2020-05-28 09:05:11 +02:00
basegfx loplugin:simplifybool in accessibility..basic 2020-05-28 09:05:11 +02:00
basic loplugin:simplifybool in accessibility..basic 2020-05-28 09:05:11 +02:00
bean
bin remove some unused defines 2020-05-24 10:20:19 +02:00
binaryurp
bridges
canvas loplugin:simplifybool in canvas..cui 2020-05-28 09:04:51 +02:00
chart2 loplugin:simplifybool in canvas..cui 2020-05-28 09:04:51 +02:00
cli_ure
codemaker
comphelper loplugin:simplifybool in canvas..cui 2020-05-28 09:04:51 +02:00
compilerplugins Further fixing of loplugin:simplifypointertobool for libstdc++ std::shared_ptr 2020-05-27 19:51:58 +02:00
config_host
configmgr inline some use-once typedefs 2020-05-24 10:19:49 +02:00
connectivity Remove some unused includes 2020-05-27 09:06:33 +02:00
cppcanvas Fix loplugin:simplifypointertobool for libstdc++ std::shared_ptr 2020-05-26 22:33:02 +02:00
cppu inline some use-once typedefs 2020-05-24 10:19:49 +02:00
cppuhelper
cpputools
cui loplugin:simplifybool in canvas..cui 2020-05-28 09:04:51 +02:00
dbaccess Fix loplugin:simplifypointertobool for libstdc++ std::shared_ptr 2020-05-26 22:33:02 +02:00
desktop PaintToDevice doesn't use its Size argument 2020-05-22 14:26:38 +02:00
dictionaries@b6fee5e294 Update git submodules 2020-05-24 12:13:08 +02:00
distro-configs jenkins linux configs: use jdk 11 for master 2020-05-26 15:53:18 +02:00
drawinglayer Fix loplugin:simplifypointertobool for libstdc++ std::shared_ptr 2020-05-26 22:33:02 +02:00
dtrans Use MsgWaitForMultipleObjects as suggested by API documentation 2020-05-24 13:03:59 +02:00
editeng use for-range on Sequence in e* 2020-05-20 21:31:13 +02:00
embeddedobj use for-range on Sequence in e* 2020-05-20 21:31:13 +02:00
embedserv use for-range on Sequence in e* 2020-05-20 21:31:13 +02:00
emfio
eventattacher use for-range on Sequence in e* 2020-05-20 21:31:13 +02:00
extensions Avoid calling osl_closeFile, osl_freeProcessHandle on null arguments 2020-05-27 19:51:24 +02:00
external external/skia: Mark c++20.patch.0 as reported upstream 2020-05-20 09:53:35 +02:00
extras
filter ofz#22588 Invalid-enum-value 2020-05-27 11:49:40 +02:00
forms remove Size arg from Window::Draw and depend on GetSizePixel 2020-05-22 13:17:30 +02:00
formula Fix loplugin:simplifypointertobool for libstdc++ std::shared_ptr 2020-05-26 22:33:02 +02:00
fpicker Prefer CoInitializeEx instead of CoInitialize 2020-05-22 22:22:15 +02:00
framework Clean up dead code 2020-05-25 08:56:46 +02:00
helpcompiler
helpcontent2@7e39048579 Update git submodules 2020-05-27 14:30:25 +02:00
hwpfilter
i18nlangtag Add LCIDs of [MS-LCID] from 3/4/2020 14.0 revision 2020-05-27 22:16:40 +02:00
i18npool use for-range on Sequence in i18npool..sd 2020-05-21 12:29:46 +02:00
i18nutil
icon-themes Colibre: tdf#133250 inconsisten colors icons 2020-05-22 03:01:28 +02:00
idl
idlc
include Add LCIDs of [MS-LCID] from 3/4/2020 14.0 revision 2020-05-27 22:16:40 +02:00
instsetoo_native
io
ios
javaunohelper
jurt
jvmaccess
jvmfwk tdf#131572 Add java 9 module info for libreoffice.jar 2020-05-27 11:40:20 +02:00
l10ntools
librelogo
libreofficekit
lingucomponent
linguistic use for-range on Sequence in i18npool..sd 2020-05-21 12:29:46 +02:00
lotuswordpro
m4
nlpsolver
o3tl Don't run CompilerTest_o3tl_* with COMPILER_PLUGIN_TOOL=... 2020-05-26 18:57:47 +02:00
odk
offapi Fix typo 2020-05-25 14:36:42 +02:00
officecfg Add an option to create encyrpted PDF files with mailmerge. 2020-05-26 09:42:22 +02:00
onlineupdate
oovbaapi
oox Further fixing of loplugin:simplifypointertobool for libstdc++ std::shared_ptr 2020-05-27 19:51:58 +02:00
opencl
osx Add source files from sfx2/source/appl 2020-05-25 02:21:30 +03:00
package package: ignore unknown encryption parameters. 2020-05-25 10:03:53 +02:00
pch
postprocess
pyuno use for-range on Sequence in i18npool..sd 2020-05-21 12:29:46 +02:00
qadevOOo
readlicense_oo
registry
remotebridges
reportbuilder
reportdesign weld ComboBoxControl 2020-05-20 20:24:16 +02:00
ridljar tdf#131572 Add java 9 module info for unoloader.jar 2020-05-27 11:40:40 +02:00
sal createSocketImpl is always called with the same argument 2020-05-25 17:50:42 +02:00
salhelper
sax
sc tdf#131045:Make condition names grammatically correct 2020-05-27 20:29:50 +02:00
scaddins
sccomp
schema tdf#101181: drop useless "GlowEffect" boolean property 2020-05-24 07:25:07 +02:00
scp2
scripting
sd oox smartart import, composite alg: implement vertical centering 2020-05-27 16:21:18 +02:00
sdext remove some unused typedefs 2020-05-24 10:19:26 +02:00
setup_native
sfx2 Related: tdf#133385 set cursor in row on right click 2020-05-27 17:32:03 +02:00
shell Fix loplugin:simplifypointertobool for libstdc++ std::shared_ptr 2020-05-26 22:33:02 +02:00
slideshow Fix loplugin:simplifypointertobool for libstdc++ std::shared_ptr 2020-05-26 22:33:02 +02:00
smoketest
solenv tdf#133331: Added explicit type casts to resolve -fpermissive errors 2020-05-27 14:48:17 +02:00
soltools
sot
starmath tdf#133030: DOCX export: fix formula alignment - part 3 2020-05-26 09:37:46 +02:00
stoc
store
svgio Fix loplugin:simplifypointertobool for libstdc++ std::shared_ptr 2020-05-26 22:33:02 +02:00
svl Fix typo 2020-05-26 12:00:53 +02:00
svtools Fix loplugin:simplifypointertobool for libstdc++ std::shared_ptr 2020-05-26 22:33:02 +02:00
svx Remove some unused includes 2020-05-27 09:06:33 +02:00
sw tdf#132236 sw_redlinehide: fix SwUndoDelete with sections even more 2020-05-27 19:18:26 +02:00
swext
sysui tdf#74244 Fix version info shown for major release candidates 2020-05-27 09:49:24 +02:00
test
testtools
toolkit Fix loplugin:simplifypointertobool for libstdc++ std::shared_ptr 2020-05-26 22:33:02 +02:00
tools
translations@13d55bb42d Update git submodules 2020-05-27 13:55:38 +02:00
ucb use for-range on Sequence in testtools..xmloff 2020-05-21 12:52:36 +02:00
ucbhelper
udkapi
uitest Do not time out execute_dialog_through_command 2020-05-25 15:14:04 +02:00
UnoControls
unodevtools
unoidl
unoil
unotest
unotools [MS-OFFCRYPTO] convert oox implementation into UNO service 2020-05-25 10:04:15 +02:00
unoxml Fix loplugin:simplifypointertobool for libstdc++ std::shared_ptr 2020-05-26 22:33:02 +02:00
ure
uui
vbahelper
vcl tdf#133396 FormattedField comes with differrent defaults than GtkSpinButton 2020-05-27 17:42:19 +02:00
winaccessibility
wizards
writerfilter tdf#78352: docx import: allow tab at left indent for list 2020-05-27 12:24:57 +02:00
writerperfect Remove some unused includes 2020-05-27 09:06:33 +02:00
xmerge
xmlhelp
xmloff Remove some unused includes 2020-05-27 09:06:33 +02:00
xmlreader
xmlscript
xmlsecurity
.buckconfig
.buckversion
.clang-format
.editorconfig
.git-blame-ignore-revs
.gitattributes
.gitignore
.gitmodules
.gitpod.dockerfile
.gitpod.yml
.gitreview
antivirusDetection.vbs
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in use -Xclang -debug-info-kind=constructor if available 2020-05-26 10:37:00 +02:00
config_host_lang.mk.in
configure.ac Remove obsolete configure checks after libreoffice-7-0 branch off 2020-05-27 16:46:16 +02:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst
g
hardened_runtime.xcent.in
install-sh
leak-suppress.txt
Library_merged.mk
lo.xcent
logerrit logerrit: Don't suggest to set oneself a username. 2020-05-27 16:19:43 +02:00
Makefile.fetch
Makefile.gbuild
Makefile.in
README.cross
README.md
README.Solaris
Repository.mk
RepositoryExternal.mk
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk
sanitize-ubsan-blacklist
setup.cfg
TEMPLATE.SOURCECODE.HEADER

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 2019 version 16.4
  • macOS:
    • Runtime: 10.10
    • Build: 10.14.4 + Xcode 11.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.