/source/ga/vcl/

link rel='vcs-git' href='git://go.suokunlong.cn/lo/core' title='lo/core Git repository'/>
summaryrefslogtreecommitdiff
path: root/sw/source/uibase/config/viewopt.cxx
AgeCommit message (Collapse)Author
2024-11-20Resolves tdf#163856 - Disentangle boundaries optionsHeiko Tietze
* Boundary toggles removed from app colors * Object boundaries completely removed (color replaced with DOCBOUNDARIES; Impress placeholder on/off now an expert option) * Toggle options added under formatting aids * Individual UNO commands marked deprecated * New command added to show all boundaries * Frames follow sections now in state and color * Kind of wrapping doesn't matter anmymore Change-Id: I7bbec20831dcb95abef6523884d84b05a1a7df0a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176242 Tested-by: Jenkins Reviewed-by: Rafael Lima <rafael.palma.lima@gmail.com>
2024-08-14Resolves tdf#80054 - Customization for non-printable character colorHeiko Tietze
Change-Id: I82783a49d3a1c2096dcfa7c97a3fce14c555c988 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171814 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2024-06-18loplugin:ostr in variousNoel Grandin
Change-Id: I7aa8ed716998a185996482dc561219b398a1c919 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169080 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-06-10loplugin:ostr in sw/../uibaseNoel Grandin
Change-Id: I4f4284b55d481caa006743688e6d83cc3c713b5c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168601 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-06-02tdf#161368: use SwTwips for twip sizes, instead of sal_uInt16Mike Kaganski
Change-Id: I9179b55eb27f1bf2f28c2c86f1e67f2a4daf4819 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168341 Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Tested-by: Jenkins
2024-02-28tdf#151710 Enable enclosing of selected text with charactersYiğit Akçay
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 McNamara
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 Vajna
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 McNamara
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 McNamara
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 McNamara
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 Kelemen
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-11-15cid#1550112 Uninitialized scalar fieldCaolán McNamara
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 Heinisch
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-05LOKit: always display hidden chars when showing formatting marksJustin Luth
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-06-30loplugin:unusedmethodsNoel Grandin
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 Grandin
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-05-31Related: tdf#155507 don't enable field shadings in online caseCaolán McNamara
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 McNamara
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 McNamara
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 Oplopoios
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-18cid#1523393 Uninitialized scalar fieldCaolán McNamara
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 Oplopoios
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 Oplopoios
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 Lima
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ž Vajngerl
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-08-06tdf#148240 follow up: Make Outline-Folding non-experimentalJim Raykowski
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-01-20use resolution independent positions for writer's screen-renderingCaolán McNamara
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>
2021-12-22tdf#144862 explore alternatives to writer's on-screen glyph positioningCaolán McNamara
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-07-26use officecfg for SvxHtmlOptionsNoel Grandin
Change-Id: Ie7db7d20509e45fd87d8460c7fae6c0131e0a1f0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119494 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-05-21sw: replace most static_cast<sal_uInt16>() calls with o3tl::narrowing()Miklos Vajna
o3tl::narrowing() is a better way to handle this, as that way the integer conversion is still implicit, which allows detecting integer truncation at runtime (with suitable compiler flags). Change-Id: I499abda3be6943e8c111c56df390e72939586221 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115948 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
2021-05-05loplugin:constmethodNoel Grandin
Change-Id: I7913fd8144d521b8293ac43036d0fad82e457cd1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115145 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-03-20drop unneeded includeCaolán McNamara
Change-Id: I2d678f6fcb1707fbf5274927f6dcae05061703c7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112781 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-03-12we just use the OutputDevice api for SwViewOption::InitCaolán McNamara
Change-Id: I36a52d0e02d6a2fa900abc579d7d1018fc5381f3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112388 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-02-11Remove unneeded breaksAndrea Gelmini
Extending this: https://gerrit.libreoffice.org/c/core/+/110512 Change-Id: I1066aac690fe297a557352266f3405ae29ed4593 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110522 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-12-24tdf#138136 tdf#38093 add option to treat sub outline levels as contentJim Raykowski
Also included in this patch: - Modifications to make all outline content visible during move operations. - Removal of code intended to redraw buttons when layout is changed that seems not to work as intended. - Function IsOutlineContentFolded changed to IsOutlineContentVisible - Change of delay before button is shown to half of what it was. Change-Id: I0dde555ccd0693ca382c1f15326edfdc2fc44a93 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107815 Tested-by: Jenkins Reviewed-by: Jim Raykowski <raykowj@gmail.com>
2020-12-09Resolves tdf#99646 - Make default type of anchoring optionalHeiko Tietze
Option introduced at Tools > Options > Writer > Formatting Aids Change-Id: I8d890f84107647821c39669114b991c301727788 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106970 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2020-11-01use officecfg for Experimental flagNoel Grandin
move IsShowOutlineContentVisibilityButton out of header to avoid having to add extra include paths to all the unit test makefiles. Change-Id: I2763390e07cd85b8f09b6f2ad7702039daecb22f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105100 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-07-30loplugin:flatten in sw/uibase/app..sw/uibase/configNoel Grandin
Change-Id: I903631568cc5285bf167ba3f0dadb95dbcd43a21 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99792 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>