LibreOffice Module vcl (master)  1
grfattr.cxx
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 
21 
23  mfGamma ( 1.0 ),
24  mnMirrFlags ( BmpMirrorFlags::NONE ),
25  mnLeftCrop ( 0 ),
26  mnTopCrop ( 0 ),
27  mnRightCrop ( 0 ),
28  mnBottomCrop ( 0 ),
29  mnRotate10 ( 0 ),
30  mnContPercent ( 0 ),
31  mnLumPercent ( 0 ),
32  mnRPercent ( 0 ),
33  mnGPercent ( 0 ),
34  mnBPercent ( 0 ),
35  mbInvert ( false ),
36  mcAlpha ( 255 ),
37  meDrawMode ( GraphicDrawMode::Standard )
38 {
39 }
40 
41 bool GraphicAttr::operator==( const GraphicAttr& rAttr ) const
42 {
43  return( ( mfGamma == rAttr.mfGamma ) &&
44  ( mnMirrFlags == rAttr.mnMirrFlags ) &&
45  ( mnLeftCrop == rAttr.mnLeftCrop ) &&
46  ( mnTopCrop == rAttr.mnTopCrop ) &&
47  ( mnRightCrop == rAttr.mnRightCrop ) &&
48  ( mnBottomCrop == rAttr.mnBottomCrop ) &&
49  ( mnRotate10 == rAttr.mnRotate10 ) &&
50  ( mnContPercent == rAttr.mnContPercent ) &&
51  ( mnLumPercent == rAttr.mnLumPercent ) &&
52  ( mnRPercent == rAttr.mnRPercent ) &&
53  ( mnGPercent == rAttr.mnGPercent ) &&
54  ( mnBPercent == rAttr.mnBPercent ) &&
55  ( mbInvert == rAttr.mbInvert ) &&
56  ( mcAlpha == rAttr.mcAlpha ) &&
57  ( meDrawMode == rAttr.meDrawMode ) );
58 }
59 
60 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
NONE
tools::Long mnLeftCrop
GraphicDrawMode
GraphicDrawMode meDrawMode
BmpMirrorFlags
Definition: bitmap.hxx:41
tools::Long mnBottomCrop
BmpMirrorFlags mnMirrFlags
tools::Long mnRightCrop
tools::Long mnTopCrop
bool operator==(const GraphicAttr &rAttr) const
Definition: grfattr.cxx:41