[dev] delete the next charakter on cursor-position - join paragraphs

2006-05-03 Thread Christoph Lutz

Hi,

I have got a simple collapsed TextCursor and I would like to delete the next
charakter in a programmatic way without using the dispatch-framework(!). The
function should behave exakt like pressing the DEL-Key in a
writer-document. To do that, I tried the following basic code:

REM the cursor is already present
cursor.goRight(1, false)
cursor.goLeft(1, true)
cursor.setString()

now assume the following text content:

here is some textCURSOR_POSPAR_BREAK
and this is the next text

where CURSOR_POS is the position of my collapsed TextCursor and
PAR_BREAK is a new-paragraph-charakter (shown with view-nonprinting
Charakters).
Now running the above code produces a joined version of both paragraphs
here is some textand this is the next text, and this is what I want!

But there is one special case in which the above code behaves different from
pressing the DEL-key:

assume the following content:

here is some textCURSOR_POSPAR_BREAK
TEXT_TABLE
PAR_BREAK

where TEXT_TABLE is a text-Table inserted directly after the first
paragraph. Pressing the del-key at the CURSOR_POS would ignore the
deletion as a texparagraph and a texttable cannot be joined. Wheras running
the above code, deletes the table and thats what I don't want to get.

Any Ideas how to avoid the removal of the texttable (without using the
dispatch-framework!) are welcome

best regards,
Christoph


Re: [dev] Building on Windows

2006-05-03 Thread Subir Pradhanang

Hi Volker,

On 5/2/06, Volker Quetschke [EMAIL PROTECTED] wrote:


Can you check which of these files is missing

$PSDK_HOME/Include/AdoCtint.h
$PSDK_HOME/Include/SqlUcode.h
$PSDK_HOME/Include/usp10.h
$PSDK_HOME/lib/unicows.lib

and report back?


The missing file was unicows.lib. What I did is copied unicows.lib
from C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\Lib to $PSDK_HOME/lib/ and it worked.

Thanks,
Subir

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



Re: [dev] directories

2006-05-03 Thread Jürgen Schmidt

Yoann Babel wrote:

Hi,
I've been searching the net for some time now, and I can't find any 
documentation on the directeries used by OpenOffice. I mean the 
directories under ~/.openoffice.org2/user

.../uno_packages


uno_packages is used to manage extensions. It's a private directory and 
should keep in untouched nomrally.


Juergen


.../psprint
.../autocorr

etc...

Is there some documentation to describe de files we can found there, and 
their format, or some stuff like that ?


Yoann

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



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



Re: [dev] Using pdf output filters from Java

2006-05-03 Thread Stephan Wunderlich

Hi Paul,

For every PDF filter type a com.sun.star.task.ErrorCodeIOException is  
thrown but not when using the HTML (StarWriter) filter.


Is there something obvious that I'm missing? Do I need to add any  extra 
jars to the classpath?


if you opened the documents you plan to store to PDF in hidden mode 
than this is a known issue which will be fixed in OOo 2.0.3 ... as a 
workaround you could open your documents visible before converting them.


Hope that helps

Regards

Stephan

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



Re: [dev] delete the next charakter on cursor-position - join paragraphs

2006-05-03 Thread Stephan Wunderlich

Hi Christoph,


I think this is very strange... bug or feature?


I think the two cursors should behave in the same way ... so I'd say it 
is worth an issue for further investigation :-)


Regards

Stephan

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



Re: [dev] Using pdf output filters from Java

2006-05-03 Thread Tom Schindl
A good starting point might be here:
http://codesnippets.services.openoffice.org/Office/Office.ConvertDocuments.snip

Tom

Paul Edmondson wrote:
 Hi,
 
 I'm having problems saving documents using the various PDF output 
 filters from a Java servlet and after reading through all the  examples
 and various questions I've become stuck and would like some  help or
 advice from the OOo experts.
 
 I can save MS Word and OOo Writer files as HTML but not as PDF.
 
 I am using the following environment:-
 
 - OpenOffice 2.0.2
 - Debian etch (x86_64)
 - JDK-1.5.0_06
 - tomcat 5.5.17
 - CLASSPATH (set within $CATALINA_HOME/bin/setclasspath.sh) /usr/lib/
 openoffice/program/classes/juh.jar:/usr/lib/openoffice/program/
 classes/jurt.jar:/usr/lib/openoffice/program/classes/ridl.jar:/usr/
 lib/openoffice/program/classes/unoloader.jar:/usr/lib/openoffice/
 program/classes/unoil.jar:/usr/lib/openoffice/program
 - Using Xvfb
 
 The snippet of code that creates the PDF files is as follows. (Most  of
 this is adapted from the ConverterServlet in the examples folder  for
 the SDK together with parts adapted from ooo-cgi):-
 
 // Getting an object that will offer a simple way to store a 
 document to a URL.
 XStorable xstorable = (XStorable)
 UnoRuntime.queryInterface(XStorable.class, objectDocumentToStore);
 
 // List of output filters from ooo-cgi (HTML added for testing
 other  formats.)
 String[] pdfFormats = {writer_pdf_Export, 
 writer_web_pdf_Export,
 writer_globaldocument_pdf_Export, 
 calc_pdf_Export,
 impress_pdf_Export, draw_pdf_Export, 
 math_pdf_Export, HTML (StarWriter)};
 // Preparing properties for converting the document
 propertyvalue = new PropertyValue[1];
 for(int i = 0; i  pdfFormats.length; i++) {
 propertyvalue[0] = new PropertyValue();
 propertyvalue[0].Name = FilterName;
 propertyvalue[0].Value = pdfFormats[i];
 
 // Storing and converting the document
 try {
 xstorable.storeToURL(filePrefix + 
 convertedFile.toString(), propertyvalue);
 debugLog.debug(Document saved in this format:   +
 pdfFormats[i]);
 break;
 } catch (Exception e) {
 debugLog.debug(Document not saved in this  format:
  + pdfFormats[i], e);
 }
 }
 
 XCloseable xcloseable = (XCloseable)
 UnoRuntime.queryInterface(XCloseable.class, xstorable);
 
 // Closing the converted document
 if (xcloseable != null) {
 xcloseable.close(false);
 } else {
 // If Xcloseable is not supported (older versions,
 // use dispose() for closing the document
 XComponent xComponent = (XComponent)
 UnoRuntime.queryInterface(XComponent.class, xstorable);
 xComponent.dispose();
 }
 
 
 For every PDF filter type a com.sun.star.task.ErrorCodeIOException is 
 thrown but not when using the HTML (StarWriter) filter.
 
 Is there something obvious that I'm missing? Do I need to add any  extra
 jars to the classpath?
 
 
 Thanks in advance for any help or advice.
 
 
 
 Paul Edmondson.
 
 
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



RE: [dev] Using pdf output filters from Java

2006-05-03 Thread Yeatts, Garnett W. CONTR J9C329
Paul,

It looks like you are trying to loop through mix-matched
filters.  Do you know what type of document you are dealing with?  I
think the filters need to be matched to the document type, but you are
trying to apply different filter types (calc, text, draw and impress) to
a single document.  

Another possible problem may be that once you store it as
another type - your original xStorage may be converted to the new type.
I am not certain about this one - but keep it in mind.

I am doing something very similar - see my attached file.  I
have gotten similar errors when I mix-match files/filters (such as when
users use incorrect file extension which causes me to pick the wrong
filter).

Good luck.

Garnett

-Original Message-
From: Paul Edmondson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 03, 2006 10:09 AM
To: dev@openoffice.org
Subject: [dev] Using pdf output filters from Java

Hi,

I'm having problems saving documents using the various PDF output  
filters from a Java servlet and after reading through all the  
examples and various questions I've become stuck and would like some  
help or advice from the OOo experts.

I can save MS Word and OOo Writer files as HTML but not as PDF.

I am using the following environment:-

- OpenOffice 2.0.2
- Debian etch (x86_64)
- JDK-1.5.0_06
- tomcat 5.5.17
- CLASSPATH (set within $CATALINA_HOME/bin/setclasspath.sh) /usr/lib/ 
openoffice/program/classes/juh.jar:/usr/lib/openoffice/program/ 
classes/jurt.jar:/usr/lib/openoffice/program/classes/ridl.jar:/usr/ 
lib/openoffice/program/classes/unoloader.jar:/usr/lib/openoffice/ 
program/classes/unoil.jar:/usr/lib/openoffice/program
- Using Xvfb

The snippet of code that creates the PDF files is as follows. (Most  
of this is adapted from the ConverterServlet in the examples folder  
for the SDK together with parts adapted from ooo-cgi):-

// Getting an object that will offer a simple way to store a  
document to a URL.
 XStorable xstorable = (XStorable) 
UnoRuntime.queryInterface(XStorable.class, objectDocumentToStore);

// List of output filters from ooo-cgi (HTML added for testing
other  
formats.)
 String[] pdfFormats = {writer_pdf_Export,  
writer_web_pdf_Export,
 writer_globaldocument_pdf_Export,  
calc_pdf_Export,
 impress_pdf_Export, draw_pdf_Export,  
math_pdf_Export, HTML (StarWriter)};
 // Preparing properties for converting the document
 propertyvalue = new PropertyValue[1];
 for(int i = 0; i  pdfFormats.length; i++) {
 propertyvalue[0] = new PropertyValue();
 propertyvalue[0].Name = FilterName;
 propertyvalue[0].Value = pdfFormats[i];

 // Storing and converting the document
 try {
 xstorable.storeToURL(filePrefix +  
convertedFile.toString(), propertyvalue);
 debugLog.debug(Document saved in this format:   
+ pdfFormats[i]);
 break;
 } catch (Exception e) {
 debugLog.debug(Document not saved in this  
format:  + pdfFormats[i], e);
 }
 }

 XCloseable xcloseable = (XCloseable) 
UnoRuntime.queryInterface(XCloseable.class, xstorable);

 // Closing the converted document
 if (xcloseable != null) {
 xcloseable.close(false);
 } else {
 // If Xcloseable is not supported (older versions,
 // use dispose() for closing the document
 XComponent xComponent = (XComponent) 
UnoRuntime.queryInterface(XComponent.class, xstorable);
 xComponent.dispose();
 }


For every PDF filter type a com.sun.star.task.ErrorCodeIOException is  
thrown but not when using the HTML (StarWriter) filter.

Is there something obvious that I'm missing? Do I need to add any  
extra jars to the classpath?


Thanks in advance for any help or advice.



Paul Edmondson.


  

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

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

[dev] Fwd: Massachusetts Request for Information (RFI) - ODF Plug-in for Microsoft Office Suite

2006-05-03 Thread Louis Suarez-Potts

This is fairly important...


Begin forwarded message:


From: Boldman, Claudia (ITD) [EMAIL PROTECTED]
Date: May 3, 2006 5:16:59 PM EDT (CA)
To: Boldman, Claudia (ITD) [EMAIL PROTECTED]
Subject: Massachusetts Request for Information (RFI) - ODF Plug-in  
for Microsoft Office Suite


This afternoon the Commonwealth of Massachusetts, Information  
Technology Division issued a Request for Information (RFI)  
regarding Open Document Format Plug-ins for the Microsoft Office  
Suite. Through this RFI The Commonwealth seeks information  
pertaining to the existence or development of a plug-in component  
or other converter options to be used with Microsoft Office that  
would allow Microsoft Office to easily open, render, and save to  
ODF files, and also allow translation of documents between  
Microsoft's binary (.doc, .xls, .ppt) or XML formats and ODF.  
Respondents responding to this RFI need not be on state contract.




The RFI is posted on the Commonwealth’s procurement website at  
www.comm-pass.com. In the middle of the page, click on “Search for  
solicitations”, enter “ODF” in Keyword box, and view the open  
solicitation (RFI 06-1). Click on the “Intent” tab to access the  
RFI document.




As we are interested in gathering information about all current and  
potential efforts in this area we would appreciate any assistance  
you can give us in getting the word out to as many interested  
parties as possible. Thanks in advance for your help.




Claudia Boldman

Chief Planning and Strategy Officer

Information Technology Division

www.mass.gov/itd








smime.p7s
Description: S/MIME cryptographic signature


[dev] OpenDocument Format = ISO 26300

2006-05-03 Thread Louis Suarez-Potts

All,

1 May 2006: The International Standards Organisation has today  
approved the standard file format to be used worldwide for the  
storage of files produced by office software (word processor  
documents, spreadsheets, presentations, drawings, etc.). For the  
first time in the history of computing, software users will be  
guaranteed that they will be able to use their data in any compliant  
software package, both now and in the future. The point of an open  
standard is that any compliant application can use it.


As Simon Phipps, the Chief Open Source Officer at Sun Microsystems,  
observed,


This is a landmark moment for the Free/Open Source Software  
movement. An innovation that started here [at OpenOffice.org] has  
been reviewed, adopted and now endorsed at the highest level as an  
international standard. We now have a standard for productivity  
documents that is recognised by governments, which often require ISO  
approval.


The OpenOffice.org productivity suite fully supports the new ISO/IEC  
26300 standard (and since version 2.0 has has fully supported the  
OpenDocument format on which it is based).  The Project has led the  
world in charting a new path.


Louis Suarez-Potts, the OpenOffice.org Community Manager writes,

The approval by the ISO helps level the playing field and helps  
clarify what is at stake: your intellectual property, your right to  
use innovative software. The open standard means not only that your  
property is not held hostage to the company making the application  
but also that new applications, new extensions, new ways of doing  
things can be created. The user wins.


The time is now, the tools are here, the freedom is yours.


-OpenOffice.org



About OpenOffice.org

The OpenOffice.org Community is an international team of volunteer and
sponsored contributors who develop, support, and promote the leading
open-source office productivity suite, OpenOffice.org®.

OpenOffice.org supports the Open Document Format for Office
Applications (OpenDocument) OASIS Standard (ISO/IEC 26300) as well as  
legacy industry

file formats and is available on major computing platforms in over 65
languages. OpenOffice.org is provided under the GNU Lesser General
Public Licence (LGPL).

The OpenOffice.org Community acknowledges generous sponsorship from a
number of companies, including Sun Microsystems, the founding sponsor  
and

primary contributor.


Links

The OpenOffice.org Community can be found at http://www.openoffice.org
The OpenOffice.org office productivity suite may be downloaded free of
charge from http://download.openoffice.org
Further information about the suite may be found at
http://www.openoffice.org/product/

Press Contacts

Jacqueline McNally (UTC +08h00)
OpenOffice.org Marketing Project Lead
[EMAIL PROTECTED]
+61 (8) 9474-3021

John McCreesh (UTC +01h00)
OpenOffice.org Marketing Project Co-Lead
[EMAIL PROTECTED]
+44 (0)7 810 278 540

Cristian Driga (UTC +0200)
OpenOffice.org Marketing Project Co-Lead
[EMAIL PROTECTED]
+40 7887 000 60

Louis Suarez-Potts (UTC -04h00)
OpenOffice.org Community Manager
[EMAIL PROTECTED]
+1 (416) 625 3843

Worldwide Marketing Contacts

http://marketing.openoffice.org/contacts.html








smime.p7s
Description: S/MIME cryptographic signature


[dev] bootstrap error: cp cannot stat dmake: no such file or directory

2006-05-03 Thread Work Klo
Dear all,

I am building OO source with CVS tag: OOA680_m1.  I have built it once last 
month and everything works fine.  (My machine is a Windows XP.)

Last week I rebuilt my machine.  I tried to build the same source.  I was stuck 
in the configure part.  After some searching, I find out there is a space in my 
PATH environment variable that is causing the problem.  I resolve my problem by 
checking out this: 
http://www.openoffice.org/servlets/ReadMsg?listName=devmsgNo=16246

Now I get pass the configure part.  I am onto the bootstrap part.  I open up a 
cygwin windows, cd to my source directory (/cygdrive/d/OOA680_m1) and type 
./bootstrap

I get this error message:
cp: cannot stat '/cygdrive/d/OOA680_m1/dmake/dmake.exe': No such file or 
directory

I check the OOA680_m1/dmake directory.  There is no dmake.exe.  Hum...  Is the 
dmake.exe built during the configure part, or during the bootstrap part?

Please help.

___
 YM - 離線訊息
 就算你沒有上網,你的朋友仍可以留下訊息給你,當你上網時就能立即看到,任何說話都冇走失。
 http://messenger.yahoo.com.hk