Test repository to check push and ssh key
Find a file
Noel Grandin 5c00fadcc9 optimise and simplify ZipOutputEntryInThread
by just using the tempfile service as intended, we can stay
on the "happy path" which means that, on Windows, if there is
sufficient system RAM, the temporary file never even hits
the disk.

Change-Id: I3b27cf09bd40a4cfee01c23273af05860708a16f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128258
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-01-11 07:19:25 +01:00
.git-hooks
.github
.vscode vscode-ide-integration: don't abuse "folders" for workdir/instdir 2021-12-27 12:30:16 +01:00
accessibility pass unique_lock as param in WeakComponentImplHelperBase::disposing 2021-12-25 13:56:27 +01:00
android
animations
apple_remote
avmedia Disable epoxy test with --disable-gui 2022-01-05 18:00:59 +01:00
basctl remove E3D_INVENTOR_FLAG and convert SdrObjKind to scoped enum 2022-01-07 14:22:07 +01:00
basegfx use comphelper::WeakComponentImplHelper in UnoPolyPolygon 2021-12-27 11:49:05 +01:00
basic tdf#145693 - Argument name should be 'charcode' instead of 'string' 2022-01-08 11:48:32 +01:00
bean
bin get-bugzilla-attachments-by-mimetype: query different bzs concurrently 2022-01-06 19:13:48 +01:00
binaryurp
bridges annocheck warning about missing .note.gnu.property section 2022-01-06 14:56:27 +01:00
canvas pass unique_lock as param in WeakComponentImplHelperBase::disposing 2021-12-25 13:56:27 +01:00
chart2 remove E3D_INVENTOR_FLAG and convert SdrObjKind to scoped enum 2022-01-07 14:22:07 +01:00
cli_ure
codemaker
comphelper small cleanups to TempFile related code 2022-01-10 13:13:43 +01:00
compilerplugins loplugin:unusedmethods 2022-01-03 06:49:18 +01:00
config_host Move HAVE_MORE_FONTS into an extra config header 2022-01-10 04:50:46 +01:00
configmgr
connectivity use less SvStream::Flush() 2022-01-10 17:59:45 +01:00
cppcanvas vcl: migrate AddGradientActions() from OutputDevice to Gradient 2022-01-05 05:42:32 +01:00
cppu
cppuhelper Drop MSVC special-casing for OWeakObject ctor 2022-01-04 08:09:48 +01:00
cpputools Don't install the uno script when uno is not build 2022-01-08 15:33:30 +01:00
cui cui: no need to fetch the property from the map twice 2022-01-10 13:51:26 +01:00
dbaccess tdf#68341: trim some variables passed on Base wizard 2022-01-06 10:27:31 +01:00
desktop Move HAVE_MORE_FONTS into an extra config header 2022-01-10 04:50:46 +01:00
dictionaries@3fc3d99f07 Update git submodules 2022-01-03 18:43:22 +01:00
distro-configs Switch Linux Jenkins release build to mergelibs 2022-01-06 18:51:34 +01:00
drawinglayer Optimise a range-based for loop 2022-01-08 16:28:36 +01:00
editeng use less SvStream::Flush() 2022-01-10 17:59:45 +01:00
embeddedobj small cleanups to TempFile related code 2022-01-10 13:13:43 +01:00
embedserv Use GetModuleHandleExW instead of GetModuleHandleW 2022-01-05 16:20:36 +01:00
emfio Move HAVE_MORE_FONTS into an extra config header 2022-01-10 04:50:46 +01:00
eventattacher
extensions Use GetModuleHandleExW instead of GetModuleHandleW 2022-01-05 19:48:58 +01:00
external Silence various UBSan warnings in external/freetype 2022-01-07 09:47:46 +01:00
extras
filter remove E3D_INVENTOR_FLAG and convert SdrObjKind to scoped enum 2022-01-07 14:22:07 +01:00
forms use less SvStream::Flush() 2022-01-10 17:59:45 +01:00
formula
fpicker
framework move UserData bodge into VCLXMenu 2022-01-08 15:32:56 +01:00
helpcompiler
helpcontent2@78e8b79208 Update git submodules 2022-01-10 09:31:45 +01:00
hwpfilter
i18nlangtag tdf#146084 Test for languages without hyphenation 2022-01-10 13:28:54 +01:00
i18npool localedata: keep the intermediate %_new.cxx file 2022-01-03 17:37:30 +01:00
i18nutil Avoid OUStringBuffer::toString where possible 2021-12-26 20:36:26 +01:00
icon-themes Fix icon links.txt parse error 2021-12-31 07:55:25 +01:00
idl idl : no need to use rtl::Static 2022-01-02 18:24:56 +01:00
idlc Unify condition names and fix "else" paths 2022-01-08 12:26:30 +01:00
include Fix typo 2022-01-10 21:21:54 +01:00
instsetoo_native
io
ios
javaunohelper
jurt gbuild: introduce gb_%_linktarget_target 2021-12-31 17:58:18 +01:00
jvmaccess
jvmfwk
l10ntools
librelogo
libreofficekit
lingucomponent
linguistic Avoid OUStringBuffer::toString where possible 2021-12-26 20:36:26 +01:00
lotuswordpro use less SvStream::Flush() 2022-01-10 17:59:45 +01:00
m4 Drop remnants of --with-webdav=neon 2022-01-05 17:50:41 +01:00
nlpsolver
o3tl
odk Bump copyright year to 2021 2021-01-01 00:00:00 +00:00
offapi
officecfg
onlineupdate
oovbaapi
oox remove E3D_INVENTOR_FLAG and convert SdrObjKind to scoped enum 2022-01-07 14:22:07 +01:00
opencl
osx use concrete types in chart2, SvxShapeRect 2021-12-30 08:25:43 +01:00
package optimise and simplify ZipOutputEntryInThread 2022-01-11 07:19:25 +01:00
pch
postprocess
pyuno tdf#146621: handle an exception that may hang process at ExitProcess time 2022-01-07 14:30:30 +01:00
qadevOOo
readlicense_oo Bump copyright year to 2021 2021-01-01 00:00:00 +00:00
registry Unify condition names and fix "else" paths 2022-01-08 12:26:30 +01:00
remotebridges
reportbuilder
reportdesign remove E3D_INVENTOR_FLAG and convert SdrObjKind to scoped enum 2022-01-07 14:22:07 +01:00
ridljar
sal Fix ISO C++11 -Wwritable-strings 2022-01-11 05:23:45 +01:00
salhelper
sax osl::Mutex->std::mutex in FastSaxParserImpl 2022-01-04 07:07:20 +01:00
sc use less SvStream::Flush() 2022-01-10 17:59:45 +01:00
scaddins
sccomp
schema
scp2
scripting osl::Mutex->std::mutex in StringResourceImpl 2022-01-04 10:44:03 +01:00
sd document GenericCheckDialog, GraphicSizeCheck and related classes 2022-01-10 13:51:08 +01:00
sdext
setup_native Bump copyright year to 2021 2021-01-01 00:00:00 +00:00
sfx2 tdf#146375 Cannot rename user-defined categories in template manager 2022-01-11 07:19:02 +01:00
shell Use WindowsErrorString instead of FormatMessageW 2022-01-08 10:07:54 +01:00
slideshow Disable epoxy test with --disable-gui 2022-01-05 18:00:59 +01:00
smoketest oss-fuzz: convert to static cross-build 2021-12-25 17:05:08 +01:00
solenv implement anyToHash() and use it for SdrCustomShapeGeometryItem 2022-01-09 15:43:53 +01:00
soltools
sot use less SvStream::Flush() 2022-01-10 17:59:45 +01:00
starmath Move HAVE_MORE_FONTS into an extra config header 2022-01-10 04:50:46 +01:00
stoc osl::Mutex->std::mutex in ImplIntrospectionAccess 2022-01-03 20:07:29 +01:00
store
svgio
svl Introduce OUString::unacquired(const OUStringBuffer&) 2022-01-02 09:03:32 +01:00
svtools use less SvStream::Flush() 2022-01-10 17:59:45 +01:00
svx sd theme: fix applying new colors after theme change for group shapes 2022-01-10 17:38:56 +01:00
sw uitest: executeCommand doesn't return anything 2022-01-10 21:10:56 +01:00
swext
sysui
test
testtools
toolkit Fix build 2022-01-08 18:52:16 +01:00
tools use less SvStream::Flush() 2022-01-10 17:59:45 +01:00
translations@f6628660c3 Update git submodules 2022-01-10 13:29:15 +01:00
ucb loplugin:unusedfields 2022-01-02 19:36:59 +01:00
ucbhelper osl::Mutex->std::mutex in CommandProcessorInfo 2021-12-27 15:21:05 +01:00
udkapi
uitest tdf#95217: sc: simplify test 2021-12-30 16:44:53 +01:00
UnoControls
unodevtools
unoidl
unoil
unotest
unotools tdf#146375 Cannot rename user-defined categories in template manager 2022-01-11 07:19:02 +01:00
unoxml
ure Don't install the uno script when uno is not build 2022-01-08 15:33:30 +01:00
uui
vbahelper
vcl use less SvStream::Flush() 2022-01-10 17:59:45 +01:00
wasm-qt
winaccessibility wina11y: Don't use space in qualified name 2022-01-06 10:11:21 +01:00
wizards Fix case for "ByVal", "Variant", "UCase" 2021-12-30 10:34:54 +01:00
writerfilter tdf#66039 DOCX: import textboxes (with tables, images etc.) in group shapes 2022-01-06 10:41:32 +01:00
writerperfect
xmerge
xmlhelp
xmloff Fix typos 2022-01-05 19:11:20 +01:00
xmlreader
xmlscript
xmlsecurity tdf#146392 fix --enable-pch=full build 2022-01-06 17:34:05 +01:00
.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 Disable oosplash pagein feature for static builds 2022-01-07 19:07:06 +01:00
config_host_lang.mk.in
configure.ac Move HAVE_MORE_FONTS into an extra config header 2022-01-10 04:50:46 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst upgrade freetype to latest release 2022-01-06 15:00:58 +01:00
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 oss-fuzz: convert to static cross-build 2021-12-25 17:05:08 +01:00
README.cross
README.help.md
README.md
README.Solaris
Repository.mk Don't install the uno script when uno is not build 2022-01-08 15:33:30 +01:00
RepositoryExternal.mk Unify condition names and fix "else" paths 2022-01-08 12:26:30 +01:00
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk gbuild: introduce gb_%_linktarget_target 2021-12-31 17:58:18 +01:00
sanitize-ubsan-excludelist
setup.cfg
TEMPLATE.SOURCECODE.HEADER
tsan-suppress.txt

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.12
    • 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.