[api-dev] UNO Java: adding a motion path Animation to an XShape in Impress

2009-01-15 Thread John Hayes
Hello List People,

 

I'm completely new to the OOo UNO API, and I have been completely
unsuccessful in finding info on adding motion path animations to an XShape
in Impress. I was told (in IRC) that it involves querying the
com::sun::star::animations::XAnimationNodeSupplier interface from a page in
my document, then somehow adding SMIL nodes to the root node through that,
but to be honest I don't understand how to do that at all.

 

Could someone please shed some light on this subject for a complete newbie
like myself? Example code that adds a motion path animation to a shape would
be most helpful, but I'll take whatever I can get right now!

 

Thanks in advance,

 

John

 

PS: Here's some of the code that I have right now - it's not much, and I
don't know where to go from here:

 

// get the page

XDrawPage p = PageHelper.getDrawPageByIndex(theDocument, 0);

// get the AnimationNodeSupplier

XAnimationNodeSupplier ans =
(XAnimationNodeSupplier)UnoRuntime.queryInterface(XAnimationNodeSupplier.cla
ss, p);

// now get the AnimationNode from the supplier... but what do I do with it?

XAnimationNode an = (XAnimationNode)ans.getAnimationNode();



Re: [api-dev] save to image?

2009-01-15 Thread Christoph Lutz
Hi Albert,

here in short the lines I used to export a picture from the current
document. This only exports the current page of the document - other
pages are ignored.

 dim exportArgs(1) as new com.sun.star.beans.PropertyValue
 exportArgs(0).Name = MediaType
 exportArgs(0).Value = image/png
 ThisComponent.storeToURL(url of the file to export, exportArgs)  

May be the list of arguments required to specify the correct output
filter is not complete. In my tests I noticed, that these lines of
code work, but only after exporting the document via file-export at
least once before.

regards, Christoph

2009/1/5 Albert Law a...@snowbound.com:
 Hi All,

 I've started to play around with the OO SDK.  I have a question...

 How do I load a document and then save it as an image?

 e.g. load a DOCX file and then save the cover page (er... first page) to a
 JPG file

 I figured out how to load a DOCX, but I haven't figured out the second bit.
 I tried to do it through the print methods, but that only allows for a PS
 output.

 Currently, I'm looking into XRenderable...  no luck yet.

 Any ideas?  Thanks!



 -
 Albert

-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org



[api-dev] Offline copy of Developers Guide

2009-01-15 Thread ashok _
I am in a country with rather poor internet access, and ever since the
developer's guide moved to the wiki :

http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/OpenOffice.org_Developers_Guide

I have had serious accessibility issues - earlier releases of the SDK
used to include a PDF copy of the developers guide, unfortunately this
PDF copy is still on OOo v2.3.

Is it possible to have a offline dump of the developer's guide wiki so
i can set it up locally  / or an updated pdf version so i can use it
locally ?

thanks

Ashok

-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org



Re: [api-dev] Offline copy of Developers Guide

2009-01-15 Thread Juergen Schmidt

ashok _ wrote:

I am in a country with rather poor internet access, and ever since the
developer's guide moved to the wiki :

http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/OpenOffice.org_Developers_Guide

I have had serious accessibility issues - earlier releases of the SDK
used to include a PDF copy of the developers guide, unfortunately this
PDF copy is still on OOo v2.3.

Is it possible to have a offline dump of the developer's guide wiki so
i can set it up locally  / or an updated pdf version so i can use it
locally ?
i don't know how good it is but you can try the following. You can 
create a PDF based on collections. The DevGuide provides predefined 
collections for all top level chapters.


For example
- click on First Steps
- move to the bottom
- click on download as PDF collection
- on the left side you will find Create a book
- click on Load Collection
- override existing collections if necessary or append  - play with it
- on the next page you will find on the right side a download button and 
before you click the download button select the PDF format

- this way you should be able to create PDF for each chapter

as i mentioned i don't know how good the quality is but as far as i know 
the documentation project is working on that.


Juergen




thanks

Ashok

-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org




-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org



Re: [api-dev] Offline copy of Developers Guide

2009-01-15 Thread Clayton
 I am in a country with rather poor internet access, and ever since the
 developer's guide moved to the wiki :

 http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/OpenOffice.org_Developers_Guide


 I have had serious accessibility issues - earlier releases of the SDK
 used to include a PDF copy of the developers guide, unfortunately this
 PDF copy is still on OOo v2.3.

 Is it possible to have a offline dump of the developer's guide wiki so
 i can set it up locally  / or an updated pdf version so i can use it
 locally ?
 i don't know how good it is but you can try the following. You can
 create a PDF based on collections. The DevGuide provides predefined
 collections for all top level chapters.
 
 For example
 - click on First Steps
 - move to the bottom
 - click on download as PDF collection
 - on the left side you will find Create a book
 - click on Load Collection
 - override existing collections if necessary or append  - play with it
 - on the next page you will find on the right side a download button and
 before you click the download button select the PDF format
 - this way you should be able to create PDF for each chapter
 
 as i mentioned i don't know how good the quality is but as far as i know
 the documentation project is working on that.

Yes, we are working on it.  The steps Juergen outlined will work for now.

The plan is to provide easy links for people to download individual
chapters as PDF and ODT, and possibly as an entire book (which would be
a huge single download).

The limitation is, the Collection is static.  This means that a
Collection that is valid today, is not going to be valid tomorrow
(people are adding and removing content all the time).  We need to find
a way to dynamically generate or respin the Collection once per week (or
some other schedule) so that the Collection picks up the changes in the
document structure.

So... immediate plan.  I have to finish up with the recent Wiki engine
update (some issues with the upgrade need to be taken care of first). I
will then start working on adding a Download as a Collection link to
the bottom of the FIRST PAGE in EACH chapter of the Developer's Guide.
You will be able to click this link and generate a PDF or ODT document
for the current chapter you are viewing.

Mid term - I will try to find a way (with some help from the community
here) to script things (using a cron job and the MediaWiki API?) to
auto-rebuild the Collections on some schedule to keep the Collections up
to date.  Manually maintaining the Collections for this large document
is not practical.

C.
-- 
Clayton Cornell   ccorn...@openoffice.org
StarOffice - Sun Microsystems, Inc. - Hamburg, Germany

-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org



Re: [api-dev] Offline copy of Developers Guide

2009-01-15 Thread Jason Cooper
I'm glad to hear that this is being worked on. I also have a need for an
offline version, since my workplace doesn't have internet access.

Jason


On 1/15/09, Clayton ccorn...@openoffice.org wrote:

  I am in a country with rather poor internet access, and ever since the
  developer's guide moved to the wiki :
 
  
 http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/OpenOffice.org_Developers_Guide
 
 
 
  I have had serious accessibility issues - earlier releases of the SDK
  used to include a PDF copy of the developers guide, unfortunately this
  PDF copy is still on OOo v2.3.
 
  Is it possible to have a offline dump of the developer's guide wiki so
  i can set it up locally  / or an updated pdf version so i can use it
  locally ?
  i don't know how good it is but you can try the following. You can
  create a PDF based on collections. The DevGuide provides predefined
  collections for all top level chapters.
 
  For example
  - click on First Steps
  - move to the bottom
  - click on download as PDF collection
  - on the left side you will find Create a book
  - click on Load Collection
  - override existing collections if necessary or append  - play with it
  - on the next page you will find on the right side a download button and
  before you click the download button select the PDF format
  - this way you should be able to create PDF for each chapter
 
  as i mentioned i don't know how good the quality is but as far as i know
  the documentation project is working on that.

 Yes, we are working on it.  The steps Juergen outlined will work for now.

 The plan is to provide easy links for people to download individual
 chapters as PDF and ODT, and possibly as an entire book (which would be
 a huge single download).

 The limitation is, the Collection is static.  This means that a
 Collection that is valid today, is not going to be valid tomorrow
 (people are adding and removing content all the time).  We need to find
 a way to dynamically generate or respin the Collection once per week (or
 some other schedule) so that the Collection picks up the changes in the
 document structure.

 So... immediate plan.  I have to finish up with the recent Wiki engine
 update (some issues with the upgrade need to be taken care of first). I
 will then start working on adding a Download as a Collection link to
 the bottom of the FIRST PAGE in EACH chapter of the Developer's Guide.
 You will be able to click this link and generate a PDF or ODT document
 for the current chapter you are viewing.

 Mid term - I will try to find a way (with some help from the community
 here) to script things (using a cron job and the MediaWiki API?) to
 auto-rebuild the Collections on some schedule to keep the Collections up
 to date.  Manually maintaining the Collections for this large document
 is not practical.

 C.
 --
 Clayton Cornell   ccorn...@openoffice.org
 StarOffice - Sun Microsystems, Inc. - Hamburg, Germany

 -
 To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
 For additional commands, e-mail: dev-h...@api.openoffice.org




-- 
Cause I'm due for a miracle, I'm waiting for a sign,
I'll stare straight into the sun and I won't close my eyes,
Til I understand or go blind.


Re: [api-dev] Offline copy of Developers Guide

2009-01-15 Thread Clayton
Jason Cooper wrote:
 I'm glad to hear that this is being worked on. I also have a need for an
 offline version, since my workplace doesn't have internet access.

Don't forget that the tools are already in place on the Wiki for you to
make your own Collections of the chapters you need,.  You don't have to
wait on me to make the generic chapter versions.  You can already build
your own PDFs or ODT documents from the existing Wiki documents.

C.
-- 
Clayton Cornell   ccorn...@openoffice.org
StarOffice - Sun Microsystems, Inc. - Hamburg, Germany

-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org



Re: [api-dev] Offline copy of Developers Guide

2009-01-15 Thread Jason Cooper
Yea, I know. That's what I've been doing. An official, more easily
downloadable version would just be even nicer.

On 1/15/09, Clayton ccorn...@openoffice.org wrote:

 Jason Cooper wrote:
  I'm glad to hear that this is being worked on. I also have a need for an
  offline version, since my workplace doesn't have internet access.

 Don't forget that the tools are already in place on the Wiki for you to
 make your own Collections of the chapters you need,.  You don't have to
 wait on me to make the generic chapter versions.  You can already build
 your own PDFs or ODT documents from the existing Wiki documents.

 C.
 --
 Clayton Cornell   ccorn...@openoffice.org
 StarOffice - Sun Microsystems, Inc. - Hamburg, Germany

 -
 To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
 For additional commands, e-mail: dev-h...@api.openoffice.org




-- 
Cause I'm due for a miracle, I'm waiting for a sign,
I'll stare straight into the sun and I won't close my eyes,
Til I understand or go blind.


[api-dev] build problem?

2009-01-15 Thread Albert Law
Hi All,

I have a build problem, and I was wondering if someone could help. Thanks!

ps: WinXP Pro, MSVS2005Pro

Basically, I get:
--1
Making: ../../../wntmsci11/lib/icli_cpp_bridgetest.uno_t1.lib
build of ../../../wntmsci11/bin/cli_cpp_bridgetest.uno.dll creates ../../../wntm
sci11/lib/icli_cpp_bridgetest.uno_t1.lib
making .dpslo
slfl.pl csc -warnaserror+ -optimize -target:library -out:../../../wntmsci11/bin/
cli_cs_bridgetest.uno.dll \
-reference:../../../wntmsci11/bin/cli_types_bridgetest.dll \
-reference:c:/code/OpenOffice/OOO300_m9/solver/300/wntmsci11/bin
/cli_uretypes.dll \
-reference:c:/code/OpenOffice/OOO300_m9/solver/300/wntmsci11/bin
/cli_basetypes.dll \
-reference:c:/code/OpenOffice/OOO300_m9/solver/300/wntmsci11/bin
/cli_ure.dll \
-reference:System.dll \
cli_cs_bridgetest.cs
Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.1433
for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.

c:\code\OpenOffice\OOO300_m9\testtools\wntmsci11\bin\cli_types_bridgetest.dll:
error CS1705: Assembly 'cli_types_bridgetest, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=null' uses 'cli_basetypes, Version=1.0.12.0,
Culture=neutral, PublicKeyToken=ce2cb7e279207b9e' which has a higher
version than referenced assembly 'cli_basetypes, Version=1.0.11.0,
Culture=neutral, PublicKeyToken=ce2cb7e279207b9e'
c:\code\OpenOffice\OOO300_m9\solver\300\wntmsci11\bin\cli_basetypes.dll:
(Location of symbol related to previous error)
dmake: Error code 1, while making '../../../wntmsci11/bin/cli_cs_bridgetest.uno
.dll'

ERROR: Error 65280 occurred while making /cygdrive/c/code/OpenOffice/OOO300_m9/t
esttools/source/bridgetest/cli
rmdir /cygdrive/c/DOCUME~1/Auser/LOCALS~1/Temp/3588
dmake: Error code 1, while making 'build_instsetoo_native'



And I execute:
set nodep=TRUE
set NO_HIDS=TRUE
set MAXPROCESS=4
cd /cygdrive/c/code/OpenOffice/OOO300_m9/config_office

./configure --disable-build-mozilla --disable-mozilla --with-use-shell=bash 
--with-build-version=Built for Testing Only
--without-ppds --enable-verbose --enable-pdfimport --enable-binfilter 
--disable-kdeab --disable-atl --enable-dbgutil
--enable-symbols --with-cl-home='/cygdrive/c/PROGRA~1/Microsoft Visual Studio 
8/VC'
--with-ant-home='/cygdrive/c/PROGRA~1/apache-ant-1.7.1' 
--with-jdk-home='/cygdrive/c/PROGRA~1/Java/jdk1.6.0_07'

cd ..
./bootstrap
. winenv.set.sh
dmake


_
- Albert


-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org



Re: [api-dev] build problem?

2009-01-15 Thread Ariel Constenla-Haile
Hello Albert,

On Thursday 15 January 2009, 20:30, Albert Law wrote:
 Hi All,

 I have a build problem, and I was wondering if someone could help. Thanks!

 ps: WinXP Pro, MSVS2005Pro

 Basically, I get:
 --1
 Making: ../../../wntmsci11/lib/icli_cpp_bridgetest.uno_t1.lib
 build of ../../../wntmsci11/bin/cli_cpp_bridgetest.uno.dll creates
 ../../../wntm sci11/lib/icli_cpp_bridgetest.uno_t1.lib
 making .dpslo
 slfl.pl csc -warnaserror+ -optimize -target:library
 -out:../../../wntmsci11/bin/ cli_cs_bridgetest.uno.dll \
 -reference:../../../wntmsci11/bin/cli_types_bridgetest.dll \
 -reference:c:/code/OpenOffice/OOO300_m9/solver/300/wntmsci11/bin
 /cli_uretypes.dll \
 -reference:c:/code/OpenOffice/OOO300_m9/solver/300/wntmsci11/bin
 /cli_basetypes.dll \
 -reference:c:/code/OpenOffice/OOO300_m9/solver/300/wntmsci11/bin
 /cli_ure.dll \
 -reference:System.dll \
 cli_cs_bridgetest.cs
 Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.1433
 for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
 Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.

 c:\code\OpenOffice\OOO300_m9\testtools\wntmsci11\bin\cli_types_bridgetest.d
ll: error CS1705: Assembly 'cli_types_bridgetest, Version=0.0.0.0,
 Culture=neutral, PublicKeyToken=null' uses 'cli_basetypes,
 Version=1.0.12.0,
 Culture=neutral, PublicKeyToken=ce2cb7e279207b9e' which has a higher
 version than referenced assembly 'cli_basetypes, Version=1.0.11.0,
 Culture=neutral, PublicKeyToken=ce2cb7e279207b9e'
 c:\code\OpenOffice\OOO300_m9\solver\300\wntmsci11\bin\cli_basetypes.dll:
 (Location of symbol related to previous error)
 dmake: Error code 1, while making
 '../../../wntmsci11/bin/cli_cs_bridgetest.uno .dll'

 ERROR: Error 65280 occurred while making
 /cygdrive/c/code/OpenOffice/OOO300_m9/t esttools/source/bridgetest/cli
 rmdir /cygdrive/c/DOCUME~1/Auser/LOCALS~1/Temp/3588
 dmake: Error code 1, while making 'build_instsetoo_native'



 And I execute:
 set nodep=TRUE
 set NO_HIDS=TRUE
 set MAXPROCESS=4
 cd /cygdrive/c/code/OpenOffice/OOO300_m9/config_office

 ./configure --disable-build-mozilla --disable-mozilla --with-use-shell=bash
 --with-build-version=Built for Testing Only --without-ppds
 --enable-verbose --enable-pdfimport --enable-binfilter --disable-kdeab
 --disable-atl --enable-dbgutil --enable-symbols
 --with-cl-home='/cygdrive/c/PROGRA~1/Microsoft Visual Studio 8/VC'
 --with-ant-home='/cygdrive/c/PROGRA~1/apache-ant-1.7.1'
 --with-jdk-home='/cygdrive/c/PROGRA~1/Java/jdk1.6.0_07'

 cd ..
 ./bootstrap
 . winenv.set.sh
 dmake


 _
 - Albert

this is no API subject, so better go to d...@openoffice.org

Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina


Aus der Kriegsschule des Lebens
- Was mich nicht umbringt,
macht mich härter.
Nietzsche Götzendämmerung, Sprüche und Pfeile, 8.

-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org