fix Skia copyArea() not coping with coordinates outside (tdf#145811)
[LibreOffice.git] / registry / source / reflwrit.hxx
blob93cee06973816fb8b79c62b7e60b8576bfc754cc
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 .
20 #ifndef INCLUDED_REGISTRY_SOURCE_REFLWRIT_HXX
21 #define INCLUDED_REGISTRY_SOURCE_REFLWRIT_HXX
23 #include <registry/types.hxx>
24 #include <rtl/ustring.hxx>
26 class RTConstValue;
28 /// Implementation handle
29 typedef void* TypeWriterImpl;
31 /** RegistryTypeWriter writes/creates a binary type blob.
33 This class provides the necessary functions to write type information
34 for all kinds of types into a blob.
36 @deprecated
37 use typereg::Writer instead
39 class RegistryTypeWriter
41 public:
43 /** Constructor.
45 @param RTTypeClass specifies the type of the new blob.
46 @param typeName specifies the full qualified type name with '/' as separator.
47 @param superTypeName specifies the full qualified type name of the base type
48 with '/' as separator.
49 @param fieldCount specifies the number of fields (eg. number of attributes/properties,
50 enum values or constants).
52 RegistryTypeWriter(RTTypeClass RTTypeClass,
53 const OUString& typeName,
54 const OUString& superTypeName,
55 sal_uInt16 fieldCount);
57 /** Destructor. The Destructor frees the internal data block.
59 The pointer (returned by getBlop) will be set to NULL.
61 ~RegistryTypeWriter();
63 /** sets the data for a field member of a type blob.
65 @param index indicates the index of the field.
66 @param name specifies the name.
67 @param typeName specifies the full qualified typename.
68 @param doku specifies the documentation string of the field.
69 @param fileName specifies the name of the IDL file where the field is defined.
70 @param access specifies the access mode of the field.
71 @param constValue specifies the value of the field. The value is only interesting
72 for enum values or constants.
74 void setFieldData( sal_uInt16 index,
75 const OUString& name,
76 const OUString& typeName,
77 const OUString& doku,
78 const OUString& fileName,
79 RTFieldAccess access,
80 const RTConstValue& constValue);
82 /** returns a pointer to the new type blob.
84 The pointer will be invalid (NULL) if the instance of
85 the RegistryTypeWriter will be destroyed.
87 const sal_uInt8* getBlop();
89 /** returns the size of the new type blob in bytes.
91 sal_uInt32 getBlopSize();
93 private:
94 RegistryTypeWriter(RegistryTypeWriter const &) = delete;
95 void operator =(RegistryTypeWriter const &) = delete;
97 /// stores the handle of an implementation class
98 TypeWriterImpl m_hImpl;
101 #endif
103 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */