LibreOffice Module filter (master) 1
dffpropset.hxx
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#ifndef INCLUDED_FILTER_MSFILTER_DFFPROPSET_HXX
20#define INCLUDED_FILTER_MSFILTER_DFFPROPSET_HXX
21
22#include <vector>
23
25#include <rtl/ustring.hxx>
26#include <sal/types.h>
27#include <tools/solar.h>
28
29class SvStream;
30
32{
33 bool bSet : 1;
34 bool bComplex : 1;
35 bool bBlip : 1;
36 bool bSoftAttr : 1;
37};
38
40{
43 sal_uInt32 nContent;
44};
45
47{
48 private:
50 std::vector< sal_uInt32 > maOffsets;
51
52 void ReadPropSet( SvStream&, bool );
53
54 public:
55 explicit DffPropSet();
57
58 bool IsProperty( sal_uInt32 nRecType ) const { return ( mpPropSetEntries[ nRecType & 0x3ff ].aFlags.bSet ); };
59 bool IsHardAttribute( sal_uInt32 nId ) const;
60 sal_uInt32 GetPropertyValue( sal_uInt32 nId, sal_uInt32 nDefault ) const;
62 bool GetPropertyBool( sal_uInt32 nId ) const;
64 OUString GetPropertyString( sal_uInt32 nId, SvStream& rStrm ) const;
65 bool SeekToContent( sal_uInt32 nRecType, SvStream& rSt ) const;
66 void InitializePropSet( sal_uInt16 nPropSetType ) const;
67 static sal_uLong SanitizeEndPos(SvStream &rIn, sal_uLong nEndRecPos);
68
69 friend SvStream& ReadDffPropSet( SvStream& rIn, DffPropSet& rPropSet );
70 friend SvStream& operator|=( SvStream& rIn, DffPropSet& rPropSet );
71};
72
73#endif
74/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
bool IsProperty(sal_uInt32 nRecType) const
Definition: dffpropset.hxx:58
DffPropSetEntry * mpPropSetEntries
Definition: dffpropset.hxx:49
std::vector< sal_uInt32 > maOffsets
Definition: dffpropset.hxx:50
SvStream & operator|=(SvStream &rIn, DffPropSet &rRec)
SvStream & ReadDffPropSet(SvStream &rIn, DffPropSet &rRec)
#define MSFILTER_DLLPUBLIC
css::uno::Any GetPropertyValue(SwPaM &rPaM, const SfxItemPropertySet &rPropSet, std::u16string_view rPropertyName)
sal_uIntPtr sal_uLong
sal_uInt32 nContent
Definition: dffpropset.hxx:43
DffPropFlags aFlags
Definition: dffpropset.hxx:41
sal_uInt16 nComplexIndexOrFlagsHAttr
Definition: dffpropset.hxx:42