Bug 134380 - UI Shape size setting relative to Entire page/Paragraph area missing from UI
Summary: UI Shape size setting relative to Entire page/Paragraph area missing from UI
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
7.1.0.0.alpha0+
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Shapes
  Show dependency treegraph
 
Reported: 2020-06-29 07:57 UTC by NISZ LibreOffice Team
Modified: 2022-06-21 11:52 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Word with shapes sized relative to page/margin (15.58 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-06-29 07:57 UTC, NISZ LibreOffice Team
Details
Shape size settings in Word and their lack in Writer (105.45 KB, image/png)
2020-06-29 07:58 UTC, NISZ LibreOffice Team
Details
The example file saved in Writer to odt (11.03 KB, application/vnd.oasis.opendocument.text)
2020-06-29 07:58 UTC, NISZ LibreOffice Team
Details
The relative image size settings which could be copied (88.53 KB, image/png)
2020-06-29 07:59 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NISZ LibreOffice Team 2020-06-29 07:57:57 UTC
Created attachment 162489 [details]
Example file from Word with shapes sized relative to page/margin

It is possible to import shape width/height settings from DOCX that are a percentage value relative to margin / page (in Word terms) or Paragraph area / Entire page (in Writer terms). Also changing page size from A4 to A3 resizes the shapes just like it would in Word.

Saving such file to ODT retains these settings as loext:rel-width-rel="page" / loext:rel-height-rel="page" and loext:rel-width-rel="paragraph" loext:rel-height-rel="paragraph" also the percentage values as style:rel-width="20%" style:rel-height="20%" - these match the settings in the imported example DOCX.

There is however no option in the shape properties dialogs Position and size tab to display/change these settings, unlike for image and frame objects.

Steps to reproduce:
    1. Open attached docx/odt, right click on the shapes and open Position and Size dialog

Actual results:
No settings for relative shape size.

Expected results:
Checkbox under Width/Height to set “Relative to” and dropdown box with settings  Paragraph area / Entire page just like for images.

LibreOffice details:
Version: 7.1.0.0.alpha0+ (x64)
Build ID: 010713e65ccade7b682c219707c8db3d864145c1
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: CL
Comment 1 NISZ LibreOffice Team 2020-06-29 07:58:25 UTC
Created attachment 162490 [details]
Shape size settings in Word and their lack in Writer
Comment 2 NISZ LibreOffice Team 2020-06-29 07:58:38 UTC
Created attachment 162491 [details]
The example file saved in Writer to odt
Comment 3 NISZ LibreOffice Team 2020-06-29 07:59:05 UTC
Created attachment 162492 [details]
The relative image size settings which could be copied
Comment 4 Heiko Tietze 2020-07-14 11:56:42 UTC
Regina, any blocker regarding the file format? I wonder what relative to paragraph could be in case of Draw/Impress. Would be just the entire page, I guess. And if we make the size relative, how about the position? Place the shape/image at 33% of the paragraph/page sounds like a use case. Maybe off-topic here.
Comment 5 Heiko Tietze 2022-06-21 11:52:22 UTC
Don't see a blocker to define shape size relative to paragraph/page. And the feature is clearly desired and needed since it exists in MSO.