Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.EPPlus/4.0.3/EPPlus-4.0.3/VBA/ExcelVbaReference.cs @ 13825

Last change on this file since 13825 was 12463, checked in by ascheibe, 10 years ago

#2399 fixed EPPlus so that it compiles on Linux

File size: 4.7 KB
Line 
1/*******************************************************************************
2 * You may amend and distribute as you like, but don't remove this header!
3 *
4 * EPPlus provides server-side generation of Excel 2007/2010 spreadsheets.
5 * See http://www.codeplex.com/EPPlus for details.
6 *
7 * Copyright (C) 2011  Jan Källman
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
13
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
17 * See the GNU Lesser General Public License for more details.
18 *
19 * The GNU Lesser General Public License can be viewed at http://www.opensource.org/licenses/lgpl-license.php
20 * If you unfamiliar with this license or have questions about it, here is an http://www.gnu.org/licenses/gpl-faq.html
21 *
22 * All code and executables are provided "as is" with no warranty either express or implied.
23 * The author accepts no liability for any damage or loss of business that this product may cause.
24 *
25 * Code change notes:
26 *
27 * Author             Change            Date
28 *******************************************************************************
29 * Jan Källman    Added   26-MAR-2012
30 *******************************************************************************/
31using System;
32using System.Collections.Generic;
33using System.Linq;
34using System.Text;
35
36namespace OfficeOpenXml.VBA
37{
38    /// <summary>
39    /// A VBA reference
40    /// </summary>
41    public class ExcelVbaReference
42    {
43        /// <summary>
44        /// Constructor.
45        /// Defaults ReferenceRecordID to 0xD
46        /// </summary>
47        public ExcelVbaReference()
48        {
49            ReferenceRecordID = 0xD;
50        }
51        /// <summary>
52        /// The reference record ID. See MS-OVBA documentation for more info.
53        /// </summary>
54        public int ReferenceRecordID { get; internal set; }
55        /// <summary>
56        /// The name of the reference
57        /// </summary>
58        public string Name { get; set; }
59        /// <summary>
60        /// LibID
61        /// For more info check MS-OVBA 2.1.1.8 LibidReference and 2.3.4.2.2 PROJECTREFERENCES
62        /// </summary>
63        public string Libid { get; set; }
64        /// <summary>
65        /// A string representation of the object (the Name)
66        /// </summary>
67        /// <returns></returns>
68        public override string ToString()
69        {
70            return Name;
71        }
72    }
73    /// <summary>
74    /// A reference to a twiddled type library
75    /// </summary>
76    public class ExcelVbaReferenceControl : ExcelVbaReference
77    {
78        /// <summary>
79        /// Constructor.
80        /// Sets ReferenceRecordID to 0x2F
81        /// </summary>
82        public ExcelVbaReferenceControl()
83        {
84            ReferenceRecordID = 0x2F;
85        }
86        /// <summary>
87        /// LibIdExternal
88        /// For more info check MS-OVBA 2.1.1.8 LibidReference and 2.3.4.2.2 PROJECTREFERENCES
89        /// </summary>
90        public string LibIdExternal { get; set; }
91        /// <summary>
92        /// LibIdTwiddled
93        /// For more info check MS-OVBA 2.1.1.8 LibidReference and 2.3.4.2.2 PROJECTREFERENCES
94        /// </summary>
95        public string LibIdTwiddled { get; set; }
96        /// <summary>
97        /// A GUID that specifies the Automation type library the extended type library was generated from.
98        /// </summary>
99        public Guid OriginalTypeLib { get; set; }
100        internal uint Cookie { get; set; }
101    }
102    /// <summary>
103    /// A reference to an external VBA project
104    /// </summary>
105    public class ExcelVbaReferenceProject : ExcelVbaReference
106    {
107        /// <summary>
108        /// Constructor.
109        /// Sets ReferenceRecordID to 0x0E
110        /// </summary>
111        public ExcelVbaReferenceProject()
112        {
113            ReferenceRecordID = 0x0E;
114        }
115        /// <summary>
116        /// LibIdRelative
117        /// For more info check MS-OVBA 2.1.1.8 LibidReference and 2.3.4.2.2 PROJECTREFERENCES
118        /// </summary>
119        public string LibIdRelative { get; set; }
120        /// <summary>
121        /// Major version of the referenced VBA project
122        /// </summary>
123        public uint MajorVersion { get; set; }
124        /// <summary>
125        /// Minor version of the referenced VBA project
126        /// </summary>
127        public ushort MinorVersion { get; set; }
128    }
129}
Note: See TracBrowser for help on using the repository browser.