/* -*- 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 . */ #ifndef INCLUDED_COMPHELPER_DOCUMENTCONSTANTS_HXX #define INCLUDED_COMPHELPER_DOCUMENTCONSTANTS_HXX #include #include // formats of SO6/7 #define MIMETYPE_VND_SUN_XML_WRITER_ASCII "application/vnd.sun.xml.writer" #define MIMETYPE_VND_SUN_XML_WRITER_WEB_ASCII "application/vnd.sun.xml.writer.web" #define MIMETYPE_VND_SUN_XML_WRITER_GLOBAL_ASCII "application/vnd.sun.xml.writer.global" #define MIMETYPE_VND_SUN_XML_DRAW_ASCII "application/vnd.sun.xml.draw" #define MIMETYPE_VND_SUN_XML_IMPRESS_ASCII "application/vnd.sun.xml.impress" #define MIMETYPE_VND_SUN_XML_CALC_ASCII "application/vnd.sun.xml.calc" #define MIMETYPE_VND_SUN_XML_CHART_ASCII "application/vnd.sun.xml.chart" #define MIMETYPE_VND_SUN_XML_MATH_ASCII "application/vnd.sun.xml.math" #define MIMETYPE_VND_SUN_XML_BASE_ASCII "application/vnd.sun.xml.base" // template formats of SO6/7 #define MIMETYPE_VND_SUN_XML_WRITER_TEMPLATE_ASCII "application/vnd.sun.xml.writer.template" #define MIMETYPE_VND_SUN_XML_DRAW_TEMPLATE_ASCII "application/vnd.sun.xml.draw.template" #define MIMETYPE_VND_SUN_XML_IMPRESS_TEMPLATE_ASCII "application/vnd.sun.xml.impress.template" #define MIMETYPE_VND_SUN_XML_CALC_TEMPLATE_ASCII "application/vnd.sun.xml.calc.template" // formats of SO8 #define MIMETYPE_OASIS_OPENDOCUMENT_TEXT_ASCII "application/vnd.oasis.opendocument.text" #define MIMETYPE_OASIS_OPENDOCUMENT_TEXT_WEB_ASCII "application/vnd.oasis.opendocument.text-web" #define MIMETYPE_OASIS_OPENDOCUMENT_TEXT_GLOBAL_ASCII "application/vnd.oasis.opendocument.text-master" #define MIMETYPE_OASIS_OPENDOCUMENT_DRAWING_ASCII "application/vnd.oasis.opendocument.graphics" #define MIMETYPE_OASIS_OPENDOCUMENT_PRESENTATION_ASCII "application/vnd.oasis.opendocument.presentation" #define MIMETYPE_OASIS_OPENDOCUMENT_SPREADSHEET_ASCII "application/vnd.oasis.opendocument.spreadsheet" #define MIMETYPE_OASIS_OPENDOCUMENT_CHART_ASCII "application/vnd.oasis.opendocument.chart" #define MIMETYPE_OASIS_OPENDOCUMENT_FORMULA_ASCII "application/vnd.oasis.opendocument.formula" #define MIMETYPE_OASIS_OPENDOCUMENT_DATABASE_ASCII "application/vnd.oasis.opendocument.base" #define MIMETYPE_OASIS_OPENDOCUMENT_REPORT_ASCII "application/vnd.sun.xml.report" #define MIMETYPE_OASIS_OPENDOCUMENT_REPORT_CHART_ASCII "application/vnd.sun.xml.report.chart" // template formats of SO8 #define MIMETYPE_OASIS_OPENDOCUMENT_TEXT_TEMPLATE_ASCII "application/vnd.oasis.opendocument.text-template" #define MIMETYPE_OASIS_OPENDOCUMENT_TEXT_GLOBAL_TEMPLATE_ASCII "application/vnd.oasis.opendocument.text-master-template" #define MIMETYPE_OASIS_OPENDOCUMENT_DRAWING_TEMPLATE_ASCII "application/vnd.oasis.opendocument.graphics-template" #define MIMETYPE_OASIS_OPENDOCUMENT_PRESENTATION_TEMPLATE_ASCII "application/vnd.oasis.opendocument.presentation-template" #define MIMETYPE_OASIS_OPENDOCUMENT_SPREADSHEET_TEMPLATE_ASCII "application/vnd.oasis.opendocument.spreadsheet-template" #define MIMETYPE_OASIS_OPENDOCUMENT_CHART_TEMPLATE_ASCII "application/vnd.oasis.opendocument.chart-template" #define MIMETYPE_OASIS_OPENDOCUMENT_FORMULA_TEMPLATE_ASCII "application/vnd.oasis.opendocument.formula-template" // ODF versions #define ODFVER_010_TEXT "1.0" #define ODFVER_011_TEXT "1.1" #define ODFVER_012_TEXT "1.2" // filter flags // TODO/LATER: The flags should be part of the UNO specification // // http://www.mail-archive.com/dev@openoffice.org/msg05047.html says: // // I can just sum up what comes into my mind, hope I don't miss one: // // Import - should be self explaining // Export - should be self explaining // Template - deprecated // TemplatePath - filter for a documenttemplate // Own - one of the OOo file formats // Alien - no zip container based format // Preferred - preferred filter for a particular type // 3rdPartyFilter - implemented as a UNO component // Default - default filter for this document type // // (The 3rdPartyFilter flag is here called StarONE) // enum class SfxFilterFlags { NONE = 0, IMPORT = 0x00000001L, EXPORT = 0x00000002L, TEMPLATE = 0x00000004L, INTERNAL = 0x00000008L, TEMPLATEPATH = 0x00000010L, OWN = 0x00000020L, ALIEN = 0x00000040L, DEFAULT = 0x00000100L, SUPPORTSSELECTION = 0x00000400L, NOTINFILEDLG = 0x00001000L, OPENREADONLY = 0x00010000L, MUSTINSTALL = 0x00020000L, CONSULTSERVICE = 0x00040000L, STARONEFILTER = 0x00080000L, PACKED = 0x00100000L, COMBINED = 0x00800000L, ENCRYPTION = 0x01000000L, PASSWORDTOMODIFY = 0x02000000L, GPGENCRYPTION = 0x04000000L, PREFERED = 0x10000000L, STARTPRESENTATION = 0x20000000L, SUPPORTSSIGNING = 0x40000000L, }; namespace o3tl { template<> struct typed_flags : is_typed_flags {}; } #define SFX_FILTER_NOTINSTALLED (SfxFilterFlags::MUSTINSTALL | SfxFilterFlags::CONSULTSERVICE) #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ +backports LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2015-01-29callcatcher: large newly detected unused methods post de-virtualizationCaolán McNamara
2015-01-12java: simplify sleeping and waiting in testsNoel Grandin
2015-01-05java: remove dead codeNoel Grandin
2014-12-10java: simplify the getMSF() methodsNoel Grandin
2014-11-18java: make fields final where possibleNoel Grandin
2014-11-12Fix common typos. No automatic tools. Handmade…Andrea Gelmini
2014-10-19accessibility: The if statement is redundantRobert Antoni Buj i Gelonch
2014-10-08complex: Use 'import com.sun.star.beans.UnknownPropertyException;'Robert Antoni Buj i Gelonch
2014-10-07java: remove unnecessary adding of empty stringsNoel Grandin
2014-09-09toolkit: use String.length()==0 instead of String.equals(empty string)rbuj
2014-09-02toolkit: fix javadoc errorsrbuj
2014-08-20java: remove unnecessary constructor declarationsNoel Grandin
2014-08-20use correct loop index variableNoel Grandin
2014-08-20double-checked locking is not thread-safe in JavaNoel Grandin
2014-08-19java: remove unused methodsNoel Grandin
2014-08-17catch UnknownPropertyExceptionCaolán McNamara
2014-08-14java: remove unused importsNoel Grandin
2014-08-13java: remove dead methodsNoel Grandin
2014-08-13java: reduce scope, make some methods privateNoel Grandin
2014-08-13java: reduce scope, make member classes privateNoel Grandin
2014-08-13java: reduce scope, make fields privateNoel Grandin
2014-08-13java: reduce scope, make constructors privateNoel Grandin
2014-08-12java: remove useless javadoc tagsNoel Grandin
2014-08-05java: remove commented out codeNoel Grandin
2014-08-05java: remove various unused variablesNoel Grandin
2014-05-05simplify ternary conditions "xxx ? yyy : false"Noel Grandin
2014-02-26Remove visual noise from toolkitAlexander Wilms
2013-07-05Related: #i121514# Remove deprecated UnoControlSimpleAnimationAriel Constenla-Haile
2013-07-05Related: #i121513# Remove deprecated UnoControlThrobberModelAriel Constenla-Haile
2012-11-29toolkit: s/EventEvent/Event/ in a11y complex testMichael Stahl
2012-11-29API CHANGE a11y unpublishing and add/removeListener rename.Thorsten Behrens
2012-11-20fdo#51304: Remove @author annotationJosé Guilherme Vanz
2012-10-03re-base on ALv2 code. Includes:Michael Meeks
2012-10-03fs34b: integrated complex test cases into GNUMake's subsequentcheck targetFrank Schoenheit [fs]
2012-09-14gridfixes: ensure removal of a column in grid control adjusts the cursorNorbert Thiebaud
2012-09-14gridfixes: #i117398# XMutableGridDataModel:Norbert Thiebaud
2012-09-14gridfixes: #i117398# added XGridDataModel::getRowDataFrank Schoenheit [fs]
2012-08-28Java cleanup - remove unused importsNoel Grandin