Re: [Libreoffice] Export OLE objects as PDF / graphics

2010-12-13 Thread Michael Meeks

On Sat, 2010-12-11 at 11:35 +0100, Gert Faller wrote:
> it seems that the RTL_CONSTASCII_USTRINGPARAM is (completly ? mostly ?)
> finished so I'm back to PDF Export

Oh - wow :-) great work. Did we remove it as an easy-hack, and move it
to the completed hacks section, so other people don't slave away
pointlessly there ? :-)

> Checking that too...

Wonderful ! thanks :-)

Regards,

Michael.

-- 
 michael.me...@novell.com  <><, Pseudo Engineer, itinerant idiot


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] Export OLE objects as PDF / graphics

2010-12-11 Thread Gert Faller
Hi,

it seems that the RTL_CONSTASCII_USTRINGPARAM is (completly ? mostly ?) finished
so I'm back to PDF Export

>   * Misc issues
>   + Formula objects
>   + no PDF exported :-)

In fact they do export as do other objects.
But none of them exports when anchor is 'As Character'.
Checking that...

>   * Potentially pasting the objects as a GDI meta-file
> something we can easily do already for OLE objects
> gives a better result.
>   + Hopefully we could do this more uniformly for all
> objects, and export formats: PDF, PNG, JPEG etc.
>   + Indeed, if we could go directly from that GDI
> meta-file to an image (without the temporary draw)
> document life would be a lot better I think.
>   + Thorsten any ideas on that path ? :-)

Checking that too...

Regards.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] Export OLE objects as PDF / graphics

2010-12-02 Thread Michael Meeks
Hi Gert,

On Fri, 2010-11-26 at 22:34 +0100, Gert Faller wrote:
> and here is the same for calc (with Hidden=sal_True of course), I've just
> finished the build and the review.

Sorry pardon; after some big and painful thrash trying to get RC1 into
good shape, I finally took a look at this.

First - it is a nice feature to have :-) so good work.

However - as always there are a number of nits to pick, which is why it
is an experimental feature and writer-only for now, 

* Firstly - we -really- don't want to cut/paste this big block
  of code around the place into the other components, so we need
  to move it to some shared place before we can go there.
+ somewhere in svx/ might be a good home as Caolan
  suggested

* Misc issues
+ Formula objects
+ no PDF exported :-)
+ does the controller method work well
  here ?
+ JPEG aspect ratio very odd
+ cut/paste into draw likewise
+ Insert->Chart
+ JPEG export is odly cropped

+ Translation
+ the file dialogs need translated title strings
  cf. SW_RES() and STR_CENTER_VERT in same file:
  sw/source/ui/shells/frmsh.cxx

+ single Export menu item ?
+ select different file-types via the filter
  list (saves UI clutter), and just as
  discoverable

+ flash/bang of transient draw document rendering on
  JPEG save.

* Potentially pasting the objects as a GDI meta-file
  something we can easily do already for OLE objects
  gives a better result.
+ Hopefully we could do this more uniformly for all
  objects, and export formats: PDF, PNG, JPEG etc.
+ Indeed, if we could go directly from that GDI
  meta-file to an image (without the temporary draw)
  document life would be a lot better I think.
+ Thorsten any ideas on that path ? :-)

Anyhow - it's a lot better than nothing, and a useful feature - so
thanks ! and looking forward to it getting polished & enabled by
default.

All the best & sorry again for the delay,

Regards,

Michael.

-- 
 michael.me...@novell.com  <><, Pseudo Engineer, itinerant idiot

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] Export OLE objects as PDF / graphics

2010-11-10 Thread Caolán McNamara
On Tue, 2010-11-09 at 22:35 +0100, Gert Faller wrote:
> But, even if I've been reading a lot of code (thanks to the
> 'RTL_CONSTASCII_USTRINGPARAM' easy Hack) 

> I've not still completely figured out
> how to (and where) share the code for both apps. Working on that.

Could, I guess, put it into svx or filter, they're both fairly grabbags
of shared stuff which all the major app components already depend on.

C.



___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] Export OLE objects as PDF / graphics

2010-11-09 Thread Sebastian Spaeth
On Tue, 09 Nov 2010 22:35:13 +0100, Gert Faller wrote:

> The source code is a really big town, I've no map,..

Haha, that describes it pretty much and pretty exactly. Thanks for
making me laugh. That should be the slogan on our development wiki. :)

Sebastian


pgpBnDLtYhVlO.pgp
Description: PGP signature
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] Export OLE objects as PDF / graphics

2010-11-09 Thread Gert Faller
Selon Caolán McNamara :

> It looks good to me anyway. Just need to handle more gracefully hitting
> "cancel" IMO and I reckon we could pretty much stuff it in as is.
>
> C.

Hi,

yes of course, checks must be added, it's just 'raw code'.
Whatever,this function is expected in calc to.
I'm coding it in calc for a test, it's the same.
But, even if I've been reading a lot of code (thanks to the
'RTL_CONSTASCII_USTRINGPARAM' easy Hack) I've not still completely figured out
how to (and where) share the code for both apps. Working on that.
(The source code is a really big town, I've no map, and all that 'uno' stuff is
also completely new to me)

Regards.

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] Export OLE objects as PDF / graphics

2010-11-09 Thread Caolán McNamara
On Mon, 2010-11-08 at 23:46 +0100, Gert Faller wrote:
> Hi,
> 
> Following the hints of Michael Meeks in :
> 'https://bugs.freedesktop.org/show_bug.cgi?id=30944', here a first try in
> writer.
> It's 'raw code' : just wondering if it satisfies the required functionality.

It looks good to me anyway. Just need to handle more gracefully hitting
"cancel" IMO and I reckon we could pretty much stuff it in as is. 

C.

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice] Export OLE objects as PDF / graphics

2010-11-08 Thread Gert Faller
Hi,

Following the hints of Michael Meeks in :
'https://bugs.freedesktop.org/show_bug.cgi?id=30944', here a first try in
writer.
It's 'raw code' : just wondering if it satisfies the required functionality.

Regards.



export_4.patch
Description: Binary data
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] Export OLE objects as PDF / graphics

2010-11-02 Thread Cedric Bosdonnat
Hi Cor, Gert,

On Fri, 2010-10-29 at 22:41 +0200, Cor Nouws wrote:
> It is this issue: http://www.openoffice.org/issues/show_bug.cgi?id=3545
> AFAIR, there is also/related the wish to use the Draw drawing layer for 
> Writer too.

We want to improve the Draw drawing layer capabilities before binning it
out because there are a few things that are useful in Writer. The most
important one is to be able to layout anything inside a graphic object
in Writer.

The reason: in OOXML / docx you can have any kind of content inside a
shape (rectangle, ellipse, and so on)... In the Draw drawing layer you
can have only simple text, but in Writer you can have this for Fly
frames. Having a single way to layout both would be nice and would avoid
loosing data in some OOXML files.

And of course, each of those (FlyFrames and drawing objects) have a
different UNO API with different properties...

-- 
Cédric Bosdonnat
LibreOffice hacker
http://documentfoundation.org
OOo Eclipse Integration developer
http://cedric.bosdonnat.free.fr



___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] Export OLE objects as PDF / graphics

2010-11-01 Thread Thorsten Behrens
gertfal...@aliceadsl.fr wrote:
> in draw : easy rotate, crop, resize and right click 'save as...'
> in impress : same features and same toolbars
> in calc : easy resize, right click 'rotate', but no crop nor 'save as...'
> in writer : no 'rotate', easy resize, right click 'crop', right click 'save
> as...' but 'image map'
> 
Add to that differences in border types, and that should be a fairly
complete set of differences. :)

Cheers,

-- Thorsten


pgpvflDcByHZw.pgp
Description: PGP signature
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] Export OLE objects as PDF / graphics

2010-10-29 Thread gertfaller
Cor wrote

>
> It is this issue: http://www.openoffice.org/issues/show_bug.cgi?id=3545
> AFAIR, there is also/related the wish to use the Draw drawing layer for
> Writer too.
>

So, if I'm not wrong :
in draw : easy rotate, crop, resize and right click 'save as...'
in impress : same features and same toolbars
in calc : easy resize, right click 'rotate', but no crop nor 'save as...'
in writer : no 'rotate', easy resize, right click 'crop', right click 'save
as...' but 'image map'

Regards.


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] Export OLE objects as PDF / graphics

2010-10-29 Thread Cor Nouws

Hi Gert,

Gert Faller wrote (29-10-10 21:02)

I'm studying the "Export OLE objects as PDF / graphics" feature and it reminds
me of an other...

When you import a picture in writer : you can't rotate it. It's a picture :
style "Graphics".
When you import a picture in draw : you can't rotate it. If you copy it back in
writer,
it's a "Drawing Object" and then you can rotate it.
I've heard many people complaining about that : "open in draw and then copy to
writer is a pain !".
Any hint about that feature ?


It is this issue: http://www.openoffice.org/issues/show_bug.cgi?id=3545
AFAIR, there is also/related the wish to use the Draw drawing layer for 
Writer too.


Regards,
Cor

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] Export OLE objects as PDF / graphics

2010-10-29 Thread Caolán McNamara
On Fri, 2010-10-29 at 21:02 +0200, Gert Faller wrote:
> 
> Hi,
> 
> I'm studying the "Export OLE objects as PDF / graphics" feature and it reminds
> me of an other...
> 
> When you import a picture in writer : you can't rotate it. It's a picture :
> style "Graphics".
> When you import a picture in draw : you can't rotate it. If you copy it back 
> in
> writer, it's a "Drawing Object" and then you can rotate it.

Its one of the odd historical things, both writer and the drawing layer
have their own different graphics objects. You can do things with one
you can't do with the other. Its quite a nuisance alright. Ideally
should merge the feature set together and just use one. 

It might be an interesting thing for you to try and play with. e.g.
SdrGrafObj is the key drawing layer graphic class, and SwGfrNode is the
key writer graphic class IIRC.

C.

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice] Export OLE objects as PDF / graphics

2010-10-29 Thread Gert Faller


Hi,

I'm studying the "Export OLE objects as PDF / graphics" feature and it reminds
me of an other...

When you import a picture in writer : you can't rotate it. It's a picture :
style "Graphics".
When you import a picture in draw : you can't rotate it. If you copy it back in
writer,
it's a "Drawing Object" and then you can rotate it.
I've heard many people complaining about that : "open in draw and then copy to
writer is a pain !".
Any hint about that feature ?

Regards.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice