tdf#164420 Fix unselected Check/Radio buttons not following themes in GTK
[LibreOffice.git] / filter / source / graphicfilter / icgm / chart.hxx
blob3a8e8d946382ffb955b179da17fe0277fef26b30
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 #pragma once
22 #include <sal/types.h>
24 #include <memory>
25 #include <vector>
27 typedef struct TextEntry
29 sal_uInt16 nTypeOfText;
30 sal_uInt16 nRowOrLineNum;
31 sal_uInt16 nColumnNum;
32 sal_uInt16 nZoneSize; // textzone attributes
33 sal_uInt16 nLineType;
34 sal_uInt16 nAttributes;
35 char* pText; // null terminated text
36 } TextEntry;
38 struct DataNode
40 sal_Int16 nBoxX1;
41 sal_Int16 nBoxY1;
42 sal_Int16 nBoxX2;
43 sal_Int16 nBoxY2;
44 sal_Int8 nZoneEnum;
45 DataNode()
46 : nBoxX1(0)
47 , nBoxY1(0)
48 , nBoxX2(0)
49 , nBoxY2(0)
50 , nZoneEnum(0)
55 class CGM;
56 class CGMImpressOutAct;
57 class CGMChart final
59 friend class CGM;
60 friend class CGMImpressOutAct;
62 sal_Int8 mnCurrentFileType;
63 ::std::vector< std::unique_ptr<TextEntry> > maTextEntryList;
64 DataNode mDataNode[ 7 ];
66 public:
67 CGMChart();
68 ~CGMChart();
70 void InsertTextEntry( std::unique_ptr<TextEntry> );
72 void ResetAnnotation();
73 bool IsAnnotation() const;
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */