Bug 158363

Summary: Add configuration key for the Right-aligned vertical ruler property
Product: LibreOffice Reporter: Gabor Kelemen (allotropia) <kelemeng>
Component: Writer WebAssignee: Not Assigned <libreoffice-bugs>
Status: UNCONFIRMED ---    
Severity: enhancement    
Priority: medium    
Version: Inherited From OOo   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=158115
Whiteboard: QA:needsComment
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 102187    
Attachments: Setting the property, the vertical ruler is on the right side of the window

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