Created attachment 114229 [details]
When an image is selected in other modules, a line section appears in the sidebar which allows you to add borders around it, but in writer this doesnt appear as images are treated different in writer than in other modules. So a border section needs to be added to the sidebar, which will be activated when either an image or frame is selected, similar to both frames and images sharing the same frame toolbar when selected.
The sidebar section requires three controls, which can be pulled as is from the line section - width, color, style - but will manipulate the border tab in the properties dialog box.
The functionality of the controls need to be tweaked so that it activates the border when any of the three controls are set. So as an example, if a user selects a color for the border, and the border style and/or width arent already set, then border style needs to be turned on to continuous and the border needs to be applied to all 4 sides at a width of 0.5pt.
@Jay: If I click on an image in a WRITER document then I have in the Sidebar already a section Line where I can add a border around the image (LO 22.214.171.124.). Or is there a misunderstanding from my side?
Please send me a screenshot of this, as there isnt one for me. :D
(In reply to A (Andy) from comment #1)
> @Jay: If I click on an image in a WRITER document then I have in the Sidebar
> already a section Line where I can add a border around the image (LO
> 126.96.36.199.). Or is there a misunderstanding from my side?
You have an image from Draw in Writer (this can happen when you copy-paste an image from Draw for example) and not a "native" Writer image.
Agh.. one more difference between Writer image and Draw image that I didn't know about! What a pain.
(In reply to Tomaz Vajngerl from comment #3)
> (In reply to A (Andy) from comment #1)
> > @Jay: If I click on an image in a WRITER document then I have in the Sidebar
> > already a section Line where I can add a border around the image (LO
> > 188.8.131.52.). Or is there a misunderstanding from my side?
> You have an image from Draw in Writer (this can happen when you copy-paste
> an image from Draw for example) and not a "native" Writer image.
> Agh.. one more difference between Writer image and Draw image that I didn't
> know about! What a pain.
@Tomaz and Jay:
Tomaz, you are right. I made a screenshot of the screen with the Print Screen key and then pressed CTRL + V to insert it into DRAW and then I copied it to WRITER. This complicated procedure was only done, because I was actually testing something else.
But what is strange for me, if I make a print screen and insert it directly with CTRL + V in WRITER then the Line section does not appear (Reproducible with LO 184.108.40.206, Win 8.1). But why does the Line section only appear if I copy the same from DRAW?
I agree the Line section should always appear in the Sidebar for images.
Because there are two implementations of image object - Writer specific one and a common one (shared with Draw, Calc, Impress). Both have some functionality the other lacks (for example - common implementation has rotation, Write implementation doesn't, but on the other hand common implementation doesn't have contour I think - and this is only one example) and some things have both, but implementation differs or is named differently. This is quite a PITA actually.
We're replacing our use of the 'ux-advise' component with a keyword:
Component -> LibreOffice
Add Keyword: needsUXEval
Valid request where no further input from UX is needed. Guess the best solution is to clean-up the code.