36 |
--------------------------------------------------------------------------------
/scriptom-wbem/src/main/groovy/wbemscripting/WbemDateTime.groovy:
--------------------------------------------------------------------------------
1 | package org.codehaus.groovy.scriptom.util.wbemscripting;
2 |
3 | import org.codehaus.groovy.scriptom.*;
4 |
5 | /**
6 | * Utility methods for working with WBEM-formatted datetime strings.
7 | */
8 | class WbemDateTime
9 | {
10 | private WbemDateTime()
11 | {
12 | }
13 |
14 | /**
15 | * Converts a WBEM datetime in string format into a Java {@code Date}.
16 | * @param sWbemDateTime A WBEM-formatted datetime string.
17 | * @return A Java Date, in local time.
18 | */
19 | static Date toJavaDate(Object sWbemDateTime)
20 | {
21 | if(Scriptom.isEmpty(sWbemDateTime) || Scriptom.isNull(sWbemDateTime))
22 | return null
23 | else
24 | {
25 | return Scriptom.inApartment {
26 | def dt = new ActiveXObject('WbemScripting.SWbemDateTime')
27 | dt.Value = sWbemDateTime
28 | return dt.GetVarDate(true)
29 | }
30 | }
31 | }
32 |
33 | /**
34 | * Converts a Java {@code Date} into a WBEM datetime in string format.
35 | * @param Date A Java {@code Date}.
36 | * @return The date formatted as a WBEM datetime string.
37 | */
38 | static Object toSWbemDateTime(Date date)
39 | {
40 | return Scriptom.inApartment {
41 | def dt = new ActiveXObject('WbemScripting.SWbemDateTime')
42 | dt.SetVarDate(date)
43 | return dt.Value
44 | }
45 | }
46 | }
--------------------------------------------------------------------------------
/scriptom/src/test/groovy/VisualBasic/TestMisc.groovy:
--------------------------------------------------------------------------------
1 | package org.codehaus.groovy.modules.scriptom.test
2 |
3 | import groovy.util.GroovyTestCase
4 | import org.codehaus.groovy.scriptom.*
5 |
6 | /**
7 | * Various, uncategorized unit tests.
8 | * @author Jason Smith
9 | */
10 | class TestMisc extends BaseJacobTest
11 | {
12 | /**
13 | * Tests Scriptom by calling the MS Speech API.
14 | */
15 | void testSpeech()
16 | {
17 | Scriptom.inApartment
18 | {
19 | def voice = new ActiveXObject('SAPI.SpVoice')
20 | voice.speak "Testing, one... two... three..."
21 | }
22 | }
23 |
24 | /**
25 | * Tests that the ActiveX Object supports one of the known interfaces. This verifies that
26 | * {@link ActiveXObject#supportsInterface} is working correctly.
27 | * You can use import org.codehaus.groovy.scriptom.tlb.sapi.SpeechLib to find all the interface
28 | * definitions for MS SAPI. That library is a downstream dependency of Scriptom, so we can't use
29 | * the library here. Check out the SpeechInterfaces.groovy script in the Scriptom examples to
30 | * find all the interfaces this object supports.
31 | */
32 | void testSpeechObjectSupportsExpectedInterface()
33 | {
34 | Scriptom.inApartment
35 | {
36 | def voice = new ActiveXObject('SAPI.SpVoice')
37 | assert voice.supportsInterface('{6C44DF74-72B9-4992-A1EC-EF996E0422D4}'), "Object does not support SpeechLib.ISpVoice interface."
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/scriptom/src/test/csharp/ScriptomTestCSharp/ScriptomTestCSharp/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("ScriptomTestCSharp")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("ScriptomTestCSharp")]
13 | [assembly: AssemblyCopyright("Copyright © 2009")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("56639640-28d3-4dba-b983-b35ba781ccc3")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/scriptom-all-assembly/src/main/supplementary/examples/outlook/outlook.groovy:
--------------------------------------------------------------------------------
1 | import org.codehaus.groovy.scriptom.*;
2 | import org.codehaus.groovy.scriptom.tlb.office.outlook.OlDefaultFolders;
3 | import org.codehaus.groovy.scriptom.tlb.office.outlook.OlAttachmentType;
4 |
5 | /**
6 | * Opens an Outlook email message file (*.msg file) and reads
7 | * the header and body data from it.
8 | *
9 | * In most cases, since this is accessing Outlook externally, a message box will
10 | * ask the user to confirm that this operation is allowed. Refer to the
11 | * following article for more information.
12 | *
13 | * To use Outlook to process emails on the server, you have to disable the warning
14 | * dialog. And depending on your circumstances, it might not be possible to do so.
15 | *
16 | * http://outlookcode.com/article.aspx?id=52
17 | */
18 | Scriptom.inApartment
19 | {
20 | def app = new ActiveXObject('Outlook.Application.11')
21 |
22 |
23 | def mail = app.CreateItemFromTemplate(new File('test.msg').canonicalPath, app.Session.GetDefaultFolder(OlDefaultFolders.olFolderDrafts))
24 |
25 | println """
26 | From: ${mail.SenderName}
27 | To: ${mail.To}
28 | CC: ${mail.CC}
29 | Subject: ${mail.Subject}
30 |
31 | Body:
32 | ******************************************************************
33 | ${mail.body}
34 | ******************************************************************
35 | """
36 |
37 | println "ATTACHMENTS:"
38 |
39 | for(attachment in mail.Attachments)
40 | {
41 | if(attachment.Type == OlAttachmentType.olByValue || attachment.Type == OlAttachmentType.olEmbeddeditem)
42 | {
43 | println "\t${attachment.DisplayName}"
44 | }
45 | }
46 | }
--------------------------------------------------------------------------------
/scriptom-all-assembly/src/main/supplementary/examples/ie/IEEvents.groovy:
--------------------------------------------------------------------------------
1 | import org.codehaus.groovy.scriptom.*;
2 | import org.codehaus.groovy.scriptom.tlb.ie.*;
3 |
4 | /**
5 | * Adapted from the Jacob unittest for IE events which was
6 | * contributed by Niels Olof Bouvin
7 | * and Henning Jae.
8 | *
9 | * Of course, this version is alot easier to read.
10 | *
11 | * @author Jason Smith
12 | */
13 |
14 | //To see all events, uncomment next line.
15 | //System.setProperty("org.codehaus.groovy.scriptom.debug", "true")
16 |
17 | volatile boolean done = false;
18 |
19 | int delay = 15000; // msec
20 |
21 | Scriptom.inApartment
22 | {
23 | ActiveXObject ie = new ActiveXObject('InternetExplorer.Application').toInterface(SHDocVw.IWebBrowser)
24 |
25 | println "SUPPORTED INTERFACES:"
26 | SHDocVw.interfaces.each {name, iid -> if(ie.supportsInterface(iid)) println "\t$name"}
27 |
28 | ie.Visible = true
29 | ie.AddressBar = true
30 | ie.StatusText = 'My Status Text'
31 |
32 | println "IETestThread: ${ie.Path}"
33 |
34 | println "Setting up events."
35 | ie.events.ProgressChange = {args -> println "\tEVENT (${Thread.currentThread().getName()}): ProgressChange - ${args.toString()}"}
36 | ie.events.BeforeNavigate2 = {args -> println "\tEVENT (${Thread.currentThread().getName()}): BeforeNavigate2 - ${args.toString()}"}
37 | ie.events.OnQuit = {args -> done=true}
38 |
39 | println "Navigate to SourceForge.net"
40 | ie.Navigate "http://sourceforge.net/projects/jacob-project"
41 | sleep delay
42 |
43 | println "Navigate to CodeHaus.org"
44 | ie.Navigate "http://groovy.codehaus.org/COM+Scripting"
45 | sleep delay
46 |
47 | println "Quitting..."
48 | ie.Quit()
49 |
50 | //Wait for done, or IE may lock up on Scriptom.releaseComResources()
51 | def now = System.currentTimeMillis()
52 | while(!done && System.currentTimeMillis() - now < 10000)
53 | sleep 10
54 | }
--------------------------------------------------------------------------------
/scriptom/src/test/visualbasic/ScriptomTestVB/TestTypesByref.vb:
--------------------------------------------------------------------------------
1 | Public Class TestTypesByref
2 | Public Sub TestBoolean(ByRef A As Boolean)
3 | A = Not A
4 | End Sub
5 |
6 | Public Sub TestByte(ByRef A As Byte)
7 | A = A And &HF
8 | End Sub
9 |
10 | Public Sub TestShort(ByRef A As Short, Optional ByVal Addend As Integer = 1)
11 | A = A + Addend
12 | End Sub
13 |
14 | Public Sub TestUShort(ByRef A As UShort, Optional ByVal Addend As Integer = 1)
15 | A = A + Addend
16 | End Sub
17 |
18 | Public Sub TestInteger(ByRef A As Integer, Optional ByVal Addend As Integer = 1)
19 | A = A + Addend
20 | End Sub
21 |
22 | Public Sub TestUInteger(ByRef A As UInteger, Optional ByVal Addend As Integer = 1)
23 | A = A + Addend
24 | End Sub
25 |
26 | Public Sub TestLong(ByRef A As Long, Optional ByVal Addend As Long = 1)
27 | A = A + Addend
28 | End Sub
29 |
30 | Public Sub TestULong(ByRef A As ULong, Optional ByVal Addend As Long = 1)
31 | A = A + Addend
32 | End Sub
33 |
34 | Public Sub TestSingle(ByRef A As Single, Optional ByVal Addend As Double = 1.0)
35 | A = A + Addend
36 | End Sub
37 |
38 | Public Sub TestDouble(ByRef A As Double, Optional ByVal Addend As Double = 1.0)
39 | A = A + Addend
40 | End Sub
41 |
42 | Public Sub TestDecimal(ByRef A As Decimal, Optional ByVal Addend As Decimal = 1)
43 | A = A + Addend
44 | End Sub
45 |
46 | Public Sub TestDate(ByRef A As Date)
47 | A = DateAdd(DateInterval.Day, 1, A)
48 | End Sub
49 |
50 | Public Sub TestString(ByRef A As String)
51 | A = "VB:" & A
52 | End Sub
53 |
54 | Public Sub TestObject(ByRef A As TestComObject)
55 | A = New TestComObject().Init("VB:" & A.Value)
56 | Console.WriteLine("New value is '" & A.Value & "'")
57 | End Sub
58 | End Class
59 |
60 |
--------------------------------------------------------------------------------
/scriptom/src/test/visualbasic/ScriptomTestVB/TestTypes.vb:
--------------------------------------------------------------------------------
1 | Option Explicit On
2 | Option Strict On
3 | Option Compare Binary
4 |
5 | Public Class TestTypes
6 | Public Function AddDecimals(ByVal A As Decimal, ByVal B As Decimal) As Decimal
7 | Return A + B
8 | End Function
9 |
10 | Public Function AddLongs(ByVal A As Long, ByVal B As Long) As Long
11 | Return A + B
12 | End Function
13 |
14 | Public Function AddULongs(ByVal A As ULong, ByVal B As ULong) As ULong
15 | Return A + B
16 | End Function
17 |
18 | Public Function AddIntegers(ByVal A As Integer, ByVal B As Integer) As Integer
19 | Return A + B
20 | End Function
21 |
22 | Public Function AddUIntegers(ByVal A As UInteger, ByVal B As UInteger) As UInteger
23 | Return A + B
24 | End Function
25 |
26 | Public Function AddShorts(ByVal A As Short, ByVal B As Short) As Short
27 | Return A + B
28 | End Function
29 |
30 | Public Function AddUShorts(ByVal A As UShort, ByVal B As UShort) As UShort
31 | Return A + B
32 | End Function
33 |
34 | Public Function AddSBytes(ByVal A As SByte, ByVal B As SByte) As SByte
35 | Return A + B
36 | End Function
37 |
38 | Public Function AddSingles(ByVal A As Single, ByVal B As Single) As Single
39 | Return A + B
40 | End Function
41 |
42 | Public Function AddDoubles(ByVal A As Double, ByVal B As Double) As Double
43 | Return A + B
44 | End Function
45 |
46 | Public Function Invert(ByVal A As Boolean) As Boolean
47 | Return Not A
48 | End Function
49 |
50 | Public Function PassDate(ByVal A As Date) As Date
51 | Return A
52 | End Function
53 |
54 | Public Function PassString(ByVal A As String) As String
55 | Return "VB:" & A
56 | End Function
57 |
58 | Public Function PassObject(ByVal A As TestComObject) As TestComObject
59 | Return New TestComObject().Init("VB:" & A.Value)
60 | End Function
61 | End Class
62 |
63 |
64 |
--------------------------------------------------------------------------------
/archived-stuff/site/xdoc/index.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Scriptom
5 | Jason Smith
6 |
7 |
8 |
9 |
10 | Scriptom is an optional Groovy module originally developed by Guillaume Laforge
11 | and currently maintained by Jason Smith.
12 | It combines the elegant "syntactical sugar" of Groovy with the power of the
13 | Jacob library (Java COM Bridge).
14 | Scriptom lets you use ActiveX or COM Windows components from Groovy. The result is something that looks eerily
15 | similar to VBScript - only groovier.
16 |
17 |
18 |
19 | You can use Scriptom to automate Word or Excel documents, control Internet Explorer, make your PC talk
20 | using the Microsoft Speech API, monitor processes with WMI (Windows Management Instrumentation), or browse the
21 | Windows Registry using WShell - and much more. Scriptom also provides an easy way to talk to custom
22 | VB6 or Microsoft.NET libraries.
23 |
24 |
25 |
26 | Needless to say, Scriptom can be used only on Microsoft Windows.
27 |
28 |
29 |
30 | Scriptom is included as an option in the Groovy Windows Installer,
31 | and Scriptom can be downloaded from this website. The Scriptom codebase is stable
32 | and feature-complete. The Jacob project - Scriptom's foundation - was started in 1999 and is being used in
33 | countless production Java applications worldwide. Scriptom is now in wide use as well, and has proven to be stable and mature.
34 |
35 |
36 |
37 | Scriptom gives you all the COM-scripting power of Jacob, and it is a lot easier.
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/scriptom/src/site/xdoc/index.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Scriptom
5 | Jason Smith
6 |
7 |
8 |
9 |
10 | Scriptom is an optional Groovy module originally developed by Guillaume Laforge
11 | and currently maintained by Jason Smith.
12 | It combines the elegant "syntactical sugar" of Groovy with the power of the
13 | Jacob library (Java COM Bridge).
14 | Scriptom lets you use ActiveX or COM Windows components from Groovy. The result is something that looks eerily
15 | similar to VBScript - only groovier.
16 |
17 |
18 |
19 | You can use Scriptom to automate Word or Excel documents, control Internet Explorer, make your PC talk
20 | using the Microsoft Speech API, monitor processes with WMI (Windows Management Instrumentation), or browse the
21 | Windows Registry using WShell - and much more. Scriptom also provides an easy way to talk to custom
22 | VB6 or Microsoft.NET libraries.
23 |
24 |
25 |
26 | Needless to say, Scriptom can be used only on Microsoft Windows.
27 |
28 |
29 |
30 | Scriptom is included as an option in the Groovy Windows Installer,
31 | and Scriptom can be downloaded from this website. The Scriptom codebase is stable
32 | and feature-complete. The Jacob project - Scriptom's foundation - was started in 1999 and is being used in
33 | countless production Java applications worldwide. Scriptom is now in wide use as well, and has proven to be stable and mature.
34 |
35 |
36 |
37 | Scriptom gives you all the COM-scripting power of Jacob, and it is a lot easier.
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/README.adoc:
--------------------------------------------------------------------------------
1 | = What is Scriptom
2 |
3 | **Note**: __Scriptom is not actively maintained.__
4 |
5 | **Scriptom** provides a simple yet powerful COM library for Groovy. It is implemented as a thin layer around [JACOB (Java COM Bridge)](https://sourceforge.net/projects/jacob-project/). JACOB is a mature open-source library for Java that supports communicating with COM libraries and automation servers on Microsoft Windows.
6 |
7 | **Scriptom** attempts to mirror all the functionality of JACOB, but in a "groovy" way. Here is a quick example that uses
8 | `Scripting.FileSystemObject` to list the paths to all active rooted drives on your system (italics show COM methods and properties):
9 |
10 | [source,lang='groovy']
11 | ----
12 | new ActiveXObject('Scripting.FileSystemObject').Drives.findAll{it.IsReady}.each{println it.Path} `
13 | ----
14 |
15 | Visual Basic was never this easy!
16 |
17 | == Supported Variant Types and Translation Notes
18 |
19 | [cols="5*",options="header"]
20 | |===
21 | | Variant-Type | Supported? | Java | VB6/VBA | Comments
22 |
23 | | Empty |Yes|`null`|`Variant.Empty`|
24 | | Null |Yes|`VariantNull`|`Variant.Null`|Don't be confused. `Variant.Null` is not the same as `null`. This is by design.
25 | | Short |Yes|`Short`|`Integer`|An `Integer` in VB6 represents a 16-bit signed value.
26 | | Int |Yes|`Integer`|`Long`|A `Long` in VB6 represents a 32-bit signed value.
27 | | Long |Yes|`Long/BigInteger`| |A 64-bit signed value. Supported by .NET. `BigInteger` supports arbitrary-precision integers, so there may be errors associated with converting a `BigInteger` to a 64-bit integer.
28 |
29 | |==
30 |
31 | By default, all Variants in **Scriptom** are passed by value (not `byref`). Note that it is safe to pass values `byval`
32 | even when the method argument is marked as 'byref.' In COM, 'byref' arguments allow a method to change a value which is
33 | then reflected in the calling scope. If you need to do this, take a look at the `VariantByref` class. You shouldn't run
34 | into this very often with the standard COM libraries, but isn't it nice to know we've got your back?
35 |
36 | Unsigned integer types are also supported by **Scriptom**.
37 | Each COM unsigned type is converted to equivalent signed Java type.
38 |
39 |
--------------------------------------------------------------------------------
/archived-stuff/site/xdoc/index-x.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Scriptom
5 | Jason Smith
6 |
7 |
8 |
9 |
10 | Scriptom is an optional Groovy module originally developed by Guillaume Laforge
11 | and currently maintained by Jason Smith.
12 | It combines the elegant "syntactical sugar" of Groovy with the power of the
13 | Jacob library (Java COM Bridge).
14 | Scriptom lets you use ActiveX or COM Windows components from Groovy. The result is something that looks eerily
15 | similar to VBScript - only groovier.
16 |
17 |
18 |
19 | You can use Scriptom to automate Word or Excel documents, control Internet Explorer, make your PC talk
20 | using the Microsoft Speech API, monitor processes with WMI (Windows Management Instrumentation), or browse the
21 | Windows Registry using WShell - and much more. Scriptom also provides an easy way to talk to custom
22 | VB6 or Microsoft.NET libraries.
23 |
24 |
25 |
26 | Needless to say, Scriptom can be used only on Microsoft Windows.
27 |
28 |
29 |
30 | Scriptom is included as an option in the Groovy Windows Installer,
31 | and Scriptom can be downloaded from this website. The Scriptom codebase is stable
32 | and feature-complete. The Jacob project - Scriptom's foundation - was started in 1999 and is being used in
33 | countless production Java applications worldwide. Scriptom is now in wide use as well, and has proven to be stable and mature.
34 |
35 |
36 |
37 | Scriptom gives you all the COM-scripting power of Jacob, and it is a lot easier.
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/scriptom/src/test/visualbasic/ScriptomTestVB/obj/Release/ScriptomTestVB.vbproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\work\groovy\modules\scriptom\trunk\scriptom\src\test\visualbasic\ScriptomTestVB2005\bin\Release\ScriptomTestVB.dll
2 | C:\work\groovy\modules\scriptom\trunk\scriptom\src\test\visualbasic\ScriptomTestVB2005\bin\Release\ScriptomTestVB.pdb
3 | C:\work\groovy\modules\scriptom\trunk\scriptom\src\test\visualbasic\ScriptomTestVB2005\bin\Release\ScriptomTestVB.xml
4 | C:\work\groovy\modules\scriptom\trunk\scriptom\src\test\visualbasic\ScriptomTestVB2005\obj\Release\ResolveAssemblyReference.cache
5 | C:\work\groovy\modules\scriptom\trunk\scriptom\src\test\visualbasic\ScriptomTestVB2005\obj\Release\ScriptomTestVB.Resources.resources
6 | C:\work\groovy\modules\scriptom\trunk\scriptom\src\test\visualbasic\ScriptomTestVB2005\obj\Release\ScriptomTestVB.vbproj.GenerateResource.Cache
7 | C:\work\groovy\modules\scriptom\trunk\scriptom\src\test\visualbasic\ScriptomTestVB2005\obj\Release\ScriptomTestVB.dll
8 | C:\work\groovy\modules\scriptom\trunk\scriptom\src\test\visualbasic\ScriptomTestVB2005\obj\Release\ScriptomTestVB.xml
9 | C:\work\groovy\modules\scriptom\trunk\scriptom\src\test\visualbasic\ScriptomTestVB2005\obj\Release\ScriptomTestVB.pdb
10 | C:\work\groovy\modules\scriptom\trunk\scriptom\src\test\visualbasic\ScriptomTestVB\bin\Release\ScriptomTestVB.dll
11 | C:\work\groovy\modules\scriptom\trunk\scriptom\src\test\visualbasic\ScriptomTestVB\bin\Release\ScriptomTestVB.pdb
12 | C:\work\groovy\modules\scriptom\trunk\scriptom\src\test\visualbasic\ScriptomTestVB\bin\Release\ScriptomTestVB.xml
13 | C:\work\groovy\modules\scriptom\trunk\scriptom\src\test\visualbasic\ScriptomTestVB\obj\Release\ResolveAssemblyReference.cache
14 | C:\work\groovy\modules\scriptom\trunk\scriptom\src\test\visualbasic\ScriptomTestVB\obj\Release\ScriptomTestVB.Resources.resources
15 | C:\work\groovy\modules\scriptom\trunk\scriptom\src\test\visualbasic\ScriptomTestVB\obj\Release\ScriptomTestVB.vbproj.GenerateResource.Cache
16 | C:\work\groovy\modules\scriptom\trunk\scriptom\src\test\visualbasic\ScriptomTestVB\obj\Release\ScriptomTestVB.dll
17 | C:\work\groovy\modules\scriptom\trunk\scriptom\src\test\visualbasic\ScriptomTestVB\obj\Release\ScriptomTestVB.xml
18 | C:\work\groovy\modules\scriptom\trunk\scriptom\src\test\visualbasic\ScriptomTestVB\obj\Release\ScriptomTestVB.pdb
19 |
--------------------------------------------------------------------------------
/scriptom/src/test/groovy/CSharp/TestMultipleInterfacesCS.groovy:
--------------------------------------------------------------------------------
1 | package org.codehaus.groovy.modules.scriptom.test
2 |
3 | import groovy.util.GroovyTestCase
4 | import org.codehaus.groovy.scriptom.*
5 | import com.jacob.com.*
6 |
7 | /**
8 | * Verify and define the behavior of objects with multiple interfaces.
9 | */
10 | public class TestMultipleInterfacesCS extends BaseJacobTest
11 | {
12 | /**
13 | * Verify that the object behaves like interface one by default.
14 | */
15 | public void testDefaultInterface()
16 | {
17 | Scriptom.inApartment()
18 | {
19 | def clazz = new ActiveXObject("ScriptomTestCSharp.ClassWithTwoInterfaces")
20 | assert clazz.IAmNumberOne == 1
21 | shouldFail ComFailException, {clazz.IAmNumberTwo}
22 | }
23 | }
24 |
25 | /**
26 | * Cast to second interface and verify it behaves like that type of an object.
27 | */
28 | public void testSecondaryInterface()
29 | {
30 | Scriptom.inApartment()
31 | {
32 | def clazz = new ActiveXObject("ScriptomTestCSharp.ClassWithTwoInterfaces")
33 | assert clazz.supportsInterface("{3e8aa2b0-a2aa-4512-848b-f72f51a4dc25}")
34 | clazz = clazz.toInterface("{3e8aa2b0-a2aa-4512-848b-f72f51a4dc25}")
35 | assert clazz.IAmNumberTwo == 2
36 | shouldFail ComFailException, {clazz.IAmNumberOne}
37 | }
38 | }
39 |
40 | /**
41 | * Shows the behavior of multiple interfaces in COM objects. I can pass a COM
42 | * object as an argument, and the receiver (C# side)will automatically pick the correct
43 | * interface. However, I then have to use the interface as cast. If I use
44 | * .mirrorTwo(), the One interface is not accessible. This test shows that
45 | * you can pass a COM object as an argument, and shows the general behavior of
46 | * interface resolution.
47 | */
48 | public void testMirrorInterfaces()
49 | {
50 | Scriptom.inApartment()
51 | {
52 | def clazz = new ActiveXObject("ScriptomTestCSharp.ClassWithTwoInterfaces")
53 | def consumer = new ActiveXObject("ScriptomTestCSharp.ClassConsumer")
54 | assert consumer.mirrorOne(clazz).IAmNumberOne() == 1
55 | shouldFail ComFailException, {consumer.mirrorOne(clazz).IAmNumberTwo()}
56 | assert consumer.mirrorTwo(clazz).IAmNumberTwo() == 2
57 | shouldFail ComFailException, {consumer.mirrorTwo(clazz).IAmNumberOne()}
58 | }
59 |
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/scriptom/src/test/csharp/ScriptomTestCSharp/ScriptomTestCSharp/ClassWithTwoInterfaces.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Runtime.InteropServices;
3 | using System.Collections.Generic;
4 | using System.Linq;
5 | using System.Text;
6 |
7 |
8 | namespace ScriptomTestCSharp
9 | {
10 | [ComVisible(true)]
11 | [Guid("5a57439d-0147-43da-b817-7acc3e8be5c5")]
12 | public interface IInterfaceOne
13 | {
14 | int IAmNumberOne();
15 | }
16 |
17 | [ComVisible(true)]
18 | [Guid("3e8aa2b0-a2aa-4512-848b-f72f51a4dc25")]
19 | public interface IInterfaceTwo
20 | {
21 | int IAmNumberTwo();
22 | }
23 |
24 | ///
25 | /// Very simple setup of a class with two COM interfaces.
26 | /// The Groovy side can see only one interface at a time, and actually
27 | /// has to cast to one or the other using .toInterface().
28 | ///
29 | [ComDefaultInterface(typeof(IInterfaceOne))]
30 | [ComVisible(true)]
31 | [ClassInterface(ClassInterfaceType.None)]
32 | [Guid("90799802-2975-4582-bb49-37383b7e4eef")]
33 | [ProgId("ScriptomTestCSharp.ClassWithTwoInterfaces")]
34 | public class ClassWithTwoInterfaces : IInterfaceOne, IInterfaceTwo
35 | {
36 | public int IAmNumberOne()
37 | {
38 | return 1;
39 | }
40 |
41 | public int IAmNumberTwo()
42 | {
43 | return 2;
44 | }
45 | }
46 |
47 | [ComVisible(true)]
48 | [Guid("041bd380-4368-43bf-9c9e-5ef9bd2bdddf")]
49 | public interface IClassConsumer
50 | {
51 | IInterfaceOne mirrorOne(IInterfaceOne value);
52 | IInterfaceTwo mirrorTwo(IInterfaceTwo value);
53 | }
54 |
55 | ///
56 | /// Class with a couple of methods to cast between interfaces.
57 | /// The client can pass a ClassWithTwoInterfaces, and it becomes
58 | /// whatever type the method defines. The client is then obligated
59 | /// to use that interface only.
60 | ///
61 | [ComVisible(true)]
62 | [ClassInterface(ClassInterfaceType.None)]
63 | [Guid("c7bf86a2-c6f2-431f-9245-0c87622704ae")]
64 | [ProgId("ScriptomTestCSharp.ClassConsumer")]
65 | public class ClassConsumer : IClassConsumer
66 | {
67 | public IInterfaceOne mirrorOne(IInterfaceOne value)
68 | {
69 | return value;
70 | }
71 |
72 | public IInterfaceTwo mirrorTwo(IInterfaceTwo value)
73 | {
74 | return value;
75 | }
76 | }
77 | }
78 |
--------------------------------------------------------------------------------
/scriptom/src/main/java/org/codehaus/groovy/scriptom/UnsupportedVariantTypeException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007 (C) Guillaume Laforge. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom;
33 |
34 | /**
35 | * Variant type is not supported.
36 | */
37 | public class UnsupportedVariantTypeException extends IllegalArgumentException
38 | {
39 | private static final long serialVersionUID = 6606795137782726476L;
40 |
41 | UnsupportedVariantTypeException(int type)
42 | {
43 | super(type + " (" + Integer.toString(type, 16) + ")");
44 | }
45 |
46 | UnsupportedVariantTypeException(String message)
47 | {
48 | super(message);
49 | }
50 | }
--------------------------------------------------------------------------------
/archived-stuff/maven-scriptom-plugin/pom.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 | org.codehaus.groovy.modules.scriptom
8 | scriptom-module-pom
9 | 1.6.1-SNAPSHOT
10 |
11 | 4.0.0
12 | maven-scriptom-plugin
13 | Maven Scriptom Plugin
14 | maven-plugin
15 |
16 |
17 | org.codehaus.groovy
18 | groovy
19 | 1.6.4
20 |
21 |
22 | org.apache.maven
23 | maven-plugin-api
24 | 2.0.9
25 |
26 |
27 | org.apache.maven
28 | maven-artifact
29 | 2.0.9
30 | compile
31 |
32 |
33 | org.apache.maven
34 | maven-project
35 | 2.0.9
36 | compile
37 |
38 |
39 | org.apache.maven.shared
40 | maven-filtering
41 | 1.0-beta-2
42 |
43 |
44 | org.apache.maven
45 | maven-monitor
46 | 2.0.9
47 |
48 |
49 | org.apache.maven
50 | maven-settings
51 | 2.0.9
52 |
53 |
54 | org.codehaus.plexus
55 | plexus-utils
56 | 1.5.6
57 |
58 |
59 |
60 |
61 |
62 | org.apache.maven.plugins
63 | maven-plugin-plugin
64 | 2.4.3
65 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/scriptom/src/main/java/org/codehaus/groovy/scriptom/VariantNull.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007 (C) Guillaume Laforge. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom;
33 |
34 | /**
35 | * Singleton used to represent a Variant-NULL.
36 | *
37 | * Java {@code null} represents Variant type {@code Empty}. This is correct
38 | * and by design. 'Empty' means that the variable has not been initialized.
39 | * There is also a Variant type {@code Null} which represents
40 | * a null value. {@code VariantNull.VARIANTNULL} is used to differentiate them.
41 | *
42 | * @author Jason Smith
43 | */
44 | public class VariantNull
45 | {
46 | /** The global Variant NULL instance. */
47 | public static final VariantNull VARIANTNULL = new VariantNull();
48 |
49 | private VariantNull()
50 | {
51 | }
52 |
53 | public String toString()
54 | {
55 | return "VariantNull";
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/scriptom-office-2k3/src/main/java/org/codehaus/groovy/scriptom/tlb/office/word/WdHelpTypeHID.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 (C) The Codehaus. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.office.word;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class WdHelpTypeHID
42 | {
43 | private WdHelpTypeHID()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 0 (0x0)
49 | */
50 | public static final Integer emptyenum = Integer.valueOf(0);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("emptyenum", emptyenum);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-office-2k3/src/main/java/org/codehaus/groovy/scriptom/tlb/office/word/WdStatisticHID.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 (C) The Codehaus. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.office.word;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class WdStatisticHID
42 | {
43 | private WdStatisticHID()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 0 (0x0)
49 | */
50 | public static final Integer emptyenum = Integer.valueOf(0);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("emptyenum", emptyenum);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-office-2k3/src/main/java/org/codehaus/groovy/scriptom/tlb/office/word/WdTabLeaderHID.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 (C) The Codehaus. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.office.word;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class WdTabLeaderHID
42 | {
43 | private WdTabLeaderHID()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 0 (0x0)
49 | */
50 | public static final Integer emptyenum = Integer.valueOf(0);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("emptyenum", emptyenum);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-office-2k3/src/main/java/org/codehaus/groovy/scriptom/tlb/office/word/WdBorderTypeHID.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 (C) The Codehaus. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.office.word;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class WdBorderTypeHID
42 | {
43 | private WdBorderTypeHID()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 0 (0x0)
49 | */
50 | public static final Integer emptyenum = Integer.valueOf(0);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("emptyenum", emptyenum);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-office-2k3/src/main/java/org/codehaus/groovy/scriptom/tlb/office/word/WdWordDialogHID.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 (C) The Codehaus. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.office.word;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class WdWordDialogHID
42 | {
43 | private WdWordDialogHID()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 0 (0x0)
49 | */
50 | public static final Integer emptyenum = Integer.valueOf(0);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("emptyenum", emptyenum);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-office-2k7/src/main/java/org/codehaus/groovy/scriptom/tlb/office2007/word/WdHelpTypeHID.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 (C) The Codehaus. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.office2007.word;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class WdHelpTypeHID
42 | {
43 | private WdHelpTypeHID()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 0 (0x0)
49 | */
50 | public static final Integer emptyenum = Integer.valueOf(0);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("emptyenum", emptyenum);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-office-2k7/src/main/java/org/codehaus/groovy/scriptom/tlb/office2007/word/WdStatisticHID.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 (C) The Codehaus. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.office2007.word;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class WdStatisticHID
42 | {
43 | private WdStatisticHID()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 0 (0x0)
49 | */
50 | public static final Integer emptyenum = Integer.valueOf(0);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("emptyenum", emptyenum);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-office-2k7/src/main/java/org/codehaus/groovy/scriptom/tlb/office2007/word/WdTabLeaderHID.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 (C) The Codehaus. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.office2007.word;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class WdTabLeaderHID
42 | {
43 | private WdTabLeaderHID()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 0 (0x0)
49 | */
50 | public static final Integer emptyenum = Integer.valueOf(0);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("emptyenum", emptyenum);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-office-2k3/src/main/java/org/codehaus/groovy/scriptom/tlb/office/word/WdCharacterCaseHID.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 (C) The Codehaus. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.office.word;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class WdCharacterCaseHID
42 | {
43 | private WdCharacterCaseHID()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 0 (0x0)
49 | */
50 | public static final Integer emptyenum = Integer.valueOf(0);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("emptyenum", emptyenum);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-office-2k3/src/main/java/org/codehaus/groovy/scriptom/tlb/office/word/WdDictionaryTypeHID.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 (C) The Codehaus. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.office.word;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class WdDictionaryTypeHID
42 | {
43 | private WdDictionaryTypeHID()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 0 (0x0)
49 | */
50 | public static final Integer emptyenum = Integer.valueOf(0);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("emptyenum", emptyenum);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-office-2k3/src/main/java/org/codehaus/groovy/scriptom/tlb/office/word/WdSortFieldTypeHID.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 (C) The Codehaus. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.office.word;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class WdSortFieldTypeHID
42 | {
43 | private WdSortFieldTypeHID()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 0 (0x0)
49 | */
50 | public static final Integer emptyenum = Integer.valueOf(0);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("emptyenum", emptyenum);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-office-2k7/src/main/java/org/codehaus/groovy/scriptom/tlb/office2007/word/WdBorderTypeHID.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 (C) The Codehaus. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.office2007.word;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class WdBorderTypeHID
42 | {
43 | private WdBorderTypeHID()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 0 (0x0)
49 | */
50 | public static final Integer emptyenum = Integer.valueOf(0);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("emptyenum", emptyenum);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-office-2k7/src/main/java/org/codehaus/groovy/scriptom/tlb/office2007/word/WdWordDialogHID.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 (C) The Codehaus. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.office2007.word;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class WdWordDialogHID
42 | {
43 | private WdWordDialogHID()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 0 (0x0)
49 | */
50 | public static final Integer emptyenum = Integer.valueOf(0);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("emptyenum", emptyenum);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-sapi/src/main/java/org/codehaus/groovy/scriptom/tlb/sapi/DISPID_SpeechCustomStream.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007 (C) Guillaume Laforge. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.sapi;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class DISPID_SpeechCustomStream
42 | {
43 | private DISPID_SpeechCustomStream()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 100 (0x64)
49 | */
50 | public static final Integer DISPID_SCSBaseStream = Integer.valueOf(100);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("DISPID_SCSBaseStream", DISPID_SCSBaseStream);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-office-2k3/src/main/java/org/codehaus/groovy/scriptom/tlb/office/word/WdListNumberStyleHID.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 (C) The Codehaus. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.office.word;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class WdListNumberStyleHID
42 | {
43 | private WdListNumberStyleHID()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 0 (0x0)
49 | */
50 | public static final Integer emptyenum = Integer.valueOf(0);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("emptyenum", emptyenum);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-office-2k3/src/main/java/org/codehaus/groovy/scriptom/tlb/office/word/WdNoteNumberStyleHID.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 (C) The Codehaus. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.office.word;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class WdNoteNumberStyleHID
42 | {
43 | private WdNoteNumberStyleHID()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 0 (0x0)
49 | */
50 | public static final Integer emptyenum = Integer.valueOf(0);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("emptyenum", emptyenum);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-office-2k3/src/main/java/org/codehaus/groovy/scriptom/tlb/office/word/WdPageNumberStyleHID.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 (C) The Codehaus. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.office.word;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class WdPageNumberStyleHID
42 | {
43 | private WdPageNumberStyleHID()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 0 (0x0)
49 | */
50 | public static final Integer emptyenum = Integer.valueOf(0);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("emptyenum", emptyenum);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-office-2k3/src/main/java/org/codehaus/groovy/scriptom/tlb/office/word/WdTextOrientationHID.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 (C) The Codehaus. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.office.word;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class WdTextOrientationHID
42 | {
43 | private WdTextOrientationHID()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 0 (0x0)
49 | */
50 | public static final Integer emptyenum = Integer.valueOf(0);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("emptyenum", emptyenum);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-office-2k7/src/main/java/org/codehaus/groovy/scriptom/tlb/office2007/word/WdCharacterCaseHID.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 (C) The Codehaus. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.office2007.word;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class WdCharacterCaseHID
42 | {
43 | private WdCharacterCaseHID()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 0 (0x0)
49 | */
50 | public static final Integer emptyenum = Integer.valueOf(0);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("emptyenum", emptyenum);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-office-2k7/src/main/java/org/codehaus/groovy/scriptom/tlb/office2007/word/WdSortFieldTypeHID.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 (C) The Codehaus. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.office2007.word;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class WdSortFieldTypeHID
42 | {
43 | private WdSortFieldTypeHID()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 0 (0x0)
49 | */
50 | public static final Integer emptyenum = Integer.valueOf(0);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("emptyenum", emptyenum);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-office-2k3/src/main/java/org/codehaus/groovy/scriptom/tlb/office/excel/XlCreator.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 (C) The Codehaus. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.office.excel;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class XlCreator
42 | {
43 | private XlCreator()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 1480803660 (0x5843454C)
49 | */
50 | public static final Integer xlCreatorCode = Integer.valueOf(1480803660);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("xlCreatorCode", xlCreatorCode);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-office-2k3/src/main/java/org/codehaus/groovy/scriptom/tlb/office/word/WdMeasurementUnitsHID.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 (C) The Codehaus. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.office.word;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class WdMeasurementUnitsHID
42 | {
43 | private WdMeasurementUnitsHID()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 0 (0x0)
49 | */
50 | public static final Integer emptyenum = Integer.valueOf(0);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("emptyenum", emptyenum);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-office-2k7/src/main/java/org/codehaus/groovy/scriptom/tlb/office2007/word/WdDictionaryTypeHID.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 (C) The Codehaus. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.office2007.word;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class WdDictionaryTypeHID
42 | {
43 | private WdDictionaryTypeHID()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 0 (0x0)
49 | */
50 | public static final Integer emptyenum = Integer.valueOf(0);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("emptyenum", emptyenum);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-wbem/src/main/java/org/codehaus/groovy/scriptom/tlb/wbemscripting/WbemTimeout.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007 (C) Guillaume Laforge. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.wbemscripting;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * Defines timeout constants
40 | * @author Jason Smith
41 | */
42 | public final class WbemTimeout
43 | {
44 | private WbemTimeout()
45 | {
46 | }
47 |
48 | /**
49 | * Value is -1 (0xFFFFFFFF)
50 | */
51 | public static final Integer wbemTimeoutInfinite = Integer.valueOf(-1);
52 |
53 | /**
54 | * A {@code Map} of the symbolic names to constant values.
55 | */
56 | public static final Map values;
57 | static
58 | {
59 | TreeMap v = new TreeMap();
60 | v.put("wbemTimeoutInfinite", wbemTimeoutInfinite);
61 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/scriptom-office-2k3/src/main/java/org/codehaus/groovy/scriptom/tlb/office/word/WdCaptionNumberStyleHID.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 (C) The Codehaus. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.office.word;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class WdCaptionNumberStyleHID
42 | {
43 | private WdCaptionNumberStyleHID()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 0 (0x0)
49 | */
50 | public static final Integer emptyenum = Integer.valueOf(0);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("emptyenum", emptyenum);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-office-2k3/src/main/java/org/codehaus/groovy/scriptom/tlb/office/word/WdParagraphAlignmentHID.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 (C) The Codehaus. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.office.word;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class WdParagraphAlignmentHID
42 | {
43 | private WdParagraphAlignmentHID()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 0 (0x0)
49 | */
50 | public static final Integer emptyenum = Integer.valueOf(0);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("emptyenum", emptyenum);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-office-2k7/src/main/java/org/codehaus/groovy/scriptom/tlb/office2007/outlook/OlFormatText.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 (C) The Codehaus. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.office2007.outlook;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class OlFormatText
42 | {
43 | private OlFormatText()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 1 (0x1)
49 | */
50 | public static final Integer olFormatTextText = Integer.valueOf(1);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("olFormatTextText", olFormatTextText);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-office-2k7/src/main/java/org/codehaus/groovy/scriptom/tlb/office2007/word/WdListNumberStyleHID.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 (C) The Codehaus. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.office2007.word;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class WdListNumberStyleHID
42 | {
43 | private WdListNumberStyleHID()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 0 (0x0)
49 | */
50 | public static final Integer emptyenum = Integer.valueOf(0);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("emptyenum", emptyenum);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-office-2k7/src/main/java/org/codehaus/groovy/scriptom/tlb/office2007/word/WdMeasurementUnitsHID.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 (C) The Codehaus. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.office2007.word;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class WdMeasurementUnitsHID
42 | {
43 | private WdMeasurementUnitsHID()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 0 (0x0)
49 | */
50 | public static final Integer emptyenum = Integer.valueOf(0);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("emptyenum", emptyenum);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-office-2k7/src/main/java/org/codehaus/groovy/scriptom/tlb/office2007/word/WdNoteNumberStyleHID.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 (C) The Codehaus. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.office2007.word;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class WdNoteNumberStyleHID
42 | {
43 | private WdNoteNumberStyleHID()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 0 (0x0)
49 | */
50 | public static final Integer emptyenum = Integer.valueOf(0);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("emptyenum", emptyenum);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-office-2k7/src/main/java/org/codehaus/groovy/scriptom/tlb/office2007/word/WdPageNumberStyleHID.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 (C) The Codehaus. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.office2007.word;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class WdPageNumberStyleHID
42 | {
43 | private WdPageNumberStyleHID()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 0 (0x0)
49 | */
50 | public static final Integer emptyenum = Integer.valueOf(0);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("emptyenum", emptyenum);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-office-2k7/src/main/java/org/codehaus/groovy/scriptom/tlb/office2007/word/WdTextOrientationHID.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 (C) The Codehaus. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.office2007.word;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class WdTextOrientationHID
42 | {
43 | private WdTextOrientationHID()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 0 (0x0)
49 | */
50 | public static final Integer emptyenum = Integer.valueOf(0);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("emptyenum", emptyenum);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-office-2k7/src/main/java/org/codehaus/groovy/scriptom/tlb/office2007/excel/XlCreator.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 (C) The Codehaus. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.office2007.excel;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class XlCreator
42 | {
43 | private XlCreator()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 1480803660 (0x5843454C)
49 | */
50 | public static final Integer xlCreatorCode = Integer.valueOf(1480803660);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("xlCreatorCode", xlCreatorCode);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-office-2k7/src/main/java/org/codehaus/groovy/scriptom/tlb/office2007/word/WdCaptionNumberStyleHID.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 (C) The Codehaus. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.office2007.word;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class WdCaptionNumberStyleHID
42 | {
43 | private WdCaptionNumberStyleHID()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 0 (0x0)
49 | */
50 | public static final Integer emptyenum = Integer.valueOf(0);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("emptyenum", emptyenum);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-office-2k7/src/main/java/org/codehaus/groovy/scriptom/tlb/office2007/word/WdParagraphAlignmentHID.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 (C) The Codehaus. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.office2007.word;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class WdParagraphAlignmentHID
42 | {
43 | private WdParagraphAlignmentHID()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 0 (0x0)
49 | */
50 | public static final Integer emptyenum = Integer.valueOf(0);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("emptyenum", emptyenum);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-wbem/src/main/java/org/codehaus/groovy/scriptom/tlb/wbemscripting/WbemTextFlagEnum.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007 (C) Guillaume Laforge. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.wbemscripting;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * Defines content of generated object text
40 | * @author Jason Smith
41 | */
42 | public final class WbemTextFlagEnum
43 | {
44 | private WbemTextFlagEnum()
45 | {
46 | }
47 |
48 | /**
49 | * Value is 1 (0x1)
50 | */
51 | public static final Integer wbemTextFlagNoFlavors = Integer.valueOf(1);
52 |
53 | /**
54 | * A {@code Map} of the symbolic names to constant values.
55 | */
56 | public static final Map values;
57 | static
58 | {
59 | TreeMap v = new TreeMap();
60 | v.put("wbemTextFlagNoFlavors", wbemTextFlagNoFlavors);
61 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/scriptom-office-2k7/src/main/java/org/codehaus/groovy/scriptom/tlb/office2007/outlook/OlFormatKeywords.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009 (C) The Codehaus. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.office2007.outlook;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class OlFormatKeywords
42 | {
43 | private OlFormatKeywords()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 1 (0x1)
49 | */
50 | public static final Integer olFormatKeywordsText = Integer.valueOf(1);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("olFormatKeywordsText", olFormatKeywordsText);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/scriptom-sapi/src/main/java/org/codehaus/groovy/scriptom/tlb/sapi/DISPID_SpeechPhraseBuilder.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007 (C) Guillaume Laforge. All Rights Reserved.
3 | *
4 | * Redistribution and use of this software and associated documentation
5 | * ("Software"), with or without modification, are permitted provided that the
6 | * following conditions are met:
7 | * 1. Redistributions of source code must retain copyright statements and
8 | * notices. Redistributions must also contain a copy of this document.
9 | * 2. Redistributions in binary form must reproduce the above copyright
10 | * notice, this list of conditions and the following disclaimer in the
11 | * documentation and/or other materials provided with the distribution.
12 | * 3. The name "groovy" must not be used to endorse or promote products
13 | * derived from this Software without prior written permission of The Codehaus.
14 | * For written permission, please contact info@codehaus.org.
15 | * 4. Products derived from this Software may not be called "groovy" nor may
16 | * "groovy" appear in their names without prior written permission of The
17 | * Codehaus. "groovy" is a registered trademark of The Codehaus.
18 | * 5. Due credit should be given to The Codehaus - http://groovy.codehaus.org/
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY
21 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR
24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
30 | * DAMAGE.
31 | */
32 | package org.codehaus.groovy.scriptom.tlb.sapi;
33 |
34 | import java.util.Map;
35 | import java.util.TreeMap;
36 | import java.util.Collections;
37 |
38 | /**
39 | * @author Jason Smith
40 | */
41 | public final class DISPID_SpeechPhraseBuilder
42 | {
43 | private DISPID_SpeechPhraseBuilder()
44 | {
45 | }
46 |
47 | /**
48 | * Value is 1 (0x1)
49 | */
50 | public static final Integer DISPID_SPPBRestorePhraseFromMemory = Integer.valueOf(1);
51 |
52 | /**
53 | * A {@code Map} of the symbolic names to constant values.
54 | */
55 | public static final Map values;
56 | static
57 | {
58 | TreeMap v = new TreeMap();
59 | v.put("DISPID_SPPBRestorePhraseFromMemory", DISPID_SPPBRestorePhraseFromMemory);
60 | values = Collections.synchronizedMap(Collections.unmodifiableMap(v));
61 | }
62 | }
63 |
--------------------------------------------------------------------------------