Hi Mathias,

On Thu, Jun 01, 2006 at 12:18:46 +0200, Mathias Bauer wrote:

> > automatism to transport the .xcu UserData as a FilterOptions' value,
> > without the need of macros or alike. With such a mechanism it would be
> > relatively easy to modify the initialization of the dialog to obtain the
> > settings in ScFilterOptionsObj::execute().
> 
> Sorry, I don't understand. Why transport configuration data if it works
> with the FilterOptions parameter? Or does the userdata contain something
> that can't be set through FilterOptions?

No, that wasn't the intention. The FilterOptions property currently is
not evaluated if the dialog is invoked. The dialog is used to set the
FilterOptions for filter processing.

Recall that Laurant was looking for some kind of default options he
wanted to store in the .xcu UserData, which should get used whenever
a .csv file is opened, no macro involved. My idea was, to let the
framework transport that UserData as the FilterOptions property and
initialize the dialog accordingly. But:

> Besides that there *is* a way to transport user data to a filter, the
> "FilterData" property. Of course the filter must support it.

Ah, I overlooked that one, thanks. Probably the wording, UserData
doesn't match FilterData ;-)  Yes, the property would had to be
implemented, currently it isn't. So if the filter config's .xcu UserData
is always transported in the FilterData property (is it? am I on the
right track here?) we could use it as a default initialization if no
FilterOptions property is set.

Summary:

- Framework sets fcfg_calc_filters.xcu UserData as FilterData property.
- User may set FilterOptions property, for example in a macro.
- ScFilterOptionsObj::execute() processing:
  - IF FilterOptions set:
    - use FilterOptions to initialize dialog settings.
  - ELSE IF optional other application configuration's presets may
    define dialog settings:
    - use those
  - ELSE IF FilterData set:
    - use FilterData to initialize dialog settings.
  - ELSE
    - use application's defaults.
  - set FilterOptions from dialog values.
- process filter.

Does that make sense?

  Eike

-- 
 OOo/SO Calc core developer. Number formatter stricken i18n transpositionizer.
 GnuPG key 0x293C05FD:  997A 4C60 CE41 0149 0DB3  9E96 2F1A D073 293C 05FD

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

Reply via email to