Re: [dev] documentation for filter flags?

2006-10-26 Thread Andreas Schlüns

Allen Pulsifer schrieb:
NOTINCHOOSER excludes it from the filter dialog, the awful 
dialog you get when OOo can't find a filter.


Hello Mathias,

Thank you, that is helpful.

Is there sample file somewhere that causes OOo to bring up the filter
dialog?  I wanted to test NOTINCHOOSER but I'm unable to get this dialog to
appear.


There is no reproducable scenario, how you can trigger these dialog.
And that's exactly the reason, why I wish to remove it from OOo.
This dialog cames up in case type/filter detection was not successfully. 
And believe me: our detection can do many things.
So in 90 % of all cases where this dialog cames up - the user dont have 
a real chance to find a suitable filter for loading the document !


You can try to load e.g. binary files .-)
Often enough they are loaded as text files. Why ?
Because it's not realy possible to write a detection for Text files 
... if OOo supports encoded text files too. So we can differ between

a bunch of bytes and an encoded text file.

Or you can try e.g. to load a PDF document.
We support PDF for reading only (we have an export filter but no one for 
import). I saw this dialog sometimes by tring to load PDF documents ...

but no guarantee .-)



Thanks,

Allen

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



Regards
Andreas

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



Re: [dev] documentation for filter flags?

2006-10-25 Thread Andreas Schlüns

Mathias Bauer schrieb:

Allen Pulsifer wrote:


Just to follow up on this question, what in particular does the NOTINCHOOSER
flag do?  In testing, and in examining the source code, it appears to do
nothing.  In contrast, the NOTINFILEDIALOG hides the format in all dialogs,
including File | Open, File | Save As and File | Export.  I'm using OOo
v2.0.4 en-us under WinXP.


NOTINCHOOSER excludes it from the filter dialog, the awful dialog you
get when OOo can't find a filter.

About the documentation: I'm sure we had one, but I can't ask the
developer who should have provided it as he is on vacation until end of
next week.


I'm back .-)
And here my answer. The list of filter flags was documented inside the 
Developers Guide. Please have a look on the chapter 6.2.4  Integrating 
Import and Export Filters of 
http://api.openoffice.org/docs/DevelopersGuide/OfficeDev/OfficeDev.xhtml;.


Note: The meaning of Default was changed slightly inbetween.

Old meaning was:
default filter for saving
(in case no other filter was specified via API) ...
could be set via Tools-Options-Load/Save

New meaning is:
newest and most actual filter for this document type
as e.g. AutoSave it needs to guarantee saving of documents without 
loosing any information (as e.g. ALIEN formats can have)




I can just sum up what comes into my mind, hope I don't miss one:

Import  - should be self explaining
Export  - should be self explaining
Alien   - no zip container based format
Own - one of the OOo file formats
Template- deprecated
Preferred   - preferred filter for a particular type
Asynchron   - deprecated, only HTML-filter isn't synchron
3rdPartyFilter  - implemented as a UNO component
TemplatePath- filter for a documenttemplate
Default - default filter for this document type
NotInFileDialog - should be self explaining
NotInChooser- as above

Ciao,
Mathias



Regards
Andreas

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



Re: [dev] documentation for filter flags?

2006-10-22 Thread Mathias Bauer
Allen Pulsifer wrote:

 Just to follow up on this question, what in particular does the NOTINCHOOSER
 flag do?  In testing, and in examining the source code, it appears to do
 nothing.  In contrast, the NOTINFILEDIALOG hides the format in all dialogs,
 including File | Open, File | Save As and File | Export.  I'm using OOo
 v2.0.4 en-us under WinXP.

NOTINCHOOSER excludes it from the filter dialog, the awful dialog you
get when OOo can't find a filter.

About the documentation: I'm sure we had one, but I can't ask the
developer who should have provided it as he is on vacation until end of
next week.

I can just sum up what comes into my mind, hope I don't miss one:

Import  - should be self explaining
Export  - should be self explaining
Alien   - no zip container based format
Own - one of the OOo file formats
Template- deprecated
Preferred   - preferred filter for a particular type
Asynchron   - deprecated, only HTML-filter isn't synchron
3rdPartyFilter  - implemented as a UNO component
TemplatePath- filter for a documenttemplate
Default - default filter for this document type
NotInFileDialog - should be self explaining
NotInChooser- as above

Ciao,
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]



RE: [dev] documentation for filter flags?

2006-10-22 Thread Allen Pulsifer
 NOTINCHOOSER excludes it from the filter dialog, the awful 
 dialog you get when OOo can't find a filter.

Hello Mathias,

Thank you, that is helpful.

Is there sample file somewhere that causes OOo to bring up the filter
dialog?  I wanted to test NOTINCHOOSER but I'm unable to get this dialog to
appear.

Thanks,

Allen

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



RE: [dev] documentation for filter flags?

2006-10-18 Thread Allen Pulsifer
Just to follow up on this question, what in particular does the NOTINCHOOSER
flag do?  In testing, and in examining the source code, it appears to do
nothing.  In contrast, the NOTINFILEDIALOG hides the format in all dialogs,
including File | Open, File | Save As and File | Export.  I'm using OOo
v2.0.4 en-us under WinXP.

Allen

 -Original Message-
 From: Allen Pulsifer [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, October 18, 2006 10:23 AM
 To: dev@openoffice.org
 Subject: [dev] documentation for filter flags?
 
 
 Are the file filter flags documented somewhere?
 
 The flags I'm referring to are defined in 
 filter\source\config\cache\constant.hxx and are used in the 
 configuration
 (.xcu) files:
 
 /** @short  names of filter flags. */
 #define  FLAGNAME_3RDPARTYFILTER
 _FILTER_CONFIG_FROM_ASCII_(3RDPARTYFILTER   )
 #define  FLAGNAME_ALIEN _FILTER_CONFIG_FROM_ASCII_(ALIEN
 )
 #define  FLAGNAME_ASYNCHRON 
 _FILTER_CONFIG_FROM_ASCII_(ASYNCHRON
 )
 #define  FLAGNAME_BROWSERPREFERRED 
 _FILTER_CONFIG_FROM_ASCII_(BROWSERPREFERRED ) #define  
 FLAGNAME_CONSULTSERVICE
 _FILTER_CONFIG_FROM_ASCII_(CONSULTSERVICE   )
 #define  FLAGNAME_DEFAULT   
 _FILTER_CONFIG_FROM_ASCII_(DEFAULT
 )
 #define  FLAGNAME_EXPORT
 _FILTER_CONFIG_FROM_ASCII_(EXPORT
 )
 #define  FLAGNAME_IMPORT
 _FILTER_CONFIG_FROM_ASCII_(IMPORT
 )
 #define  FLAGNAME_INTERNAL  
 _FILTER_CONFIG_FROM_ASCII_(INTERNAL
 )
 #define  FLAGNAME_NOTINCHOOSER
 _FILTER_CONFIG_FROM_ASCII_(NOTINCHOOSER )
 #define  FLAGNAME_NOTINFILEDIALOG 
 _FILTER_CONFIG_FROM_ASCII_(NOTINFILEDIALOG  ) #define  
 FLAGNAME_NOTINSTALLED
 _FILTER_CONFIG_FROM_ASCII_(NOTINSTALLED )
 #define  FLAGNAME_OWN   _FILTER_CONFIG_FROM_ASCII_(OWN
 )
 #define  FLAGNAME_PACKED
 _FILTER_CONFIG_FROM_ASCII_(PACKED
 )
 #define  FLAGNAME_PREFERRED 
 _FILTER_CONFIG_FROM_ASCII_(PREFERRED
 )
 #define  FLAGNAME_READONLY  
 _FILTER_CONFIG_FROM_ASCII_(READONLY
 )
 #define  FLAGNAME_SILENTEXPORT
 _FILTER_CONFIG_FROM_ASCII_(SILENTEXPORT )
 #define  FLAGNAME_SUPPORTSSELECTION
 _FILTER_CONFIG_FROM_ASCII_(SUPPORTSSELECTION)
 #define  FLAGNAME_TEMPLATE  
 _FILTER_CONFIG_FROM_ASCII_(TEMPLATE
 )
 #define  FLAGNAME_TEMPLATEPATH
 _FILTER_CONFIG_FROM_ASCII_(TEMPLATEPATH )
 #define  FLAGNAME_USESOPTIONS   
 _FILTER_CONFIG_FROM_ASCII_(USESOPTIONS
 )
 #define  FLAGNAME_COMBINED  
 _FILTER_CONFIG_FROM_ASCII_(COMBINED
 )
 
 Similar flags appear in framework\inc\filterflags.h and in
 framework\source\constant\filter.cxx:
 
 /*-***
 **
 ***//**
   @short  These values describe our 
 supported filter
 flags.
   @attention  Don't change flag values 
 without reason - we
 must support old functionality and position
   in flag combined values!
 *//*-*
 **
 **/
 
 #define FILTERFLAGNAME_IMPORT
 DECLARE_ASCII(Import   )  // x
 #define FILTERFLAGNAME_EXPORT
 DECLARE_ASCII(Export   )  // x
 #define FILTERFLAGNAME_TEMPLATE
 DECLARE_ASCII(Template )  // x
 #define FILTERFLAGNAME_INTERNAL
 DECLARE_ASCII(Internal )  // x
 #define FILTERFLAGNAME_TEMPLATEPATH
 DECLARE_ASCII(TemplatePath )  // x
 #define FILTERFLAGNAME_OWN
 DECLARE_ASCII(Own  )  // x
 #define FILTERFLAGNAME_ALIEN
 DECLARE_ASCII(Alien)  // x
 #define FILTERFLAGNAME_USESOPTIONS
 DECLARE_ASCII(UsesOptions  )  // x
 #define FILTERFLAGNAME_DEFAULT
 DECLARE_ASCII(Default  )  // x
 #define FILTERFLAGNAME_EXECUTABLE
 DECLARE_ASCII(Executable   )  // deprecated
 #define FILTERFLAGNAME_SUPPORTSSELECTION
 DECLARE_ASCII(SupportsSelection)  // x
 #define FILTERFLAGNAME_MAPTOAPPPLUG
 DECLARE_ASCII(MapToAppPlug )  // deprecated
 #define FILTERFLAGNAME_NOTINFILEDIALOG 
 DECLARE_ASCII(NotInFileDialog  )  // x #define 
 FILTERFLAGNAME_NOTINCHOOSER
 DECLARE_ASCII(NotInChooser )  // x
 #define FILTERFLAGNAME_ASYNCHRON
 DECLARE_ASCII(Asynchron)  // x
 #define FILTERFLAGNAME_CREATOR
 DECLARE_ASCII(Creator  )  // deprecated
 #define FILTERFLAGNAME_READONLY
 DECLARE_ASCII(Readonly )  // x
 #define FILTERFLAGNAME_NOTINSTALLED
 DECLARE_ASCII(NotInstalled )  // deprecated
 #define FILTERFLAGNAME_CONSULTSERVICE
 DECLARE_ASCII(ConsultService   )  // deprecated
 #define FILTERFLAGNAME_3RDPARTYFILTER
 DECLARE_ASCII(3rdPartyFilter   )  // x
 #define FILTERFLAGNAME_PACKED
 DECLARE_ASCII(Packed   )  // x
 #define FILTERFLAGNAME_SILENTEXPORT
 DECLARE_ASCII(SilentExport )  // x
 #define FILTERFLAGNAME_BROWSERPREFERED 
 DECLARE_ASCII(BrowserPrefered  )  // deprecated #define 
 FILTERFLAGNAME_PREFERED
 DECLARE_ASCII(Prefered )  // x
 
 
 Thanks,
 
 Allen
 
 

RE: [dev] documentation for filter flags?

2006-10-18 Thread Allen Pulsifer
Just to follow up on this question, what in particular does the NOTINCHOOSER
flag do?  In testing, and in examining the source code, it appears to do
nothing.  In contrast, the NOTINFILEDIALOG hides the format in all dialogs,
including File | Open, File | Save As and File | Export.  I'm using OOo
v2.0.4 en-us under WinXP.

Allen

 -Original Message-
 From: Allen Pulsifer [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, October 18, 2006 10:23 AM
 To: dev@openoffice.org
 Subject: [dev] documentation for filter flags?
 
 
 Are the file filter flags documented somewhere?
 
 The flags I'm referring to are defined in 
 filter\source\config\cache\constant.hxx and are used in the 
 configuration
 (.xcu) files:
 
 /** @short  names of filter flags. */
 #define  FLAGNAME_3RDPARTYFILTER
 _FILTER_CONFIG_FROM_ASCII_(3RDPARTYFILTER   )
 #define  FLAGNAME_ALIEN _FILTER_CONFIG_FROM_ASCII_(ALIEN
 )
 #define  FLAGNAME_ASYNCHRON 
 _FILTER_CONFIG_FROM_ASCII_(ASYNCHRON
 )
 #define  FLAGNAME_BROWSERPREFERRED 
 _FILTER_CONFIG_FROM_ASCII_(BROWSERPREFERRED ) #define  
 FLAGNAME_CONSULTSERVICE
 _FILTER_CONFIG_FROM_ASCII_(CONSULTSERVICE   )
 #define  FLAGNAME_DEFAULT   
 _FILTER_CONFIG_FROM_ASCII_(DEFAULT
 )
 #define  FLAGNAME_EXPORT
 _FILTER_CONFIG_FROM_ASCII_(EXPORT
 )
 #define  FLAGNAME_IMPORT
 _FILTER_CONFIG_FROM_ASCII_(IMPORT
 )
 #define  FLAGNAME_INTERNAL  
 _FILTER_CONFIG_FROM_ASCII_(INTERNAL
 )
 #define  FLAGNAME_NOTINCHOOSER
 _FILTER_CONFIG_FROM_ASCII_(NOTINCHOOSER )
 #define  FLAGNAME_NOTINFILEDIALOG 
 _FILTER_CONFIG_FROM_ASCII_(NOTINFILEDIALOG  ) #define  
 FLAGNAME_NOTINSTALLED
 _FILTER_CONFIG_FROM_ASCII_(NOTINSTALLED )
 #define  FLAGNAME_OWN   _FILTER_CONFIG_FROM_ASCII_(OWN
 )
 #define  FLAGNAME_PACKED
 _FILTER_CONFIG_FROM_ASCII_(PACKED
 )
 #define  FLAGNAME_PREFERRED 
 _FILTER_CONFIG_FROM_ASCII_(PREFERRED
 )
 #define  FLAGNAME_READONLY  
 _FILTER_CONFIG_FROM_ASCII_(READONLY
 )
 #define  FLAGNAME_SILENTEXPORT
 _FILTER_CONFIG_FROM_ASCII_(SILENTEXPORT )
 #define  FLAGNAME_SUPPORTSSELECTION
 _FILTER_CONFIG_FROM_ASCII_(SUPPORTSSELECTION)
 #define  FLAGNAME_TEMPLATE  
 _FILTER_CONFIG_FROM_ASCII_(TEMPLATE
 )
 #define  FLAGNAME_TEMPLATEPATH
 _FILTER_CONFIG_FROM_ASCII_(TEMPLATEPATH )
 #define  FLAGNAME_USESOPTIONS   
 _FILTER_CONFIG_FROM_ASCII_(USESOPTIONS
 )
 #define  FLAGNAME_COMBINED  
 _FILTER_CONFIG_FROM_ASCII_(COMBINED
 )
 
 Similar flags appear in framework\inc\filterflags.h and in
 framework\source\constant\filter.cxx:
 
 /*-***
 **
 ***//**
   @short  These values describe our 
 supported filter
 flags.
   @attention  Don't change flag values 
 without reason - we
 must support old functionality and position
   in flag combined values!
 *//*-*
 **
 **/
 
 #define FILTERFLAGNAME_IMPORT
 DECLARE_ASCII(Import   )  // x
 #define FILTERFLAGNAME_EXPORT
 DECLARE_ASCII(Export   )  // x
 #define FILTERFLAGNAME_TEMPLATE
 DECLARE_ASCII(Template )  // x
 #define FILTERFLAGNAME_INTERNAL
 DECLARE_ASCII(Internal )  // x
 #define FILTERFLAGNAME_TEMPLATEPATH
 DECLARE_ASCII(TemplatePath )  // x
 #define FILTERFLAGNAME_OWN
 DECLARE_ASCII(Own  )  // x
 #define FILTERFLAGNAME_ALIEN
 DECLARE_ASCII(Alien)  // x
 #define FILTERFLAGNAME_USESOPTIONS
 DECLARE_ASCII(UsesOptions  )  // x
 #define FILTERFLAGNAME_DEFAULT
 DECLARE_ASCII(Default  )  // x
 #define FILTERFLAGNAME_EXECUTABLE
 DECLARE_ASCII(Executable   )  // deprecated
 #define FILTERFLAGNAME_SUPPORTSSELECTION
 DECLARE_ASCII(SupportsSelection)  // x
 #define FILTERFLAGNAME_MAPTOAPPPLUG
 DECLARE_ASCII(MapToAppPlug )  // deprecated
 #define FILTERFLAGNAME_NOTINFILEDIALOG 
 DECLARE_ASCII(NotInFileDialog  )  // x #define 
 FILTERFLAGNAME_NOTINCHOOSER
 DECLARE_ASCII(NotInChooser )  // x
 #define FILTERFLAGNAME_ASYNCHRON
 DECLARE_ASCII(Asynchron)  // x
 #define FILTERFLAGNAME_CREATOR
 DECLARE_ASCII(Creator  )  // deprecated
 #define FILTERFLAGNAME_READONLY
 DECLARE_ASCII(Readonly )  // x
 #define FILTERFLAGNAME_NOTINSTALLED
 DECLARE_ASCII(NotInstalled )  // deprecated
 #define FILTERFLAGNAME_CONSULTSERVICE
 DECLARE_ASCII(ConsultService   )  // deprecated
 #define FILTERFLAGNAME_3RDPARTYFILTER
 DECLARE_ASCII(3rdPartyFilter   )  // x
 #define FILTERFLAGNAME_PACKED
 DECLARE_ASCII(Packed   )  // x
 #define FILTERFLAGNAME_SILENTEXPORT
 DECLARE_ASCII(SilentExport )  // x
 #define FILTERFLAGNAME_BROWSERPREFERED 
 DECLARE_ASCII(BrowserPrefered  )  // deprecated #define 
 FILTERFLAGNAME_PREFERED
 DECLARE_ASCII(Prefered )  // x
 
 
 Thanks,
 
 Allen