1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 25#ifndef __com_sun_star_datatransfer_XMimeContentTypeFactory_idl__ 26#define __com_sun_star_datatransfer_XMimeContentTypeFactory_idl__ 27 28#ifndef __com_sun_star_uno_XInterface_idl__ 29#include <com/sun/star/uno/XInterface.idl> 30#endif 31 32#ifndef __com_sun_star_lang_IllegalArgumentException_idl__ 33#include <com/sun/star/lang/IllegalArgumentException.idl> 34#endif 35 36#ifndef __com_sun_star_datatransfer_XMimeContentType_idl__ 37#include <com/sun/star/datatransfer/XMimeContentType.idl> 38#endif 39 40module com { module sun { module star { module datatransfer { 41 42//------------------------------------------------------------------------- 43/** Implementations of this interface do create a 44 <type scope="com::sun::star::datatransfer">XMimeContentType</type> from 45 a given string that represents a MIME content-type 46 (see <a href="ftp://ftp.isi.edu/in-notes/rfc2045.txt">Rfc2045</a> and 47 <a href="ftp://ftp.isi.edu/in-notes/rfc2046.txt">Rfc2046</a>). 48 49*/ 50published interface XMimeContentTypeFactory : com::sun::star::uno::XInterface 51{ 52 //------------------------------------------------------------------------- 53 /** Creates an object that implements <type>XMimeContentType</type>. 54 55 @param aContentType 56 A string that represents a MIME content-type as specified in 57 <a href="ftp://ftp.isi.edu/in-notes/rfc2045.txt">Rfc2045</a> and 58 <a href="ftp://ftp.isi.edu/in-notes/rfc2046.txt">Rfc2046</a>. 59 60 @returns 61 An object that implements <type>XMimeContentType</type>. 62 63 @throws com::sun::star::lang::IllegalArgumentException 64 if the string does not conform to 65 <a href="ftp://ftp.isi.edu/in-notes/rfc2045.txt">Rfc2045</a> and 66 <a href="ftp://ftp.isi.edu/in-notes/rfc2046.txt">Rfc2046</a>; 67 <p><strong>Exception:</strong> Quoted parameter values may contain spaces.</p> 68 69 @see com::sun::star::datatransfer::XMimeContentType 70 */ 71 com::sun::star::datatransfer::XMimeContentType createMimeContentType( [in] string aContentType ) 72 raises ( com::sun::star::lang::IllegalArgumentException ); 73}; 74 75}; }; }; }; 76 77#endif 78 79