Test repository to check push and ssh key
Find a file
Gabor Kelemen a5389cb5dd tdf#42949 Fix new IWYU warnings in directories [e-f]*
Found with bin/find-unneeded-includes
Only removal proposals are dealt with here.

Change-Id: I963aa5fb892a0be36212fd0587b69f217f017947
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105469
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
2020-11-12 10:53:07 +01:00
.git-hooks set all .ui min require version of gtk to 3.20 2020-10-22 22:27:50 +02:00
.github
accessibility tdf#123936 Formatting file in module accessibility with clang 2020-11-10 12:44:40 +01:00
android android: "make run" works also for debug configuration 2020-09-30 13:31:43 +02:00
animations tdf#42949 Fix new IWYU warnings in directories [ab]* 2020-11-05 14:57:25 +01:00
apple_remote
avmedia make tools::Long 64-bit on Windows platform 2020-11-11 06:34:17 +01:00
basctl remove Fraction::operator tools::Long() 2020-11-12 07:37:13 +01:00
basegfx tdf#42949 Fix new IWYU warnings in directories [ab]* 2020-11-05 14:57:25 +01:00
basic loplugin:stringview 2020-11-11 11:58:37 +01:00
bean
bin add pdf to DRAWDOCS for bash-completion 2020-11-03 20:34:16 +01:00
binaryurp tdf#42949 Fix new IWYU warnings in directories [ab]* 2020-11-05 14:57:25 +01:00
bridges loplugin:external (clang-cl) 2020-10-14 09:31:48 +02:00
canvas make tools::Long 64-bit on Windows platform 2020-11-11 06:34:17 +01:00
chart2 loplugin:stringview 2020-11-11 11:58:37 +01:00
cli_ure cli_ure: Disable .NET for Windows Arm64 build 2020-09-17 09:23:55 +02:00
codemaker loplugin:stringview 2020-11-11 11:58:37 +01:00
comphelper tdf#138113: Base SQL syntax colouring issue with operators "/", "-" 2020-11-11 16:21:06 +01:00
compilerplugins loplugin:stringview 2020-11-11 11:58:37 +01:00
config_host fix build with box2d 2.4.0 2020-10-17 14:19:44 +02:00
configmgr tdf#42949 Fix new IWYU warnings in directories c* 2020-11-06 08:18:45 +01:00
connectivity loplugin:stringview 2020-11-11 11:58:37 +01:00
cppcanvas make tools::Long 64-bit on Windows platform 2020-11-11 06:34:17 +01:00
cppu loplugin:stringview 2020-11-11 11:58:37 +01:00
cppuhelper loplugin:stringview (macOS) 2020-11-12 08:09:35 +01:00
cpputools loplugin:stringview 2020-11-11 11:58:37 +01:00
cui remove Fraction::operator tools::Long() 2020-11-12 07:37:13 +01:00
dbaccess loplugin:stringview 2020-11-11 11:58:37 +01:00
desktop loplugin:stringview 2020-11-11 11:58:37 +01:00
dictionaries@d6160c5e00 Update git submodules 2020-11-11 16:20:26 +01:00
distro-configs Add a LibreOfficeWinArm64.conf 2020-10-04 15:18:21 +02:00
drawinglayer disable O(U)String::concat for internal code 2020-11-11 06:33:40 +01:00
editeng tdf#42949 Fix new IWYU warnings in directories [e-f]* 2020-11-12 10:53:07 +01:00
embeddedobj tdf#42949 Fix new IWYU warnings in directories [e-f]* 2020-11-12 10:53:07 +01:00
embedserv clang-cl: Adapt Windows-specific code to extended loplugin:cstylecast 2020-10-19 22:01:31 +02:00
emfio tdf#42949 Fix new IWYU warnings in directories [e-f]* 2020-11-12 10:53:07 +01:00
eventattacher tdf#42949 Fix new IWYU warnings in directories [e-f]* 2020-11-12 10:53:07 +01:00
extensions tdf#42949 Fix new IWYU warnings in directories [e-f]* 2020-11-12 10:53:07 +01:00
external xmlsecurity: prepare to verify signatures using pdfium 2020-11-12 09:02:25 +01:00
extras update toolbarmode preview for ToD 2020-11-05 23:00:34 +01:00
filter tdf#42949 Fix new IWYU warnings in directories [e-f]* 2020-11-12 10:53:07 +01:00
forms tdf#42949 Fix new IWYU warnings in directories [e-f]* 2020-11-12 10:53:07 +01:00
formula new loplugin:reducevarscope 2020-11-10 17:11:00 +01:00
fpicker tdf#42949 Fix new IWYU warnings in directories [e-f]* 2020-11-12 10:53:07 +01:00
framework tdf#42949 Fix new IWYU warnings in directories [e-f]* 2020-11-12 10:53:07 +01:00
helpcompiler tdf#42949 Fix new IWYU warnings in directories [h-r]* 2020-11-10 14:13:14 +01:00
helpcontent2@8539d61c5e Update git submodules 2020-11-11 09:51:19 +01:00
hwpfilter convert more long -> tools::Long 2020-11-11 11:25:43 +01:00
i18nlangtag loplugin:stringview 2020-11-11 11:58:37 +01:00
i18npool loplugin:stringview 2020-11-11 11:58:37 +01:00
i18nutil sync filter's paper table with calcs and i18nutils 2020-11-10 14:41:24 +01:00
icon-themes Colibre: update graphic mimetypes 2020-11-05 17:21:16 +01:00
idl fix oss-fuzz build failure 2020-10-29 21:20:57 +01:00
idlc new loplugin:reducevarscope 2020-11-10 17:11:00 +01:00
include weld panel TitleBar 2020-11-12 09:49:09 +01:00
instsetoo_native Resolves tdf#137880 - Fix for Windows installer image 2020-11-01 14:50:43 +01:00
io tdf#42949 Fix new IWYU warnings in directories [h-r]* 2020-11-10 14:13:14 +01:00
ios Rename CLANG_CC, CLANG_CXX configuration vars (avoid clash with scan-build) 2020-10-16 11:21:27 +02:00
javaunohelper Fix typo in code 2020-09-01 10:02:05 +02:00
jurt add dependency to juh,jurt,ridl,unoil poms 2020-08-05 23:23:22 +02:00
jvmaccess replace usage of blacklist with excludelist for IWYU 2020-07-10 02:03:40 +02:00
jvmfwk tdf#42949 Fix new IWYU warnings in directories [h-r]* 2020-11-10 14:13:14 +01:00
l10ntools loplugin:stringview 2020-11-11 11:58:37 +01:00
librelogo Fix typos 2020-11-02 20:42:17 +01:00
libreofficekit tdf#42949 Fix new IWYU warnings in directories [h-r]* 2020-11-10 14:13:14 +01:00
lingucomponent loplugin:stringview 2020-11-11 11:58:37 +01:00
linguistic loplugin:stringview 2020-11-11 11:58:37 +01:00
lotuswordpro Fix 64-bit --disable-pch build on Windows 2020-11-11 20:26:13 +01:00
m4
nlpsolver value and targetValue cannot be null at this point 2020-09-25 17:56:55 +02:00
o3tl
odk odk: fix Windows Arm64 build 2020-10-04 14:58:30 +02:00
offapi Permit scrollable AWT tab pages a la scrolled Dialog 2020-11-12 08:41:22 +01:00
officecfg Resolves tdf#132479: Rename "equal triangle" to "regular triangle" 2020-11-05 05:47:49 +01:00
onlineupdate Fix typo in code 2020-09-29 15:16:10 +02:00
oovbaapi Fix typo in code 2020-09-01 12:11:02 +02:00
oox loplugin:stringview 2020-11-11 11:58:37 +01:00
opencl convert more long -> tools::Long 2020-11-11 11:25:43 +01:00
osx Rename CLANG_CC, CLANG_CXX configuration vars (avoid clash with scan-build) 2020-10-16 11:21:27 +02:00
package loplugin:stringview 2020-11-11 11:58:37 +01:00
pch
postprocess tdf#137573: The fps_aqua component was missing for macOS 2020-10-18 13:22:14 +02:00
pyuno tdf#42949 Fix new IWYU warnings in directories [h-r]* 2020-11-10 14:13:14 +01:00
qadevOOo Fix typo in code 2020-09-26 12:50:19 +02:00
readlicense_oo set all .ui min require version of gtk to 3.20 2020-10-22 22:27:50 +02:00
registry loplugin:stringview 2020-11-11 11:58:37 +01:00
remotebridges remotebridges: create instances with uno constructors 2020-07-14 12:03:12 +02:00
reportbuilder Fix typo in code 2020-09-01 12:12:12 +02:00
reportdesign remove Fraction::operator tools::Long() 2020-11-12 07:37:13 +01:00
ridljar socket cannot be null at this point 2020-09-25 17:56:33 +02:00
sal loplugin:stringview 2020-11-11 11:58:37 +01:00
salhelper
sax loplugin:stringview 2020-11-11 11:58:37 +01:00
sc remove Fraction::operator tools::Long() 2020-11-12 07:37:13 +01:00
scaddins loplugin:stringview 2020-11-11 11:58:37 +01:00
sccomp tdf#135211: fix crash Swarm Non Linear Solver with blank input 2020-07-28 11:42:53 +02:00
schema tdf#137627 sw top page border orientation: add ODF 2020-10-29 17:52:48 +01:00
scp2 ScriptForge - Update build files 2020-11-07 07:33:06 +01:00
scripting loplugin:stringview 2020-11-11 11:58:37 +01:00
sd Drop some unused function parameter 2020-11-12 08:07:06 +01:00
sdext loplugin:stringview 2020-11-11 11:58:37 +01:00
setup_native Improved loplugin:staticanonymous -> redundantstatic redux, clang-cl 2020-08-04 20:20:41 +02:00
sfx2 weld panel TitleBar 2020-11-12 09:49:09 +01:00
shell Use the new single-instance="true" attribute in shell 2020-10-02 20:41:23 +02:00
slideshow new loplugin:reducevarscope 2020-11-10 17:11:00 +01:00
smoketest Remove unmaintained Executable_libtest 2020-10-26 14:50:25 +01:00
solenv weld panel TitleBar 2020-11-12 09:49:09 +01:00
soltools
sot new loplugin:reducevarscope 2020-11-10 17:11:00 +01:00
starmath remove Fraction::operator tools::Long() 2020-11-12 07:37:13 +01:00
stoc loplugin:stringview 2020-11-11 11:58:37 +01:00
store loplugin:reducevarscope in store..svtools 2020-10-04 14:06:37 +02:00
svgio loplugin:stringview 2020-11-11 11:58:37 +01:00
svl loplugin:stringview 2020-11-11 11:58:37 +01:00
svtools loplugin:stringview 2020-11-11 11:58:37 +01:00
svx Use translated standard styles for styles listbox 2020-11-12 08:06:09 +01:00
sw don't have a bare checkbox without a label beside a label 2020-11-12 09:48:13 +01:00
swext
sysui tdf#132787: Don't duplicate hicolor icon theme as gnome 2020-11-10 12:46:36 +01:00
test tdf#130546 sw autocorrect: don't replace redlining 2020-11-06 22:38:33 +01:00
testtools fix some *printf which are using "%l" ie. long specifiers 2020-10-16 11:12:31 +02:00
toolkit Permit scrollable AWT tab pages a la scrolled Dialog 2020-11-12 08:41:22 +01:00
tools remove BigInt::operator tools::Long() 2020-11-12 07:37:38 +01:00
translations@c5f9a42b10 Update git submodules 2020-11-11 14:13:33 +01:00
ucb loplugin:stringview 2020-11-11 11:58:37 +01:00
ucbhelper Drop some unused function parameters 2020-11-11 12:37:35 +01:00
udkapi unoidl-read: Avoid redundant redeclarations 2020-08-18 11:36:26 +02:00
uitest Make order of UITest *.py test file processing deterministic 2020-11-05 10:17:33 +01:00
UnoControls loplugin:flatten in UnoControls 2020-08-02 22:45:48 +02:00
unodevtools loplugin:stringview 2020-11-11 11:58:37 +01:00
unoidl loplugin:stringview 2020-11-11 11:58:37 +01:00
unoil cli_ure: Disable .NET for Windows Arm64 build 2020-09-17 09:23:55 +02:00
unotest python test shutdown robustness 2020-10-29 09:05:10 +01:00
unotools loplugin:stringview 2020-11-11 11:58:37 +01:00
unoxml loplugin:stringview 2020-11-11 11:58:37 +01:00
ure
uui switching long to a 64-bit type on 64-bit windows 2020-10-26 07:35:36 +01:00
vbahelper disable O(U)String::concat for internal code 2020-11-11 06:33:40 +01:00
vcl use Point direct and drop a reinterpret_cast 2020-11-12 09:47:53 +01:00
winaccessibility clang-cl: Adapt Windows-specific code to extended loplugin:cstylecast 2020-10-19 22:01:31 +02:00
wizards copy_paste_error data1 looks like a copy-paste error 2020-11-09 10:12:08 +01:00
writerfilter remove Fraction::operator tools::Long() 2020-11-12 07:37:13 +01:00
writerperfect make tools::Long 64-bit on Windows platform 2020-11-11 06:34:17 +01:00
xmerge
xmlhelp loplugin:stringview 2020-11-11 11:58:37 +01:00
xmloff loplugin:stringview 2020-11-11 11:58:37 +01:00
xmlreader
xmlscript tdf#137652 fix XDL import: no more missing empty items for combobox 2020-10-22 16:30:48 +02:00
xmlsecurity tdf#124176 Use #pragma once in xmlsecurity 2020-11-11 08:03:47 +01:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.git-blame-ignore-revs put clang-format commits to .git-blame-ignore-revs 2020-10-18 22:35:07 +02:00
.gitattributes
.gitignore Move compilerplugins-related .gitignore content to compilerplugins/.gitignore 2020-08-17 13:38:04 +02:00
.gitmodules gitmodules: use relative paths 2020-10-21 21:51:54 +02:00
.gitpod.dockerfile
.gitpod.yml
.gitreview
antivirusDetection.vbs
autogen.sh Enable building for WSL (Linux) on WSL 2020-10-09 17:27:24 +02:00
BUCK
config.guess Update config.{guess,sub} with latest versions and handle fallout of that 2020-08-07 11:34:28 +02:00
config.sub Fix typo 2020-08-07 17:11:39 +02:00
config_host.mk.in Rename CLANG_CC, CLANG_CXX configuration vars (avoid clash with scan-build) 2020-10-16 11:21:27 +02:00
config_host_lang.mk.in
configure.ac Remove obsolete AC_HEADER_STDC check 2020-11-10 18:40:59 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst external: update pdfium to 4306 2020-11-04 08:05:28 +01:00
g
hardened_runtime.xcent.in tdf#135479: Seems we need the more broad entitlement for Java's sake 2020-09-23 11:16:03 +02:00
install-sh
leak-suppress.txt
Library_merged.mk
lo.xcent
logerrit Add an optional Gerrit change ID to testfeature 2020-07-30 12:48:37 +02:00
Makefile.fetch
Makefile.gbuild Fix the minimal build-tools target 2020-09-11 18:34:48 +02:00
Makefile.in Fix the minimal build-tools target 2020-09-11 18:34:48 +02:00
README.cross
README.md
README.Solaris
Repository.mk ScriptForge - Update build files 2020-11-07 07:33:06 +01:00
RepositoryExternal.mk pdfium: remove non-public headers from include path 2020-10-08 12:40:31 +02:00
RepositoryFixes.mk
RepositoryModule_build.mk build-tools: default to system PCH setting 2020-10-30 12:46:42 +01:00
RepositoryModule_host.mk Move MimeContentTypeFactory into vcl 2020-09-22 22:37:54 +02:00
sanitize-ubsan-excludelist
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.