1d1766043SAndrew Rist/************************************************************** 2*4b689f20SAriel Constenla-Haile * 3*4b689f20SAriel Constenla-Haile * Licensed to the Apache Software Foundation (ASF) under one 4*4b689f20SAriel Constenla-Haile * or more contributor license agreements. See the NOTICE file 5*4b689f20SAriel Constenla-Haile * distributed with this work for additional information 6*4b689f20SAriel Constenla-Haile * regarding copyright ownership. The ASF licenses this file 7*4b689f20SAriel Constenla-Haile * to you under the Apache License, Version 2.0 (the 8*4b689f20SAriel Constenla-Haile * "License"); you may not use this file except in compliance 9*4b689f20SAriel Constenla-Haile * with the License. You may obtain a copy of the License at 10*4b689f20SAriel Constenla-Haile * 11*4b689f20SAriel Constenla-Haile * http://www.apache.org/licenses/LICENSE-2.0 12*4b689f20SAriel Constenla-Haile * 13*4b689f20SAriel Constenla-Haile * Unless required by applicable law or agreed to in writing, 14*4b689f20SAriel Constenla-Haile * software distributed under the License is distributed on an 15*4b689f20SAriel Constenla-Haile * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*4b689f20SAriel Constenla-Haile * KIND, either express or implied. See the License for the 17*4b689f20SAriel Constenla-Haile * specific language governing permissions and limitations 18*4b689f20SAriel Constenla-Haile * under the License. 19*4b689f20SAriel Constenla-Haile * 20*4b689f20SAriel Constenla-Haile *************************************************************/ 21d1766043SAndrew Rist 223de7a471SAriel Constenla-Haile#ifndef __com_sun_star_text_XAutoTextContainer_idl__ 233de7a471SAriel Constenla-Haile#define __com_sun_star_text_XAutoTextContainer_idl__ 24d1766043SAndrew Rist 253de7a471SAriel Constenla-Haile#include <com/sun/star/container/ElementExistException.idl> 263de7a471SAriel Constenla-Haile#include <com/sun/star/container/NoSuchElementException.idl> 273de7a471SAriel Constenla-Haile#include <com/sun/star/container/XNameAccess.idl> 283de7a471SAriel Constenla-Haile#include <com/sun/star/lang/IllegalArgumentException.idl> 293de7a471SAriel Constenla-Haile#include <com/sun/star/text/XAutoTextGroup.idl> 303de7a471SAriel Constenla-Haile 313de7a471SAriel Constenla-Hailemodule com { module sun { module star { module text { 323de7a471SAriel Constenla-Haile 333de7a471SAriel Constenla-Haile/** handles blocks of <type>AutoTextEntry</type>. 343de7a471SAriel Constenla-Haile @see AutoTextContainer 353de7a471SAriel Constenla-Haile*/ 36cdf0e10cSrcweirpublished interface XAutoTextContainer: com::sun::star::container::XNameAccess 373de7a471SAriel Constenla-Haile{ 383de7a471SAriel Constenla-Haile /** creates a new AutoText group. 393de7a471SAriel Constenla-Haile 403de7a471SAriel Constenla-Haile @param aGroupName the name of the <type>AutoTextContainer</type> 413de7a471SAriel Constenla-Haile 423de7a471SAriel Constenla-Haile <p>The name must follow the pattern <code>groupname*pathid</code>, where:</p> 433de7a471SAriel Constenla-Haile 443de7a471SAriel Constenla-Haile <ul> 453de7a471SAriel Constenla-Haile <li><code>groupname</code> should contain only alphanumeric characters 463de7a471SAriel Constenla-Haile (A-Za-z0-9), underscore (_) or space (0x20)</li> 473de7a471SAriel Constenla-Haile <li>an asterisk (*) delimiter separates the group name from the path 483de7a471SAriel Constenla-Haile identifier</li> 493de7a471SAriel Constenla-Haile <li><code>pathid</code> is a number (0 or 1) identifying the directory 503de7a471SAriel Constenla-Haile where the AutoText file is stored. Paths are stored in the Office 513de7a471SAriel Constenla-Haile configuration and accessed through 523de7a471SAriel Constenla-Haile <member scope="com::sun::star::util">PathSettings::AutoText</member>. 533de7a471SAriel Constenla-Haile <ul> 543de7a471SAriel Constenla-Haile <li>0 indicates the path of the <b>Office Basis</b> layer</li> 553de7a471SAriel Constenla-Haile <li>1 indicates the path of the <b>user</b> directory</li> 563de7a471SAriel Constenla-Haile </ul> 573de7a471SAriel Constenla-Haile </li> 583de7a471SAriel Constenla-Haile </ul> 593de7a471SAriel Constenla-Haile If only <code>groupname</code> is specified, the path defaults to 0, the 603de7a471SAriel Constenla-Haile <b>Office Basis</b> layer.</br>Note that in some systems the user may lack of 613de7a471SAriel Constenla-Haile write access to the Office Basis directory. 623de7a471SAriel Constenla-Haile 633de7a471SAriel Constenla-Haile @example 643de7a471SAriel Constenla-Haile 653de7a471SAriel Constenla-Haile <ul> 663de7a471SAriel Constenla-Haile <li><code>standard*0</code></br>the "standard" AutoTextGroup in the Office Basis layer</li> 673de7a471SAriel Constenla-Haile <li><code>template</code></br>the "template" AutoTextGroup in the Office Basis layer</li> 683de7a471SAriel Constenla-Haile <li><code>mytexts*1</code></br>the "mytexts" AutoTextGroup in the user directory</li> 693de7a471SAriel Constenla-Haile </ul> 703de7a471SAriel Constenla-Haile 713de7a471SAriel Constenla-Haile */ 723de7a471SAriel Constenla-Haile com::sun::star::text::XAutoTextGroup insertNewByName( [in] string aGroupName ) 733de7a471SAriel Constenla-Haile raises( com::sun::star::lang::IllegalArgumentException, 743de7a471SAriel Constenla-Haile com::sun::star::container::ElementExistException ); 753de7a471SAriel Constenla-Haile 763de7a471SAriel Constenla-Haile /** deletes the specified AutoText group. 773de7a471SAriel Constenla-Haile @param aGroupName see the documentation for <member>XAutoTextContainer::insertNewByName()</member> 783de7a471SAriel Constenla-Haile */ 793de7a471SAriel Constenla-Haile void removeByName( [in] string aGroupName ) 803de7a471SAriel Constenla-Haile raises( com::sun::star::container::NoSuchElementException ); 813de7a471SAriel Constenla-Haile 823de7a471SAriel Constenla-Haile}; 833de7a471SAriel Constenla-Haile 843de7a471SAriel Constenla-Haile}; }; }; }; 853de7a471SAriel Constenla-Haile 86*4b689f20SAriel Constenla-Haile#endif 87