Eike Rathke wrote: > Hi Laurent, > > On Mon, May 29, 2006 at 11:37:05 +0200, Laurent Godard wrote: > >> i need to alter the default CSV import filter options (such as seprator, >> number of lines of tile aso) > > The default separators are hard-wired in the 'sc' module, see > sc/source/ui/unoobj/filtuno.cxx ScFilterOptionsObj::execute(), > sc/source/ui/inc/asciiopt.hxx cDefaultTextSep and > sc/source/ui/docshell/docsh.cxx ScDocShell::ConvertFrom() in the > else if (aFltName.EqualsAscii(pFilterAscii)) > section. > > What do you mean by "number of lines of tile aso"? The number of > allocated preview lines? That is controlled in > sc/source/ui/dbgui/scuiasciiopt.cxx, but what would a change to some > other fixed value controlled by UserData be good for? > > We should transfer further discussion of Calc specific topics to the > [EMAIL PROTECTED] mailing list. > > >> i looked at >> /opt/openoffice.org2.0/share/registry/modules/org/openoffice/TypeDetection/Filter/fcfg_calc_filters.xcu >> and tried to modify the <UserData> tag for CSV entry according to an >> analogy with FilterOptions API for CSV files > > I'm not sure whether the .xcu UserData element could even be used for > such mechanism, could someone from the framework team shed some light on > this? Is there a way to transport that in an SID_FILE_FILTEROPTIONS > SfxStringItem?
Yes, there is. Here's an example in Basic: args(0).Name="FilterName" args(0).Value="Text - txt - csv (StarCalc)" args(1).Name="FilterOptions" args(1).Value="XXXX" args(2).Name="Hidden" args(2).Value=False args(3).Name="InteractionHandler" args(3).Value = CreateUnoService("com.sun.star.task.InteractionHandler") doc = StarDesktop.loadComponentFromURL(sURL,"_blank",0,args()) The content of the FilterOptions string parameter can be found at the place described by Eike. Best regards, Mathias -- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]