[dev] Re: RuntimeException: [msci_uno bridge error] UNO type of C++ exception unknown

2011-04-28 Thread Grover Blue
Thanks for the tip, Stephan.  I'll try that tomorrow at let everyone know
how it works out!

On Thu, Apr 28, 2011 at 4:32 PM, Stephan Bergmann 
stephan.bergm...@oracle.com wrote:

 I would first try and see whether some Windows debugger (MS Studio or
 WinDbg) lets you attach to soffice.exe and intercept C++ exceptions of type
 std::bad_alloc.  (Running OOo throws and catches lots of exceptions, so
 intercepting all C++ exceptions might produce too much noise, but it should
 normally not produce any std::bad_alloc ones.)  The stack trace of the throw
 then hopefully gives a clue already, without any additional
 debug-build-hassle.

 -Stephan

 On Apr 28, 2011, at 4:56 PM, Grover Blue wrote:
  perhaps it's necessary to build OOo with debug information first
 
  I don't know how to do that, but I'm willing to try with some help.  The
 only source I could find was for the java libraries.  This is a very
 critical problem and needs to be resolved.  Too bad there isn't a developer
 exe release with debugging enabled.
 
 
  On Tue, Apr 26, 2011 at 10:36 AM, Michael Stahl 
 michael.x.st...@oracle.com wrote:
  On 26/04/2011 15:22, Grover Blue wrote:
   I have a muti-threaded application that processes document mostly
   asynchronous.  I synchronize all UnoRuntime.* API calls, but not such
   calls as setting a table cell's value, etc.  Everything runs fine in
   development, qa and in a production environment for one our clients.
  We
   have another client, however, where we are experience a complete
   breakdown.  While processing, we continually get the following
   exception.  Both clients are running version 3.3 of OpenOffice/UNO.
  Has
   anyone experienced this or is there a way to get more information/debug
   OpenOffice?
 
  you could run OOo with the debugger attached, and set a breakpoint on
  thrown exceptions.  but i'm not familiar with windows, and don't know
  whether that would actually work on our release builds.
  perhaps it's necessary to build OOo with debug information first...
 
   Here is how OpenOffice is launched from bootstrapconnector:
   C:\Program Files\OpenOffice.org 3\program\soffice.exe -nologo
 -nodefault
   -norestore -nocrashreport -nolockcheck -headless -nofirststartwizard
   -accept=pipe,name=uno3869894507064209706;urp;
  
   Here is the RuntimeException:
  
   com.sun.star.uno.RuntimeException: [msci_uno bridge error] UNO type of
   C++ exception unknown: std.bad_alloc, RTTI-name=.?AVbad_alloc@std
 @@!
 
  it looks like the original exception on the C++ side is std::bad_alloc.
  this exception is thrown by operator new() when a memory allocation
 fails.
  there are also lots of places in OOo where this exception is thrown, also
  after checking that some allocation failed.
 
  perhaps there is a leak somewhere?
  does the OOo process actually use enormous amounts of RAM?
 
  can you see a problem by exporting the same document that fails to PDF
 via
  the UI?
 --
 -
 To unsubscribe send email to dev-unsubscr...@openoffice.org
 For additional commands send email to sy...@openoffice.org
 with Subject: help

-- 
-
To unsubscribe send email to dev-unsubscr...@openoffice.org
For additional commands send email to sy...@openoffice.org
with Subject: help


[dev] RuntimeException: [msci_uno bridge error] UNO type of C++ exception unknown

2011-04-26 Thread Grover Blue
I have a muti-threaded application that processes document mostly
asynchronous.  I synchronize all UnoRuntime.* API calls, but not such calls
as setting a table cell's value, etc.  Everything runs fine in development,
qa and in a production environment for one our clients.  We have another
client, however, where we are experience a complete breakdown.  While
processing, we continually get the following exception.  Both clients are
running version 3.3 of OpenOffice/UNO.  Has anyone experienced this or is
there a way to get more information/debug OpenOffice?

Here is how OpenOffice is launched from bootstrapconnector:
C:\Program Files\OpenOffice.org 3\program\soffice.exe -nologo -nodefault
-norestore -nocrashreport -nolockcheck -headless -nofirststartwizard
-accept=pipe,name=uno3869894507064209706;urp;

Here is the RuntimeException:

com.sun.star.uno.RuntimeException: [msci_uno bridge error] UNO type of C++
exception unknown: std.bad_alloc, RTTI-name=.?AVbad_alloc@std@@!
at
com.sun.star.lib.uno.environments.remote.Job.remoteUnoRequestRaisedException(Job.java:177)
at com.sun.star.lib.uno.environments.remote.Job.execute(Job.java:143)
at
com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:335)
at
com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:304)
at
com.sun.star.lib.uno.environments.remote.JavaThreadPool.enter(JavaThreadPool.java:91)
at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_remote_bridge.java:639)
at
com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.request(ProxyFactory.java:151)
at
com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.invoke(ProxyFactory.java:133)
at $Proxy27.storeToURL(Unknown Source)
at com.company.ooo.FileManager.componentExport(FileManager.java:135)
at com.company.util.PDFGenerator.generatePDF(PDFGenerator.java:183)
at
com.company.util.PDFGenerator.generateSinglePDFFromDocumentList(PDFGenerator.java:106)
at
com.company.service.processor.DefaultPDFStoreServiceProcessorNG.process(DefaultPDFStoreServiceProcessorNG.java:161)
at
com.company.service.DefaultPDFStoreService.process(DefaultPDFStoreService.java:38)
at com.company.core.PrintServiceThread.run(PrintServiceThread.java:129)
Apr 25, 2011 9:59:16 AM com.company.util.SyslogUtil logEvent


I'm attempting to export a PDF file named
C:/COMPANY/temp/d7255f23-f2da-42ad-972e-3fda3e42b066.pdf with the following:

public static void componentExport(XComponent xComponent, PropertyValue[]
properties, String storeFile) throws DocumentException {
XStorable xStorable = null;
synchronized (accessLock) {
try {
xStorable = (XStorable)
UnoRuntime.queryInterface(XStorable.class, xComponent);
xStorable.storeToURL(file:/// + storeFile, properties);
} catch (com.sun.star.uno.RuntimeException e) {
xStorable = null;
xRemoteContext = null;  // OOo will be relaunched
xRemoteServiceManager = null;
e.printStackTrace();
throw new DocumentException(Failed to store file:  +
storeFile, e);
} catch (java.lang.Exception e) {
xStorable = null;
throw new DocumentException(Failed to store file:  +
storeFile, e);
}
}
xStorable = null;
}


public class PDFGenerator {
private PropertyValue[] pdfStoreProps;


public PDFGenerator(){
PropertyValue[] filterData = new PropertyValue[2];

filterData[0] = new PropertyValue();
filterData[0].Name = UseLosslessCompression;
filterData[0].Value = Boolean.FALSE;

filterData[1] = new PropertyValue();
filterData[1].Name = ExportFormFields;
filterData[1].Value = Boolean.FALSE;

pdfStoreProps = new PropertyValue[4];
pdfStoreProps[0] = new PropertyValue();
pdfStoreProps[0].Name = FilterName;
pdfStoreProps[0].Value = DocumentType.WRITER_PDF_EXPORT;

pdfStoreProps[1] = new PropertyValue();
pdfStoreProps[1].Name = Pages;
pdfStoreProps[1].Value = All;

pdfStoreProps[2] = new PropertyValue();
pdfStoreProps[2].Name = Overwrite;
pdfStoreProps[2].Value = Boolean.TRUE;

pdfStoreProps[3] = new PropertyValue();
pdfStoreProps[3].Name = FilterData;
pdfStoreProps[3].Value = filterData;
}

/**
 * Generates one PDF from all the documents
 * @param copies The number of document copies to be generated
 * @param documents A hashtable holding the documents as XComponent
 * @param path The folder where the PDF will be stored
 * @param fileName  The name of the PDF to be generated
 */

public final PrintProcessStatus generateSinglePDFFromDocumentList(int
copies,

LinkedListTextDocumentReference documents,
   

[dev] OOo crashes during processing

2009-11-05 Thread Grover Blue
I've been running an app on my dev  qa machines without problems.  My
development box is Win2k, and the QA box is XP sp2.  Both are using OO.org
v3.1.1.

We recently set up another machine, XP sp2  OOo v3.1, and OOo is crashing.
The crash dialog appears, and the bug appears to be submitted, but I'd like
to know if anyone else is experiencing the same problem.  Below is the error
report.

is there any way to tell open office to log more detailed information to a
log file?   Also, I can't find any dump file on the filesystem when this
occurs.


?xml version=1.0 encoding=UTF-8?
!DOCTYPE errormail:errormail PUBLIC -//OpenOffice.org//DTD ErrorMail
1.0//EN errormail.dtd
errormail:errormail
xmlns:errormail=http://openoffice.org/2002/errormail;http://openoffice.org/2002/errormailusertype=
reportmail:mail
xmlns:reportmail=http://openoffice.org/2002/reportmail;http://openoffice.org/2002/reportmailversion=1.1
feedback=true email=
jma...@agois.com jma...@agois.com
reportmail:title/reportmail:title
reportmail:attachment name=description.txt
media-type=text/plain;charset=UTF-8 class=UserComment/
reportmail:attachment name=user.dmp media-type=application/octet-stream
class=UserDump/
/reportmail:mail
officeinfo:officeinfo xmlns:officeinfo=
http://openoffice.org/2002/officeinfo;http://openoffice.org/2002/officeinfobuild=310m19(Build:9420)
platform=
wntmsci12.pro language= procpath=C:\Program Files\OpenOffice.org
3\program\ exceptiontype=0xC005 product=OpenOffice.org 3.1/
systeminfo:systeminfo xmlns:systeminfo=
http://openoffice.org/2002/systeminfo;http://openoffice.org/2002/systeminfo

systeminfo:System name=Windows NT version=5.1 build=2600
locale=0x0409/
systeminfo:CPU type=x86/
/systeminfo:systeminfo
errormail:Stack type=Win32
errormail:StackInfo pos=0 ip=0x5CD2F812 rel=0x0002F812
ordinal=SwModify::_Remove+0x003A name=swmi.dll path=C:\Program
Files\OpenOffice.org 3\Basis\program\/
errormail:StackInfo pos=1 ip=0x5CD2FAE8 rel=0x0002FAE8
ordinal=SwClient::~SwClient+0x001B name=swmi.dll path=C:\Program
Files\OpenOffice.org 3\Basis\program\/
errormail:StackInfo pos=2 ip=0x5CEDE11A rel=0x001DE11A
ordinal=SwDocStyleSheet::PresetFollow+0x000375BB name=swmi.dll
path=C:\Program Files\OpenOffice.org 3\Basis\program\/
errormail:StackInfo pos=3 ip=0x656D5D74 rel=0x00015D74
ordinal=cppu::OWeakObject::release+0x005C name=cppuhelper3MSC.dll
path=C:\Program Files\OpenOffice.org 3\URE\bin\/
errormail:StackInfo pos=4 ip=0x618673B4 rel=0x73B4
ordinal=uno_initEnvironment+0x2253 name=msci_uno.dll
path=C:\Program Files\OpenOffice.org 3\URE\bin\/
errormail:StackInfo pos=5 ip=0x6574E77A rel=0xE77A
ordinal=uno_dumpEnvironmentByName+0x1DF7 name=cppu3.dll
path=C:\Program Files\OpenOffice.org 3\URE\bin\/
errormail:StackInfo pos=6 ip=0x65748131 rel=0x8131
ordinal=uno_getCurrentEnvironment+0x02EB name=cppu3.dll
path=C:\Program Files\OpenOffice.org 3\URE\bin\/
errormail:StackInfo pos=7 ip=0x65748184 rel=0x8184
ordinal=uno_Environment_invoke_v+0x0017 name=cppu3.dll
path=C:\Program Files\OpenOffice.org 3\URE\bin\/
errormail:StackInfo pos=8 ip=0x657481A2 rel=0x81A2
ordinal=uno_Environment_invoke+0x0019 name=cppu3.dll
path=C:\Program Files\OpenOffice.org 3\URE\bin\/
errormail:StackInfo pos=9 ip=0x6574E834 rel=0xE834
ordinal=uno_dumpEnvironmentByName+0x1EB1 name=cppu3.dll
path=C:\Program Files\OpenOffice.org 3\URE\bin\/
errormail:StackInfo pos=10 ip=0x61867351 rel=0x7351
ordinal=uno_initEnvironment+0x21F0 name=msci_uno.dll
path=C:\Program Files\OpenOffice.org 3\URE\bin\/
errormail:StackInfo pos=11 ip=0x5C20D82E rel=0xD82E
ordinal=uno_initEnvironment+0xB050 name=urp_uno.dll path=C:\Program
Files\OpenOffice.org 3\URE\bin\/
errormail:StackInfo pos=12 ip=0x5C20DD8D rel=0xDD8D
ordinal=uno_initEnvironment+0xB5AF name=urp_uno.dll path=C:\Program
Files\OpenOffice.org 3\URE\bin\/
errormail:StackInfo pos=13 ip=0x5C20DDB2 rel=0xDDB2
ordinal=uno_initEnvironment+0xB5D4 name=urp_uno.dll path=C:\Program
Files\OpenOffice.org 3\URE\bin\/
errormail:StackInfo pos=14 ip=0x6574E77A rel=0xE77A
ordinal=uno_dumpEnvironmentByName+0x1DF7 name=cppu3.dll
path=C:\Program Files\OpenOffice.org 3\URE\bin\/
errormail:StackInfo pos=15 ip=0x65748131 rel=0x8131
ordinal=uno_getCurrentEnvironment+0x02EB name=cppu3.dll
path=C:\Program Files\OpenOffice.org 3\URE\bin\/
errormail:StackInfo pos=16 ip=0x65748184 rel=0x8184
ordinal=uno_Environment_invoke_v+0x0017 name=cppu3.dll
path=C:\Program Files\OpenOffice.org 3\URE\bin\/
errormail:StackInfo pos=17 ip=0x657481A2 rel=0x81A2
ordinal=uno_Environment_invoke+0x0019 name=cppu3.dll
path=C:\Program Files\OpenOffice.org 3\URE\bin\/
errormail:StackInfo pos=18 ip=0x6574E834 rel=0xE834
ordinal=uno_dumpEnvironmentByName+0x1EB1 name=cppu3.dll
path=C:\Program Files\OpenOffice.org 3\URE\bin\/
errormail:StackInfo pos=19 ip=0x5C20D7F5 rel=0xD7F5
ordinal=uno_initEnvironment+0xB017 name=urp_uno.dll path=C:\Program

[dev] Refreshing a writer document - XRefreshable says no.

2009-10-29 Thread Grover Blue
I'm looking for a workaround for the bug filed for OOo opens files as Page
1/2 before correcting itself to Page 1/1

http://www.openoffice.org/issues/show_bug.cgi?id=99346

In the issue comments, cloph suggests refreshing the document.  So, I found
the interface XRefreshable.  This would be promising if it were for the
description:

is supported by objects with data that can be refreshed from a data source.


http://api.openoffice.org/docs/common/ref/com/sun/star/util/XRefreshable.html

Is there a was to refresh a Writer document once it's been open?  I want to
make sure that the extra is corrected (ie, eliminated) before I export the
document to a PDF.


Re: [dev] Refreshing a writer document - XRefreshable says no.

2009-10-29 Thread Grover Blue
  The easiest is to dispatch a .uno:Repaginate before, or even an
.uno:UpdateAll.   

I don't know what those are.  I should mention that I'm processing in Java.


On Thu, Oct 29, 2009 at 2:57 PM, Ariel Constenla-Haile 
ariel.constenla.ha...@googlemail.com wrote:

 Hello Grover,

 On Thursday 29 October 2009, 15:39, Grover Blue wrote:
  I'm looking for a workaround for the bug filed for OOo opens files as
   Page 1/2 before correcting itself to Page 1/1
 
  http://www.openoffice.org/issues/show_bug.cgi?id=99346
 
  In the issue comments, cloph suggests refreshing the document.  So, I
 found
  the interface XRefreshable.  This would be promising if it were for the
  description:
 
  is supported by objects with data that can be refreshed from a data
   source. 
 
 
 http://api.openoffice.org/docs/common/ref/com/sun/star/util/XRefreshable.ht
  ml
 
  Is there a was to refresh a Writer document once it's been open?  I want
 to
  make sure that the extra is corrected (ie, eliminated) before I export
 the
  document to a PDF.
 

 you may find some info. in this thread

 http://api.openoffice.org/servlets/BrowseList?list=devby=threadfrom=2294588

 Regards
 --
 Ariel Constenla-Haile
 La Plata, Argentina

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




-- 
“If the American people ever allow private banks to control the issue of
their currency, first by inflation, then by deflation, the banks...will
deprive the people of all property until their children wake-up homeless on
the continent their fathers conquered... The issuing power should be taken
from the banks and restored to the people, to whom it properly belongs.
-- Thomas Jefferson

Government big enough to supply everything...is big enough to take
everything you have. The course of history shows that as a government grows,
liberty decreases --- Thomas Jefferson

www.CampaignForLiberty.org


Re: [dev] Sections and appending documents

2009-03-24 Thread Grover Blue
yeah, I'm not sure how to do that.  I start with a fresh document.




On Mon, Mar 23, 2009 at 11:04 AM, Fhomasp thomas.peet...@realdolmen.comwrote:


 Hey,

 Now that the merging is working fine I seem to stumble upon a new question.
 How should I start unmerging the document, or actively rollback to the
 document state before the merge?

 Any idea's?

 At first I was thinking about closing the bean and its container and
 reloading the whole process from there, although it is way too time
 consuming.

 What doesn't work is just assigning a new Object to the bean, as the
 container keeps looking at the current one.

 Basically I should be able to clear the whole document and then use the
 same
 code as a merge, only with the first initial document as 2nd document for
 the merge.  I'm just not sure where to start.

 Oh and where can I find all the URL's in string format listed?  For
 example:
 serviceFactory.createInstance(com.sun.star.text.TextSection));
 or
 .uno:Print ?

 --
 View this message in context:
 http://www.nabble.com/Sections-and-appending-documents-tp22312435p22661953.html
 Sent from the openoffice - dev mailing list archive at Nabble.com.


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




-- 
“If the American people ever allow private banks to control the issue of
their currency, first by inflation, then by deflation, the banks...will
deprive the people of all property until their children wake-up homeless on
the continent their fathers conquered... The issuing power should be taken
from the banks and restored to the people, to whom it properly belongs.
-- Thomas Jefferson

Government big enough to supply everything...is big enough to take
everything you have. The course of history shows that as a government grows,
liberty decreases --- Thomas Jefferson

www.CampaignForLiberty.org


Re: [dev] Sections and appending documents

2009-03-18 Thread Grover Blue
 When I get the time to do so I will.



I've been saying that for years.  ;-D




 Thanks ;-)




--


Re: [dev] Sections and appending documents

2009-03-16 Thread Grover Blue
That is my fault.  The class in the code below was a wrapper class.  The
code should be something like:

serviceFactory.createInstance(com.sun.star.text.TextSection);

Also,

componentExport  is just a method to export my document (ie, save using
XStorable) .  The saved document will then be loaded using
insertDocumentFromURL



On Mon, Mar 16, 2009 at 11:58 AM, Fhomasp thomas.peet...@realdolmen.comwrote:


 Hey,

 I've been looking to merge an unknown nr. of documents in order to print
 them using a custom method.
 And so I came up to this code but there are a few things that are bothering
 me, which might be related to me being new to OOo Uno programming.
 All the documents are always OpenOffice 2.4 populated Writer templates.

 The problems I have are here:

 serviceFactory.createInstance(com.sun.star.text.TextSection, document1)

 I can't seem to find a (X)ServiceFactory type that allows two arguments
 (String, Object?).

 also the use of the method componentExport.  I know I should find it
 somewhere in the added links around here but with the first problem being
 unresolved, I haven't really gotten around to this one.

 Thanks at any rate already.  This thread does already showed that there is
 a
 possible solution to this.




 Grover Blue wrote:
 
  I got everything to work, except for images and horizontal line objects.
  Images are completely ignored and not imported into the document, whereas
  horizontal line objects are flushing themselves at the top of the current
  page.
 
  I do have a question about the section I am using.  If you look at the
  following code, am I properly inserting the second document (document2)
  into
  the newly created section?
 
  Here is my routine:
 
  public void appendDocument(XTextDocument document1, XTextDocument
  document2)
  throws IllegalArgumentException, java.lang.Exception {
 
  XText xDocText = document1.getText();
  XTextCursor xOrigDocTextCursor = xDocText.createTextCursor();
  XNamed xChildNamed;
  XTextContent xChildContent;
  String tempDoc = generateTempDocucmentPathName();
 
  xOrigDocTextCursor.gotoEnd(false);
 
  xDocText.insertControlCharacter(xOrigDocTextCursor,
  ControlCharacter.PARAGRAPH_BREAK, false);
 
  xChildNamed = (XNamed) UnoRuntime.queryInterface(
   XNamed.class,
 
  serviceFactory.createInstance(com.sun.star.text.TextSection,
  document1));
 
  xChildNamed.setName( + document2.hashCode());
 
  xChildContent = (XTextContent) UnoRuntime.queryInterface(
  XTextContent.class,
  xChildNamed);
 
  /*  Add document2 to the new section */
  xDocText.insertTextContent(xOrigDocTextCursor, xChildContent,
  false);
 
  PropertyValue[] storeProps = createPropertyValueArray(
  createPropertyValue(FilterName, new
  Any(Type.STRING, writer8_template)),
  createPropertyValue(CompressionMode,
 new
  Any(Type.STRING, 1)),
  createPropertyValue(Pages, new
  Any(Type.STRING, All)),
  createPropertyValue(Overwrite, new
  Any(Type.BOOLEAN, Boolean.TRUE)));
 
  componentExport(document2, storeProps, tempDoc);
 
  XDocumentInsertable xDocI = (XDocumentInsertable)
  UnoRuntime.queryInterface(
  XDocumentInsertable.class,
  xOrigDocTextCursor);
 
  PropertyValue[] loadProps=new PropertyValue[0];
 
  xDocI.insertDocumentFromURL(file:/// + tempDoc, loadProps);
 
  deleteFile(tempDoc);
  }
 
 

 --
 View this message in context:
 http://www.nabble.com/Sections-and-appending-documents-tp22312435p22541182.html
 Sent from the openoffice - dev mailing list archive at Nabble.com.


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




-- 
“If the American people ever allow private banks to control the issue of
their currency, first by inflation, then by deflation, the banks...will
deprive the people of all property until their children wake-up homeless on
the continent their fathers conquered... The issuing power should be taken
from the banks and restored to the people, to whom it properly belongs.
-- Thomas Jefferson

Government big enough to supply everything...is big enough to take
everything you have. The course of history shows that as a government grows,
liberty decreases --- Thomas Jefferson

www.CampaignForLiberty.org


Re: [dev] Sections and appending documents

2009-03-05 Thread Grover Blue
Tor, thanks for your input.  I updated my code to reflect that.

I would also like to let everyone know that this issue has been resolved.
The original file was Word document that we ran through a converter.
Apparently, the original image was BMP and the conversion saved that image
as an object in the ODT file (instead of an embedded image).  I deleted the
BMP image object from the OpenOffice template and re-added it as a PNG.
Since doing so everything is working fine.

I want to thank everyone for all your help, and I hope this thread proves
useful to someone else.

Thanks.


On Thu, Mar 5, 2009 at 5:05 AM, Tor Lillqvist tlillqv...@novell.com wrote:

  On 2009-03-05 at 02:15, grover.b...@gmail.com wrote:
  file:/// + tempDoc

 That is very wrong. Use whatever proper API that I am sure Java provides to
 construct  a file: URI from a file name.

 --tml


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




-- 
“If the American people ever allow private banks to control the issue of
their currency, first by inflation, then by deflation, the banks...will
deprive the people of all property until their children wake-up homeless on
the continent their fathers conquered... The issuing power should be taken
from the banks and restored to the people, to whom it properly belongs.
-- Thomas Jefferson

Government big enough to supply everything...is big enough to take
everything you have. The course of history shows that as a government grows,
liberty decreases --- Thomas Jefferson

www.CampaignForLiberty.org


Re: [dev] Sections and appending documents

2009-03-04 Thread Grover Blue
I found examples of inserting via a file, but I'm confused on how I would go
from a XTextDocument to an input stream.  I guess I'd need to use an
XInputStream object (assuming that is the interface I want to use when
passing the InputStream property to XDocumentInsertable), but it's not
clear on how to obtain that from XTextDocument.  You wouldn't happen to have
an example?




On Wed, Mar 4, 2009 at 9:46 AM, Peter Eberlein 
pet@refofd.verwalt-berlin.de wrote:

 Hi,
 inserting Sections:

 http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/Text/Text_Sections
 inserting Documents at a cursors position:

 http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/Text/Inserting_Text_Files
 Please be aware that instead of using a file-URL you can also insert from a
 Stream.

 Regards

 Peter

 Grover Blue schrieb:

  Does anyone have an example of inserting a section and merging two
 XTextDocuments?

 I'm stuck.  Below is what I have so far, but I'm not sure how to insert
 the
 second document.

 public void appendDocument(XTextDocument document1, XTextDocument
 document2)
throws IllegalArgumentException, java.lang.Exception {

XText xDocText = document1.getText();
XTextCursor xOrigDocTextCursor = xDocText.createTextCursor();
XNamed xChildNamed;
XTextContent xChildContent;
XPropertySet xOrigDocTextCursorProp;

xOrigDocTextCursor.gotoEnd(false);
xDocText.insertControlCharacter(xOrigDocTextCursor,
 ControlCharacter.PARAGRAPH_BREAK, false);

xOrigDocTextCursorProp = (XPropertySet)
 FileManager.getOOoUnoRuntimeQueryInterface(
XPropertySet.class,
xOrigDocTextCursor);

xOrigDocTextCursorProp.setPropertyValue(BreakType,
 BreakType.PAGE_BEFORE);

xChildNamed = (XNamed) FileManager.getOOoUnoRuntimeQueryInterface(
XNamed.class,


 FileManager.getOOoUnoRuntimeCreateInstance(com.sun.star.text.TextSection));

xChildNamed.setName(NewSection);
xChildContent = (XTextContent)
 FileManager.getOOoUnoRuntimeQueryInterface(
XTextContent.class,
xChildNamed);

/*  Add document2 to the new section somehow */

xDocText.insertTextContent(xOrigDocTextCursor, xChildContent,
 false);

 Thanks




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




-- 
“If the American people ever allow private banks to control the issue of
their currency, first by inflation, then by deflation, the banks...will
deprive the people of all property until their children wake-up homeless on
the continent their fathers conquered... The issuing power should be taken
from the banks and restored to the people, to whom it properly belongs.
-- Thomas Jefferson

Government big enough to supply everything...is big enough to take
everything you have. The course of history shows that as a government grows,
liberty decreases --- Thomas Jefferson

www.CampaignForLiberty.org


Re: [dev] Sections and appending documents

2009-03-04 Thread Grover Blue
I got everything to work, except for images and horizontal line objects.
Images are completely ignored and not imported into the document, whereas
horizontal line objects are flushing themselves at the top of the current
page.

I do have a question about the section I am using.  If you look at the
following code, am I properly inserting the second document (document2) into
the newly created section?

Here is my routine:

public void appendDocument(XTextDocument document1, XTextDocument
document2)
throws IllegalArgumentException, java.lang.Exception {

XText xDocText = document1.getText();
XTextCursor xOrigDocTextCursor = xDocText.createTextCursor();
XNamed xChildNamed;
XTextContent xChildContent;
String tempDoc = generateTempDocucmentPathName();

xOrigDocTextCursor.gotoEnd(false);

xDocText.insertControlCharacter(xOrigDocTextCursor,
ControlCharacter.PARAGRAPH_BREAK, false);

xChildNamed = (XNamed) UnoRuntime.queryInterface(
 XNamed.class,

serviceFactory.createInstance(com.sun.star.text.TextSection, document1));

xChildNamed.setName( + document2.hashCode());

xChildContent = (XTextContent) UnoRuntime.queryInterface(
XTextContent.class,
xChildNamed);

/*  Add document2 to the new section */
xDocText.insertTextContent(xOrigDocTextCursor, xChildContent,
false);

PropertyValue[] storeProps = createPropertyValueArray(
createPropertyValue(FilterName, new
Any(Type.STRING, writer8_template)),
createPropertyValue(CompressionMode, new
Any(Type.STRING, 1)),
createPropertyValue(Pages, new
Any(Type.STRING, All)),
createPropertyValue(Overwrite, new
Any(Type.BOOLEAN, Boolean.TRUE)));

componentExport(document2, storeProps, tempDoc);

XDocumentInsertable xDocI = (XDocumentInsertable)
UnoRuntime.queryInterface(
XDocumentInsertable.class,
xOrigDocTextCursor);

PropertyValue[] loadProps=new PropertyValue[0];

xDocI.insertDocumentFromURL(file:/// + tempDoc, loadProps);

deleteFile(tempDoc);
}


On Wed, Mar 4, 2009 at 10:38 AM, Peter Eberlein 
pet@refofd.verwalt-berlin.de wrote:

 Grover Blue schrieb:

 I found examples of inserting via a file, but I'm confused on how I would
 go
 from a XTextDocument to an input stream.  I guess I'd need to use an
 XInputStream object (assuming that is the interface I want to use when
 passing the InputStream property to XDocumentInsertable), but it's not
 clear on how to obtain that from XTextDocument.  You wouldn't happen to
 have
 an example?

  Sorry, no.
 If you have a XTextDocument, I guess you have a URL where it is stored. If
 not (created from a template and modified) you can store it to a temp-folder
 or to a stream which you can reuse, for example
 http://user.services.openoffice.org/en/forum/viewtopic.php?f=44t=3801start=0st=0sk=tsd=a

 Peter




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




-- 
“If the American people ever allow private banks to control the issue of
their currency, first by inflation, then by deflation, the banks...will
deprive the people of all property until their children wake-up homeless on
the continent their fathers conquered... The issuing power should be taken
from the banks and restored to the people, to whom it properly belongs.
-- Thomas Jefferson

Government big enough to supply everything...is big enough to take
everything you have. The course of history shows that as a government grows,
liberty decreases --- Thomas Jefferson

www.CampaignForLiberty.org


Re: [dev] Sections and appending documents

2009-03-04 Thread Grover Blue
hi Cor,

I'm not sure what you mean by on the Draw page object.   I have found
forum posts where images were imported fine:

http://www.oooforum.org/forum/viewtopic.phtml?t=45027

My images are not in a header/footer, but there seems to be a frame style
associated with them.

I am so close to completing this!




On Wed, Mar 4, 2009 at 4:42 PM, Cor Nouws oo...@nouenoff.nl wrote:

 Hi,

 Grover Blue wrote (4-3-2009 22:22)

 I got everything to work, except for images and horizontal line objects.
 Images are completely ignored and not imported into the document, whereas
 horizontal line objects are flushing themselves at the top of the current
 page.
 [...]


 Are you aware that those objects are on the Draw page object? Maybe that is
 the cause..

 /*  Add document2 to the new section */
xDocText.insertTextContent(xOrigDocTextCursor, xChildContent,
 false);
 [...]



 Regards,
 Cor



Re: [dev] Sections and appending documents

2009-03-04 Thread Grover Blue
 I have found forum posts where images were imported fine:

 http://www.oooforum.org/forum/viewtopic.phtml?t=45027


 You can see that in this example another method is used:
 insertDocumentFromURL


I am using that same method (with the exception of Java vs C++):

xDocI.insertDocumentFromURL(file:/// + tempDoc, loadProps);

I'll post updates if I find anything.


[dev] Sections and appending documents

2009-03-03 Thread Grover Blue
Does anyone have an example of inserting a section and merging two
XTextDocuments?

I'm stuck.  Below is what I have so far, but I'm not sure how to insert the
second document.

public void appendDocument(XTextDocument document1, XTextDocument document2)
throws IllegalArgumentException, java.lang.Exception {

XText xDocText = document1.getText();
XTextCursor xOrigDocTextCursor = xDocText.createTextCursor();
XNamed xChildNamed;
XTextContent xChildContent;
XPropertySet xOrigDocTextCursorProp;

xOrigDocTextCursor.gotoEnd(false);
xDocText.insertControlCharacter(xOrigDocTextCursor,
ControlCharacter.PARAGRAPH_BREAK, false);

xOrigDocTextCursorProp = (XPropertySet)
FileManager.getOOoUnoRuntimeQueryInterface(
XPropertySet.class,
xOrigDocTextCursor);

xOrigDocTextCursorProp.setPropertyValue(BreakType,
BreakType.PAGE_BEFORE);

xChildNamed = (XNamed) FileManager.getOOoUnoRuntimeQueryInterface(
XNamed.class,

FileManager.getOOoUnoRuntimeCreateInstance(com.sun.star.text.TextSection));

xChildNamed.setName(NewSection);
xChildContent = (XTextContent)
FileManager.getOOoUnoRuntimeQueryInterface(
XTextContent.class,
xChildNamed);

/*  Add document2 to the new section somehow */

xDocText.insertTextContent(xOrigDocTextCursor, xChildContent,
false);

Thanks


[dev] Java API differences between 2.4 and 3.x

2009-02-11 Thread Grover Blue
What are the Java API differences between 2.4 and 3.x?   I wrote software
using the 2.4 sdk, and it uses the 2.4 runtime.   Should I expect problems
compiling/running my 2.4 designed programs against v3?

Thanks


Re: [dev] extending the OpenOffice BugBounty Programm

2009-02-06 Thread Grover Blue
heck, simple:

1 start a twitter account and get 1000+ followers.  post a link.
2 post to digg
3 tell a few high profile bloggers about it.
4 inform writers/editors on tech news sites, like wired.com
5 send notices to computer science departments at universities (there has to
be an easy way to reach out to them - AMC?)
6 ?
7 profit.err, success



On Fri, Feb 6, 2009 at 11:45 AM, Martin Hollmichel 
martin.hollmic...@sun.com wrote:

 Hi,

 last year we initiated the bug bounty program (
 http://wiki.services.openoffice.org/wiki/BugBountyProgram and references
 below). Obviously we failed in spreading the information about this program,
 the feedback was very low.

 Before we extend the program we want to be sure to make it this time
 better, I'm thinking of:
 * promoting it on the main page (www.openoffice.org)
 * add an item on contributung page (contributing.openoffice.org)
 * encourage people to blog about it
 * many other things

 are there any volunteers available interested in spreading the news ?
 Are there any other ideas to make the Program more attractive ?
 or should we stop this effort because it's hopeless ?

 Martin

 references:

 http://www.mail-archive.com/annou...@openoffice.org/msg00145.html

 http://freelancefundraiser.wordpress.com/2008/11/10/openofficeorg-achieves-ten-million-downloads-at-the-end-of-its-beijing-conference/


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




-- 
If the American people ever allow private banks to control the issue of
their currency, first by inflation, then by deflation, the banks...will
deprive the people of all property until their children wake-up homeless on
the continent their fathers conquered... The issuing power should be taken
from the banks and restored to the people, to whom it properly belongs.
-- Thomas Jefferson

Government big enough to supply everything...is big enough to take
everything you have. The course of history shows that as a government grows,
liberty decreases --- Thomas Jefferson

www.CampaignForLiberty.org


Re: [dev] Duplex printer option?

2008-11-26 Thread Grover Blue
ok, i ended up configuring a second printer with a default setting of
duplex.  The problem with this solution is that when a document queues to
another print spool, the order of printing is not guaranteed.


For instance, if I print the following documents through the API in the
below order:

Document01 - Printer_Simplex
Document02 - Printer_Simplex
Document03 - Printer_Simplex
Document04 - Printer_Simplex
Document05 - Printer_Duplex
Document06 - Printer_Simplex
Document07 - Printer_Simplex

then that's the order I need them to print on the physical device.

However, they end up printing this way:
Document01 - Printer_Simplex
Document02 - Printer_Simplex
Document03 - Printer_Simplex
Document04 - Printer_Simplex
Document06 - Printer_Simplex
Document07 - Printer_Simplex
Document05 - Printer_Duplex


Which is wrong.  Dead wrong.


Is there a way to poll submitted print requests (via open office) in order
to pause processing until the duplexed item has printed?

Perhaps there is a spool setting available in windows where the network
printers are defined.



On Tue, Nov 25, 2008 at 2:34 PM, Grover Blue [EMAIL PROTECTED] wrote:

 I filed an issue for this:

 http://api.openoffice.org/issues/show_bug.cgi?id=96402

 Please consider voting for it, thanks.




 On Wed, Nov 12, 2008 at 9:50 PM, Grover Blue [EMAIL PROTECTED]wrote:

 Forgive my ignorance, but I thought that all print options were Open
 Office defined.  PrintRequestAttribute is for Java printing, not Open
 Office, right?

 On Mon, Nov 10, 2008 at 1:48 PM, James [EMAIL PROTECTED] wrote:

 On Mon, November 10, 2008 1:36 pm, Grover Blue wrote:
  I'm doing some batch printing of Writer templates in Java, and I need
 to
  specify duplex for some items.  Is there any way to specify duplex
  printing in the printer options for an XPrintable (or maybe it's XStyle
  since that's what the PrinterPaperTray option is available to)?  I
 can't
  find anything.  The printer for the template documents is set
 dynamiclly
  in Java, so any kind of dulpex setting made through Printer Setting is
  irrelevant.
 
  Thanks
 
 

 So you need Java:

  PrintRequestAttribute examples

* Sides class
  o Single or two sided printing.
  o Closed enumeration
  o ONE_SIDED
  o TWO_SIDED_LONG_EDGE
+ Same as DUPLEX
  o TWO_SIDED_SHORT_EDGE
+ Same as TUMBLE

 http://java.sun.com/products/jfc/tsc/articles/javaOne2001/595/index.html






-- 
If the American people ever allow private banks to control the issue of
their currency, first by inflation, then by deflation, the banks...will
deprive the people of all property until their children wake-up homeless on
the continent their fathers conquered... The issuing power should be taken
from the banks and restored to the people, to whom it properly belongs.
-- Thomas Jefferson

Government big enough to supply everything...is big enough to take
everything you have. The course of history shows that as a government grows,
liberty decreases --- Thomas Jefferson

www.CampaignForLiberty.org


Re: [dev] Duplex printer option?

2008-11-25 Thread Grover Blue
I filed an issue for this:

http://api.openoffice.org/issues/show_bug.cgi?id=96402

Please consider voting for it, thanks.



On Wed, Nov 12, 2008 at 9:50 PM, Grover Blue [EMAIL PROTECTED] wrote:

 Forgive my ignorance, but I thought that all print options were Open Office
 defined.  PrintRequestAttribute is for Java printing, not Open Office,
 right?

 On Mon, Nov 10, 2008 at 1:48 PM, James [EMAIL PROTECTED] wrote:

 On Mon, November 10, 2008 1:36 pm, Grover Blue wrote:
  I'm doing some batch printing of Writer templates in Java, and I need to
  specify duplex for some items.  Is there any way to specify duplex
  printing in the printer options for an XPrintable (or maybe it's XStyle
  since that's what the PrinterPaperTray option is available to)?  I
 can't
  find anything.  The printer for the template documents is set dynamiclly
  in Java, so any kind of dulpex setting made through Printer Setting is
  irrelevant.
 
  Thanks
 
 

 So you need Java:

  PrintRequestAttribute examples

* Sides class
  o Single or two sided printing.
  o Closed enumeration
  o ONE_SIDED
  o TWO_SIDED_LONG_EDGE
+ Same as DUPLEX
  o TWO_SIDED_SHORT_EDGE
+ Same as TUMBLE

 http://java.sun.com/products/jfc/tsc/articles/javaOne2001/595/index.html





[dev] Two Important Issues to Vote For - Please Support These

2008-11-25 Thread Grover Blue
These enhancements are a must for any proper Open Office development in a
corporate environment.  I consider the late of these feature a huge fail of
the API.  If you feel the same, please consider voting for these
enhancements.  Click on Vote for this issue on each of the issue pages.
Thanks.

Add a Duplex printing setting through API (XPrintable)
http://api.openoffice.org/issues/show_bug.cgi?id=96402

Extend service PrinterDescriptor with properties for paperbin(s)
http://api.openoffice.org/issues/show_bug.cgi?id=87495


Re: [dev] Duplex printer option?

2008-11-12 Thread Grover Blue
Forgive my ignorance, but I thought that all print options were Open Office
defined.  PrintRequestAttribute is for Java printing, not Open Office,
right?

On Mon, Nov 10, 2008 at 1:48 PM, James [EMAIL PROTECTED] wrote:

 On Mon, November 10, 2008 1:36 pm, Grover Blue wrote:
  I'm doing some batch printing of Writer templates in Java, and I need to
  specify duplex for some items.  Is there any way to specify duplex
  printing in the printer options for an XPrintable (or maybe it's XStyle
  since that's what the PrinterPaperTray option is available to)?  I
 can't
  find anything.  The printer for the template documents is set dynamiclly
  in Java, so any kind of dulpex setting made through Printer Setting is
  irrelevant.
 
  Thanks
 
 

 So you need Java:

  PrintRequestAttribute examples

* Sides class
  o Single or two sided printing.
  o Closed enumeration
  o ONE_SIDED
  o TWO_SIDED_LONG_EDGE
+ Same as DUPLEX
  o TWO_SIDED_SHORT_EDGE
+ Same as TUMBLE

 http://java.sun.com/products/jfc/tsc/articles/javaOne2001/595/index.html



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
If the American people ever allow private banks to control the issue of
their currency, first by inflation, then by deflation, the banks...will
deprive the people of all property until their children wake-up homeless on
the continent their fathers conquered... The issuing power should be taken
from the banks and restored to the people, to whom it properly belongs.
-- Thomas Jefferson

Government big enough to supply everything...is big enough to take
everything you have. The course of history shows that as a government grows,
liberty decreases --- Thomas Jefferson

www.CampaignForLiberty.org


[dev] Duplex printer option?

2008-11-10 Thread Grover Blue
I'm doing some batch printing of Writer templates in Java, and I need to
specify duplex for some items.  Is there any way to specify duplex printing
in the printer options for an XPrintable (or maybe it's XStyle since that's
what the PrinterPaperTray option is available to)?  I can't find
anything.  The printer for the template documents is set dynamiclly in Java,
so any kind of dulpex setting made through Printer Setting is irrelevant.

Thanks


Re: [dev] Selecting Output Bin When Printing

2008-03-27 Thread Grover Blue
I want to thank everyone for your help, especially for filing the issue.  Is
there any way to subscribe to issue in order to track their progress?

On Thu, Mar 27, 2008 at 7:00 AM, Cor Nouws [EMAIL PROTECTED] wrote:

 Hi Mathias,

 Mathias Bauer wrote (27-3-2008 11:12)
  Cor Nouws wrote:

  I understood that there ain't no API to access File|PrintSetup.
  Hopefully for you. I'm wrong ;-)
 
  Some printer attributes can bet set via XPrintable::setPrinter(), they
  are described in com.sun.star.view.PrinterDescriptor:
  [...]

 You are right. I stumbled over limited access of the printer
 properties/setup, as the OP did when looking for the output bin/tray.

  Seems that the PaperBin is not accessible via API.

 I tried to find the available printerbin names, as can be found in
 Format|Page setup, via the API and with use of the printername (from the
 service PrinterDescriptor).
 (Created handy tool to circumvent changing page-styles, just select the
 bins.)

  As VCL can handle the PaperBin explicitly I think that this is just an
  omission in the PrinterDescriptor service. Feel free to create an issue
  (in framework) for that.

 Done: #87495

 Thanks for your advice,
 Cor
 --

 The Year of 3 -2008- Het jaar van 3

 Cor Nouws
 Arnhem - Netherlands - nl.OpenOffice.org - marketing contact


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




[dev] Selecting Output Bin When Printing

2008-03-26 Thread Grover Blue
Does anyone know how to select the output bin/tray when printing an OOo
document from Java?

I know how to select the input tray;  PrinterPaperTray is being used.

These are my defined trays:

*INPUT TRAYS:*
Bypass Tray
Tray 1
Tray 2

*OUTPUT TRAYS*
Inner Tray 1 (Lower)


This is the code I use to set the input tray.

XTextDocument aTextDocument = (XTextDocument) UnoRuntime.queryInterface(
XTextDocument.class, xcomp);
XText xText = aTextDocument.getText();
XTextCursor xTextCursor = xText.createTextCursor();
XPropertySet xTextCursorProps = (XPropertySet) UnoRuntime.queryInterface(
XPropertySet.class, xTextCursor);
String pageStyleName = xTextCursorProps.getPropertyValue
(PageStyleName).toString();
XStyleFamiliesSupplier xSupplier = (XStyleFamiliesSupplier)
UnoRuntime.queryInterface(XStyleFamiliesSupplier.class, aTextDocument);
XNameAccess xFamilies = (XNameAccess) UnoRuntime.queryInterface(
XNameAccess.class, xSupplier.getStyleFamilies());
XNameContainer xFamily = (XNameContainer) UnoRuntime.queryInterface(
XNameContainer.class, xFamilies.getByName(PageStyles));
XStyle xStyle = (XStyle) UnoRuntime.queryInterface(XStyle.class,
xFamily.getByName(pageStyleName));
XPropertySet xStyleProps = (XPropertySet) UnoRuntime.queryInterface(
XPropertySet.class, xStyle);

xStyleProps.setPropertyValue(PrinterPaperTray,Tray 1);


There doesn't seem to be a way to set the output tray directly, but there
must be a way to access the same driver information that is saved within the
PrintSetup section of a document. I mean, OOo Writer can access and save
this information, why can't it be done through Java for my purposes?

Thanks
-John


[dev] XCloneable on a Writer document

2007-11-01 Thread Grover Blue
I'm trying to clone a Writer object, but I can't seem to get it to work.
Every time I request the XCloneable interface, my xClone object is NULL.
What am I doing wrong?

NOTE: Irrelevant code has not be included in this email

private XComponent getDocument(String doc) throws Exception {
PropertyValue[] loadProps = createPropertyValueArray(
createPropertyValue(AsTemplate,new Any(Type.BOOLEAN,
Boolean.TRUE)),
createPropertyValue(Hidden,new Any(Type.BOOLEAN,
Boolean.TRUE))
);
XComponent xComp;
try {
xComp = componentImport(doc, loadProps);
} catch (com.sun.star.uno.Exception ex) {
throw new Exception (Failed To load, ex);
}

return createCopy(xComp);
}

private XComponent createCopy(XComponent xComp) throws Exception {
XComponent newComp = null;

// xClone is always NULL
com.sun.star.util.XCloneable xClone = (com.sun.star.util.XCloneable)
   UnoRuntime.queryInterface(
com.sun.star.util.XCloneable.class,xComp);

if(xClone != null) {
newComp = (XComponent)xClone.createClone();
}else{
throw new Exception (Component could not be cloned., ex);
}
return newComp;
}

I even tried adding the following to the properties list:

fileManager.createPropertyValue(FilterName,new Any(Type.STRING,
DocumentType.WRITER_OPENDOCUMENT_TEXT_TEMPLATE))


Re: [dev] XCloneable on a Writer document

2007-11-01 Thread Grover Blue
Thanks for the info.  I find OOo documentation very confusing.

On 11/1/07, Ariel Constenla-Haile [EMAIL PROTECTED]
wrote:

 Hi Grover,

 Grover Blue escribió:
  I'm trying to clone a Writer object, but I can't seem to get it to work.
  Every time I request the XCloneable interface, my xClone object is NULL.
  What am I doing wrong?

 If you see the uses of this interface:


 http://api.openoffice.org/docs/common/ref/com/sun/star/util/XCloneable-xref.html

 you'll see that the service com.sun.star.star.TextDocument does not
 support this interface: that why queryInterface returns NULL instead of
 a reference.

 You can try loading the component from it's URL and then storing it to a
 different one:

 com.sun.star.frame.XStorable :

 http://api.openoffice.org/docs/common/ref/com/sun/star/frame/XStorable.html

 Bye
 Ariel


 --
 Ariel Constenla-Haile
 La Plata, Argentina

 [EMAIL PROTECTED]
 [EMAIL PROTECTED]

 http://www.arielconstenlahaile.com.ar/ooo/



 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]