/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #ifndef INCLUDED_SFX2_SFXHTML_HXX #define INCLUDED_SFX2_SFXHTML_HXX #include #include #include #include #include #include #include class ImageMap; class SfxMedium; class SvNumberFormatter; class SFX2_DLLPUBLIC SfxHTMLParser : public HTMLParser { OUString aScriptType; SfxMedium* pMedium; std::unique_ptr pDLMedium; // Medium for Download Files ScriptType eScriptType; SAL_DLLPRIVATE void GetScriptType_Impl( SvKeyValueIterator* ); protected: SfxHTMLParser( SvStream& rStream, bool bNewDoc, SfxMedium *pMedium ); virtual ~SfxHTMLParser() override; public: // Read the options of an image map // : sal_True = Image-Map has a name // : sal_True = Image-Map has now one vcl::Region more static bool ParseMapOptions(ImageMap* pImageMap, const HTMLOptions& rOptions); bool ParseMapOptions(ImageMap * pImageMap) { return ParseMapOptions(pImageMap, GetOptions()); } static bool ParseAreaOptions(ImageMap * pImageMap, std::u16string_view rBaseURL, const HTMLOptions& rOptions, SvMacroItemId nEventMouseOver, SvMacroItemId nEventMouseOut ); inline bool ParseAreaOptions(ImageMap * pImageMap, std::u16string_view rBaseURL, SvMacroItemId nEventMouseOver, SvMacroItemId nEventMouseOut); // static double GetTableDataOptionsValNum( sal_uInt32& nNumForm, LanguageType& eNumLang, const OUString& aValStr, std::u16string_view aNumStr, SvNumberFormatter& rFormatter ); protected: // Start a file download. This is done asynchronously or synchronously. // In the synchronous case, the parser is in the working state after // it has been called. The read file can then be picked up directly with // FinishFileDownload. In the asynchronous case, the parser is in the // pending state after it hs been called. The parser then has to leave // over the Continue (without Reschedule!). If the file is loaded, // a Continue is called with passed on token. The file can then be picked // up by FinishFileDownload. To cancel the download should a shell be // left. It can only exist a single download at the same time, For every // started download FinishFileDownload must be called. void StartFileDownload(const OUString& rURL); // End of an asynchronous file download. Returns TRUE if the download // was successful. The read file is then passed into String. bool FinishFileDownload( OUString& rStr ); // Returns TRUE if a file was downloaded and if FileDownloadFinished // has not yet been called bool ShouldFinishFileDownload() const { return pDLMedium != nullptr; } SfxMedium *GetMedium() { return pMedium; } const SfxMedium *GetMedium() const { return pMedium; } // Default (without iterator) is JavaScript ScriptType GetScriptType( SvKeyValueIterator* ) const; const OUString& GetScriptTypeString( SvKeyValueIterator* ) const; }; inline bool SfxHTMLParser::ParseAreaOptions(ImageMap * pImageMap, std::u16string_view rBaseURL, SvMacroItemId nEventMouseOver, SvMacroItemId nEventMouseOut) { return ParseAreaOptions( pImageMap, rBaseURL, GetOptions(), nEventMouseOver, nEventMouseOut ); } #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ value='distro/collabora/dcm-7.6'>distro/collabora/dcm-7.6 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-10-24Remove archaic xmergeCaolán McNamara
Formats like Aportisdoc can be opened via org.libreoffice.comp.Writer.EBookImportFilter instead. It doesn't look like there will be any support implemented for Nokia 9210 Communicator PsiWord. No particular burning demand for that anymore apparently. Removal of the filters that used xmerge took place at: commit a5783fe922b2419b5b662eb5f544a1f401341dbf CommitDate: Sun Mar 3 19:19:26 2013 +0100 remove stale javafilters Change-Id: I0a0087fb2ee015de42c1802b5e9bc6dc42a5efe1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174563 Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Jenkins
2023-07-05Add all source directories as folder references to the Xcode projectKhaled Hosny
Instead of tracking individual files, hopefully this way I will always find the files I’m looking for while debugging. Change-Id: Ic9da2c576aebde6901a5c3907d24db5b84c01065 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154019 Tested-by: Jenkins Reviewed-by: خالد حسني <khaled@libreoffice.org>
2022-09-01Add all vcl subdirs to soffice.xcodeprojKhaled Hosny
I hope I’m not breaking this for others who are using it, if I’m, feel free to revert. Change-Id: I6d91340d17c9edcd3db6064c9ab9755ffeac4f96 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139139 Tested-by: Jenkins Reviewed-by: خالد حسني <khaled@aliftype.com>
2022-08-31tdf#30731: Improve caret travelling in WriterKhaled Hosny
Previously, when measuring caret position, Writer would measure the width of the substring before the caret (i.e. layout it independent of the text after the caret and measure its width). This is incorrect, though. It assumes cutting the string laying it out would result in the same width as when laid out as part of a bigger string, which is invalid assumption when e.g. cutting inside a ligature or between letters that have different shapes when next to each other, etc. This appears to work when the width of the substring laid out alone is close enough to its width when laid out with the full text. But in cases where is widths are largely different, like the extreme case in the bug report, the caret will be jumping around as it is positioned based on the unligated glyphs not the ligated, rendered glyphs. This change introduces a special mode of measuring text width for caret positioning, that will layout the whole string that return the width of the requested substring. Fields and small caps text are trickier to handle, so old behaviour is retained for them. Now one will probably notice but if they do, it can be dealt with then. This also tries to be conservative and keep other pleases using the existing behaviour which might be desirable (e.g. when measuring text width for line breaking, we want the unligated width), but there might be other places that should use the new behaviour. To handle caret inside ligatures, the grapheme clusters in the ligature are counted and the width of the whole ligature is distributed on them evenly. A further improvement would be using HarfBuzz API to get ligature caret positions for fonts that provide them, which helps when the ligature components have different widths. Change-Id: I02062e2e2e1b1a35c8f84307c0a8f5d743059ab5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138889 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2022-06-07tdf#129674 Add GoTo Sheet commandLaurent BP
Insert command in menu Sheet > Navigate (alongs with To Previous/Next Sheet) Use .uno:JumpToTable command from Navigator Use its own Go To Sheet dialog Add a Search entry to type partial name of sheet Menu translation missing? Change-Id: I16b8b56a688c8396159617f04a2a7e034721ce31 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134714 Tested-by: Jenkins Reviewed-by: Laurent Balland-Poirier <laurent.balland@mailo.fr>
2022-02-02Add some source files for debugging convenienceTor Lillqvist
Change-Id: If54e8ed6c41afcaaeb6b629ffae447de7240a61f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129368 Tested-by: Tor Lillqvist <tml@collabora.com> Reviewed-by: Tor Lillqvist <tml@collabora.com>
2022-01-27Add more source files for debugging convenienceTor Lillqvist
Change-Id: I2b4cc77d1d7a873c3a3549a8132fd8a1d90525cc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129048 Tested-by: Tor Lillqvist <tml@collabora.com> Reviewed-by: Tor Lillqvist <tml@collabora.com>
2022-01-27Add more source files for debugging convenienceTor Lillqvist
Change-Id: If2f1d379e8e8694a3519d20eb3f425c0bbd381e6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129032 Tested-by: Tor Lillqvist <tml@collabora.com> Reviewed-by: Tor Lillqvist <tml@collabora.com>
2021-12-30use concrete types in chart2, SvxShapeRectNoel Grandin
Change-Id: Ibd537ed709be237e00715057c162dd9197759373 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127722 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-12-30use concrete types in chart2, SvxGroupShape and SvxShapePolyPolygonNoel Grandin
Change-Id: I2b86c39610f31260fe8fb5abdbb94e853ec31cec Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127700 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-12-06Retire build-nocheckThorsten Behrens
Build target was kept for backward compat in 'rework the default make target', so lets retire it after 1.5 years. Use 'make build' instead (which is since the default target anyway). Change-Id: I93d5237dce2abf2536a4d847d79d33d5b6d6cec9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126362 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2021-11-24Add source files from basic/source/sbxTor Lillqvist
Change-Id: I00bafec0f3caef86fa886dc4331e5d38e9fa1766 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125755 Tested-by: Tor Lillqvist <tml@collabora.com> Reviewed-by: Tor Lillqvist <tml@collabora.com>
2021-10-21Add source files from fpicker/source/aquaTor Lillqvist
Change-Id: I10e84beb550c9e0410c35fe85db407fa1dceb5b1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123955 Tested-by: Tor Lillqvist <tml@collabora.com> Reviewed-by: Tor Lillqvist <tml@collabora.com>
2021-01-14Add more source files for breakpointing convenienceTor Lillqvist
Change-Id: I130273b7b5e812df1eeb904f652d23a492398636 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109270 Tested-by: Tor Lillqvist <tml@collabora.com> Reviewed-by: Tor Lillqvist <tml@collabora.com>
2021-01-14Add some more source files and drop dead onesTor Lillqvist
Change-Id: Ie669750404dd9b73881a9e217e3cced0bf21e42b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109263 Tested-by: Tor Lillqvist <tml@collabora.com> Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-12-08Add source files from svx/source/tbxctrlsTor Lillqvist
Change-Id: I5f00e1ef1b606a7b1c19d5c55ed5bdbe1ef194f8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107433 Tested-by: Tor Lillqvist <tml@collabora.com> Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-12-06Add source files from dbaccess/source/ui/miscTor Lillqvist
(Xcode also insists on moving a couple of other lines around, oh well.) Change-Id: I7b295f51ca5b38bfcace464f9d06bfe2d93de066
2020-12-06Fix some bogus pathsTor Lillqvist
Note that what osx/README says still holds. This Xcode project is for making debugging easier only. Change-Id: I8ebbad2a2de5366616ad7304125bdd05ae001489
2020-10-16Rename CLANG_CC, CLANG_CXX configuration vars (avoid clash with scan-build)Stephan Bergmann
Clang's scan-build tool uses the CLANG_CXX environment variable (setting it up in the scan-build script to pass it to the ccc-analyzer script), but happens to erroneously set it to a non-existing path (see <https://reviews.llvm.org/D89481> "[scan-build] Fix clang++ pathname again"). So wrapping LO's autogen.sh and make in scan-build picked up that broken CLANG_CXX and caused build failures like > [CXX] external/skia/source/SkMemory_malloc.cxx > /bin/sh: ~/llvm/inst/bin/clang-12++: No such file or directory (see <https://lists.freedesktop.org/archives/libreoffice/2020-October/086113.html> "Re: llvm/clang static analyzer reports"). So rename CLANG_CXX, and for consistency also CLANG_CC and the various CLANG_CXXFLAGS_INTRINSICS_*, by prefixing each with LO_. Change-Id: Ib41cabe940f8bfb1997f74e865cca5725f859e07 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104383 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-06-12PopupMenuFloatingWindow is now unusedCaolán McNamara
Change-Id: Ie8fa026becb1899e466fb0e7dbb987290788aaf2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96207 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-05-25Add source files from sfx2/source/applTor Lillqvist
Change-Id: I7462abcf0e79b4c43c8fd67c755113484e245310
2020-05-22Add source files from xmlsecurity/source/xmlsecTor Lillqvist
Change-Id: I173846f9073364ac5573744e9d03cdbef22a8c10
2020-05-22Add source files from desktop for breakpointing convenienceTor Lillqvist
Change-Id: If5bc137d95dd507fbf748b45c11d6b18094dc0ba
2020-05-12Add some more source files for breakpointing convenienceTor Lillqvist
Change-Id: I3f0555a8a1a83342dd0dfff266f92c47ed5a9f80 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94063 Tested-by: Jenkins Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-05-11Add some more source files for breakpointing convenienceTor Lillqvist
Change-Id: I21e0ebb7776f829c1ad97272be4210d7e7dfbb34 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93949 Tested-by: Jenkins Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-05-06Add source files from cui/source/options and unotools/source/i18nTor Lillqvist
Change-Id: I48ed28f8b6ccb125aefb464550bc9fa1238bb086
2020-04-29Add source files in the C++/UNO bridge for easier breakpointingTor Lillqvist
Change-Id: I0558fc3190983f5b97f40599c51d074b2bb72ada Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93160 Tested-by: Tor Lillqvist <tml@collabora.com> Reviewed-by: Tor Lillqvist <tml@collabora.com>
2019-11-20Add some more source files for breakpointing convenienceTor Lillqvist
Change-Id: I0008393be56341fe7e1f385bd111475b67446240
2019-10-08Add missing source files in vcl/source/gdiTor Lillqvist
(A fairly ad-hoc small subset of the source files are included in the Xcode project to make it possible to set breakpoints in them in advance.) Change-Id: I6c2655337e1d623b299e65aa977650e7519b7bd8
2018-05-21Add sal/osl/unx/file.cxx for debugging convenienceTor Lillqvist
Change-Id: Ibfc8995c4d35c33fe203b9779b10a182cf5a4294
2018-05-21Updates by Xcode 9.3Tor Lillqvist
Change-Id: Ia9a87f3f9bdf357079c6d259d736504e0109bf57
2018-01-08Add a few Mac-specific source files in avmedia for easier breakpointingTor Lillqvist
Change-Id: I36b42ca16932cab10342894840f57e89d08dac4f