path: root/offapi
AgeCommit message (Collapse)AuthorFilesLines
2020-10-21Fix typosAndrea Gelmini1-1/+1
Change-Id: Ia66e31a0ad71dde1a6c1caa911d6083e1fb9eb61 Reviewed-on: Reviewed-by: Julien Nabet <> Tested-by: Jenkins
2020-10-21new tools::Degree10 strong typedefNoel Grandin1-0/+1
partly to flush some use of "long" out the codebase, but also to make it obvious which units are being used for angle values. Change-Id: I1dc22494ca42c4677a63f685d5903f2b89886dc2 Reviewed-on: Tested-by: Noel Grandin <> Reviewed-by: Noel Grandin <>
2020-10-20tdf#133045 sw: add shape alignment to the top page borderSzabolcs Toth1-1/+7
Allow relative alignment to the top page border (the area over PAGE_PRINT_AREA) by adding constant PAGE_PRINT_AREA_TOP to com::sun::star::text::RelOrientation. Fix DOCX shape import of <wp:positionV relativeFrom="topMargin">. Follow-up of commit 6788133b3bdf02097d66a99047aa7bcba3a99a66 (tdf#135720 sw: fix PAGE_PRINT_AREA_BOTTOM alignment with footer) and commit 79107d3f8d10aa0f38641775c5eb47dcfd4fd37e (sw from-bottom relative orientation: add UNO API). Co-authored-by: Balázs Regényi Change-Id: I3a3f7324c0ef8d448526982d3e2f09b67f5fd4d4 Reviewed-on: Tested-by: László Németh <> Reviewed-by: László Németh <>
2020-10-15tdf#34355 sw,offapi,officecfg: show track changes in marginLászló Németh1-0/+6
In ShowTrackedChanges mode, hide tracked deletions in text optionally and show their shortened text in margin next to the vertical "Changed line" mark (showing only the first deletion of the line). Add "Tracked deletions in margin" checkbox to Writer->View page. Add "Display tracked changes" and "Outline View" sections to View, too. Add property ShowChangesInMargin to com::sun::star::text::ViewSettings. Add config setting: org/openoffice/Office/Writer/Content/Display/ShowChangesInMargin Show more information in Manage Changes dialog window about the tracked deletions with restricted visibility in ShowChangesInMargin mode: show shortened text content of a deletion in its (otherwise empty) Comment field. Change-Id: I1d19a4bf8225f536a635c6dd5062344c51e03b79 Reviewed-on: Tested-by: László Németh <> Reviewed-by: László Németh <>
2020-10-11Revert "Permit scrollable AWT tab pages a la scrolled Dialog"Caolán McNamara2-73/+0
UITest_sort failing Jenkins Verified-1 Patch Set 7: Verified-1 where UITest_sort failed Jenkins Verified+1 Patch Set 7: Verified+1 but that's just an android build which doesn't run any tests This reverts commit b3f2530aa2767ba43cd4702422fc3ed0d37821d6. Change-Id: I9414e5d7cc5873848f95dab65f03836ccb2ff0c6 Reviewed-on: Tested-by: Caolán McNamara <> Reviewed-by: Caolán McNamara <>
2020-10-11Permit scrollable AWT tab pages a la scrolled DialogThorsten Behrens2-0/+73
UNO dialogs since LibreOffice 4.0 permitted setting HScroll / VScroll properties to enable scrolling for too large a content. Conceptually clone this code over to TabPage as well, and register necessary UNO properties in the toolkit UNO wrappers. Add missing API documentation also to UnoControlDialogModel, plus the new properties to the UnoControlTabPageModel Change-Id: Iff90f60d0152ca21e4fe61c31315b9e1feab0dea Reviewed-on: Tested-by: Jenkins Reviewed-by: Thorsten Behrens <>
2020-09-26Fix typoAndrea Gelmini1-2/+2
Change-Id: I2c5ea93645161eb4acb7bbfba21fdf30462c2635 Reviewed-on: Reviewed-by: Julien Nabet <> Reviewed-by: Stephan Bergmann <> Tested-by: Jenkins
2020-09-25fix Graphic duplication in import and add GraphicMapperTomaž Vajngerl4-2/+76
When importing writerfilter, we change to oox when importing images. This transition doesn't store any previous contexts and all instances are reset. The problem occurs when we have identical images because the transition erases all caches we have to determine if an image has already been imported or not, which causes that we import the same image multiple times which create unnecessary copies. This introduces the XGraphicMapper, which can be used to store the XGraphic for a key and can be transferred between writerfilter to oox. With this we can remember which images were already imported and don't create unnecessary internal copies which decreases memory. This also includes a test which checks that the import and export doesn't produce unnecessary copies of identical images. The test checks that for OOXML, ODF and MS Binary formats. Change-Id: I33dc19218c565937fab77e132b3a996c51358b6e Reviewed-on: Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <>
2020-09-21offapi: add missing @since tag for setSizeHint()Miklos Vajna1-0/+2
See <> for motivation. Change-Id: Id3074642064454b15dd56a504cf7e312b8ec7522 Reviewed-on: Reviewed-by: Miklos Vajna <> Tested-by: Jenkins
2020-09-18[API CHANGE] tdf#136836 emfio: set size hint on inner PDF if used as shape fillMiklos Vajna1-0/+8
The bugdoc has a shape, its bitmap fill is an EMF, which is actually a PDF. The PDF is has a height of 5cm, but the shape has a height of 14 cm. Inform vcl::RenderPDFBitmaps() about the size of the shape, so the result won't be blurry. This approach makes sure that we don't unconditionally render at higher resolution, i.e. the "load a PDF of 100 pages into Online" use-case won't use more memory than before. API CHANGE, because the EMF reader is only available via UNO, though it's likely that no actual external code would ever invoke it directly. Change-Id: If1d8def0136d408a31a0cc54777a7f26430a0ff3 Reviewed-on: Reviewed-by: Miklos Vajna <> Tested-by: Jenkins
2020-09-17Add "Persistent", deprecate "Persistant" in RenderingCapabilitiesJulien Nabet2-1/+7
Change-Id: Ib86b715dcf3514d038519d0f495e3d98b9f01190 Reviewed-on: Reviewed-by: Stephan Bergmann <> Tested-by: Jenkins
2020-09-02tdf#136061 Chart ODF/OOXML: fix missing custom labelsBalazs Varga2-0/+15
by UNO extensions ShowCustomLabel in DataPointLabel.idl and CUSTOM in ChartDataCaption.idl, fixing OOXML/ODF import/export. We should display custom data label even if DataPointLabel is disabled (e.g. category name and/or value fields are not displayed). Note: import of the embedded chart of the DOCX unit test document uses also ODF format in the background, testing also the extension of the native file format. Change-Id: I73e21f1e69fddec9f3b4163c46b6582cd1c74b5d Reviewed-on: Tested-by: Jenkins Tested-by: László Németh <> Reviewed-by: László Németh <>
2020-08-31Fix end "ul" tag in LayoutManager.idl (offapi)Julien Nabet1-1/+1
Change-Id: Ice50c048b62fe35d1a9f5b11435cb75f3fa45042 Reviewed-on: Tested-by: Jenkins Reviewed-by: Julien Nabet <>
2020-08-29Fix typo in codeAndrea Gelmini1-2/+2
It passed "make check" on Linux Change-Id: I28c727895fdaf3660d3aceb03ddd50b36c80801e Reviewed-on: Tested-by: Jenkins Reviewed-by: Noel Grandin <>
2020-08-24Fix typosAndrea Gelmini1-1/+1
Change-Id: I9385704bea54ff504457f7ac1ec39ed98cfdaf97 Reviewed-on: Tested-by: Jenkins Reviewed-by: Julien Nabet <>
2020-08-23Fix typoAndrea Gelmini1-2/+2
Change-Id: Iae8064759c5f3c705dc12bf93b4398cf0f98fef9 Reviewed-on: Tested-by: Jenkins Reviewed-by: Julien Nabet <>
2020-08-22add bounciness velocity and density options to physics animationsSarper Akdemir2-0/+58
Adding new xml options to specify the starting velocity, bounciness, and density of the rigid body that physics animation control. Change-Id: Ifaba785e82c8ee17be00711a3e7a75257e7704ae Reviewed-on: Tested-by: Jenkins Reviewed-by: Thorsten Behrens <>
2020-08-21Fix typosAndrea Gelmini4-4/+4
Change-Id: I8dc0cdcfe6bd90efc596df28e6c6d968b92618b5 Reviewed-on: Reviewed-by: Julien Nabet <> Tested-by: Jenkins
2020-08-20make physics based animation effects importable-exportableSarper Akdemir2-0/+26
Makes physics based animation effects importable and exportable on content.xml. Uses one new xml token animatePhysics. Also adds a new animation preset called Physics Basic that is available under Emphasis animation effect category. Change-Id: I38b0511f973668655cff78becebe3f1e628d9083 Reviewed-on: Tested-by: Jenkins Reviewed-by: Thorsten Behrens <>
2020-08-18tdf#134563 Add UNO API for custom leader linesBalazs Varga1-0/+7
If its ShowCustomLeaderLines=true, data series uses leader lines for labels with custom alignment. Add also OOXML import/export of custom data series setting. Change-Id: I8e6f7cb457c38b84aa40c917e69704862262a96e Reviewed-on: Tested-by: László Németh <> Reviewed-by: László Németh <>
2020-08-18unoidl-read: Avoid redundant redeclarationsStephan Bergmann1-151/+0
...of interfaces for which such a forward declaration has already been emitted. Update the reference rdbs accordingly with LD_LIBRARY_PATH=.../master/instdir/program \ .../master/workdir/LinkTarget/Executable/unoidl-read --published \ .../libreoffice- \ >.../master/udkapi/type_reference/udkapi.idl LD_LIBRARY_PATH=.../master/instdir/program \ .../master/workdir/LinkTarget/Executable/unoidl-read --published \ .../libreoffice- \ .../libreoffice- \ >.../master/offapi/type_reference/offapi.idl Change-Id: I7448ae44d479a8c622f6f534abe6087ce8a8ea32 Reviewed-on: Tested-by: Jenkins Reviewed-by: Stephan Bergmann <>
2020-08-18Update the reference rdbs to libreoffice- Bergmann1-13/+36
LD_LIBRARY_PATH=/data/sbergman/lo-clang/core/instdir/program \ /data/sbergman/lo-clang/core/workdir/LinkTarget/Executable/unoidl-read --published \ /data/sbergman/lo-7.0/core/instdir/program/types.rdb \ >/data/sbergman/lo-clang/core/udkapi/type_reference/udkapi.idl * no changes LD_LIBRARY_PATH=/data/sbergman/lo-clang/core/instdir/program \ /data/sbergman/lo-clang/core/workdir/LinkTarget/Executable/unoidl-read --published \ /data/sbergman/lo-7.0/core/instdir/program/types.rdb \ /data/sbergman/lo-7.0/core/instdir/program/types/offapi.rdb \ >/data/sbergman/lo-clang/core/offapi/type_reference/offapi.idl * (XDcoumentHandler getting moved around now is a consequence of this being the first fully-automated generation of the file again after the manual modifications done by the preceding 214e6caf2c503d817c47ebcc419e4f7e33b336ac "[API CHANGE] remove BasicImport UNO interfaces" and ebb66ee09b6041cbf755f24e54f2d1a510bbc3d3 "Fixed update of the reference rdbs to libreoffice-".) Change-Id: I841b6b5a059c78750fa7f02f9276c6b6f86c9afd Reviewed-on: Tested-by: Jenkins Reviewed-by: Stephan Bergmann <>
2020-08-13Fix typosAndrea Gelmini1-1/+1
Change-Id: I02f05d87920a09f2cbb8a66caa2f76b7aad62a49 Reviewed-on: Tested-by: Jenkins Reviewed-by: Julien Nabet <>
2020-08-12add version tag to ANIMATEPHYSICSSarper Akdemir1-1/+4
Change-Id: Ia6db8ca10a0311ae8492cdc5ab518efaba611cb2 Reviewed-on: Reviewed-by: Stephan Bergmann <> Tested-by: Jenkins
2020-08-11LayoutManager: Document available propertiesSamuel Mehrbrodt1-0/+11
Change-Id: I1ce4a4d00383bf7ebe91482cd29828da778dc43d Reviewed-on: Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <>
2020-08-09make physics based animation effects part of the animation engineSarper Akdemir1-0/+3
Wiring up and creating required classes for physics based animation effects to be part of the animation engine. Creating a new animation node AnimationPhysicsNode for physics based animation effects and PhysicsAnimation class that inherits the NumberAnimation in the animation factory. Change-Id: I1f125df5324673e9937b8164c0fc267c9683afa0 Reviewed-on: Tested-by: Jenkins Reviewed-by: Thorsten Behrens <>
2020-08-09tdf#135573 sw: add Székely rovás (Old Hungarian) numeralsLászló Németh1-0/+6
Change-Id: Ic309fc9b07186ce0b86ca54028d62e0fafd104fc Reviewed-on: Tested-by: Jenkins Reviewed-by: László Németh <>
2020-07-30tdf#38093 Writer outline folding - feature sensitivityJim Raykowski1-0/+6
Patch 1/6 -Adds option 'Show outline visibility button' to options writer view tab in Display section. -Adds UNO command '.uno:ShowOutlineContentVisibilityButton' to toggle option on and off from menus, toolbars, and key bindings. -Makes feature experimental mode. Change-Id: If5a57defd8f568736ea08625ab6eb08e30b15c03 Reviewed-on: Tested-by: Jenkins Reviewed-by: Mike Kaganski <>
2020-07-10replace usage of whitelist with allowlistThorsten Behrens1-1/+0
Background and motivation: [API CHANGE] officecfg::Office::Common::Misc::OpenCLWhiteList -> OpenCLAllowList Change-Id: I65636b19b13e4af1e4851f70e78053f3443d6bb1 Reviewed-on: Tested-by: Thorsten Behrens <> Reviewed-by: Thorsten Behrens <>
2020-07-10replace usage of blacklist with denylistThorsten Behrens1-1/+1
.. and a few cases of instead doing blacklist->excludelist where that made more sense. Background and motivation: [API CHANGE] officecfg::Office::Canvas::DeviceBlacklist -> DeviceDenylist [API CHANGE] officecfg::Office::Canvas::BlacklistCurrentDevice -> DenylistCurrentDevice [API CHANGE] officecfg::Office::Common::Misc::OpenCLBlackList -> OpenCLDenyList Change-Id: Ia35e25496bf0cc0692d5de4cb66bfc232d3a869e Reviewed-on: Tested-by: Thorsten Behrens <> Reviewed-by: Thorsten Behrens <>
2020-07-09Docs: Add missing propertySamuel Mehrbrodt1-0/+4
Change-Id: I1f4a0602f23cba86adbf627b0881ae5034db0af8 Reviewed-on: Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <>
2020-07-07Fix typoAndrea Gelmini1-1/+1
Change-Id: I7c3e2c4c129c5ff7e3c8e5f3ac94e57508ce39ea Reviewed-on: Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <>
2020-07-03[API CHANGE] Move NSS profile handling into NSS serviceJan-Marek Glogowski4-0/+91
While developing the patchset for tdf#127909, I broke the certificate path dialog, because I wasn't aware, that the NSSInitializer service has to use the same logic to auto- select the users profile, then the dialog. So currently you have to keep the complex service and dialog auto-select logic in sync. To prevent this error, this moves all the profile auto-selection and enumeration into the NSSInitializer service. What I also stumbled over is the particular lifecycle of the NSS library initialization in the NSS service. This is just done, when the first user calls some crypto function. As a result it's actually possible to change the path setting without restarting LibreOffice. But since the NSS deninitialization is run as an atexit handler, this setting can't be changed after the init. What is currently missing is any indication inside the dialog of the currently active NSS setting in comparison to any later user selection, if the user doesn't restart LibreOffice as requested. Change-Id: I886962777958c363abeb0ec91fc8a35cbd39eb98 Reviewed-on: Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <>
2020-06-26tdf#134106: Get rid of XDesktopInternal againStephan Bergmann2-29/+0
For internal functionality that is not meant to be called by client code, I think it is appropriate to hide it either via XUnoTunnel (but which would have been a tad incovenient, as it would have meant to make framework::Desktop in framework/inc/services/desktop.hxx available to the code in desktop/source/app/app.cxx), or via reuse of some existing, sufficently fitting interface (as is done here with css.task.XJob). This nicely avoids the backwards compatibilty issue with remote Python scripts, as discussed in tdf#134106 "Binary URP bridge disposed during call to ServiceManager.createInstanceWithContext". Change-Id: Ic9db9401ddf0f6b696344dd1d5c6ad279ea5a832 Reviewed-on: Reviewed-by: Jan-Marek Glogowski <> Reviewed-by: Stephan Bergmann <> Tested-by: Jenkins
2020-06-02OOXML support for shadow blurA_GAN1-0/+5
Add a new property for the blur radius and define an ID for it to support the import of OOX files. Add a test for importing the blur radius from PPTX file Change-Id: Iffaa33ff7159019ce9478cee558622bd61bcf60e Reviewed-on: Tested-by: Tomaž Vajngerl <> Reviewed-by: Tomaž Vajngerl <>
2020-06-02bump to libnumbertext 1.0.6László Németh1-1/+1
Fixes in various languages, also word transliteration support in Old Hungarian (renamed to hu_Hung.sor). Change-Id: I2eed60142273b8c353304a5b714f4e4bde5af1b7 Reviewed-on: Tested-by: László Németh <> Reviewed-by: László Németh <>
2020-05-28[API CHANGE] drop unpublished XAccessibleGetAccFlowToCaolán McNamara2-39/+0
Change-Id: I7e67677396bd50d59b519e6acf2b3c75d3c12ddd Reviewed-on: Tested-by: Jenkins Reviewed-by: Caolán McNamara <>
2020-05-28Resolves: tdf#133411 drop CONTENT_FLOWS_TO from dialog to search resultsCaolán McNamara1-1/+0
in the document, looks like only the calc one actually works, and when it works on large quantities of results calc grinds to a complete halt This was introduced with: commit b41332475783c31136673fb44cf4c411bb0148f8 Date: Mon Dec 2 15:54:29 2013 +0000 Integrate branch of IAccessible2 and has been a problem on and off with calc's potentially ~infinite grid There is the on-by-default search results dialog in calc (which has a limit on how many it shows) which provides an alternative route to iterate through the results Change-Id: I2685e480d2d15220be0bddbc83baad3992e7d5d1 Reviewed-on: Tested-by: Jenkins Reviewed-by: Caolán McNamara <>
2020-05-25Fix typoAndrea Gelmini1-1/+1
Change-Id: I01d37799ec2ba902613cc956b819af2f35e1c446 Reviewed-on: Tested-by: Jenkins Reviewed-by: Julien Nabet <>
2020-05-25offapi: 6.5 is now called 7.0Miklos Vajna1-1/+1
Change-Id: I6919bc94a96a3ecd63a22972dd0c0651d18559ba Reviewed-on: Reviewed-by: Miklos Vajna <> Reviewed-by: Vasily Melenchuk <> Tested-by: Thorsten Behrens <>
2020-05-25[MS-OFFCRYPTO] convert oox implementation into UNO serviceVasily Melenchuk3-0/+161
To permit pluggable crypto services, abstract existing implementation behind an XPackageEncryption API. Previous code already had two halfway-polymorphic classes (agile and standard 2007 engine), so we're not adding much additional layers. As MS crypto always uses OLE storage to wrap content into one single file, current implementation passes all substorage names down into XPackageEncryption APi, so different downstream implementations (e.g. for MS RMS, or Azure AIP) are possible. Because OleStorage classes are internal to LibO core, access is provided via XInput/XOutput stream API function. Change-Id: Icc32a4e0ce215090c3b739f1dcaa0654b36b7f08 Reviewed-on: Tested-by: Jenkins Reviewed-by: Thorsten Behrens <>
2020-05-25sfx2 UNO API: XModel2::setArgs() now also supports "EncryptionData"Vasily Melenchuk1-0/+1
XModel2::setArgs() only permits hand-picked set of media descriptor parameters. Add one more in preparation to API-based MS crypto rework. Change-Id: I179a1cfc2cdd7b04becba0d7dfe9740d920ae4ee Reviewed-on: Reviewed-by: Vasily Melenchuk <> Tested-by: Vasily Melenchuk <> Reviewed-on: Tested-by: Jenkins Reviewed-by: Thorsten Behrens <>
2020-05-09Wrong copypaste for SCHEMA in DatabaseObjectContainer.idlJulien Nabet1-1/+1
Change-Id: I9ce3531e240351e39fb97a390d1dc95b62955554 Reviewed-on: Reviewed-by: Lionel Elie Mamane <> Tested-by: Julien Nabet <>
2020-05-08implement PowerPoint 'flash' slide transition (API CHANGE)Luboš Luňák1-0/+4
It's like 'fade', but using white instead of black. It's a separate type in the pptx file (although I actually cannot find it in the spec OOXML, but PowerPoint 2013 generates it). The API change in XTransitionFactory should be fine, I doubt there's anything external using it. Change-Id: I3479840f265ed8227b3b8301ecff56a63d57f493 Reviewed-on: Tested-by: Luboš Luňák <> Reviewed-by: Luboš Luňák <>
2020-05-07tdf#118418 implement scrollSubstringTo() for gtkColomban Wendling3-0/+109
Define & use new accessibility scroll type compatible with IAccessible2 and extend the XAccessibleText interface to require scrollSubstringTo(). Co-authored-by: Martin Pieuchot <> Change-Id: Id3b2e8616892d7dcbfb41a14b72a8a457fd1dbf6 Reviewed-on: Tested-by: Jenkins Reviewed-by: Stephan Bergmann <>
2020-05-03Related tdf#131125: Improperly used ampersandJulien Nabet3-3/+3
Really search all occurences of Find & Replace Change-Id: I1c1301451afa4d339902a275594ecb4cd46030db Reviewed-on: Tested-by: Jenkins Reviewed-by: Heiko Tietze <>
2020-04-29[API CHANGE] uitest: make HasInfoBarWithID accessible from APIXisco Fauli1-0/+9
This is useful for checking in uitests whether the infobar exists Change-Id: I436c2659abd40756673634f7cd1f8e4846c03836 Reviewed-on: Tested-by: Jenkins Reviewed-by: Miklos Vajna <>
2020-04-28Fix typosAndrea Gelmini1-1/+1
Change-Id: I50a80014addf5fb6a3974139249f45f6a2e67d92 Reviewed-on: Reviewed-by: Julien Nabet <> Tested-by: Jenkins
2020-04-28sw from-bottom relative orientation: add UNO APIMiklos Vajna1-0/+6
When it comes to vertical positioning of anchored sw objects, one can say the position should be "1cm from the top of the page". But measuring from the bottom of something was not possible. Add API for this to help working with documents from Word, which supports the feature. There is no duplicated C++ enum in sw/ for vertical relative orientation, so no "doc model" changes are needed for this in sw/. Change-Id: I3199d3e794bda2f21f92ce3bb7c3c6f04d284db2 Reviewed-on: Reviewed-by: Miklos Vajna <> Tested-by: Jenkins
2020-04-09tdf#127792 implement UNO chart attribute MajorOriginTünde Tóth1-0/+6
based on the specification in OFFICE-3936 for ODF 1.4: Note: import of the embedded chart of the DOCX unit test document uses also ODF format in the background, testing also the extension of the native file format. Follow-up of commit 830e539547c463b932ce643517f880789185032d (tdf#127393 OOXML chart import: fix X axis position setting "CrossBetween"). See also commits with "ShiftedCategoryPosition" in their descriptions. Change-Id: I9cd278ac0172c0fab7c51d585a65c34a0ad60b82 Reviewed-on: Tested-by: László Németh <> Reviewed-by: László Németh <>