diff options
author | Dirk Völzke <dv@openoffice.org> | 2001-03-09 14:06:21 +0000 |
---|---|---|
committer | Dirk Völzke <dv@openoffice.org> | 2001-03-09 14:06:21 +0000 |
commit | 71b2bd25c2241f4b179b24a2ac958f3dd53c73e8 (patch) | |
tree | ebfb89bd3652e4cc4ab5a807e366262d3c7bde22 /offapi/com/sun | |
parent | ad255e5159fa52eed5457bb54b1d28dbe853a602 (diff) |
First checkin
Diffstat (limited to 'offapi/com/sun')
-rw-r--r-- | offapi/com/sun/star/frame/TemplateAccess.idl | 102 | ||||
-rw-r--r-- | offapi/com/sun/star/frame/XDocumentTemplates.idl | 132 |
2 files changed, 234 insertions, 0 deletions
diff --git a/offapi/com/sun/star/frame/TemplateAccess.idl b/offapi/com/sun/star/frame/TemplateAccess.idl new file mode 100644 index 000000000000..142e9094780a --- /dev/null +++ b/offapi/com/sun/star/frame/TemplateAccess.idl @@ -0,0 +1,102 @@ +/************************************************************************* + * + * $RCSfile: TemplateAccess.idl,v $ + * + * $Revision: 1.1 $ + * + * last change: $Author: dv $ $Date: 2001-03-09 15:06:20 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (the "License"); You may not use this file + * except in compliance with the License. You may obtain a copy of the + * License at http://www.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef __com_sun_star_frame_TemplateAccess_idl__ +#define __com_sun_star_frame_TemplateAccess_idl__ + +#ifndef __com_sun_star_frame_XLocalizedContentAccess_idl__ +#include <com/sun/star/frame/XLocalizedContentAccess.idl> +#endif + + +//============================================================================= + +module com { module sun { module star { module frame { + +//============================================================================= + +// DocMerge from xml: service com::sun::star::frame::TemplateAccess +/** specifies a collection of TemplateAccess. + + + + <p>One important instance of this service is available from the + <type>Desktop</type> object via the <type>XDesktop</type> interface. </p>@see com::sun::star::lang::XComponent + @see XDesktop + */ +service TemplateAccess +{ + // DocMerge: empty anyway + interface com::sun::star::frame::XLocalizable; + // DocMerge: empty anyway + interface com::sun::star::frame::XDocumentTemplates; + +}; + +//============================================================================= + +}; }; }; }; + +/*============================================================================= + + $Log: not supported by cvs2svn $ + +=============================================================================*/ +#endif diff --git a/offapi/com/sun/star/frame/XDocumentTemplates.idl b/offapi/com/sun/star/frame/XDocumentTemplates.idl new file mode 100644 index 000000000000..050184eadab2 --- /dev/null +++ b/offapi/com/sun/star/frame/XDocumentTemplates.idl @@ -0,0 +1,132 @@ +/************************************************************************* + * + * $RCSfile: XDocumentTemplates.idl,v $ + * + * $Revision: 1.1 $ + * + * last change: $Author: dv $ $Date: 2001-03-09 15:06:21 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (the "License"); You may not use this file + * except in compliance with the License. You may obtain a copy of the + * License at http://www.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef __com_sun_star_frame_XDocumentTemplates_idl__ +#define __com_sun_star_frame_XDocumentTemplates_idl__ + +#ifndef __com_sun_star_frame_XStorable_idl__ +#include <com/sun/star/frame/XStorable.idl> +#endif + +#ifndef __com_sun_star_ucb_XContent_idl__ +#include <com/sun/star/ucb/XContent.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module frame { + +//============================================================================= + +// DocMerge from xml: interface com::sun::star::frame::XDocumentTemplates +/** makes it possible to receive events when the state of a feature changes. + */ +[ uik(88A794B3-1154-11d5-A00F0050-04D81245), ident( "XDocumentTemplates", 1.0 ) ] +interface XDocumentTemplates: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- +// [attribute] sequence<string> Directories; + + /** returns a content, which can be used for accessing the groups. + */ + com::sun::star::ucb::XContent getContent(); + + /** creates the tempate with the given name in the given group using the + data from the storable. + */ + boolean storeTemplate( [in] string GroupName, [in] string TemplateName, + [in] com::sun::star::frame::XStorable Storable ); +// raises( com::sun::star::ucb::CommandAbortedException, com::sun::star::uno::Exception ); + /** is called when the status of the feature changes. + */ + boolean addTemplate( [in] string GroupName, [in] string TemplateName, + [in] string SourceURL ); + /** is called when the status of the feature changes. + */ + boolean removeTemplate( [in] string GroupName, [in] string TemplateName ); + + /** Creates a new Group + + @param GroupName + the name of the group to be created + + @return + true, if the group could be created, false otherwise + */ + boolean addGroup( [in] string GroupName ); + /** is called when the status of the feature changes. + */ + boolean removeGroup( [in] string GroupName ); + + /** is called when the status of the feature changes. + */ + [oneway] void update(); +}; + +//============================================================================= + +}; }; }; }; + +/*============================================================================= + + $Log: not supported by cvs2svn $ + +=============================================================================*/ +#endif |