Re: Make ooxml-handles work in odp

2019-08-07 Thread Regina Henschel
Hi Miklos, Miklos Vajna schrieb am 06-Aug-19 um 09:26: Hi Regina, [..] 1) If you want to know which import filter was used to create the doc model, you can get that info from SfxBaseModel::getArgs(). One of the property values returned by that function has the info. Thank you for the hint. I

Re: Make ooxml-handles work in odp

2019-08-06 Thread Regina Henschel
Hi Miklos, Miklos Vajna schrieb am 06-Aug-19 um 09:26: Hi Regina, [..] 2) I wonder if you want to behave differently for ooxml- shapes if they are loaded from ODF or OOXML. I thought that the idea for ooxml- shapes is exactly that the know they are from OOXML, so no matter if they are loaded f

Re: Make ooxml-handles work in odp

2019-08-06 Thread Miklos Vajna
Hi Regina, On Mon, Aug 05, 2019 at 10:50:21AM +0200, Regina Henschel wrote: > No. If you open a file which was originally produced by PowerPoint, the > shape gets a "ooxml-foo" shape type. When you then save the file to .odp > format, the shape type is stil "ooxml-foo". So when you then open the

Re: Make ooxml-handles work in odp

2019-08-05 Thread Regina Henschel
Hi Miklos, Miklos Vajna schrieb am 05-Aug-19 um 09:26: Hi Regina, On Sun, Aug 04, 2019 at 02:19:49PM +0200, Regina Henschel wrote: Is there a way to tell at this point whether the current file has an 'ooxml' format? The custom shape type is a string, always in the format of ooxml-"preset n

Re: Make ooxml-handles work in odp

2019-08-05 Thread Miklos Vajna
Hi Regina, On Sun, Aug 04, 2019 at 02:19:49PM +0200, Regina Henschel wrote: > Is there a way to tell at this point whether the current file has an 'ooxml' > format? The custom shape type is a string, always in the format of ooxml-"preset name" for custom shapes coming from OOXML. Would that hel

Re: Make ooxml-handles work in odp

2019-08-04 Thread Regina Henschel
Hi all, Regina Henschel schrieb am 28-Jul-19 um 20:03: I can imagine to write a parser similar to the one from https://opengrok.libreoffice.org/xref/core/oox/source/drawingml/customshapepresetdata.cxx. There the information is fetched at runtime from the file "oox-drawingml-cs-presets". Or I

Make ooxml-handles work in odp

2019-07-28 Thread Regina Henschel
Hi all, I'm working on https://bugs.documentfoundation.org/show_bug.cgi?id=126512 "Open pptx and save as odp, handle of shape is visible but cannot be moved" I have found, that this can be fixed by adding the reference properties (RefX, RefY, RefAngle, RefR) to the handles in method SdrObjC