Re: [ui-dev] Contribition
Muddu Ahmed wrote: Hi Sir, I am Moieed Ahmed… a registered member @ openoffice.org with the username: [EMAIL PROTECTED] / moieed I have been working on spreadsheet applications and would like to contribute my work. I have recently developed a *multidimensional spreadsheet*application in JAVA which closely resembles Quantrix. and I think it would be a gr8 add-on. Please reply if you are interested, Thank you for your time and consideration, Regards Hi, I forward your message to the sc-dev mailing list. I think it fits best there. As you're not subscribed to the ui-dev mailing list I cc you. Regards, Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[dev] exporting cross references to PDF?
Hi, is there anything planned to add the functionality when exporting a document as PDF, to export cross references too? PDF supports sth. like cross references afair. -- Oliver Lehmann http://www.pofo.de/ http://wishlist.ans-netz.de/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Seeking help/ideas on making work on all (Linux) distributions ...
Hi Rony, On Tue, Mar 06, 2007 at 08:12:40PM +0100, Rony G. Flatscher wrote: > > it has been my understanding that the > class and its bootstrap() method > are meant to allow bootstrapping OpenOffice in an easy manner/fashion on > any operating system. > > As I have reported, on some Linux distributions that I have come to look > at, the bootstrapping using does > not work! Maybe your distribution ships a crippled SDK. Check whether you have a valid unowinreg.dll see e.g. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=377531 > > In the meantime I was able to get in contact with Rene Engelhard, who > has been packaging OOo for Debian according to the documented OOo rules, > but in the process has been able to follow the standardized Linux > installation rules. The way vanilla OOo installs by default is perfectly within the standards as wel... > [...] > So it seems to me that Rene tried hard to create an OOo distribution > which adheres to both, the OOo and the Debian standards. > However, it seems too, that using 's > bootstrap does not work, as it is not able to find soffice! > :-(( Try with a vanilla build first, then you can shove it off to the paths or something, or give the background details why you think it is the paths that are the problem. ciao Christian -- NP: nichts - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[dev] An example program that should work on all platforms from the commandline ... (Re: [dev] Seeking help/ideas on making work on all (Linux) distributions ...
Hi there, the following example program runs on many installations/platforms. However, it *should* run flawlessly on *any* OOo installation: cut here ("CreateTextDocument.java")) import com.sun.star.beans.PropertyValue; import com.sun.star.comp.helper.Bootstrap; import com.sun.star.frame.XComponentLoader; import com.sun.star.frame.XDesktop; import com.sun.star.lang.XComponent; import com.sun.star.lang.XMultiComponentFactory; import com.sun.star.text.XText; import com.sun.star.text.XTextDocument; import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.XComponentContext; class CreateTextDocument { public static void main (String args[]) { try { XComponentContext xContext=Bootstrap.bootstrap(); // bootstrap UNO XMultiComponentFactory xMCF=xContext.getServiceManager(); if (xMCF != null) { Object oDesktop=xMCF.createInstanceWithContext("com.sun.star.frame.Desktop", xContext); XDesktop xDesktop=(XDesktop) UnoRuntime.queryInterface(XDesktop.class, oDesktop); XComponentLoader xComponentLoader=(XComponentLoader) UnoRuntime.queryInterface(XComponentLoader.class, xDesktop); String url="private:factory/swriter";// define a text document PropertyValue noProps[]=new PropertyValue[0];// no properties XComponent xWriterComponent=xComponentLoader.loadComponentFromURL( url, "_blank", 0, noProps); // Fortsetzung nächste Seite ... // ... Fortsetzung von vorheriger Seite XTextDocument xTextDocument=(XTextDocument) UnoRuntime.queryInterface(XTextDocument.class, xWriterComponent); XText xText=xTextDocument.getText(); xText.setString("Hallo Chemnitz, hier spricht Java!"); } } catch( Exception e) { e.printStackTrace(System.err); System.exit(1); } System.exit(0); } } cut here Setup the environment such that CLASSPATH points to the following OOo jars (wherever they are installed on the target system): jurt.jar, unoil.jar, ridl.jar, and juh.jar (sandbox.jar is not needed anymore, starting with OOo v2.0). Then compile the program with the Java compiler (javac CreateTextDocument.java) and run the compiled class with "java CreateTextDocument". Regards, ---rony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[dev] Seeking help/ideas on making work on all (Linux) distributions ...
Hi there, it has been my understanding that the class and its bootstrap() method are meant to allow bootstrapping OpenOffice in an easy manner/fashion on any operating system. As I have reported, on some Linux distributions that I have come to look at, the bootstrapping using does not work! In the e-mails discussions in this group the reason was seen in a directory structure that would not structured the way that OOo (the helper class?) would expect it to be and hence would not be able to find the necessary pieces to get OOo started up. As being able to start OOo easily from the commandline *is* very important for many reasons it would be therefore very important to be sure that the helper class (OOo itself?) can successfully work on all distributions and succesfully start-up from any configuration. Especially, if these distributions do re-package OOo in a standardized way it seems, which has become state of the art on those distributions! --- In the meantime I was able to get in contact with Rene Engelhard, who has been packaging OOo for Debian according to the documented OOo rules, but in the process has been able to follow the standardized Linux installation rules. This is (with his permission) what he wrote: And this directory structure *IS* intact. we have /program where all libs are and we have /program/classes (which indeed get changed, though as it's a symlink to a sane location following the standard. But the path is changed in the OOo configuration, too to not look in classes/ but in /usr/share/java/openoffice). I even bit into the bullet and added /usr/bin/soffice which apparently is needed for making the bootstrap thing work.. So it seems to me that Rene tried hard to create an OOo distribution which adheres to both, the OOo and the Debian standards. However, it seems too, that using 's bootstrap does not work, as it is not able to find soffice! :-(( --- Being stuck right now, I would request some suggestions/help on how to proceed from here in order to make sure that the helper class is truly able to startup OOo on any OOo installation that adheres to the installation rules (which seems to be the case with the Debian package). It would be quite awkward, if the only resolution at hand would be to advise people to rip off an OOo installation which adheres to its platform standards, and install the single-tree'd version that can be downloaded from OOo's home, as this would imply that in reality there was no freedom to adapt the OOo installation tree according to the rules of the host system. Thankful for any ideas/hints/help! ---rony
[dev] shlxthdl.res Serbian Build error
Hello when building Localized SR-YU OOo 2.1 build breaks. I could not find anything similar in mailing lists here is the output of break in shell module any ideas tnx :) mv ../../../../wntmsci11.pro/misc/shlxthdl/shlxthdl.ulf.wntmsci11.pro ../../../. ./wntmsci11.pro/misc/shlxthdl/shlxthdl.ulf /bin/rm -f ../../../../wntmsci11.pro/misc/shlxthdl/shlxthdl.ulf.wntmsci11.pro guw.exe ../../../../wntmsci11.pro/bin/lngconvex.exe -ulf ../../../../wntmsci11.p ro/misc/shlxthdl/shlxthdl.ulf -rc ../../../../wntmsci11.pro/res/shlxthdl.rc -rct rctmpl.txt -rch rcheader.txt -rcf rcfooter.txt -- Making: ../../../../wntmsci11.pro/res/shlxthdl.res guw.exe rc -I. -I../../../../wntmsci11.pro/inc/shlxthdl -I/cygdrive/c/PROGRA~1/ MICROS~4/include/mfc -I../inc -I../../../../inc/pch -I../../../../inc -I../../.. /../WIN/inc -I../../../../wntmsci11.pro/inc -I. -I/cygdrive/c/src/OOE680_m6/solv er/680/wntmsci11.pro/inc/stl -I/cygdrive/c/src/OOE680_m6/solver/680/wntmsci11.pr o/inc/external -I/cygdrive/c/src/OOE680_m6/solver/680/wntmsci11.pro/inc -I/cygdr ive/c/src/OOE680_m6/solenv/wntmsci11/inc -I/cygdrive/c/src/OOE680_m6/solenv/inc -I/cygdrive/c/src/OOE680_m6/res -I/cygdrive/c/src/OOE680_m6/solver/680/wntmsci11 .pro/inc/stl -I/cygdrive/c/J2SDK1~1.2_1/include/win32 -I/cygdrive/c/J2SDK1~1.2_1 /include -I/cygdrive/c/PROGRA~1/MICROS~4/include -I/cygdrive/c/PROGRA~1/MICROS~2 /VC/include -I/cygdrive/c/src/OOE680_m6/solver/680/wntmsci11.pro/inc/offuh - I. -I../../../../res -I. -I/cygdrive/c/src/OOE680_m6/solver/680/wntmsci11.pro/re s -I/cygdrive/c/PROGRA~1/MICROS~4/include/atl -I/cygdrive/c/PROGRA~1/MICROS~4/in clude/mfc -r -DWIN32 -fo../../../../wntmsci11.pro/res/shlxthdl.res ../../../../ wntmsci11.pro/res/shlxthdl.rc ..\..\..\..\wntmsci11.pro\res\shlxthdl.rc(265) : error RC2151 : cannot reuse str ing constants, 1014(0x3F6) - "??" already defined. Cannot add 1014(0x3F6) - "??". ..\..\..\..\wntmsci11.pro\res\shlxthdl.rc(266) : error RC2151 : cannot reuse str ing constants, 1036(0x40C) - "??:" already defined. Cannot add 1036(0x40C) - "??:". ..\..\..\..\wntmsci11.pro\res\shlxthdl.rc(267) : error RC2151 : cannot reuse str ing constants, 1015(0x3F7) - "" already defined. Cannot add 1015(0x3F7) - "? ???". ..\..\..\..\wntmsci11.pro\res\shlxthdl.rc(268) : error RC2151 : cannot reuse str ing constants, 1037(0x40D) - ":" already defined. Cannot add 1037(0x40D) - " :". ..\..\..\..\wntmsci11.pro\res\shlxthdl.rc(269) : error RC2151 : cannot reuse str ing constants, 1016(0x3F8) - "?" already defined. Cannot add 1016(0x3F8) - " ?". ..\..\..\..\wntmsci11.pro\res\shlxthdl.rc(270) : error RC2151 : cannot reuse str ing constants, 1038(0x40E) - "?:" already defined. Cannot add 1038(0x40E) - "?:". ..\..\..\..\wntmsci11.pro\res\shlxthdl.rc(271) : error RC2151 : cannot reuse str ing constants, 1017(0x3F9) - "?? " already defined. Cannot add 1017(0x3F 9) - "?? ". ..\..\..\..\wntmsci11.pro\res\shlxthdl.rc(272) : error RC2151 : cannot reuse str ing constants, 1018(0x3FA) - "?" already defined. Cannot add 1018(0x3FA) - "?". ..\..\..\..\wntmsci11.pro\res\shlxthdl.rc(273) : error RC2151 : cannot reuse str ing constants, 1045(0x415) - "?:" already defined. Cannot add 1045(0x415 ) - "?:". ..\..\..\..\wntmsci11.pro\res\shlxthdl.rc(274) : error RC2151 : cannot reuse str ing constants, 1019(0x3FB) - "" already defined. Cannot add 1019(0x3FB) - "". ..\..\..\..\wntmsci11.pro\res\shlxthdl.rc(275) : error RC2151 : cannot reuse str ing constants, 1020(0x3FC) - "??" already defined. Cannot add 1020(0x3FC) - "??". ..\..\..\..\wntmsci11.pro\res\shlxthdl.rc(276) : error RC2151 : cannot reuse str ing constants, 1021(0x3FD) - "???" already defined. Cannot add 1021(0x3FD) - "???". ..\..\..\..\wntmsci11.pro\res\shlxthdl.rc(277) : error RC2151 : cannot reuse str ing constants, 1039(0x40F) - "???" already defined. Cannot add 1039(0x40F) - "???". ..\..\..\..\wntmsci11.pro\res\shlxthdl.rc(278) : error RC2151 : cannot reuse str ing constants, 1022(0x3FE) - "OLE ???" already defined. Cannot add 1022(0x3F E) - "OLE ???". ..\..\..\..\wntmsci11.pro\res\shlxthdl.rc(279) : error RC2151 : cannot reuse str ing constants, 1023(0x3FF) - "?" already defined. Cannot add 1023(0x3FF) - "?". ..\..\..\..\wntmsci11.pro\res\shlxthdl.rc(280) : error RC2151 : cannot reuse str ing constants, 1024(0x400) - "" already defined. Cannot add 1024(0x400) - "? ???". ..\..\..\..\wntmsci11.pro\res\shlxthdl.rc(281) : error RC2151 : cannot reuse str ing constants, 1025(0x401) - "???" already defined. Cannot add 1025(0x401) - "???". ..\..\..\..\wntmsci11.pro\res\shlxthdl.rc(282) : error RC2151 : cannot reuse str ing constants, 1026(0x402) - "??" already defined. Cannot add 1026(0x402) - "??". ..\..\..\..\wntmsci11.pro\res\shlxthdl.rc(283) :
Re: [dev] Adding support for overlined text in Writer
Hi Martin, On 03/06/07 02:11, Martin Whitaker wrote: This is a longstanding RFE (issue #5991) and one I would like to see implemented. I am prepared to develop the necessary patches, but would like some guidance. thank you for your interest in OpenOffice.org. Implementing this feature involves quite some changes to the code. Let's try. The obvious way to present this to the user is via a new list box in the Format->Character->Font Effects form that provides the same options as the Underlining list box. This is easy enough to implement (I've already patched the code to do it). The problem comes in adding the infrastructure to attach the new attributes to selected text. Again, the obvious solution is to simply duplicate the code that supports underlined text. However, having started down this route, I soon realised this was going to be a major change to the code base, modifying many class declarations across several modules. A way of significantly reducing the quantity of changes required would be to change the definition of the enumeration type FontUnderline so that it could represent all possible combinations of underline and overline style (i.e. store the underline and overline styles as two separate bit fields within a FontUnderline value). So the question is, which would be more acceptable - a patch that changed many files and classes, or a patch that contains fewer changes, but is a bit of a kludge? I think the patch that changes many files and classes is the way to go here. You would have to start creating a new SvxOverlineItem, analogous to the SvxUnderlineItem. Finally, I am currently developing my patches against the 680_m6 (version 2.1.0) snapshot. What tag point should I be using? I would suggest to move to a more current SRC680 milestone (205 is the latest right now) to avoid conflicts during integration. I can also offer to create a cws for you. Please sent any further questions to the Writer mailing list (dev@sw.openoffice.org). Best regards, Frank -- Frank Meies (fme) - OpenOffice.org Writer OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Finding automatic page breaks
Hi Ian, On 03/06/07 10:14, ianmcr wrote: I translated the macro to C++ and the approach seems to work quite well. I first iterate from the end to the start of the document inserting pagebreak markers (ie. pagebreak bookmarks) with paragraphs. Then I iterate forwards checking the properties of the paragraph to find the start of a new page. This works well for paragraphs. However, there is a problem with tables. If a paragraph is a table and I insert a book mark is the bookmark a property of the table "paragraph" or the table cell containing a paragraph? This is an issue since a table can span the page break (ie. a table accross mutiple pages.) I don't think this bookmark solution is suitable for documents with tables. If there is a table with an automatic page break, each cell in the split line would have an automatic page break (if the line is allowed to split). In this case you would have to add the bookmark to the correct position inside each of these cells. I don't know if this is possible using the API, I guess it's not. Best regards, Frank -- Frank Meies (fme) - OpenOffice.org Writer OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Finding automatic page breaks
The export filter uses our internal Accessible HTMLCreator which limits the use of a XSLT. We are planning to provide a XML-based intermediate step in the future. Unfortunately, at the minute I'm restricted to a "macro" based solution. ashok _ wrote: > > I hope you are using an XML XSLT filter to write the export filter > rather than use a basic macro to iterate through the document. > > The issue of soft page breaks, i suspect you will have to use XSL-FO > to identify the point of the page break.. since page length is > captured in terms of length (in cms) as part of page layout... my > point is, the soft page break is never recorded on the opendocument > but rather determined at the point of display by writer. (you can > look at this page-layout attribute by unzipping an openoffice document > with soft page breaks and viewing the styles.xml and searching for > . > > Maybe a way out for you could be to use both a macro and an XSLT > filter. First use the macro to convert soft page breaks to hard page > breaks using a cursor to iteratively mark end of page for the writer > document (you can generate a temporary copy of the document since you > dont want to change your original...). Then run an XSLT filter on > this document to transform to xhtml... page breaks should now be easy > to identify since the manual page breaks are recorded in > content.xml > > > > > On 3/2/07, ianmcr <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> I'm fairly new to OOo. I'm working on an export filter to produce >> accessible >> html. I'm iterating over the text and identifying paragraphs, tables etc. >> However, I need a reliable method of identifing soft page breaks. >> >> (At the minute I use the page cursor to insert a marker string at the end >> of >> each page. However, this causes problems with renumbering lists, headings >> etc). >> >> Is there a recommended method? >> >> >> -- >> View this message in context: >> http://www.nabble.com/Finding-automatic-page-breaks-tf417.html#a9268943 >> Sent from the openoffice - dev mailing list archive at Nabble.com. >> >> - >> 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] > > > -- View this message in context: http://www.nabble.com/Finding-automatic-page-breaks-tf417.html#a9328596 Sent from the openoffice - dev mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Finding automatic page breaks
Thanks, I translated the macro to C++ and the approach seems to work quite well. I first iterate from the end to the start of the document inserting pagebreak markers (ie. pagebreak bookmarks) with paragraphs. Then I iterate forwards checking the properties of the paragraph to find the start of a new page. This works well for paragraphs. However, there is a problem with tables. If a paragraph is a table and I insert a book mark is the bookmark a property of the table "paragraph" or the table cell containing a paragraph? This is an issue since a table can span the page break (ie. a table accross mutiple pages.) Ian Frank Meies - Sun Germany - Development - Software Engineer wrote: > > On 03/05/07 08:44, Frank Meies - Sun Germany - Development - Software > Engineer wrote: > >> On 03/02/07 13:45, ianmcr wrote: >> >>> I'm fairly new to OOo. I'm working on an export filter to produce >>> accessible >>> html. I'm iterating over the text and identifying paragraphs, tables >>> etc. >>> However, I need a reliable method of identifing soft page breaks. >>> (At the minute I use the page cursor to insert a marker string at the >>> end of >>> each page. However, this causes problems with renumbering lists, >>> headings >>> etc). >> >> maybe you should use bookmarks instead of strings to mark the end of >> each page. > > This little macro inserts bookmarks at the positions of the automatic > page breaks. This way, the automatic page break can be identified in the > content.xml file. Note that the document needs to have a layout, > otherwise the page cursor cannot work correctly. > > Sub MarkPageBreaks > xDoc = thiscomponent > xText = xDoc.getText > xController = xDoc.getcurrentcontroller > xViewCursor = xController.getViewCursor > xViewCursor.jumpToFirstPage > xViewCursor.jumpToEndOfPage > Dim args2() as new com.sun.star.beans.PropertyValue > pages = xdoc.getrenderercount( xDoc, args2() ) > > for j = 0 to pages - 1 > xbookmark = > xdoc.createinstance("com.sun.star.text.Bookmark") > xbookmark.Name = "PageBreakMark" > xText.inserttextcontent(xViewCursor, xbookmark,true) > xViewCursor.jumpToNextPage > xViewCursor.jumpToEndOfPage > > next j > End Sub > > Best regards, > > Frank > >> >> Best regards, >> >> Frank >> >> -- >> Frank Meies (fme) - OpenOffice.org Writer >> OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > > > -- > Sun Microsystems GmbH Frank Meies > Nagelsweg 55 Software Engineer > 20097 Hamburg, Germany Phone: (+49 40)23646 671 > http://www.sun.de mailto:[EMAIL PROTECTED] > > -- > Frank Meies (fme) - OpenOffice.org Writer > OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Finding-automatic-page-breaks-tf417.html#a9328498 Sent from the openoffice - dev mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]