Re: [dev] [Bug alike] OOO300 m2 Writer on Windows zoom too slow
Hi Nguyen Vu Hung, On 09/02/08 13:56, Nguyen Vu Hung wrote: I cannot reproduce this on my machine. But maybe the QA Team can. Please submit a new bug report with the detailed description and the document you used to reproduce this behavior. I have reproduced it on my home computer using the attached file. Same version of writer( OOO300 m2), Windows XP JP SP3, Pen IV, 512MB. Please note that my computer is quite slow and help me reproduce the bug on your computer. I can reproduce this with your document. I see that the graphics are inserted "as links" and it seems like they get reloaded on each zoom change. If you break the links (Edit - Links - Break link), zooming is pretty smooth. Please submit a bug report for this: http://qa.openoffice.org/ooQAReloaded/ooQA-ReportBugs.html Best regards, Frank -- Frank Meies (fme) - Co-lead 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] [Bug alike] OOO300 m2 Writer on Windows zoom too slow
Hi Nguyen Vu Hung, On 09/02/08 11:32, Nguyen Vu Hung wrote: I notice a problem as described in the email title. I am not sure it is a bug so I post here, please verify if it in your environment How to reproduce: 1. Open OOO300 m2 Writer onWindows 2. Open any document( I copy some mixed and and graphics from a website) 3. Push the "-" and "+" button on the right-bottom of Writer to zoom See: http://flickr.com/photos/vuhung/2821210158/sizes/o/ Expected result: Pages get zoomed smoothly. Actual result: Writer stops responding for about 5 seconds, then get zoomed correctly. FYI, In my test( see the picture above), during the time when Writer hangs, the note( the yellow box) on the right collapsed into 2 rectangles. Sorry I couldn't take a screenshot with PrintScreen, but I will do it later with a camera. I cannot reproduce this on my machine. But maybe the QA Team can. Please submit a new bug report with the detailed description and the document you used to reproduce this behavior. Best regards, Frank -- Frank Meies (fme) - Co-lead 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] OOo 3 new features and performance speedup
Hi Hung Nguyen Vu, On 08/28/08 05:05, Hung Nguyen Vu wrote: Where I can find the list of new features of OOo 3? have a look here: http://marketing.openoffice.org/3.0/featurelistbeta.html Hope this helps, Frank -- Frank Meies (fme) - Co-lead 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] Present and Future of OpenOffice.org
Hi KAMI, On 08/27/08 18:22, KAMI wrote: Thank you for the detailed informations about Writer. I found lots of useful piece of information. I hope I will hear about other project soon. I would like to hold a very good presentation. Do we have build that shows after 3.0 new features. Or this request is too early? work on "Support for meta data according ODF 1.2" is in progress, see http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=DEV300%2Fodfmetadata2 But I doubt that there's currently anything to *see*. Work on "Introduction of outline level attribute" is almost finished, see http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=DEV300%2Foutlinelevel For "Support for multiple different views for a certain text document", there's a lot of refactoring work which has to be finished first. This is addressed with http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=DEV300%2Fswrefactor071015 Hope this helps, Frank -- Frank Meies (fme) - Co-Lead 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] Present and Future of OpenOffice.org
Hi KAMI, On 08/26/08 14:58, KAMI wrote: but what about the future? What do we plan for modules? When do we have E-mail/PIM module? So can you more information about your areas, or the whole package? for the Writer Team, I'd like to point you to Oliver-Rainer's presentation at OOoCon 2008: http://marketing.openoffice.org/ooocon2008/programme/friday_abstracts.html#a1422 These are the main topics that will be addressed in the future: * Support for meta data according ODF 1.2 [1] * Support for multiple different views for a certain text document [2] * Introduction of outline level attribute [3] [1] http://wiki.services.openoffice.org/wiki/Writer/Metadata_Support [2] http://wiki.services.openoffice.org/wiki/Writer/ToDo/Layout [3] http://specs.openoffice.org/writer/numbering/OutlineLevel.odt Additionally, I'd like to point you to Mathias' blog posting http://blogs.sun.com/GullFOSS/entry/writer_s_new_notes_looking which lists a couple of usability issues we plan to address. As Mathias mentions in his blog posting, there will be a project review soon. So stay tuned for more information about the Writer project. Best regards, Frank -- Frank Meies (fme) - Co-lead 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] Issue 92927
Hi Mike, On 08/19/08 22:18, Mike Hall wrote: I'd like to nominate this as a stopper for 3.0. I forwarded your request to [EMAIL PROTECTED] 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] OpenOffice.org 3.x
Hi Stefan, On 02.07.08 14:35, Stefan H. Reissmann wrote: thank you for your feedback. Please find my comments below: Writer: • In the 2.x versions, I had problems with links in websites. They often did not work for unknown reasons. did you make sure to press CTRL while clicking on the hyperlink? Since OOo 2.3 a mere click does not work anymore. • One should be able to replace fonts in the whole documents by a respective dialog, where one can choose the font to be replaced (e.g. one which is not installed) and the font by which it should replaced. You can use the Find & Replace dialog to replace all occurrences of one hard font attribute by a different font. To set an office wide font replacement you can change the replacement table using Tools - Options - OOo - Fonts. • There seems to be a problem to reset a text to a style feature from which it has been ‹exempted›: E.g., if I a text has the style "default", but has been set in a font different from that one, and shal then be reset fully to "default", this is not possible directly (but maybe via a different style). Select your text and do a Format - Default. This should do the trick. Hope this helps, 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] Who draws the gray area around text documents?
On 06/23/08 13:48, Aaron Digulla wrote: Quoting Frank Meies <[EMAIL PROTECTED]>: Background: For an editor, I want to get rid of the gray area around the text and reduce the page margins to 0 to give the impression that the text fills the frame completely. in "Web Layout" mode (View - Web Layout), the gray area is reduced to 0. Is this what you are looking for? Ah! Excellent! Yeah, that's it. Can you tell me how to switch to this mode via UNO/URE? you have to set the "ShowOnlineLayout" flag of the ViewSettings: thiscomponent.currentcontroller.viewsettings.ShowOnlineLayout = true is the way to do this in Basic Hope this helps, 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] Who draws the gray area around text documents?
Hi Aaron, On 06/23/08 13:03, Aaron Digulla wrote: http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/Text/Text_Documents gives an intro in which classes are related to text documents. I'm looking for who is drawing the gray area around text documents. From the document, I was expecting to find this in the XFrame but at first glance, there is nothing in there which controls drawing outside of the text document itself. Any pointers? Background: For an editor, I want to get rid of the gray area around the text and reduce the page margins to 0 to give the impression that the text fills the frame completely. in "Web Layout" mode (View - Web Layout), the gray area is reduced to 0. Is this what you are looking for? 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] Re: OOo crash for documents with heavy formatting
Hi Andrew, On 05/21/08 07:09, Andrew Douglas Pitonyak wrote: Andriy Rysin wrote: I am working on a dictionary (actually about a dozen of them) and I have only 4 main styles, e.g. MyBold, MyItalic, MyAux and MyNormal. What I have a lot is uses of those styles: let's say I have 2 positions in one dictionary and each position may contain several words in each style. That'll make at least 80K of style instances, which breaks OOo. I think that I just got it. The problem is not too many styles, but rather, too many INSTANCES of a style. this only holds for character styles. Please read my evaluation of this issue: http://www.openoffice.org/issues/show_bug.cgi?id=84159 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] OOo crash for documents with heavy formatting
Hi Andriy, On 05/08/08 01:05, Andriy Rysin wrote: I was just wandering if necessary level of attention is given to the OOo crash problem (84159) - it was reported before 2.4 with target 3.x but it seems after the bug was confirmed the interest in it was lost. The bug basically renders OOo unusable for documents with heavy formatting. It affects all patforms and crash-producing document is very easy to create - just have more than 2^16 text styles. If such document is opened it will crash the program on close and often on some formatting operations, like style change. I'd appreciate if somebody can provide any information on when this problem may be taken care of. there is a bug and I can understand that this is pretty annoying for you. But let me explain my point of view: 1. This is no regression, this bug exists from the beginning of time. 2. You are the first (and only one) ever to report this bug 3. The fix for this is not trivial Be assured: This bug has been given a lot of attention. It took me quite some time debugging the code and analyzing the root cause of the crash. My conclusion is: There are plenty of other bugs which have a higher priority than this one. 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] ODF Compatability ODFellowship
Hi Cor, Am 20.03.2008 16:43, Cor Nouws schrieb: Hi *, I remember to have seen a mail / reply / complaint about a sort of ODF compatibility test by the - IIRC - ODFellowship. My own archives don't hold it. But it must be know by someone here .. Any link? Thanks! are you looking for this? http://lists.oasis-open.org/archives/office/200704/msg00010.html Hope this helps, 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] strange code in sw/source/core/txtnode/fntcache.cxx
Hi Takashi Ono, Am 30.11.2007 23:20, Takashi Ono schrieb: > > I found a strange code in sw/source/core/txtnode/fntcache.cxx. > The line #787 is causing warning "comparison is always false due to limited > range > of data type" in mingw build. > > It is in WNT only #if block and causes no warning in MSVC build. > [...] if( nDiff > 0 ) { ASSERT( nPrtAscent < USHRT_MAX, "GuessLeading: PrtAscent-Fault" ); if ( USHRT_MAX < nPrtAscent ) <--Here nPrtAscent = nPrtAscent + (USHORT)(( 2 * nDiff ) / 5); } [...] you are right. Judging from older versions of this file I'm pretty sure that this should mean if ( nPrtAscent < USHRT_MAX ) ... > I suspect that the comparison is wrong but I am not sure. Should I raise an issue? yes, you can assign it to me. Thank you, 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] Default font for digits
Hi Alan, On 10/29/07 12:29, Alan Yaniger wrote: OOo uses the default Western font for digits, even when those digits are embedded in CTL text. Since most Hebrew fonts contain digits, it is often bothersome for Hebrew users to see their font unnecessarily change in mid-sentence for digits. I would like to change this, so that if the active CTL font supports digits, they will be displayed in the CTL font. Where is the code that currently sets the font for digits to the Western font? I'm asking about all OOo apps. for Writer, have a look at SwScriptInfo::InitScriptInfo(). This function calculates the script types and directions for a paragraph. There is already some code in this function which takes care that Latin characters inside a RTL run use the CTL font. For the EditEngine, I suggest to start debugging with a break point in ImpEditEngine::GetScriptType(). This should point you to the code. Please note that changing this behavior might change the layout of existing documents, therefore you might want to consider to have a new compatibility flag at the document, at least for the Writer. 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] Delete selected content
Hi Juan Emilio, On 12.10.2007 14:40, Juan Emilio Gabito wrote: I have XTextViewCursor which I use to select some content from a Writer document. That content could have normal text, text fields, paragraphs, pictures and that sort of things. I've been searching around in google, the oooforum and the mailing list the way to delete that content but haven't found anything. Is there a way to delete this content using Java and the OO API? try XTextRange::setString(""). Hope this helps, 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] Getting chars for a given language
Hi Alan, On 16.09.2007 16:48, Alan Yaniger wrote: I'm interested writing code to get the Unicode values of the first three characters of a given language's alphabet. How would I go about this? looks like this should be done in the i18n module. I forwarded your question to Eike. 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] How to change paragraph styles globally
Hi Matthias, On 08/21/07 12:20, Matthias B. wrote: Where can I find the default file to build on. I've grepped all xcu files in my OOo installation for ooSetupFactoryTemplateFile and all occurences are like this so the value is empty. Are the defaults hardcoded in the binary? If so, could you tell me where [...] as far as I know there is no default file. The Writer defaults are hardcoded in sw/source/core/doc/poolfmt.cxx. As for packaging: While the change to the xcu files can certainly be packaged in a uno.pkg, how about the needed template file itself. Since the location in the package cache is not known, we can't hardcode its path in our package. Is there a variable that we could use here, so that we can provide the template file and the xcu override in the same uno.pkg? I guess this is more or less dealing with the same problem: http://www.oooforum.org/forum/viewtopic.phtml?t=14552 What you can try to do is 1. Create an extension containing an xcu file setting ooSetupFactoryTemplateFile to %origin%/mynewtemplate.ott 2. add your new template file to your extension 3. patch GetStandardTemplate() in sfx2/source/doc/docfac.cxx to use the macro expander to get the correct path of the new template file. Hope this helps, 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] How to change paragraph styles globally
Hi Matthias, On 08/20/07 10:00, Matthias B. wrote: How do I change the definition of the standard paragraph styles such as Heading 1, 2,3... on a global level. Can I do this via a uno.pkg? you can add/change the ooSetupFactoryTemplateFile setting in Setup.xcu to point to a new default template file. Hope this helps, 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] Could the line numbering issue be targeted for OOo 2.3?
Hi Axel, On 22.06.2007 12:33, Axel Reimer wrote: is it possible to target the annoying line numbering issue for OOo 2.3? http://www.openoffice.org/issues/show_bug.cgi?id=78254 This issue is primarly annoying for students. Because they often need to write long documents with tables and line numbering. I'll have a look. 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] text grid enhancement
Hi Fong Lin, On 11.04.2007 11:44, Pei Feng Lin wrote: It is my pleasure to announce that the prototype of text grid enhancement for better CJK support has implemented. The internal test is ongoing now. A new issue was created to describe this feature. http://qa.openoffice.org/issues/show_bug.cgi?id=76247 You could get some knowledge about text grid from my blog: http://linpeifeng.blogspot.com/ A new CWS named cjksp1 based on SRC680_m208 is created to maintain all the CJK enhancment and features from our oo team. The codes wrt. text grid will be upstreamed after the internal test is passed. Any question, suggestion and comment are welcome. this is really good news. I had a first look at your spec and wondered if Tools - Options - Writer - General is the best place for the grid mode setting. What about Tools - Options - LanguageSettings - AsianLayout? 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] Open Office Table Split
Hi Palash Basak, On 03/27/07 15:53, Palash Basak wrote: I am using Open Office first time. I want to split a table of word document. The code, that i am using is :---> xDispatchHelper.executeDispatch( xDispatchProvider,".uno:SplitTable","", 0, new PropertyValue[0] ); It is not working properly. did you make sure that the current view cursor is located inside a non-headline row of the table? Hope this helps, 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] Fwd: doc doesn't render properly
Hi Laurent, On 03/22/07 18:50, Laurent Denoue wrote: On 3/22/07, Frank Meies - Sun Germany - Development - Software Engineer < [EMAIL PROTECTED]> wrote: Hi Laurent, On 21.03.2007 18:25, Laurent Denoue wrote: > It looks like some tables from the second page end up on the first page. > Maybe a problem with margins? > If you figure out a solution, please let me know. The table seems to be located inside a text frame. The frame of course does not allow for automatic page breaks. According to you, is this a bug? If so, I'm happy to add it. In any case, MS Office renders it properly, have you tried to see the difference? the table in Word has the 'text wrapping around' attribute set. Currently Writer cannot wrap text around tables, therefore these tables are imported inside frames. There already exists an issue for the Feature: i7911. Hope that helps, 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] Fwd: doc doesn't render properly
Hi Laurent, On 21.03.2007 18:25, Laurent Denoue wrote: It looks like some tables from the second page end up on the first page. Maybe a problem with margins? If you figure out a solution, please let me know. The table seems to be located inside a text frame. The frame of course does not allow for automatic page breaks. Is there a place to report these problems of unexpected rendering? If you suspect a bug to be the cause of unexpected rendering you can file a new issue: http://qa.openoffice.org/ooQAReloaded/ooQA-ReportBugs.html Hope this helps, Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Finding automatic page breaks
Hi Ian, On 03/12/07 10:43, ianmcr wrote: I now need to differentiate the "pagebreak bookmarks" from other bookmarks in the document. (At the minute I insert a pagebreak at every bookmark which isn't good). Is there a means of finding the programmatic name of the bookmark (I set the name of each page break bookmark to "PAGEBREAKMARKER"? How can I compare bookmarks? I was wondering if the following was possible: if (currentBookMarkName =="PAGEBREAKMARKER") then found a pagebreak bookmark; else ignore pagebreak; yes, comparing the name of the bookmark to your special string should work. 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] writer: export pages as bitmaps (e.g. PNG)
Hi Laurent, On 09.03.2007 20:02, Laurent Denoue wrote: Yes, pdf export is what I'm doing now, using either ghostscript or xpdf to image each PDF page into a PNG. But it is slower than being able to directly grab the rendered page from Writer. Can somebody point me to the PDF export functions? Maybe I could hack a PNG export function instead. the pdf filter is implemented in filter/source/pdf. Have a look at pdfexport.cxx, I think it should be possible to grab the bitmap from the OutputDevice pOut after rendering each page. Hope this helps, 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] writer: export pages as bitmaps (e.g. PNG)
Hi Laurent, On 03/08/07 07:54, Laurent Denoue wrote: Is there an API to export each page of a Writer document as a picture? It's possible under Impress, as shown here: http://www.oesf.org/forums/lofiversion/index.php/t7790.html I don't see a way to do this directly. What about using the pdf export filter and use some external tools to convert the pages to graphic files? 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] Adding support for overlined text in Writer
Hi Martin, On 03/07/07 22:01, Martin Whitaker wrote: 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. I was expecting to submit the patches via IssueZilla as this will be my first contribution. If you would prefer me to work in a cws, let me know, otherwise I will continue developing against the latest stable milestone. I just created a new cws (including the projects svx and sw so far) for you, its name is 'overline'. You can start developing on this cws and send the patches via issuezilla or by email to me. I'll review the patches and commit them to the cws for you. This way we can easily keep your code in sync with the current master workspace. 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] 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
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]
Re: [dev] Finding automatic page breaks
Hi, 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. 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] Joins in sw
Hi Li Jian, On 02/02/07 12:34, lijian wrote: I am Li Jian, a developer from Beijing Redflag CH2000 Software Co.,Ltd. I am in the Redoffice team and working with ChengXiuzhi, Liyuan and Liutao. I'm interested in the SW project and intend to do some contributions here. In this community, I hope somebody can give me some suggestions and do help to my work. Thank you! thank you for your interest. Please have a look at http://wiki.services.openoffice.org/wiki/Writer_ToDo This is a good starting point for developers who want to start contributing to Writer. Of course you may also start with some small bugfixes or make some own suggestions. Please feel free to contact us again (dev@sw.openoffice.org) if you have found something interesting or if you need some more concrete suggestions. Regards, Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] RE:[dev] [sw-dev]question about table border line
Hi chensuchun, On 02/02/07 02:52, [EMAIL PROTECTED] wrote: When a table is formated with thick lines around the table and thin lines insidethe table, if you ask OO.o to add a row at the end of the table it's createdwith a thick line between it and the rest of the table instead of respecting the"thick lines around the table, thin lines inside" rule. I want to fix it as "thick lines around the table ,thin lines inside"after insert rows at the end of the table,but I find it is difficult to get SvxBoxInfoItem of the table in function BOOL lcl_CopyCol( const _FndBox*& rpFndBox, void* pPara ). so I modify the insert-operation source code (in file sw/source/ui/shells/tabsh.cxx) as following: case FN_TABLE_INSERT_COL: case FN_TABLE_INSERT_ROW: { ///-->get the SvxBoxInfoItem of the table before insert SfxItemSet aCoreSet( GetPool(), aUITableAttrRange); ::lcl_TableParamToItemSet( aCoreSet, rSh ); SvxBoxInfoItem aBoxInfo((const SvxBoxInfoItem&) aCoreSet.Get(SID_ATTR_BORDER_INNER)); ///<--End ///do the insert operation BOOL bColumn = rReq.GetSlot() == FN_TABLE_INSERT_COL; USHORT nCount = 0; BOOL bAfter = TRUE; if (pItem) { nCount = ((const SfxInt16Item* )pItem)->GetValue(); if(SFX_ITEM_SET == pArgs->GetItemState(FN_PARAM_INSERT_AFTER, TRUE, &pItem)) bAfter = ((const SfxBoolItem* )pItem)->GetValue(); } else if( !rReq.IsAPI() ) ++nCount; if( nCount ) { if( bColumn ) rSh.InsertCol( nCount, bAfter ); else if ( !rSh.IsInRepeatedHeadline() ) rSh.InsertRow( nCount, bAfter ); bCallDone = TRUE; ///-->after inserting,reset the table border according to the SvxBoxInfoItem /// get before SfxItemSet aSet( GetPool(), RES_BOX, RES_BOX, SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER, 0); aSet.Put( aBoxInfo ); ItemSetToTableParam( aSet, rSh ); ///<-- break; } nSlot = bColumn ? FN_TABLE_INSERT_COL_DLG : FN_TABLE_INSERT_ROW_DLG; } Is this modification right,or it would cause other problem or affect other operation?How to solve this problem if the modification is wrong ? Thanks for help or advices! cool, your code already looks quite good. I made some little modifications in order to generate only one undo event for this action: case FN_TABLE_INSERT_COL: case FN_TABLE_INSERT_ROW: { BOOL bColumn = rReq.GetSlot() == FN_TABLE_INSERT_COL; USHORT nCount = 0; BOOL bAfter = TRUE; if (pItem) { nCount = ((const SfxInt16Item* )pItem)->GetValue(); if(SFX_ITEM_SET == pArgs->GetItemState(FN_PARAM_INSERT_AFTER, TRUE, pItem)) bAfter = ((const SfxBoolItem* )pItem)->GetValue(); } else if( !rReq.IsAPI() ) ++nCount; if( nCount ) { ///-->get the SvxBoxInfoItem of the table before insert SfxItemSet aCoreSet( GetPool(), aUITableAttrRange); ::lcl_TableParamToItemSet( aCoreSet, rSh ); bool bSetInnerBorders = false; sal_uInt16 nUndoId = 0; ///<--End if( bColumn ) { rSh.StartUndo( UNDO_TABLE_INSCOL ); rSh.InsertCol( nCount, bAfter ); bSetInnerBorders = true; nUndoId = UNDO_TABLE_INSCOL; } else if ( !rSh.IsInRepeatedHeadline() ) { rSh.StartUndo( UNDO_TABLE_INSROW ); rSh.InsertRow( nCount, bAfter ); bSetInnerBorders = true; nUndoId = UNDO_TABLE_INSROW; } bCallDone = TRUE; ///-->after inserting,reset the inner table borders if ( bSetInnerBorders ) { SvxBoxInfoItem aBoxInfo((const SvxBoxInfoItem&) aCoreSet.Get(SID_ATTR_BORDER_INNER)); SfxItemSet aSet( GetPool(), SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER, 0); aSet.Put( aBoxInfo ); ItemSetToTableParam( aSet, rSh ); rSh.EndUndo( nUndoId ); } ///<-- break; } nSlot = bColumn ? FN_TABLE_INSERT_COL_DLG : FN
Re: [dev] Where to find pam.doc?
Hi Matthias, Hi Matthias, On 12/14/06 11:17, Matthias B. wrote: The file ooo_OOE680_m6_src/sw/source/core/crsr/pam.cxx contains the following comment /* 417 |* 418 |* SwPointAndMark 419 |* 420 |* BeschreibungPAM.DOC This looks as if there is a description of this class in a document pam.doc. Is this true? Where can I find this document? cvs tells me that this line has been written back in 1991. Maybe there once was a description for this file, but I'm quite sure that meanwhile it's lost in time and space. However, a SwPaM basically represents a pair of SwPosition, point and mark, which indicate a text range in the document, or a single position if point == mark. Hope this helps, Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] ODT-document crashes OOo
Hi Jan, On 12/06/06 09:47, Jan wrote: I worked for several days on a document without any problems. Recently I saved the document and tried to open it on another computer while having my original OOo session open. When opening the file on the second computer OOo tells me it has an error reading the file and quits. In the open session I tried to save the file as SXW format and opened it but the same error appeared. It works fine when using RTF format. After accepting all changes which were tracked from two sessions the file was readable without any problem. The problem happened twice with OOo 2.0.3 and 2.0.4 on two different systems. If someone is interested in the file which caused the problem I would be glad to send it to you directly but not to post it on the mailing list. yes, I can have a look. Regards, Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] open office unicode letters
Hi, On 11/21/06 16:45, dfdg djfd wrote: But i had one problem which was when i type on a right to left unicode text the way the program is made is that when one types western letters it goes from left to right and only when one types the CTL letters does it go from righ to left. I noticed that the CTL letters are some of which include /+%# ect. . But i need to type in hebrew and the letters that i need to go from right to left are ÷øàèåïíôùãâëòéçìêóæñáäðîöúõ,/ sorry, I don't understand your question. First of all, you should read this (thanks to Alan): --- To enable right-to-left text: Go to Tools/Options/Language Settings/Languages. Make sure that the checkbox "Enabled for complex text layout (CTL)" is checked. A few lines above that checkbox is a listbox that says "CTL" next to it. In that listbox, choose "Hebrew". Press "OK". You should see on the Writer toolbar a couple of icons with arrows pointing left or right. Pass the mouse ove those icons, and you'll see the tooltip "Right-to-left" or "Left-to-right". (There are two other icons with arrows, for "Decrease Indent" or "Increase indent". I don't mean those.) Click those buttons to change the alignment. You also need fonts which have Hebrew characters, of course. -- Are you using an IME (Input Method Editor)? Windows or Linux? Regards, Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] changing the OOo-Configuration via API has no effect during runtime
Hi Christoph, On 11/06/06 10:44, Christoph Lutz wrote: I will try to find how to change the view setting, but I still would be glad if somebody else could give me a hint. viewsetting = thiscomponent.getCurrentController().getViewSettings() gives you the view settings. There is a "ShowHiddenParagraphs" (In UI: Fields: Hidden paragraphs) property and a "ShowHiddenText" property (In UI: Fields: Hidden text). But the "hidden characters" property seems to be missing. Please submit an issue for this. Hope this help, Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Windows Text layout question
Hi Alan, On 09/18/06 14:16, Alan Yaniger wrote: Hi list-members, When I type RTL text followed by three dots in Writer and in text boxes, I get two different behaviors. Assuming that "A" "B" and "C" are Hebrew letters, what happens is as follows: In Writer, typing "A", "B", "C", ".", ".", "." when the alignment is RTL, the text will display as "...cba", which is correct. In Tools/Options/User Data/Company, for example, typing "A", "B", "C", ".", ".", "." will display as "cba...", which is incorrect. It seems that the alignment is LTR, and the user cannot change it. In menus, I have the same problem with Hebrew strings that end in dots, or other "weak" characters. I have to get around the problem by using formatting marks for every such string, which adds up to dozens of times. The problem only occurs on Windows, not Linux. I would like to work on this. Where is the code that determines the text layout in each of the two cases? the Writer code is in sw/source/core/text/porlay.cxx. SwScriptInfo::InitScriptInfo() calls the bidi algorithm. The bRTL parameter of this function is taken from the paragraph attributes. Hope this helps, Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] how to select a paragraph
Hi Mohammad, On 07/17/06 05:56, Mohammad Alhammouri wrote: Is there any way that I can capture the text of a paragraph if the user only clicks anywhere inside that paragraph. can I specify the boundaries of that paragraph and capture the text of that paragraph ?? this litte macro displays the text of the paragraph which contains the current visual cursor: xsel = thiscomponent.currentcontroller.getselection xrange = xsel(0) xcur = thiscomponent.gettext.createtextcursorbyrange( xrange ) xcur.gotostartofparagraph( false ) xcur.gotoendofparagraph( true ) msgbox xcur.getstring Hope this helps, Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Spell checking underlining
Hi Manuel, On 04/27/06 11:06, Manuel Odesser wrote: I wondered what property should be used to mimic the spell checking underline. I mean, how to underline a piece of text using another color xsel = thiscomponent.currentcontroller.getselection xrange = xsel(0) xrange.CharUnderline = com.sun.star.awt.FontUnderline.SMALLWAVE xrange.CharUnderlineHasColor = true xrange.CharUnderlineColor = RGB( 255, 0, 0 ) results in a red waveline under the currently selected characters. ? And how not to print this underlining ? Well, I think you explicitly have to reset the underline attribute before printing, at least I don't know any other way. Hope this helps, Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Right to left inserting of special characters is confusing
Hi Habib, On 04/18/06 13:33, Habib Seifzadeh wrote: So, I ask my question from you in another way: if I'm in right to left mode, how can I type "(x+(z-y))" ??? The problem is the beginning and ending parenthesis are typed reverse but middle parenthesis are typed correct. one possible way is to insert a LRM (Insert - Formatting Mark - Left-to-Right-Mark), type "(x+(z-y))" and finally insert another LRM. This lets the Unicode Bidi Algorithm treat the opening and closing paranthesis as Left-to-Right characters. Hope this helps, Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] CTL Sequence checking
Hi Alan, Alan Yaniger wrote: In the "Tools/Options/Language Settings/Complex Text Layout" dialog, there is an option of Sequence Checking. What is this for? this is currently only useful for Thai. This feature checks if the entered character sequence is valid (a Thai character cluster consists of a consonant, an optional vowel, and an optional tone mark). Invalid sequences are rejected. Have a look at the specification: http://specs.openoffice.org/g11n/sequence_checking/48117_Thai_sequence_input_checking_default_setting.odt In our Hebrew build, enabling this has caused words to be unexplicably reversed on some installations. Might be related to / caused by i59659. Regards, Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Changing bidi character type
Hi Alan, Alan Yaniger wrote: There was a change in the bidirection character type of "minus/hyphen" (Unicode 002D) from Unicode 4.0 to Unicode 4.0.1. It was changed from ET ("European Numeric Terminator") to ES ("European Numeric Separator"). I would like to implement this in my OOo build. How do I do it? OOo uses the icu implementation of the Unicode Bidi Algorithm. Therefore you'll have to change the icu code. I'm not sure but I guess you'll have to adjust icu/source/data/unidate/UnicodeData.txt. Hope that helps, Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] GlyphItem and Arabic Shaping
Hi, Soheil Hassas Yeganeh wrote: > There is a well known bug for KashidaJustify for Arabic language. It > puts Kashida anywhere in the text, but there are some rules where to > put kashida in an arabic text. I need those types to fix > KashidaJustify for OpenOffice. the code that 'calculates' the Kashida positions is located in the applications, for Writer this is sw/source/core/text/porlay.cxx. Have a look at the following code block: // we search for connecting opportunities (kashida) else if ( bAdjustBlock && i18n::ScriptType::COMPLEX == nScript ) { ... } This code determines the Kashida positions for the current paragraph and stores them in the aKashida array. Is there a bug in this algorithm? Regards, Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]