Bug 158363 - Add configuration key for the Right-aligned vertical ruler property
Summary: Add configuration key for the Right-aligned vertical ruler property
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer Web (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard: QA:needsComment
Keywords:
Depends on:
Blocks: Options-Dialog
  Show dependency treegraph
 
Reported: 2023-11-24 21:50 UTC by Gabor Kelemen (allotropia)
Modified: 2023-12-09 03:14 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Setting the property, the vertical ruler is on the right side of the window (79.19 KB, image/png)
2023-11-24 21:50 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2023-11-24 21:50:19 UTC
Created attachment 191032 [details]
Setting the property, the vertical ruler is on the right side of the window

When the Writer Web - View option "Right-aligned" vertical ruler setting is enabled, the vertical ruler appears on the right side of the window. However upon restarting Writer Web, the vertical ruler is on the left side of the window.

1. Open a new HTML document
2. Go to Options - Writer Web - View
3. Enable the Vertical Ruler and the Right-aligned settings, press OK
-> Vertical ruler appears on the right side of the window
4. Restart Writer/Web
-> The vertical ruler is now on the left side of the window, the Right-aligned setting is unchecked in the Options - Writer Web - View page.

This happens because there is no configuration key to store the setting value, similar as the one for the same setting in the Writer - View page.

To solve this, a new config key should be added for Writer/Web.

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: af9c3ed6f748781f2a77e676ffe740992788969b
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: hu-HU (hu_HU.UTF-8); UI: en-US
Calc: threaded

Code pointers:
https://cgit.freedesktop.org/libreoffice/core/tree/sw/source/uibase/config/usrpref.cxx#n272
SwLayoutViewConfig::GetPropertyNames and related implementation of SwLayoutViewConfig

officecfg/registry/schema/org/openoffice/Office/Writer.xcs 
Window group -> IsVerticalRulerRight property as template

officecfg/registry/schema/org/openoffice/Office/WriterWeb.xcs 
where a similar property is missing