Description: "Drawing Format" produces a shape. In Draw/Impress the command .uno:GrafAttrCrop contains the cropping. This command is not available in Writer. Therefore not the original image is inserted, but an image that only has the part, that remains after cropping. Feature request: Implement .uno:GrafAttrCrop in Writer for those shapes, that would be able to be cropped in Draw/Impress and then insert the shape in original size and crop it. Source: bug 107843 comment 3 Steps to Reproduce: 1. Open attachment 133308 [details] 2. Copy the image 3. Open a new Writer document and paste the image 4. It's not possible to crop the image Actual Results: Drawing cannot be cropped Expected Results: Cropping should work just like any other image Reproducible: Always User Profile Reset: No Additional Info: User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0
Ok, sounds useful -> NEW
Dear Nickson Thanda, This bug has been in ASSIGNED status for more than 3 months without any activity. Resetting it to NEW. Please assigned it back to yourself if you're still working on this.
I would like to work on this. Assigning to myself.
I have a few questions: I've searched for code pointers and what I found is: lcl_ApplyCropping(...) in filter/source/msfilter/msdffimp.cxx. officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu:2196: <node oor:name=".uno:GrafAttrCrop" oor:op="replace"> sd/uiconfig/sdraw/menubar/menubar.xml:419: <menu:menuitem menu:id=".uno:GrafAttrCrop"/> sd/uiconfig/simpress/menubar/menubar.xml:450: <menu:menuitem menu:id=".uno:GrafAttrCrop"/> sd/uiconfig/simpress/popupmenu/graphic.xml:15: <menu:menuitem menu:id=".uno:Crop"/> sw/uiconfig/swriter/popupmenu/graphic.xml:15: <menu:menuitem menu:id=".uno:Crop"/> ...and I couldn't go any further than that. - Where does the Crop function located (for both Impress and Writer)? - In which file should I implement Crop function for OLE objects in Writer? (or does it needed?) - Could you specify the code pointers, please? Thanks.
@Regina You might know, I surely don't (In reply to Bayram Çiçek from comment #4) > I have a few questions: > > I've searched for code pointers and what I found is: > lcl_ApplyCropping(...) in filter/source/msfilter/msdffimp.cxx. > officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu:2196: > <node oor:name=".uno:GrafAttrCrop" oor:op="replace"> > sd/uiconfig/sdraw/menubar/menubar.xml:419: <menu:menuitem > menu:id=".uno:GrafAttrCrop"/> > sd/uiconfig/simpress/menubar/menubar.xml:450: <menu:menuitem > menu:id=".uno:GrafAttrCrop"/> > sd/uiconfig/simpress/popupmenu/graphic.xml:15: <menu:menuitem > menu:id=".uno:Crop"/> > sw/uiconfig/swriter/popupmenu/graphic.xml:15: <menu:menuitem > menu:id=".uno:Crop"/> > > ...and I couldn't go any further than that. > > - Where does the Crop function located (for both Impress and Writer)? > - In which file should I implement Crop function for OLE objects in Writer? > (or does it needed?) > - Could you specify the code pointers, please? > > Thanks.