|
|
|
02/24/2006
CSV files are widely used for data import/export with spreadsheets
Openoffice.org Calc can obviously handle them but restrict the handling of CSV-like files to only some extenstions (csv, txt, tab). The default behaviour is to open unknown files in Writer as plain text ones. Some months ago i gave the method for handling .dat files by default in OOo 1.1.x as CSV file [fr], so that they open directly in Calc. Here is the update for OOo 2.x : the sipirit remains the same, the details slightly changed Making the changes persistentThe filters definition in OOo 2.x are stored in /opt/openoffice.org2.0/share/registry/modules/org/openoffice/TypeDetection/Types An xcu file is an xml file used by OOo for its configuration In this directory, you'll find a lot of file dealing with OOo filters definition The one concerned bu our CSV defibnition is fcfg_calc_types.xcu Searching for csv string inside it, we will find this structure
<node oor:name="calc_Text_txt_csv_StarCalc" oor:op="replace" >
One can the notice that inside this calc_Text_txt_csv_StarCalc node, we find an Extensions property listing all the extension actually handled for csv files So, the solution is only to append dat or zzz to this property
<prop oor:name="Extensions"><value>csv txt tab dat zzz</value></prop>
Be carefull that this file is in the main OOo directory, not the user one, so you may need some writing rights on this file Deploying the solutionThanks to OOo configuration model and great package manager, one can deploy this configuration easillySeeing OOo Configuration as layers (share > User > Packages), we can then define a package taht the user will add using its Tools > Package manager The modified configuration will me merged to the Configuration XML tree provided the adminsitrator has not finalized the node This package is straightforward to create :
Here is the example that configures calc to open .dat aand .zzz file sby default once the pacakge installed <?xml version="1.0" encoding="UTF-8"?>
02/23/2006
The first
session of the Developpers Article Contest is running and will end at
the end of the month.
As announced, this contest is to generate new documentation to developpers and everybody can participate. Developpers and technical writers are welcomed to propose articles. The subject has to cover a technical aspect of OOo such as building, patching, addon, extensions or OOo scripting aso. Submissions have to be sent as attachments in the OASIS OpenDocument file format to the mailing list contest@development.openoffice.org The contest rules can be found on the OOoWiki. Each month, an article will be elected and the winner author will earn 750 euros. He will also be member of the comitee for three months if he wants The remaining articles will stay in the contest for the next month so you have many chances to win :-) So, write your articles and submit them. We are all waiting reading them ... Lyon has been choosen by votes
The official annoucement by Jacqueline, marketing lead http://www.openoffice.org/servlets/ReadMsg?list=announce&msgNo=272 After the good work of Cédric at INSA, lets help him now organizing this event. All the energies are welcomed to make this event as successfull as the previous years You"ll surely be called for help - Stay tuned !!
02/10/2006
The OOoCon is our high level meeting and we as a community have the
chance to decide each year where it will be located !!
The previous locations have been Hamburg (DE), Berlin (DE), Koper (SL) This year the choice is between Vienna (Austria) and Lyon (France) This has been announced by Jacqueline, marketing lead, this morning via emails on various lists As the CCR i can only tell people : go and vote !!! CAUTION : The deadline is the 19th of february - Hurry up For participating, it is rather simple, even if in english (what I also regret) - You've to be registered to OOo website before
http://survey.services.openoffice.org/ooocon/confirm.php?action=bf386d2ea1b206b1dc16bd98
That's all Advertize around you to make the choice for the meeting place. (Everywhere it will take place, it will be a wonderfull event) As member of the french community, i suggest you to vote for Lyon. Really, it's a cool place and Cédric did a great job negociating the hosting place.
Posted by Laurent Godard @ 02/10/2006 10:23 AM.
-
Categories:
openoffice
-
0 comments
02/08/2006
As office suites evolve, more and more functionalities are proposed to
end-users. Regarding spreadsheets, the next Excel generation will propose around 16
billions of cells in one sheet !!
This is done through a 1 000 000 rows versus 16 000 columns sheet Damned, who needs so many numbers on one sheet ??? Anyway, if it is not enough, for you, powerfull end-users, OpenOffice.org Calc spreadsheet can propose a little bit more with a matrix of 2 000 000 rows versus 32 000 columns The last cell coordinates of this 64 billions set is AUHT2000000 Formulas even work ! Nota : this is obviously a joke as some minor polish remains to be done on this quick hack (Thanks to Niklas Nebel for its pointers) We are also waiting for the Office 12 file format to test the export functionality and are actually thinking to a 1 000 000 000 rows version
02/06/2006
In my
previous blog concerning ActiveCell, i proposed a hack to retreive the
current column and row, based on some magic string found in
CurrentController.ViewData
We all agree that the best will be to extend the existing API. Waiting for it, here is the explanation. Please note that in most cases, the currentSelection object should be sufficient. This string is built in <OOoSources>/sc/source/ui/view/viewdata.cxx ScViewData::WriteUserData (thanks to noelp for pointing it). I analyzed it to see what information were stored there so here is the magic, but, first, as promised on the dev@api list, i put this statement "this hack is based on an internal representation of the information not guaranted to be kept over versions" On a new Calc file print ThisComponent.CurrentController.ViewData here is the meaning identified for each portion
The information are available only if the sheet has been activated/view at least once since the file creation. In our cases, the default calc document is created with three sheets but only the first (default) has been accessed These informations can also be found in the settings.xml file inside the calc file <config:config-item-map-entry config:name="Feuille1"> <config:config-item config:name="CursorPositionX" config:type="int">2</config:config-item> <config:config-item config:name="CursorPositionY" config:type="int">14</config:config-item> <config:config-item config:name="HorizontalSplitMode" config:type="short">0</config:config-item> <config:config-item config:name="VerticalSplitMode" config:type="short">0</config:config-item> <config:config-item config:name="HorizontalSplitPosition" config:type="int">0</config:config-item> <config:config-item config:name="VerticalSplitPosition" config:type="int">0</config:config-item> <config:config-item config:name="ActiveSplitRange" config:type="short">2</config:config-item> <config:config-item config:name="PositionLeft" config:type="int">0</config:config-item> <config:config-item config:name="PositionRight" config:type="int">0</config:config-item> <config:config-item config:name="PositionTop" config:type="int">0</config:config-item> <config:config-item config:name="PositionBottom" config:type="int">0</config:config-item> </config:config-item-map-entry>
Last modified:
01/25/2005 07:20 PM
|
Nuxeo Bloggers: Log in! Search Nuxeo Blogs
About this blog
Laurent Godard
Nuxeo Bloggers
Photos and Pictures
|
|
Nuxeo -
Indesko -
Nuxeo 5 Project
All content is copyrighted by their author. CPSSkins is Copyright © 2003-2006 by Jean-Marc Orliaguet. | CPS is Copyright © 2002-2006 by Nuxeo SAS. |