LibreOffice Module sfx2 (master) 1
Macros | Functions | Variables
doctemplates.cxx File Reference
#include <osl/mutex.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <tools/urlobj.hxx>
#include <rtl/uri.hxx>
#include <rtl/ustring.hxx>
#include <sal/log.hxx>
#include <utility>
#include <vcl/svapp.hxx>
#include <vcl/wrkwin.hxx>
#include <unotools/pathoptions.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/propertysequence.hxx>
#include <comphelper/propertyvalue.hxx>
#include <comphelper/sequenceashashmap.hxx>
#include <comphelper/storagehelper.hxx>
#include <comphelper/string.hxx>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <com/sun/star/beans/IllegalTypeException.hpp>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/beans/PropertyExistException.hpp>
#include <com/sun/star/beans/XPropertySetInfo.hpp>
#include <com/sun/star/beans/XPropertyContainer.hpp>
#include <com/sun/star/beans/StringPair.hpp>
#include <com/sun/star/ucb/SimpleFileAccess.hpp>
#include <com/sun/star/util/theMacroExpander.hpp>
#include <com/sun/star/util/theOfficeInstallationDirectories.hpp>
#include <com/sun/star/configuration/theDefaultProvider.hpp>
#include <com/sun/star/document/XTypeDetection.hpp>
#include <com/sun/star/document/DocumentProperties.hpp>
#include <com/sun/star/io/TempFile.hpp>
#include <com/sun/star/sdbc/XResultSet.hpp>
#include <com/sun/star/sdbc/XRow.hpp>
#include <com/sun/star/ucb/ContentCreationException.hpp>
#include <com/sun/star/ucb/NameClash.hpp>
#include <com/sun/star/ucb/NameClashException.hpp>
#include <com/sun/star/ucb/XCommandEnvironment.hpp>
#include <com/sun/star/ucb/XContentAccess.hpp>
#include <com/sun/star/frame/ModuleManager.hpp>
#include <com/sun/star/uno/Exception.hpp>
#include <com/sun/star/task/InteractionHandler.hpp>
#include <com/sun/star/ucb/XProgressHandler.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/frame/XDocumentTemplates.hpp>
#include <com/sun/star/frame/XStorable.hpp>
#include <com/sun/star/lang/Locale.hpp>
#include <com/sun/star/lang/XLocalizable.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/ucb/XContent.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/uno/RuntimeException.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/util/thePathSettings.hpp>
#include <svtools/templatefoldercache.hxx>
#include <unotools/configmgr.hxx>
#include <unotools/ucbhelper.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <ucbhelper/content.hxx>
#include <o3tl/string_view.hxx>
#include <sfx2/sfxresid.hxx>
#include <sfxurlrelocator.hxx>
#include "doctemplateslocal.hxx"
#include <sfx2/docfac.hxx>
#include <sfx2/strings.hrc>
#include <doctempl.hrc>
#include <memory>
#include <vector>
Include dependency graph for doctemplates.cxx:

Go to the source code of this file.

Macros

#define C_DELIM   ';'
 
#define X_OFFSET   15
 
#define Y_OFFSET   15
 

Functions

SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_sfx2_DocumentTemplates_get_implementation (css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)
 

Variables

constexpr OUStringLiteral SERVICENAME_TYPEDETECTION = u"com.sun.star.document.TypeDetection"
 
constexpr OUStringLiteral TEMPLATE_ROOT_URL = u"vnd.sun.star.hier:/templates"
 
constexpr OUStringLiteral TITLE = u"Title"
 
constexpr OUStringLiteral IS_FOLDER = u"IsFolder"
 
constexpr OUStringLiteral IS_DOCUMENT = u"IsDocument"
 
constexpr OUStringLiteral TARGET_URL = u"TargetURL"
 
constexpr OUStringLiteral TEMPLATE_VERSION = u"TemplateComponentVersion"
 
constexpr OUStringLiteral TEMPLATE_VERSION_VALUE = u"2"
 
constexpr OUStringLiteral TYPE_FOLDER = u"application/vnd.sun.star.hier-folder"
 
constexpr OUStringLiteral TYPE_LINK = u"application/vnd.sun.star.hier-link"
 
constexpr OUStringLiteral TYPE_FSYS_FOLDER = u"application/vnd.sun.staroffice.fsys-folder"
 
constexpr OUStringLiteral TYPE_FSYS_FILE = u"application/vnd.sun.staroffice.fsys-file"
 
constexpr OUStringLiteral PROPERTY_DIRLIST = u"DirectoryList"
 
constexpr OUStringLiteral PROPERTY_NEEDSUPDATE = u"NeedsUpdate"
 
constexpr OUStringLiteral PROPERTY_TYPE = u"TypeDescription"
 
constexpr OUStringLiteral TARGET_DIR_URL = u"TargetDirURL"
 
constexpr OUStringLiteral COMMAND_DELETE = u"delete"
 
constexpr OUStringLiteral STANDARD_FOLDER = u"standard"
 

Macro Definition Documentation

◆ C_DELIM

#define C_DELIM   ';'

Definition at line 115 of file doctemplates.cxx.

◆ X_OFFSET

#define X_OFFSET   15

Definition at line 148 of file doctemplates.cxx.

◆ Y_OFFSET

#define Y_OFFSET   15

Definition at line 149 of file doctemplates.cxx.

Function Documentation

◆ com_sun_star_comp_sfx2_DocumentTemplates_get_implementation()

SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_sfx2_DocumentTemplates_get_implementation ( css::uno::XComponentContext *  context,
css::uno::Sequence< css::uno::Any > const &   
)

Definition at line 2620 of file doctemplates.cxx.

Variable Documentation

◆ COMMAND_DELETE

constexpr OUStringLiteral COMMAND_DELETE = u"delete"
constexpr

Definition at line 111 of file doctemplates.cxx.

◆ IS_DOCUMENT

constexpr OUStringLiteral IS_DOCUMENT = u"IsDocument"
constexpr

Definition at line 97 of file doctemplates.cxx.

◆ IS_FOLDER

constexpr OUStringLiteral IS_FOLDER = u"IsFolder"
constexpr

Definition at line 96 of file doctemplates.cxx.

◆ PROPERTY_DIRLIST

constexpr OUStringLiteral PROPERTY_DIRLIST = u"DirectoryList"
constexpr

Definition at line 106 of file doctemplates.cxx.

Referenced by SfxURLRelocator_Impl::propertyCanContainOfficeDir().

◆ PROPERTY_NEEDSUPDATE

constexpr OUStringLiteral PROPERTY_NEEDSUPDATE = u"NeedsUpdate"
constexpr

Definition at line 107 of file doctemplates.cxx.

◆ PROPERTY_TYPE

constexpr OUStringLiteral PROPERTY_TYPE = u"TypeDescription"
constexpr

Definition at line 108 of file doctemplates.cxx.

◆ SERVICENAME_TYPEDETECTION

constexpr OUStringLiteral SERVICENAME_TYPEDETECTION = u"com.sun.star.document.TypeDetection"
constexpr

Definition at line 92 of file doctemplates.cxx.

◆ STANDARD_FOLDER

constexpr OUStringLiteral STANDARD_FOLDER = u"standard"
constexpr

Definition at line 113 of file doctemplates.cxx.

◆ TARGET_DIR_URL

constexpr OUStringLiteral TARGET_DIR_URL = u"TargetDirURL"
constexpr

Definition at line 110 of file doctemplates.cxx.

Referenced by SfxURLRelocator_Impl::propertyCanContainOfficeDir().

◆ TARGET_URL

constexpr OUStringLiteral TARGET_URL = u"TargetURL"
constexpr

Definition at line 98 of file doctemplates.cxx.

◆ TEMPLATE_ROOT_URL

constexpr OUStringLiteral TEMPLATE_ROOT_URL = u"vnd.sun.star.hier:/templates"
constexpr

Definition at line 94 of file doctemplates.cxx.

◆ TEMPLATE_VERSION

constexpr OUStringLiteral TEMPLATE_VERSION = u"TemplateComponentVersion"
constexpr

Definition at line 99 of file doctemplates.cxx.

◆ TEMPLATE_VERSION_VALUE

constexpr OUStringLiteral TEMPLATE_VERSION_VALUE = u"2"
constexpr

Definition at line 100 of file doctemplates.cxx.

◆ TITLE

constexpr OUStringLiteral TITLE = u"Title"
constexpr

Definition at line 95 of file doctemplates.cxx.

◆ TYPE_FOLDER

constexpr OUStringLiteral TYPE_FOLDER = u"application/vnd.sun.star.hier-folder"
constexpr

Definition at line 101 of file doctemplates.cxx.

◆ TYPE_FSYS_FILE

constexpr OUStringLiteral TYPE_FSYS_FILE = u"application/vnd.sun.staroffice.fsys-file"
constexpr

Definition at line 104 of file doctemplates.cxx.

◆ TYPE_FSYS_FOLDER

constexpr OUStringLiteral TYPE_FSYS_FOLDER = u"application/vnd.sun.staroffice.fsys-folder"
constexpr

Definition at line 103 of file doctemplates.cxx.

◆ TYPE_LINK

constexpr OUStringLiteral TYPE_LINK = u"application/vnd.sun.star.hier-link"
constexpr

Definition at line 102 of file doctemplates.cxx.