Hi Fredrik,
Thanks very much for your detailed explaination. And I know more now.

Thanks.

Best regards
Wei xuqiang
----- Original Message ----- 
From: "Fredrik Haegg" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, April 23, 2008 7:52 PM
Subject: Re: [qa-dev] [Automation]Filters


> Hi Wei xuqiang,
> 
> the Filter-names for the File extensions are from the DEV300-codebase
> (OpenOffice.org version 3) automatically retrieved from the Office.
> 
> Before this change, we had lists with Strings which we had to update
> (with GetNames.Bas) whenever something changed or a new language was
> introduced. But now, when the testtool asks for a Filter, instead of
> checking a list, it sends an API-request to the office itself, which
> returns the string as it's written in the office. Thereby it will always
> be right, no matter what language you are using.
> 
> The OLE-names are not yet (probably in the future) converted in this
> way. Therefore one have to update it manually whenever one have a
> new language, a new product (RedOffice for instance), or something has
> changed.
> 
> The OLE-names does not relate to the file-filters, other than that they
> (sometimes) both have the product-name in the beginning.
> 
> 
> Best wishes
> / Fredrik
> 
> 
> 
> weixq wrote:
>> Hi Fredrik,
>> Please let me interrupt, and about filter, I understand most of your 
>> meaning, but I couldn't understand why the name we created is about OLE 
>> Object but not the file format? And could you explain for us why the OLE 
>> Object name relate to the file-format of the filter? And if the reason is 
>> that OLE Object names contain all file formats or both they are one thing in 
>> fact or there are some other relationship between them within office?
>>
>> Thanks!
>>
>> Best regards
>> Wei xuqiang  
>> ----- Original Message ----- 
>> From: "Fredrik Haegg" <[EMAIL PROTECTED]>
>> Newsgroups: openoffice.qa.dev
>> To: <[email protected]>
>> Sent: Friday, April 18, 2008 8:53 PM
>> Subject: Re: [qa-dev] [Automation]Filters
>>
>>
>>   
>>> Hi Hong,
>>>
>>> 1. In the Office, we talk about "input and output Filters".
>>> Because the Office Works with ODF as a file-format. But if you want to
>>> save your file in a Microsoft-format, you will have to use a filter to
>>> save the information in the right way for the file to be readable by a
>>> Microsoft Office.
>>>
>>> With other words, when you open a file, a Filter is used to read /
>>> translate the data into the Office. And when you save the file, a Filter
>>> is also used to save it into the type of file you want to save.
>>> (ODF, PDF, DOC, PPT, XML, HTML etc)
>>>
>>>
>>> 2. For Automatic Testers, this is important when we want to test if the
>>> office loads and saves the files as it should (with the right filter).
>>>
>>> The problem with Filternames, is that they are called different things
>>> in different languages, and the OpenOffice.org -filters all starts with
>>> "OpenOffice.org 3.0" while the StarSuite -filters all start with
>>> "StarSuite" etc.
>>>
>>> Since DEV300 the Filternames are retrieved from the API automatically.
>>> (  http://blogs.sun.com/GullFOSS/entry/qa_automation_filter_names_for  )
>>>
>>> So you don't have to bother with those. However, you might have to
>>> create the OLE Object names manually.
>>>
>>>
>>> Best wishes
>>> / Fredrik
>>>
>>>
>>>
>>> zhang Hong wrote:
>>>     
>>>> Hi all,
>>>>
>>>> Who can tell me some details about filters in Testtool?  
>>>> If I want to add RedOffice (our product) into the filterlist, are the 
>>>> following steps right?
>>>>
>>>> 1.Running  "qa\qatesttool\global\tools\getnames.bas" based on RedOffice;
>>>> 2.Adding ole_86.txt (created in first step) into the directory 
>>>> "\global\input\olenames\" + gProductName
>>>>  I think gProductName = RedOffice, But I don't know where and how to add 
>>>> "gProductName" in scripts?
>>>>
>>>> Thank you very much!
>>>>
>>>> Best Regards
>>>> Zhang Hong
>>>>
>>>>
>>>>
>>>>
>>>> Zhang Hong
>>>> Beijing Redflag Chinese 2000 Software CO.,LTD
>>>> Email:[EMAIL PROTECTED]
>>>> 2008-04-17
>>>>
>>>>       
>>> -- 
>>> Sun Microsystems GmbH           Fredrik Haegg
>>> Nagelsweg 55                    Software
>>> 20097 Hamburg                   Phone: +49 (0)40 23646 634
>>> Germany                         Fax: +49 (0)40 23646 650
>>> http://www.sun.de               mailto:[EMAIL PROTECTED]
>>>
>>> Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1,
>>> D-85551 Kirchheim-Heimstetten
>>> Amtsgericht Muenchen: HRB 161028
>>> Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer
>>> Vorsitzender des Aufsichtsrates: Martin Haering
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>     
> 
> -- 
> Sun Microsystems GmbH           Fredrik Haegg
> Nagelsweg 55                    Software
> 20097 Hamburg                   Phone: +49 (0)40 23646 634
> Germany                         Fax: +49 (0)40 23646 650
> http://www.sun.de               mailto:[EMAIL PROTECTED]
> 
> Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1,
> D-85551 Kirchheim-Heimstetten
> Amtsgericht Muenchen: HRB 161028
> Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer
> Vorsitzender des Aufsichtsrates: Martin Haering  
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to