Hi all

Thanks a lot for taking care !!!


(1) Check for FilterOptions or FilterData
If one of them is set -> use it. If both are set -> error.
(2) Check the configuration settings for your "userdata", whereever you
have stored it, either in filter xcu or somewhere else. Use this data.


the syntax should be consistant regarding specifying the different elements
(five main fields, comma separated)

please note that all the settings can not be set as FilterOptions
eg. the column formatting that is case dependant

so i think we need to keep a default hardcoded set in which the filter fall to

so, here is the ordre i see

macro/script/api call provides filteroptions --> ok use them

else, manual editing
open the dialog
initialization of the dialog
  --> in .xcu file --> take partial given values
  --> complete with hardcoded (as now)

user is free to alter thess settings
use the values from the dialog on exiting it and processing the filter

The dialog is used only to give the user a chance to overwrite the
configuration data from step (2). It will be called through an API that
is under control of SFX and SFX will do it only if the loading process
happens under UI control, not if loading is done via API without
explicit permission to show dialogs. SFX will also not show the dialog
if FilterData or FilterOptions are set.


what about incomplete definition in the .xcu file ?

In case the dialog is executed it should be initialized with the data
from the configuration and the filter should proceed with what the
dialog returns. Wether you store any changes made in the dialog in
configuration is up to you.


this is an other story, can be progressivelly implemented
1. let user/admin alter the filter defaults manually (stored in .xcu)
2. a checkbox in the Dialog, unchecked by default, "use these settings by default" (question : what about columns formtting)
3. a tools > options > Spreadsheet option pannel dedicated to csv filter

Thanks again for taking care

Laurent

--
Laurent Godard <[EMAIL PROTECTED]> - Ingénierie OpenOffice.org
Indesko >> http://www.indesko.com
Nuxeo CPS >> http://www.nuxeo.com - http://www.cps-project.org
Livre "Programmation OpenOffice.org", Eyrolles 2004

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to