1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef __com_sun_star_embed_ElementModes_idl__
20 #define __com_sun_star_embed_ElementModes_idl__
24 module com
{ module sun
{ module star
{ module embed
{
26 /** The constant set contains possible modes to open an element.
29 The modes can be combined by "or" operation.
30 ElementModes::READ and ElementModes::WRITE
31 are base modes. A result mode must include one of base modes.
36 published constants ElementModes
38 /** specifies opening of an element for reading.
42 /** specifies opening of a seekable element.
45 This mode is ignored for Storage elements.
46 This flag makes sense only in combination with
47 ElementModes::READ and/or
51 const long SEEKABLE
= 2;
53 /** specifies opening of a seekable element for reading.
56 This is just a combination of the previous two values. For storages
57 it is the same as ElementModes::READ.
60 const long SEEKABLEREAD
= 3;
62 /** specifies opening of an element for writing.
66 /** specifies opening of an element for reading and writing.
69 For a stream element is also specifies that it must be seekable.
72 const long READWRITE
= 7;
74 /** lets the document be truncated immediately after opening.
77 This flag makes sense only in combination with
81 const long TRUNCATE
= 8;
83 /** restricts creation of a new element on opening in case a requested one
87 This flag makes sense only in combination with
91 const long NOCREATE
= 16;
99 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */