summaryrefslogtreecommitdiff
path: root/sw/source/uibase/config
AgeCommit message (Collapse)AuthorFilesLines
2024-03-17loplugin:unusedmethodsNoel Grandin1-5/+0
Change-Id: Ib0a72355972662c6b902bca9a527be91fb3e1d17 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164930 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-02-28tdf#151710 Enable enclosing of selected text with charactersYiğit Akçay3-0/+104
This patch implements a new setting in Tools -> Options -> Writer -> Formatting Aids -> Autocomplete -> Enclose with characters. When this option is enabled (default), selected text is enclosed with parentheses, square brackets, curly braces or quotation marks, depending on which character is pressed. For example, if the selected text is "abcd", the option is enabled and the button for the character '(' is hit, the text is replaced with "(abcd)". Change-Id: Ibc5b7be3cc96f00217dd068971e7c07e68439700 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162583 Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de> Tested-by: Jenkins
2024-01-26revert: 'LOKit: always display hidden chars when showing formatting...'Caolán McNamara1-6/+0
and add a counter-reason test. When we have multiple views of a document, whether in LOKit or in desktop via "Window, New Window" then we have just one layout and render that layout in each view. So with default settings: View, Formatting Marks, we can correctly render the Pilcows in one view but not in the another even though we share a single layout. If "Show Hidden Characters" is enabled, then when "view formatting" is also enabled then hidden characters are shown when view formatting is enabled, and not when it is disabled. But if "show hidden characters" are enabled, then if formatting marks are enabled in one view and and not another then the hidden characters will be either shown in both views or hidden in both views, depending on whether the shared layout is done with "show/hide hidden characters". So we currently can't show/hide the hidden characters per-view. revert: commit 7a6b80995f69304149e0ab7a8e1fa92a15b20d07 Date: Wed Oct 4 10:04:42 2023 -0400 LOKit: always display hidden chars when showing formatting marks This arises from noting that in kit then on turning on formatting marks in one view, then the other view rendering options changed, which isn't wanted. But on attempting to keep the other ViewShell settings unaffected it turns out to be futile given the shared layout. Change-Id: I210b86fae84bc8137af415cb9c93dacdeab7d448 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162579 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Justin Luth <jluth@mail.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com> (cherry picked from commit 5234435a552d3d4cc421ba5c8600d8215f9f8f4b) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162549 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-01-26sw layout xml dump: show if formatting marks are onMiklos Vajna1-0/+15
Because that influences the layout, and sometimes it's far from trivial that it gets disabled, e.g. during printing/PDF export. Change-Id: Icb6accf3cb8bacd02f7267d55fbf56a4b10550bc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162591 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
2024-01-25extract this to a explanatory SyncLayoutRelatedViewOptions functionCaolán McNamara1-0/+12
no change intended here Change-Id: I67e7279d27e9cea31c9c26d1775f8dd28bd74e48 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162561 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-12-30drop some IsFuzzing spam we don't needCaolán McNamara1-2/+1
Change-Id: I1da86b0be73713b506044c969930912b58b4d514 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161435 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-12-30move IsFuzzing to comphelperCaolán McNamara3-9/+9
and try something a bit more generic Change-Id: I1d8256576cd02f0a589df350ba7b53059dd586a5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161250 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-12-24Drop some wrapper methods from SvtAccessibilityOptionsGabor Kelemen1-2/+1
just use the wrapped officecfg methods instead of: GetIsAllowAnimatedGraphics GetIsAllowAnimatedText GetIsAutomaticFontColor IsSelectionInReadonly Change-Id: I74de75fc9ff2f9a36ef376255e937bb373055587 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161236 Tested-by: Jenkins Reviewed-by: Gabor Kelemen <kelemeng@ubuntu.com>
2023-12-18[API CHANGE] tdf#158041 Remove unused reverse printing option from swSamuel Mehrbrodt1-31/+28
Change-Id: I8b4597dbafc78e881fe556de8ce8221e50a673bf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160777 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
2023-12-18[API CHANGE] tdf#158041 Remove unused drawing printing option from swSamuel Mehrbrodt1-30/+16
Change-Id: I95f81f166ab9d75622c83672101925894b2f2e7d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160774 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
2023-12-18[API CHANGE] tdf#158041 Remove unused table printing option from swSamuel Mehrbrodt1-49/+46
"for now it was decided that tables should always be printed" -> make this decision from 2015 permanent Change-Id: Ica5958a74ec6766040ab59f2c91224b75df4d807 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160766 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
2023-12-18[API CHANGE] tdf#158041 Remove unused SinglePrintJobs config option from swSamuel Mehrbrodt2-56/+49
This is handled by the print dialog directly Change-Id: Ieb4221d97444216f332501da9a3aba7dc6b8500a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160762 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
2023-11-15cid#1550112 Uninitialized scalar fieldCaolán McNamara1-0/+2
since: commit 8bf614179f5664d7cdd49db41ef462073cc8608d Date: Thu Nov 9 16:00:10 2023 +0100 tdf#135266 - Remember last used entry level depending on the index type Change-Id: I298e7afa59874c0718b42de622b817d201d986e2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159436 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-11-13tdf#135266 - Remember last used entry level depending on the index typeAndreas Heinisch1-0/+4
Change-Id: I4fe9342c28fc9135b73286e67464b16a1d910a9f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159217 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
2023-10-22Use getXWeak in swMike Kaganski1-1/+1
Change-Id: I49d2d1a00928c4cea68164e8c91fd9a6bb4b3b94 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150875 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-10-20Extended loplugin:ostr: Automatic rewrite O[U]StringLiteral: swStephan Bergmann1-1/+1
Change-Id: I85fff7ed6932c5fc196e18f24fa01074ba4837e0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158241 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-10-05LOKit: always display hidden chars when showing formatting marksJustin Luth1-0/+6
This is related to the request in tdf#107658 to do the same for core. However, this is something fairly easily doable with an extension in core, so I'm not in favour of forcing one user's opinion over top of status quo. Doing this only for Online. make CppunitTest_sw_tiledrendering \ CPPUNIT_TEST_NAME=testShowHiddenCharsWhenShowFormatting Change-Id: I34bbe50dd4bbff92577b18f8a05d2f8dd67ea771 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157562 Tested-by: Jenkins Reviewed-by: Justin Luth <jluth@mail.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2023-09-28cid#1500628 Dereference after null checkCaolán McNamara1-5/+2
Change-Id: I6dc6c3fdf1924e0cd012dab1ece0adbb0c405335 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157354 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-07-05tdf#155462: Re-enable ShowScrollBarTips expert configMike Kaganski1-1/+1
... accidentally broken by commit 4ed26badfd6fd9190cb6e54078b41eb38cb37dca. Change-Id: I407e1eab47277dd8fa00c123b32596557fd5f2a7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154032 Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-07-03tdf#155947 Korean word default font size is 10ptDaeHyun Sung1-0/+4
Korean word processors(HWP & MS Word) default font size is 10pt. So, I set to 10pt on LibreOffice Writer. Change-Id: Ic31332e37b3b450589ded6df243aae6961fdf394 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153324 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2023-06-30loplugin:unusedmethodsNoel Grandin1-8/+0
Change-Id: I8d3402a69237b665462e04440ad73fe29e2133db Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153807 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-06-06convert SvtAccessibilityOptions to officecfg where possibleNoel Grandin1-1/+1
Change-Id: Ia530086fe35e64379e55135d392020304b466325 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152649 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-06-01Revert "Convert XFastParser into a normal C++ interface"Noel Grandin1-1/+0
This reverts commit 5e68d6cfade45f40b1ad46025a81afe4cb8dd337. Reason for revert: Seems like outside users have been using this API Change-Id: I8814cf1eb4f000eeb4cbbb5db9c282d001465993 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152441 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-06-01Convert XFastParser into a normal C++ interfaceNoel Grandin1-0/+1
There is no need for it to be an UNO interface anymore (ever since we started supporting dynamic_cast on UNO objects). Which means that XImportFilter2 also needs become a C++ interface. Change-Id: Ice2db0f098271bba32b199bd083b08cb8410ce93 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152388 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-05-31Related: tdf#155507 don't enable field shadings in online caseCaolán McNamara1-1/+3
as in initializeForTiledRendering we don't want field shadings Change-Id: Ie1ea2c365bcd78cdfd554646474c4ef05a19fcda Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152425 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-05-20ofz#59028 avoid configCaolán McNamara1-0/+2
make this actually do nothing to test a point Change-Id: I353dc2bbbcd9229518f6527fe1589a901a9adfd1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151833 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-05-15ofz#58942 tweak so fuzzing uses the same defaults as real world writerCaolán McNamara2-1/+5
I have a looping document which loops in layout in the fuzzer but not in writer but we want easy to reproduce findings rather than load document, ctrl+a, format paragraph and set widow control to 2 Change-Id: I7739a5ebf4eaeac2152afcf8b431c42362374f2f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151741 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-04-27Extend tiled rendering test to account for dark modeParis Oplopoios1-0/+1
Made testGetViewRenderState test for change from light mode to dark mode Change-Id: Ia02e7a462e595671492405733f25c0bbb3c24080 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151046 Tested-by: Jenkins Reviewed-by: Paris Oplopoios <parisoplop@gmail.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2023-03-24tdf#149485: Revert "tdf#142450 add code to store showing whitespace"Xisco Fauli1-4/+1
This reverts commit 5b07acbf3345918f450fccf7ee243ad5bcb3fd67. The reverted commit claims that "This option is stored at the document level like the other layout options." which is not true. The option is saved in the user profile, which makes other documents to look wrong. Reverting for now until it's implemented at document level as the commit suggests Change-Id: I2ae0daeb410090949f1b6cfc8245b711fe518216 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149541 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2023-03-18cid#1523393 Uninitialized scalar fieldCaolán McNamara1-1/+2
Change-Id: If95378442e3be04abae3c9f6090d5b6904feee47 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149073 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2023-03-16Update view options string based on themeParis Oplopoios1-0/+2
Update the view options string based on the theme when tiled rendering, and make sure only the currently active view is updated Change-Id: Ib24111848f2926fe7ae858ca2e18e946d980e83f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148943 Tested-by: Paris Oplopoios <parisoplop@gmail.com> Reviewed-by: Paris Oplopoios <parisoplop@gmail.com>
2023-03-16De-static-izing colors in SwViewOptionParis Oplopoios1-139/+161
The view colors in SwViewOption were static which means that two separate views couldn't have different colors Change-Id: Id595b00ba56bdb210ad1a784cf76e99ead0d6014 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148481 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2022-11-17tdf#151904 Make grammar mistake color configurableRafael Lima1-0/+7
This patch creates a new color entry in Tools - Options - Application Colors for "Grammar mistakes". Default values are also set for the "LibreOffice" and "LibreOffice dark" schemes. This patch also applies the selected color to the document, as well as in the SpellChecker dialog. Change-Id: I07f79da9858b675b330540cf08cf389dce39228d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142294 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org> Reviewed-by: Rafael Lima <rafael.palma.lima@gmail.com>
2022-11-17sw: convert ViewOptFlags1 from bitflags to struct of boolsTomaž Vajngerl1-23/+2
Much easier to deal with - let compiler do the bit setting. Change-Id: I9412e1a2f15e41c9ebf502af57b127c283fc1fa6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142214 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2022-10-11use more string_view in swNoel Grandin1-6/+6
Change-Id: Ibefb8549834ba5011286e3221f1ae276e2c0c0bf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141153 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-08-18Move tools/diagnose_ex.h to comphelper/diagnose_ex.hxxStephan Bergmann1-1/+1
...so that its TOOLS_WARN_EXCEPTION can be used in comphelper/source/misc/logging.cxx in a follow-up commit. (And while at it, rename from diangose_ex.h to the more appropriate diagnose_ex.hxx. The comphelper module is sufficiently low-level for this immediate use case, so use that at least for now; o3tl might be even more suitable but doesn't have a Library until now. Also, for the immediate use case it would have sufficed to only break DbgGetCaughtException, exceptionToString, TOOLS_WARN_EXCEPTION, TOOLS_WARN_EXCEPTION_IF, and TOOLS_INFO_EXCEPTION out of include/tools/diagnose_ex.h into an additional new include/comphelper/diagnose_ex.hxx, but its probably easier overall to just move the complete include file as is.) Change-Id: I9f3222d4ccf1a9ac29d7eb9ba1530d53e2affaee Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138451 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-08-12clang-tidy modernize-pass-by-value in swNoel Grandin1-2/+3
Change-Id: I9a3b33595e34a264baeede33672a0c090ae85157 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138134 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-08-06tdf#148240 follow up: Make Outline-Folding non-experimentalJim Raykowski1-4/+2
Change-Id: I147591c8088b1fad0575b2efe46f862573147fe9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137774 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Jenkins Reviewed-by: Jim Raykowski <raykowj@gmail.com>
2022-05-03Just use Any ctor instead of makeAny in swStephan Bergmann1-1/+1
Change-Id: I2c9023ba8d07314d23ae7a65e670e8748c5e9322 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133766 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-02-26cid#1500568 Uninitialized scalar fieldCaolán McNamara1-2/+3
Change-Id: I0d6fb3b378d890daf5efbef588fdb0fe40fb625d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130596 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-02-24use more TypedWhichIdNoel Grandin1-0/+1
Change-Id: I6ab3ca829bc08e672736dd8dd41ba714d7172090 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130498 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-01-20use resolution independent positions for writer's screen-renderingCaolán McNamara3-48/+38
in favor of pushing it down to the text renderers and leave it to them to optimized as best they can the the rendering to make it look as well as possible. the separate ScrArray can then be dropped as a consequence Change-Id: Ic0849c091a36e1a90453771b1c91b8ff706b679e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128418 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-01-17tdf#142450 add code to store showing whitespaceDhiraj Holden1-2/+5
I have put in code to store the option to show whitespace. This option is stored at the document level like the other layout options. Change-Id: I26989da2714f884a5a4d5ced3329ff669771fe7a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126497 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2022-01-10use less SvStream::Flush()Noel Grandin1-1/+1
Flush() turns into a sync() on the device, which is pretty slow. Most of the time all we actually want to do is to flush the internal buffers from the SvStream. So expose the FlushBuffer method and use that where possible. And also means we don't need the mbDontFlushOnClose flag on SvStream any more. Change-Id: Ibe089b88b325f0fdc565200a97ce72cd26b7fcfb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128214 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-12-22tdf#144862 explore alternatives to writer's on-screen glyph positioningCaolán McNamara3-35/+45
writer does glyph position adjusting to try and split the difference of the "printing" positions and "screen" positions. it seems to have been there from the initial import commit 84a3db80b4fd66c6854b3135b5f69b61fd828e62 Date: Mon Sep 18 23:08:29 2000 +0000 initial import we seem to sync with the printing positions after each whitespace so each initial glyph after whitespace is a stable position and is the 'printing' position while each following glyph is in a position which is somewhere between the 'printing' position and 'screen' position. Which leads to noticeably unstable positions of text during editing at various zoom levels and without a clear rationale for the heuristic. GlyphPositioningMode::Classic, the original mode which remains the default. GlyphPositioningMode::PreferLayout, takes the vcl provided print positions and just uses those unmodified for screen layout like editeng does. GlyphPositioningMode::ClassicInspired, which is similar to GlyphPositioningMode::Classic in using 'printing' positions for the start of runs, but using 'screen' positions for run content. GlyphPositioningMode::PreferReadability, replace the 'printing' positions with the screen-optimized positions for all content. use tools, options, writer, view, glyph positioning to change Change-Id: I6677af973268bc586d825c7fbf0b483aaf651ca0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127089 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-09-27sw: prefix members of SwPageFootnoteInfoItem, SwStdFontConfig, ...Miklos Vajna2-29/+29
... SwToolbarConfigItem and TextViewOutWin See tdf#94879 for motivation. Change-Id: I0d13d501c6a18c4f4f56d163f0065dd4eae88f8d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122672 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
2021-09-20sw: prefix members of SwNavigationConfig, SwNumRulesWithName and SwSrcViewMiklos Vajna1-27/+27
See tdf#94879 for motivation. Change-Id: I2740ff914fe35a069ce67ad10783dadc0cfdbf74 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122339 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
2021-09-13sw: prefix members of SwChapterNumRules, SwDBConfig, SwGlossaryList and ...Miklos Vajna2-23/+23
... SwModule See tdf#94879 for motivation. Change-Id: I0bf6d2cf5fdaed76eadc801d654a2cea7700f046 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122018 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
2021-08-11Drop convertMm100ToTwip in favor of the new o3tl::toTwipsMike Kaganski3-7/+7
Step by step, duplicates from <tools/UnitConversion.hxx> may go Change-Id: Id4c03ff8adc120ae06dbfdbdfb4f5ff0bb51f489 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120315 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2021-08-02convert #defines to OUStringLiteralNoel Grandin1-2/+2
mostly by doing $ git grep -l '#define.*\"' -- *.cxx | xargs perl -pi -e 's/^#define\s+(\w+)\s+(\".*\")/constexpr OUStringLiteral \1 = u\2;/g' Change-Id: I140932a94914d3870f0d92e11a6ada2b42359e30 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119842 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>