Test repository to check push and ssh key
Find a file
Caolán McNamara 160a4852f1 dtd files are not xml files and shouldn't have xml headers
so rpminspect is correct in complaining that they are not valid xml
on inspecting files claiming to be xml

Change-Id: I70379989326c2ea63e6a54b3658ebea4684fa5df
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116887
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-09 12:41:53 +02:00
.git-hooks
.github
.vscode
accessibility Simplify Sequences initializations (accessibility/binaryurp) 2021-06-05 16:21:03 +02:00
android
animations
apple_remote
avmedia
basctl
basegfx
basic
bean
bin find-unneeded-includes: fix YAMLLoadWarning on newer systems 2021-06-07 12:06:03 +02:00
binaryurp Revert "improve logging message" 2021-06-07 22:05:23 +02:00
bridges
canvas Simplify Sequences initializations (canvas) 2021-06-07 12:58:48 +02:00
chart2 chart2: use registerOOXMLNamespaces and registerODFNamespaces 2021-06-08 15:36:17 +02:00
cli_ure
codemaker
comphelper Simplify Sequences initializations (comphelper+connectivity) 2021-06-08 13:27:37 +02:00
compilerplugins loplugin:virtualdead 2021-06-04 19:18:30 +02:00
config_host
configmgr
connectivity -Werror,-Wunused-but-set-variable (Clang 13 trunk) 2021-06-09 12:26:26 +02:00
cppcanvas Simplify Sequences initializations (cppcanvas) 2021-06-08 13:20:39 +02:00
cppu
cppuhelper
cpputools
cui tdf#109388: Mouseover effect added to palettes in the Area tab 2021-06-08 20:49:52 +02:00
dbaccess xmllint: Namespace prefix menu on menuseparator is not defined 2021-06-09 11:55:31 +02:00
desktop Simplify Sequences initializations (desktop/e*/filter/forms/formula/fpicker) 2021-06-08 17:08:06 +02:00
dictionaries@29eb293030 Update git submodules 2021-06-02 22:31:54 +02:00
distro-configs Enable PdfIum for android build 2021-06-04 10:38:48 +02:00
drawinglayer WMF Change the sign of read fields in BITBLT and DIB records 2021-06-05 20:20:24 +02:00
editeng Fix typos 2021-06-09 07:42:08 +02:00
embeddedobj Simplify Sequences initializations (desktop/e*/filter/forms/formula/fpicker) 2021-06-08 17:08:06 +02:00
embedserv
emfio WMF tdf#142625 Refactor Bitmap records, to better handle missing features 2021-06-08 22:40:01 +02:00
eventattacher Simplify Sequences initializations (desktop/e*/filter/forms/formula/fpicker) 2021-06-08 17:08:06 +02:00
extensions Revert "Initialize vector directly with the already known count number" 2021-06-03 09:38:58 +02:00
external external/pdfium: Latest MSVC now needs the GCC workaround, too 2021-06-09 10:48:11 +02:00
extras tdf#127028 "bpmn" template should have ext. otg instead of ott 2021-06-07 12:25:29 +02:00
filter Simplify Sequences initializations (desktop/e*/filter/forms/formula/fpicker) 2021-06-08 17:08:06 +02:00
forms Simplify Sequences initializations (desktop/e*/filter/forms/formula/fpicker) 2021-06-08 17:08:06 +02:00
formula Simplify Sequences initializations (desktop/e*/filter/forms/formula/fpicker) 2021-06-08 17:08:06 +02:00
fpicker Simplify Sequences initializations (desktop/e*/filter/forms/formula/fpicker) 2021-06-08 17:08:06 +02:00
framework dtd files are not xml files and shouldn't have xml headers 2021-06-09 12:41:53 +02:00
helpcompiler no need to allocate these on the heap 2021-06-02 18:23:45 +02:00
helpcontent2@8459f8839e Update git submodules 2021-06-08 16:21:25 +02:00
hwpfilter no need to allocate these on the heap 2021-06-02 18:23:30 +02:00
i18nlangtag
i18npool dtd files are not xml files and shouldn't have xml headers 2021-06-09 12:41:53 +02:00
i18nutil
icon-themes
idl
idlc
include tdf#47365 PPTX export: support loop attribute 2021-06-08 16:37:40 +02:00
instsetoo_native
io
ios
javaunohelper
jurt
jvmaccess
jvmfwk
l10ntools -Werror,-Wunused-but-set-variable (Clang 13 trunk) 2021-06-03 16:13:24 +02:00
librelogo
libreofficekit
lingucomponent
linguistic Simplify Sequences initializations (i*->p*) 2021-06-09 10:49:26 +02:00
lotuswordpro no need to allocate these on the heap 2021-06-02 18:23:30 +02:00
m4
nlpsolver
o3tl
odk
offapi Fix typos 2021-06-09 07:42:08 +02:00
officecfg dtd files are not xml files and shouldn't have xml headers 2021-06-09 12:41:53 +02:00
onlineupdate
oovbaapi
oox Simplify Sequences initializations (i*->p*) 2021-06-09 10:49:26 +02:00
opencl
osx
package dtd files are not xml files and shouldn't have xml headers 2021-06-09 12:41:53 +02:00
pch
postprocess
pyuno
qadevOOo Explicitly set ForceFocusAndToFront to false for unit tests 2021-06-04 16:59:07 +02:00
readlicense_oo update credits 2021-06-04 16:23:19 +02:00
registry
remotebridges
reportbuilder
reportdesign Even more simplification in initializations (reportdesign) 2021-06-09 10:22:39 +02:00
ridljar
sal Make optional use of SetThreadDescription in osl_setThreadName 2021-06-02 15:27:09 +02:00
salhelper
sax
sc unit test: lok: text selection message test 2021-06-09 09:31:26 +02:00
scaddins
sccomp fix leak in solver test 2021-06-04 22:08:41 +02:00
schema
scp2
scripting
sd sd: split CppunitTest_sd_export_tests-ooxml2 into two 2021-06-08 18:33:13 +02:00
sdext
setup_native
sfx2 set entry to expand and combobox to fill its assigned space 2021-06-08 21:06:23 +02:00
shell
slideshow tdf#92917: fix crash in Impress in viewmediashape (slideshow) 2021-06-02 08:38:43 +02:00
smoketest
solenv tdf#137469 Prepare tests for encoded text filter 2021-06-09 11:09:15 +02:00
soltools
sot
starmath move unique use of secondary-icon-tooltip-text to tooltip-text 2021-06-04 21:00:33 +02:00
stoc
store
svgio
svl
svtools Resolves tdf#131817 - Option to globally switch toolbar locking on/off 2021-06-08 15:28:56 +02:00
svx Missing include 2021-06-09 00:39:28 +02:00
sw tdf#96840: sw_ww8export3: Add unittest 2021-06-09 11:30:23 +02:00
swext
sysui
test chart2: use registerOOXMLNamespaces and registerODFNamespaces 2021-06-08 15:36:17 +02:00
testtools
toolkit
tools ofz#33769 Integer-overflow 2021-06-03 13:37:36 +02:00
translations@c856f9a263 Update git submodules 2021-06-07 07:03:50 +02:00
ucb
ucbhelper
udkapi
uitest editengine-columns: Create document model and dialog page 2021-06-08 14:50:33 +02:00
UnoControls
unodevtools -Werror,-Wunused-but-set-variable (Clang 13 trunk) 2021-06-03 15:16:27 +02:00
unoidl
unoil
unotest
unotools
unoxml
ure
uui
vbahelper
vcl gtk4: implement some more of the menu requirements 2021-06-09 10:15:17 +02:00
wasm-qt
winaccessibility
wizards ScriptForge - (scriptforge.py) ThisComponent, ThisDatabaseDocument 2021-06-04 10:21:54 +02:00
writerfilter Fix typos 2021-06-09 07:42:08 +02:00
writerperfect
xmerge dtd files are not xml files and shouldn't have xml headers 2021-06-09 12:41:53 +02:00
xmlhelp
xmloff dtd files are not xml files and shouldn't have xml headers 2021-06-09 12:41:53 +02:00
xmlreader
xmlscript dtd files are not xml files and shouldn't have xml headers 2021-06-09 12:41:53 +02:00
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
config_host_lang.mk.in
configure.ac make --enable-gtk4 work again 2021-06-02 09:45:04 +02:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst
g
hardened_runtime.xcent.in
install-sh
install_deps.sh
leak-suppress.txt
Library_merged.mk
lo.xcent
logerrit
Makefile.fetch
Makefile.gbuild
Makefile.in
README.cross
README.md s/irc.freenode.net/irc.libera.chat/ in README.md 2021-06-02 15:57:31 +02:00
README.Solaris
README.wasm
Repository.mk
RepositoryExternal.mk fix packaging on mac/linux re cairo/pixman 2021-06-08 23:26:06 +02:00
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk
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.5
  • 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
  • Emscripten / WASM:
    • Runtime: a browser with SharedMemory support (threads + atomics)
    • Build: Qt 5.15 with Qt supported Emscripten 1.39.8
    • See README.wasm

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.md 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.md 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.libera.chat - 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.