-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtranslateModule1.php
More file actions
90 lines (77 loc) · 2.47 KB
/
translateModule1.php
File metadata and controls
90 lines (77 loc) · 2.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
/**
* Attribute VB_Name = "Module1"
* Option Explicit
*/
/**
* Const epsilon As Double = 0.0001
* @var float
*/
const epsilon = 0.0001;
/**
* Const column_offset As Long = 11
* @var integer
*/
const column_offset = 11;
/**
* Const width_limit As Double = 300
* @var float
*/
const width_limit = 300;
/**
* Const height_limit As Double = 300
* @var float
*/
const height_limit = 300;
/**
* Const displacement_multiplier As Double = 0.353
* @var float
*/
const displacement_multiplier = 0.353;
/*
* Had a look through all the rest of the functions.
* They seem to be mostly related to the frontend side of
* things, which in our case is MS Excel worksheets.
*
* Here's a list of all these functions:
* Sub SetupConsoleWorksheet()
* Sub SetupItemsWorksheet()
* Sub SetupContainersWorksheet()
* Sub SetupItemItemCompatibilityWorksheet()
* Sub SetupContainerItemCompatibilityWorksheet()
* Sub SetupSolutionWorksheet()
* Sub SetupVisualizationWorksheet()
* Sub RefreshVisualizationWorksheet()
* Sub AnimateVisualizationWorksheet()
* Private Sub About()
* Private Sub SendFeedback()
* Private Sub ResetWorkbook()
* Sub SortItemTypes()
* Sub SortContainerTypes()
* Sub SetupMenuItems()
* Private Sub WatchTutorial()
*
* Then there's a check like this:
* #If Win32 Or Win64 Or (MAC_OFFICE_VERSION >= 15) Then
* after which, it's the same functions, though renamed with
* RibbonCall suffixes.
*
* Here's the list again:
* Sub ResetWorkbookRibbonCall(control As IRibbonControl)
* Sub SetupItemsWorksheetRibbonCall(control As IRibbonControl)
* Sub SortItemsRibbonCall(control As IRibbonControl)
* Sub SetupItemItemCompatibilityWorksheetRibbonCall(control As IRibbonControl)
* Sub SetupContainersWorksheetRibbonCall(control As IRibbonControl)
* Sub SortContainerTypesRibbonCall(control As IRibbonControl)
* Sub SetupContainerItemCompatibilityWorksheetRibbonCall(control As IRibbonControl)
* Sub SetupSolutionWorksheetRibbonCall(control As IRibbonControl)
* Sub SetupVisualizationWorksheetRibbonCall(control As IRibbonControl)
* Sub AnimateVisualizationWorksheetRibbonCall(control As IRibbonControl)
* Private Sub SendFeedbackRibbonCall(control As IRibbonControl)
* Private Sub WatchTutorialRibbonCall(control As IRibbonControl)
* Private Sub AboutRibbonCall(control As IRibbonControl)
* Sub tabActivate(ribbon As IRibbonUI)
*
* I'll have to look over these if there's anything relevant inside them
* once we get all the translated logic into an actual app.
* */