Test repository to check push and ssh key
Find a file
Justin Luth 7444c8c87a tdf#151548 vba FormFields: Add basic word::XCheckBox support
make CppunitTest_sw_macros_test CPPUNIT_TEST_NAME=testVba

This now allows MS Word Basic legacy checkbox form fields
to be controlled by VBA basic.
-allows getting and setting the checkbox value

TODO:
-wire up entry and exit macros
-wire up StarBASIC support (hmm, how would that be different?)
   -probably completely ignore this. formfields hidden from
    normal writer - only activeX and content controls shown.
-setup tri-state for checkboxes: with a separate default value

Change-Id: Ied47a507dd9acc2c8dfd1472e6704e9dd571b480
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142253
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2022-11-11 11:19:21 +01:00
.git-hooks
.github
.vscode
accessibility
android
animations
apple_remote
avmedia
basctl
basegfx
basic -Werror,-Wdeprecated-declarations (sprintf, macOS 13 SDK): basic 2022-11-05 17:17:54 +01:00
bean
bin upload_symbols: Clarify parameters 2022-11-01 15:57:32 +01:00
binaryurp
bridges Add riscv64 support 2022-11-10 13:47:06 +01:00
canvas
chart2 Drop a counterproductive top-level const 2022-11-11 10:30:26 +01:00
cli_ure
codemaker
comphelper TempFile: Initialise handle 2022-11-07 09:09:14 +01:00
compilerplugins -Werror,-Wdeprecated-declarations (sprintf, macOS 13 SDK): compilerplugins 2022-11-06 01:14:05 +01:00
config_host Send build config (configure options) in LOKit version info JSON 2022-11-07 20:35:46 +01:00
configmgr
connectivity
cppcanvas UnoApiTest: simplify code by using tempfile member 2022-11-08 11:54:22 +01:00
cppu
cppuhelper
cpputools
cui tdf#107405 Allow kerning less than -2 2022-11-10 08:30:40 +01:00
dbaccess Drop a counterproductive const& 2022-11-11 11:12:27 +01:00
desktop lok: Introudce getDataArea for Calc 2022-11-10 10:16:52 +01:00
dictionaries@43a746e2dc Update git submodules 2022-11-11 06:11:48 +01:00
distro-configs
drawinglayer ofz#53151 Abrt 2022-11-09 11:20:04 +01:00
editeng Related: tdf#149932 honour PANGO_UNDERLINE_DOUBLE for preedit underline 2022-11-03 20:48:37 +01:00
embeddedobj CppunitTest_embeddedobj_general: inherit from UnoApiTest 2022-11-11 09:52:22 +01:00
embedserv tdf#143148 Use of #pragma once instead of include guards. 2022-11-02 18:44:39 +01:00
emfio tdf#143148 Use pragma once instead of include guards 2022-11-08 20:30:47 +01:00
eventattacher
extensions -Werror,-Wdeprecated-declarations (sprintf, macOS 13 SDK): extensions 2022-11-05 18:27:41 +01:00
external Update pdfium to 5408 2022-11-10 08:08:56 +01:00
extras Templates: tdf#86483: Add "Localization" category and add a template for zh_CN 2022-11-04 21:29:33 +01:00
filter CppunitTest_filter_pdf: inherit from UnoApiTest 2022-11-09 15:24:00 +01:00
forms
formula
fpicker
framework Simplify the method and fix its description 2022-11-10 14:45:57 +01:00
helpcompiler
helpcontent2@ff13d5c7d7 Update git submodules 2022-11-11 11:13:11 +01:00
hwpfilter ofz#52490 Timeout 2022-11-06 14:15:25 +01:00
i18nlangtag
i18npool -Werror,-Wdeprecated-declarations (sprintf, macOS 13 SDK): i18npool 2022-11-06 01:14:25 +01:00
i18nutil
icon-themes
idl
idlc/test/parser
include lok: Introudce getDataArea for Calc 2022-11-10 10:16:52 +01:00
instsetoo_native
io
ios
javaunohelper
jurt
jvmaccess
jvmfwk Add riscv64 support 2022-11-10 13:47:06 +01:00
l10ntools A better fix for C++23 P2266R1 2022-11-08 17:28:32 +01:00
librelogo
libreofficekit
lingucomponent
linguistic
lotuswordpro UnoApiTest: simplify code by using tempfile member 2022-11-08 11:54:22 +01:00
m4 Add riscv64 support 2022-11-10 13:47:06 +01:00
nlpsolver
o3tl
odk
offapi sw content controls: drop not needed XServiceInfo impl 2022-11-10 09:58:25 +01:00
officecfg tdf#151605 Don't include hidden text by default in HTML filter 2022-11-07 08:32:05 +01:00
onlineupdate
oovbaapi tdf#151548 vba FormFields: Add basic word::XCheckBox support 2022-11-11 11:19:21 +01:00
oox UnoApiTest: factor out common code 2022-11-09 19:08:32 +01:00
opencl
osx
package
pch
postprocess
pyuno
qadevOOo
readlicense_oo update credits 2022-11-02 11:08:20 +01:00
registry
remotebridges
reportbuilder
reportdesign tdf#54857 use OUStringConstExpr in XMLPropertyMapEntry 2022-11-04 06:50:43 +01:00
ridljar
sal A better fix for C++23 P2266R1 2022-11-08 17:28:32 +01:00
salhelper
sax
sc tdf#150607 Change Truncate to Round 2022-11-11 10:41:02 +01:00
scaddins tdf#150465 Improve description of RANDBETWEEN in function wizard 2022-10-31 17:08:04 +01:00
sccomp
schema sw content controls: allow no list items in a dropdown 2022-11-09 17:00:00 +01:00
scp2 Match conditionals in dictionaries/Module_dictionaries.mk 2022-11-07 00:02:57 +01:00
scripting
sd lok: masterpage: introduce EditMode setter and getter for ViewShell 2022-11-09 21:49:09 +01:00
sdext sdext.pdfimport - Wirter: add handling for continuous space characters 2022-11-08 08:40:29 +01:00
setup_native
sfx2 Simplify and deduplicate SfxBaseController::queryDispatch 2022-11-10 17:46:33 +01:00
shell
slideshow Fix typo 2022-11-10 12:53:58 +01:00
smoketest
solenv Add riscv64 support 2022-11-10 13:47:06 +01:00
soltools -Werror,-Wdeprecated-declarations (sprintf, macOS 13 SDK): soltools 2022-11-10 14:50:53 +01:00
sot
starmath Use o3tl::convert instead of temporary Fractions 2022-11-07 06:03:48 +01:00
static tdf#142446 follow up: Fix missing ui file crash and a11y ui errors 2022-11-01 06:13:01 +01:00
stoc Use o3tl::to_underlying() instead of static_cast<int>() 2022-11-02 11:21:21 +01:00
store
svgio
svl -Werror,-Wdeprecated-declarations (sprintf, macOS 13 SDK): svl 2022-11-05 19:19:06 +01:00
svtools tdf#151519 Make ticks in ruler visible again 2022-11-09 16:07:13 +01:00
svx UnoApiTest: factor out common code 2022-11-09 19:08:32 +01:00
sw tdf#151548 vba FormFields: Add basic word::XCheckBox support 2022-11-11 11:19:21 +01:00
swext
sysui
test lok: masterpage: use EditMode as parameter in invalidation callback 2022-11-10 10:15:46 +01:00
testtools
toolkit
tools -Werror,-Wdeprecated-declarations (sprintf, macOS 13 SDK): tools 2022-11-06 01:13:45 +01:00
translations@b03d019e0d Update git submodules 2022-11-05 18:19:13 +01:00
ucb
ucbhelper
udkapi
uitest
UnoControls
unodevtools
unoidl tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro 2022-11-06 01:22:27 +01:00
unoil
unotest tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro 2022-11-06 01:22:27 +01:00
unotools A better fix for C++23 P2266R1 2022-11-08 17:28:32 +01:00
unoxml tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro 2022-11-06 01:22:27 +01:00
ure Revert "tdf#145538 Use range based for loops" 2022-11-07 08:20:46 +01:00
uui
vbahelper
vcl Related: tdf#151898 use more of the code path that can use scaled svgs 2022-11-10 16:43:31 +01:00
winaccessibility
wizards ScriptForge - (SF_Datasheet) Filter, OrderBy properties 2022-11-06 17:37:10 +01:00
writerfilter UnoApiTest: factor out common code 2022-11-09 19:08:32 +01:00
writerperfect CppunitTest_writerperfect_epubexport: inherit from UnoApiXmlTest 2022-11-08 14:26:45 +01:00
xmerge
xmlhelp
xmloff UnoApiTest: factor out common code 2022-11-09 19:08:32 +01:00
xmlreader
xmlscript
xmlsecurity tdf#147201 Use std::size() instead of SAL_N_ELEMENTS() macro 2022-11-10 02:27:45 +01:00
.buckconfig
.buckversion
.clang-format Document that .clang-format would benefit from StatementMacros 2022-11-06 15:38:07 +01:00
.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 Add riscv64 support 2022-11-10 13:47:06 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
cpp.hint
download.lst Update pdfium to 5408 2022-11-10 08:08:56 +01:00
g
hardened_runtime.xcent.in
install-sh
install_deps.sh
leak-suppress.txt
Library_merged.mk
lo.xcent.in
logerrit
Makefile.fetch
Makefile.gbuild
Makefile.in use https instead of http 2022-11-01 14:14:45 +01:00
README.cross
README.help.md
README.md
README.Solaris
Repository.mk
RepositoryExternal.mk
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk
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 and Developers Guide. 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.10
  • macOS:
    • Runtime: 10.14
    • Build: 11.0 + Xcode 12.5
  • Linux:
    • Runtime: RHEL 7 or CentOS 7
    • Build: either GCC 7.0.0; or Clang 8.0.1 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

Java is required for building many parts of LibreOffice. In TDF Wiki article Development/Java, the exact modules that depend on Java are listed.

The baseline for Java is Java Development Kit (JDK) Version 11 or later. It is possible to build LibreOffice with JDK version 9, but it is no longer supported by the JDK vendors, thus it should be avoided.

If you want to use Clang with the LibreOffice compiler plugins, the minimal version of Clang is 12.0.1. 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.