[dev] XML Import Filter
Hello everyone, i am new here and i have a question to ask which might be a little complicated. What i want to do is to develop a component such as a button in open office which , when pressed, imports an xml file which can be selected by a file dialog and apply an already installed xslt import filter -which basically transforms the XML file and fits its data to a simple table-.So the result is a report-like .odt file with data provided by my xml file. (this is the final goal,for the moment i want to just do it from command line java program) I am stuck at how can i use the api to load a filter package i installed before opening the document,so that when the page opens you see the .odt file with the table and my data.. i am able to do so from openoffice interface , the traditional way, but how can i do it programmatically..?For the moment i open a file from java using the NOA API but i dont find any info on how to apply a filter prior to opening it. thank you very much - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
[dev] Re: Error building on cygwin: Missing nsIAbLDAPAttributeMap.h
T. J. Frazier tjfrazier at cfl.rr.com writes: My thought is to put the table itself at the top (with a brief introduction), and let all the explanations follow, with no other external links. From our point of view, it makes maintenance easier and more reliable. For the users, the table is what they're going to want to refer to, probably over and over; having it at the top makes it easy to find. If we tune the section headers so that they have the same names as the table entries, then the users can use the TOC to go straight to some individual explanation they need to look up. Or, on-page links to the sections would be easy enough. Yeah, maybe that would be better. Originally, I intended not having that stuff on the top because a big table might scare away newcomers. All this is a fairly major reshuffle. If you have no major objections, I'll do it, but your critical review (of the plan, and the result) is very important: I've never built OO.o at all. Go ahead, Ill have a look later (just make sure that you dont drop any footnotes ;-) ). Maybe you could also update the linux stuff to the same format. BTW, I too rarely do manual community builds on windows myself (Im working on linux and use buildbots whereever I can). Have Fun, Bjoern - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] Error building on cygwin: Missing nsIAbLDAPAttributeMap.h
Thanks for the info, I managed to build successfully after using the new zips. It would be nice have a reference to what source version was used in the guide and maybe a link to the source if possible. That way you would always be sure what version is guaranteed to work with the guide. 2009/8/5 Stephan Bergmann stephan.bergm...@sun.com On 08/05/09 16:32, Kristján Bjarni Guðmundsson wrote: I am having problems building DEV300_m53 on Windows XP Pro SP3 with cygwin. I have followed this guide: http://wiki.services.openoffice.org/wiki/Documentation/Building_Guide/Building_on_Windows [...] dmake runs for a while but then complains about not finding nsIAbLDAPAttributeMap.h. Can anybody help me with this, here is the last log from dmake: The Building_on_Windows guide mentioned above still links to a page containing old pre-built moz zips ( http://tools.openoffice.org/moz_prebuild/680/). For DEV300m53, you need fresh ones from http://tools.openoffice.org/moz_prebuild/OOo3.2/). (Put Björn on cc, who might like to clarify in the guide which zips to download for which source revision.) -Stephan - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
[dev] Proposal : OOo4Kids as official part of OpenOffice.org Project
[please continue the discussion on the dev@openoffice.org mailing list] Hi all, Proposal : The OpenOffice.org Education Project proposes to drive the following experimentation : - create a dedicated branch in the OOo source code repository (means hosted by OOo Project) for a 7-12 years software, derivated from OpenOffice.org, and made and maintained by OpenOffice.org project. Formally : create a new branch, completely independent of , including milestones, like OOo does - work with schools and students to improve the software - innovate about performances and cooperate with the performance project in this area - (add your idea) Resources : to be defined, but the non profit association EducOOo ( http://www.educoo.org ) is already candidate to manage that (e.g.receive sponsoring for the software, machines for students, and so on). Facts that brought us to work on this plan: - OpenOffice.org is not well adapted to Educational world, nor to children (7-12 there) - OpenOffice.org has too much of features for children, and is too complicated for them - Performance issues : OpenOffice.org is slow on a lot of machines (mainly the one who have 512MB of ram or less, and procs 1,5GHZ or less we can find in most of schools) - Lot of schools, all around the world, are poor, and will have to wait several years before to buy new hardware - to fit the new emergent market (netbooks, eeepc like, gdium, future tablets (including the probable Apple one) .. and soon), OpenOffice.org needs to provide a light version, adapted to such machines ( poor in ram and powerless) The ideas : - simplify OOo and propose a light version of OOo, for example removing Base and providing a simplified Writer and Calc versions - experiment new features, new UI and so on, including experiment whatever - work with students to write the code, with the goal to integrate only the best features in OOo, - prepare children to use OpenOffice.org - adapt OOo for children will help to work on performance issues - use a name adapted to children : OOo4Kids, trademarked by one or several non profit association, to keep the project out of companies control - there is no risk for OOo, and avoids to disturb the OOo process Thanks in advance for your opinion Eric Bachard Lead, OpenOffice.org Education Project -- Education Project: http://wiki.services.openoffice.org/wiki/Education_Project Projet OOo4Kids : http://wiki.ooo4kids.org/index.php/Main_Page L'association EducOOo : http://www.educoo.org Blog : http://eric.bachard.free.fr/news - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
[dev] Error: no suitable windowing system found, exiting.
Hi, please forgive me for asking for help here, but I think I need people knowing OOo code: Because of a hang of one of my computers while a huge Debian update, I lost almost all system librairies. I reinstalled them one by one, each time I got a missing librairy message. But OOo is still refusing to work, with the message no suitable windowing system found, exiting. So I need to know in which cases this message could appear, so I could correct the problem. If you need me to give you more informations, tell me what to do for this, of course I'll do it. - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] Re: What is a SLOT and What is a WHICH?
Hi, Thank you, Joost, Niklas and Bjoern. It's still abit abstract for me. I know SlotIDs are constants defined in .hrc files, e.g., sc.hrc. What about WhichIDs? Could you please give me a simple example to illustrate the relationship between module, item, whichId and SlotId? From Niklas' explanation, I sense each module have a range of WhichIDs. What does module means here? Does it mean the application module? ie, Writer, calc, impress and so on. an ItemPool can define a Slot-ID for each Which-ID. The same Slot-ID is then used for an item across the modules, I can't understand the above explanation. Different module have different WhichIDs. How can it use same SlotID? Does it define the same SlotID for different WhichID in different modules? I havn't finised reading the article Bjoern provided. Maybe I can get more from the article. Thank you again for the help. I just dig into the source code and know very little about it now. Please don't feel boring. Best regards, Lihua 在 2009-08-05三的 09:30 +,Bjoern Michaelsen写道: Zhu Lihua zhulihua at redoffice.com writes: Hi all, I read the following code in OOo source code(itempool.hxx): #define SFX_WHICH_MAX 4999 static int IsWhich(USHORT nId) { return nId nId = SFX_WHICH_MAX; } static int IsSlot(USHORT nId) { return nId nId SFX_WHICH_MAX; } I think: if nId 4999, it's a Slot. if nId = 4999 and nId !=0 , it's a Which. What are the terms slot and which mean? Thank you! A WhichId is the id by which items are stored in SfxItemSets and SfxItemPools. You cannot have two items with the same WhichId in on SfxItemSet. However, there are multiple uses for WhichIds: SfxSlotIds are only one and they are required to start at 5000. In writer for example HintIds can also be used as WhichIds. To make sure those do not collide, HintIds must be 5000. SlotIds are used in the Sfx2 framework. see: http://wiki.services.openoffice.org/wiki/Framework/Article/Implementation_of_the_Dispatch_API_In_SFX2 SlotIds are at least unique per Shell (*). There are some fine differences in the way SfxItemSets/SfxPropertySets handle ids 5000 and ids =5000. For example, the Changed(..)-Callback in SfxItemSet only gets called for WhichIds 5000. For more details, Im afraid you will have to dig into the code. Have Fun, Bjoern (*) I guess, they might even be unique OOo-wide, but Im not sure about that. - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org -- Lihua 北京红旗贰仟软件技术有限公司 Beijing Redflag 2000 Software Co., Ltd. Building No.2, Block A, Huilongsen, 18 Xihuan Nanlu Beijing Economic-Technological Development Area Beijing - P.R.China Tel:+86-10-51570010 ext.6141 http://www.RedOffice.com - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org