Apache OpenOffice (AOO) Bugzilla – Issue 112687
user defined graphics styles are not inserted when inserting other file
Last modified: 2017-05-20 10:48:12 UTC
When inserting other draw documents, the graphics styles are not inserted. The same problem appears in impress. To reproduce the error follow these steps: - open new draw document - draw a rectangle on the page - press F2 while rectangle is selected and type "Text" - select "x" in "Text" and set font size to 96 - press F11 to open "Style and Formatting" - create a new graphics style "test" with area color red and font size 40 - assign the graphics style to the rectangle - save file - open a new draw document - via menu: "Insert | File..." expected result (verified in OOo 3.1.1): - a page with a red rectangle is loaded - text has font size 40 ("x" has size 96) - the graphics styles contain the style "test" actual result in OOo 3.2.1: - a page with a blue rectangle is loaded - text has not size 40 ("x" has size 96, since not defined in style) - the graphics styles does not contain the style "test"
The behavior is absolutely correct. Styles are document based. If you want to transfer a style from one to another document then you can drag&drop the style by using the dialog at menu item /file/templates/organize. Within that dialog just switch the view to show to 'documents' and double click onto the documents shown eg. MySavedDocument vs. Untiteled2 and then double click onto the 'Styles' to show all custom styles within that document. Whilst dragging one style to the other document press the Ctrl key to switch to copy mode. Afterwards both doocuments contain that style. Resolving issue as 'worksforme'
closing issue
OOo worked as expected until 3.1.1 (I think even until 3.2.0). In 3.2.1 the behavior was changed. When I insert an other document I expect the objects to appear as designed in the other document. Due to the new behavior I have to find the mentioned dialog (I finally found it, cause you told me how to find it), do dragging and dropping (in my tests handle several OOo crashes ;-), afterwards I have to reassign the inserted objects to their style (since I forgot to transfer the styles before importing the file). You don't really want to tell me that this is user friendly...
Hi ja, I do not understand: the styles of the inserted file is part of this file so, if styles are document based, they should be added to the receiver file as the other objects from the inserted file. Kind regards. JBF
This has changed since 3.0 so I think this is a bug, too. Reproducible. Reassigned.
adapted summary
Hello ja wrote : "Styles are document based. If you want to transfer a style from one to another document then you can drag&drop the style by using the dialog at menu item/file/templates/organize." I do not agree... With versions prior to 3.2.1 (Verified ok in 1.1.5, 2.4.2 and 3.1.1) the copy of a shape of a document to another copy of the customed style associated with this form. If the style did not exist in the document recipient, it was created. This is not the case with this 3.2.1 Nota : - same default with the 330m8(Build:9527) - Here there is something more "trivial": a simple copy and paste of an object (not when inserting a file). Recall that: - This worked until 3.2.1 ... and - It *always * works in 3.2.1 for the other modules (writer, calc... the pasting of a paragraph formatted with a custom style keeps this style for instance). - According to me, another hint of malfunction : if you copy the style before pasting, the pasted object keeps the style (it is not obligated to reassign). Best regards
Will this error be fixed in 3.4?
No 3.4 is already in showstopper mode. But this is something that fits in the theme of the currently planned feature to have a better user interface to merge presentation. Even if the focus will be impress, the implementation is the same so also draw should benefit from changes in that area. cl->fs: please keep this issue in mind when you start working on said feature.
cc'ing Chris, as he's the UX guy for the "Merge Slides" thingie. @clu: Please see the previous comment ...
Reset assigne to the default "issues@openoffice.apache.org".