LibreOffice Module store (master) 1
types.h
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#pragma once
21
22#include <sal/types.h>
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
31constexpr sal_uInt16 STORE_DEFAULT_PAGESIZE = 0x0400;
32
33
37constexpr sal_uInt16 STORE_MINIMUM_PAGESIZE = 0x0200;
38constexpr sal_uInt16 STORE_MAXIMUM_PAGESIZE = 0x8000;
39
40
45constexpr auto STORE_MAXIMUM_NAMESIZE = 256;
46
47
51constexpr sal_uInt32 STORE_ATTRIB_ISLINK = 0x10000000;
52constexpr sal_uInt32 STORE_ATTRIB_ISDIR = 0x20000000;
53constexpr sal_uInt32 STORE_ATTRIB_ISFILE = 0x40000000;
54
55
62{
63 Create,
67};
68
69
72typedef enum
73{
98
99
104typedef struct
105{
110
114 sal_Int32 m_nLength;
115
119 sal_uInt32 m_nAttrib;
120
123 sal_uInt32 m_nReserved;
125
126#ifdef __cplusplus
127}
128#endif
129
130/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void Create(SwFormatVertOrient &rItem, SvStream &rStrm, sal_uInt16 nVersionAbusedAsSize)
Find Data structure.
Definition: types.h:105
sal_uInt32 m_nAttrib
Attributes.
Definition: types.h:119
sal_Int32 m_nLength
Name Length.
Definition: types.h:114
sal_uInt32 m_nReserved
Reserved for internal use.
Definition: types.h:123
constexpr sal_uInt32 STORE_ATTRIB_ISDIR
Definition: types.h:52
storeAccessMode
Access Mode enumeration.
Definition: types.h:62
constexpr sal_uInt16 STORE_MINIMUM_PAGESIZE
PageSize (enforced) limits.
Definition: types.h:37
#define SAL_MAX_ENUM
storeError
Error Code enumeration.
Definition: types.h:73
@ store_E_InvalidParameter
Definition: types.h:82
@ store_E_Unknown
Definition: types.h:95
@ store_E_NotDirectory
Definition: types.h:86
@ store_E_CantRead
Definition: types.h:78
@ store_E_InvalidHandle
Definition: types.h:81
@ store_E_CantWrite
Definition: types.h:79
@ store_E_LockingViolation
Definition: types.h:76
@ store_E_WrongVersion
Definition: types.h:94
@ store_E_OutOfMemory
Definition: types.h:90
@ store_E_None
Definition: types.h:74
@ store_E_InvalidAccess
Definition: types.h:80
@ store_E_CantSeek
Definition: types.h:77
@ store_E_FORCE_EQUAL_SIZE
Definition: types.h:96
@ store_E_AlreadyExists
Definition: types.h:84
@ store_E_AccessViolation
Definition: types.h:75
@ store_E_NotFile
Definition: types.h:87
@ store_E_NoMoreFiles
Definition: types.h:88
@ store_E_NotExists
Definition: types.h:85
@ store_E_OutOfSpace
Definition: types.h:91
@ store_E_InvalidChecksum
Definition: types.h:83
@ store_E_WrongFormat
Definition: types.h:93
@ store_E_Pending
Definition: types.h:92
@ store_E_NameTooLong
Definition: types.h:89
constexpr sal_uInt16 STORE_DEFAULT_PAGESIZE
PageSize (recommended) default.
Definition: types.h:31
constexpr sal_uInt16 STORE_MAXIMUM_PAGESIZE
Definition: types.h:38
constexpr sal_uInt32 STORE_ATTRIB_ISLINK
Attributes (predefined).
Definition: types.h:51
sal_uInt16 sal_Unicode
constexpr sal_uInt32 STORE_ATTRIB_ISFILE
Definition: types.h:53
constexpr auto STORE_MAXIMUM_NAMESIZE
NameSize (enforced) limit.
Definition: types.h:45