1d1766043SAndrew Rist/************************************************************** 2*3de7a471SAriel Constenla-Haile* 3*3de7a471SAriel Constenla-Haile* Licensed to the Apache Software Foundation (ASF) under one 4*3de7a471SAriel Constenla-Haile* or more contributor license agreements. See the NOTICE file 5*3de7a471SAriel Constenla-Haile* distributed with this work for additional information 6*3de7a471SAriel Constenla-Haile* regarding copyright ownership. The ASF licenses this file 7*3de7a471SAriel Constenla-Haile* to you under the Apache License, Version 2.0 (the 8*3de7a471SAriel Constenla-Haile* "License"); you may not use this file except in compliance 9*3de7a471SAriel Constenla-Haile* with the License. You may obtain a copy of the License at 10*3de7a471SAriel Constenla-Haile* 11*3de7a471SAriel Constenla-Haile* http://www.apache.org/licenses/LICENSE-2.0 12*3de7a471SAriel Constenla-Haile* 13*3de7a471SAriel Constenla-Haile* Unless required by applicable law or agreed to in writing, 14*3de7a471SAriel Constenla-Haile* software distributed under the License is distributed on an 15*3de7a471SAriel Constenla-Haile* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*3de7a471SAriel Constenla-Haile* KIND, either express or implied. See the License for the 17*3de7a471SAriel Constenla-Haile* specific language governing permissions and limitations 18*3de7a471SAriel Constenla-Haile* under the License. 19*3de7a471SAriel Constenla-Haile* 20*3de7a471SAriel Constenla-Haile*************************************************************/ 21d1766043SAndrew Rist 22*3de7a471SAriel Constenla-Haile#ifndef __com_sun_star_text_XAutoTextContainer_idl__ 23*3de7a471SAriel Constenla-Haile#define __com_sun_star_text_XAutoTextContainer_idl__ 24d1766043SAndrew Rist 25*3de7a471SAriel Constenla-Haile#include <com/sun/star/container/ElementExistException.idl> 26*3de7a471SAriel Constenla-Haile#include <com/sun/star/container/NoSuchElementException.idl> 27*3de7a471SAriel Constenla-Haile#include <com/sun/star/container/XNameAccess.idl> 28*3de7a471SAriel Constenla-Haile#include <com/sun/star/lang/IllegalArgumentException.idl> 29*3de7a471SAriel Constenla-Haile#include <com/sun/star/text/XAutoTextGroup.idl> 30*3de7a471SAriel Constenla-Haile 31*3de7a471SAriel Constenla-Hailemodule com { module sun { module star { module text { 32*3de7a471SAriel Constenla-Haile 33*3de7a471SAriel Constenla-Haile/** handles blocks of <type>AutoTextEntry</type>. 34*3de7a471SAriel Constenla-Haile @see AutoTextContainer 35*3de7a471SAriel Constenla-Haile*/ 36cdf0e10cSrcweirpublished interface XAutoTextContainer: com::sun::star::container::XNameAccess 37*3de7a471SAriel Constenla-Haile{ 38*3de7a471SAriel Constenla-Haile /** creates a new AutoText group. 39*3de7a471SAriel Constenla-Haile 40*3de7a471SAriel Constenla-Haile @param aGroupName the name of the <type>AutoTextContainer</type> 41*3de7a471SAriel Constenla-Haile 42*3de7a471SAriel Constenla-Haile <p>The name must follow the pattern <code>groupname*pathid</code>, where:</p> 43*3de7a471SAriel Constenla-Haile 44*3de7a471SAriel Constenla-Haile <ul> 45*3de7a471SAriel Constenla-Haile <li><code>groupname</code> should contain only alphanumeric characters 46*3de7a471SAriel Constenla-Haile (A-Za-z0-9), underscore (_) or space (0x20)</li> 47*3de7a471SAriel Constenla-Haile <li>an asterisk (*) delimiter separates the group name from the path 48*3de7a471SAriel Constenla-Haile identifier</li> 49*3de7a471SAriel Constenla-Haile <li><code>pathid</code> is a number (0 or 1) identifying the directory 50*3de7a471SAriel Constenla-Haile where the AutoText file is stored. Paths are stored in the Office 51*3de7a471SAriel Constenla-Haile configuration and accessed through 52*3de7a471SAriel Constenla-Haile <member scope="com::sun::star::util">PathSettings::AutoText</member>. 53*3de7a471SAriel Constenla-Haile <ul> 54*3de7a471SAriel Constenla-Haile <li>0 indicates the path of the <b>Office Basis</b> layer</li> 55*3de7a471SAriel Constenla-Haile <li>1 indicates the path of the <b>user</b> directory</li> 56*3de7a471SAriel Constenla-Haile </ul> 57*3de7a471SAriel Constenla-Haile </li> 58*3de7a471SAriel Constenla-Haile </ul> 59*3de7a471SAriel Constenla-Haile If only <code>groupname</code> is specified, the path defaults to 0, the 60*3de7a471SAriel Constenla-Haile <b>Office Basis</b> layer.</br>Note that in some systems the user may lack of 61*3de7a471SAriel Constenla-Haile write access to the Office Basis directory. 62*3de7a471SAriel Constenla-Haile 63*3de7a471SAriel Constenla-Haile @example 64*3de7a471SAriel Constenla-Haile 65*3de7a471SAriel Constenla-Haile <ul> 66*3de7a471SAriel Constenla-Haile <li><code>standard*0</code></br>the "standard" AutoTextGroup in the Office Basis layer</li> 67*3de7a471SAriel Constenla-Haile <li><code>template</code></br>the "template" AutoTextGroup in the Office Basis layer</li> 68*3de7a471SAriel Constenla-Haile <li><code>mytexts*1</code></br>the "mytexts" AutoTextGroup in the user directory</li> 69*3de7a471SAriel Constenla-Haile </ul> 70*3de7a471SAriel Constenla-Haile 71*3de7a471SAriel Constenla-Haile */ 72*3de7a471SAriel Constenla-Haile com::sun::star::text::XAutoTextGroup insertNewByName( [in] string aGroupName ) 73*3de7a471SAriel Constenla-Haile raises( com::sun::star::lang::IllegalArgumentException, 74*3de7a471SAriel Constenla-Haile com::sun::star::container::ElementExistException ); 75*3de7a471SAriel Constenla-Haile 76*3de7a471SAriel Constenla-Haile /** deletes the specified AutoText group. 77*3de7a471SAriel Constenla-Haile @param aGroupName see the documentation for <member>XAutoTextContainer::insertNewByName()</member> 78*3de7a471SAriel Constenla-Haile */ 79*3de7a471SAriel Constenla-Haile void removeByName( [in] string aGroupName ) 80*3de7a471SAriel Constenla-Haile raises( com::sun::star::container::NoSuchElementException ); 81*3de7a471SAriel Constenla-Haile 82*3de7a471SAriel Constenla-Haile}; 83*3de7a471SAriel Constenla-Haile 84*3de7a471SAriel Constenla-Haile}; }; }; }; 85*3de7a471SAriel Constenla-Haile 86cdf0e10cSrcweir#endif 87