/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0 . */ module com { module sun { module star { module frame { /** provides a high level API to organize document templates
Template information is saved as links to the original content and organized in groups. This data should be persistent and can be updated by calling special method XDocumentTemplates::update(). A real implementation of this interface can do that on top of a ucb content provider. Method XDocumentTemplates::getContent() force that.
*/ published interface XDocumentTemplates: com::sun::star::uno::XInterface { /** provides access to the root of internal used hierarchyThis content can be used for accessing the groups directly.
@return the ucb content for template configuration */ com::sun::star::ucb::XContent getContent(); /** creates the template with the given name in the given group using the data from the storable @param GroupName specifies the group @param TemplateName specifies the template @param Storable specifies the target @return `TRUE` if operation was successfulBecause the templates are well known by links and not as direct content they can be outdated. An update force actualization of that to find wrong links.
*/ void update(); }; }; }; }; }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */