Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split form/report layout definitions from VBA code #456

Merged
merged 37 commits into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
40cffbc
Add option to SplitLayoutFromVBA
joyfullservice Oct 24, 2023
07e364e
Refactor code module export to shared function
joyfullservice Oct 24, 2023
0beaee5
Support "|" in performance log entry names
joyfullservice Oct 25, 2023
1ca6886
Adjust indenting
joyfullservice Oct 25, 2023
8e70ad2
Convert Sanitize module to class
joyfullservice Oct 25, 2023
1c0d3f4
Refactor sanitizing to use class
joyfullservice Oct 25, 2023
c87261a
Refactor class variables
joyfullservice Oct 25, 2023
89101c5
Refactor form/report export to split VBA
joyfullservice Nov 2, 2023
47c6506
Rename Sanitize class to SourceParser
joyfullservice Nov 2, 2023
c2ffccf
Refactor for name change
joyfullservice Nov 2, 2023
2d21eb6
Verify ribbon active state when the add-in loads
joyfullservice Nov 3, 2023
da9f94a
Don't auto split layout/VBA for existing projects
joyfullservice Nov 6, 2023
54e070a
Move print settings processing to clsSourceParser
joyfullservice Nov 8, 2023
1390f2c
Move source reading function
joyfullservice Nov 8, 2023
932ac84
Rework merging source content before import
joyfullservice Nov 8, 2023
9069232
Add support to overlay VBA code after import
joyfullservice Nov 8, 2023
8f1649a
Code cleanup and minor tweaks
joyfullservice Nov 8, 2023
4f9247d
Fix bugs in build logic
joyfullservice Nov 8, 2023
925b019
Check for diff tool before comparing objects
joyfullservice Nov 8, 2023
7b8be8f
Implement correction according to rubberduck (#453)
Tanarri Nov 10, 2023
9577eab
Add wiki page for Split Files
joyfullservice Nov 13, 2023
ff706a4
Merge branch 'SplitLayoutFromVBA' of https://github.com/joyfullservic…
joyfullservice Nov 13, 2023
07bc57c
Add change hook for options
joyfullservice Nov 13, 2023
e2049fa
Automate splitting forms and reports
joyfullservice Nov 13, 2023
e723123
Rename function
joyfullservice Nov 13, 2023
de4602e
Fixes #354 and Fixes #452 (#454)
hecon5 Nov 13, 2023
d5e76f7
Add performance timing to ISO date parsing
joyfullservice Nov 14, 2023
286679d
Add high-performance wrapper functions
joyfullservice Nov 14, 2023
aff7be9
Fix copy-paste oversight
joyfullservice Nov 14, 2023
e18d818
Update error handling
joyfullservice Nov 14, 2023
b7985e9
Use faster date parsing for date only values
joyfullservice Nov 14, 2023
fe35d3b
Add Split Files utility to ribbon (Advanced Tools)
joyfullservice Nov 14, 2023
c28f32b
Rename as new files
joyfullservice Nov 15, 2023
bc23513
Restore original files
joyfullservice Nov 15, 2023
923a72b
Split files while preserving history
joyfullservice Nov 15, 2023
68e01a7
Split layout from VBA in testing database
joyfullservice Nov 15, 2023
436dd45
Adjust version number
joyfullservice Nov 15, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Ribbon/Ribbon.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<button id="btnExportSelected" size="large" label="Export Selected" supertip="Export the database component currently selected in the navigation pane." imageMso="SelectionPane" tag="RibbonName:=;inMenu:=;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=" onAction="OnActionButton" getVisible="GetVisible" getEnabled="GetEnabled" />
<separator id="sep2" getVisible="GetVisible" />
<button id="btnBuild" size="large" label="Build From Source" supertip="Build the current project from source files." imageMso="FileCompactAndRepairDatabase" tag="RibbonName:=;inMenu:=;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=" onAction="OnActionButton" getVisible="GetVisible" getEnabled="GetEnabled" />
<button id="btnMergeBuild" size="large" label="Merge Build" supertip="Merge changed source files into the current database." imageMso="AdpDiagramArrangeTables" tag="RibbonName:=;inMenu:=;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=" onAction="OnActionButton" getVisible="GetVisible" getEnabled="GetEnabled" />
<button id="btnMergeBuild" size="large" label="Merge Build" supertip="Merge changed source files into the current database." imageMso="CellsInsertDialog" tag="RibbonName:=;inMenu:=;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=" onAction="OnActionButton" getVisible="GetVisible" getEnabled="GetEnabled" />
<button id="btnBuildAs" size="large" label="Build As․․․" supertip="Build from source files to a new name or location." imageMso="FileSaveAs" tag="RibbonName:=;inMenu:=;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=" onAction="OnActionButton" getVisible="GetVisible" getEnabled="GetEnabled" />
<button id="btnLoadSelected" size="large" label="Load Selected" supertip="Import from source files the database component currently selected in the navigation pane." imageMso="AlignDialog" tag="RibbonName:=;inMenu:=;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=" onAction="OnActionButton" getVisible="GetVisible" getEnabled="GetEnabled" />
</group>
Expand All @@ -29,6 +29,7 @@
<button id="btnGoToLinkAdvancedTools" label="View Documentation" description="See documentation on the purpose and usage of these custom tools..." imageMso="TentativeAcceptInvitation" tag="RibbonName:=;inMenu:=mnu15;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=" onAction="OnActionButton" getVisible="GetVisible" getEnabled="GetEnabled" />
<button id="btnLocalizeLibraryReferences" label="Localize Library References" description="Relink add-in library databases to the files located in the same folder as the current database" imageMso="MacroShowAllActions" tag="RibbonName:=;inMenu:=mnu15;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=" onAction="OnActionButton" getVisible="GetVisible" getEnabled="GetEnabled" />
<button id="btnRepairColors" label="Repair Colors" description="Rebuild color definition blocks in form objects (See documentation for more info)" supertip="test2" imageMso="SmartArtChangeColorsGallery" tag="RibbonName:=;inMenu:=mnu15;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=" onAction="OnActionButton" getVisible="GetVisible" getEnabled="GetEnabled" />
<button id="btnSplitFiles" label="Split Files" description="Duplicate files while preserving Git line history" imageMso="AdpDiagramArrangeTables" tag="RibbonName:=;inMenu:=mnuAdvancedTools;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=" onAction="OnActionButton" getVisible="GetVisible" getEnabled="GetEnabled" />
<button id="btnActivateHook" label="Activate Hook" description="Enable Access Application hook to report saving of objects and enabling automatic export on save." supertip="Activate Hook" imageMso="Call" tag="RibbonName:=;inMenu:=;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=" onAction="OnActionButton" getVisible="GetVisible" getEnabled="GetEnabled" />
<button id="btnReloadRibbon" label="Reload Ribbon" description="Refresh the add-in ribbon menu to reflect changes in XML source" imageMso="DataRefreshAll" tag="RibbonName:=;inMenu:=mnuAdvancedTools;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=" onAction="OnActionButton" getVisible="GetVisible" getEnabled="GetEnabled" />
</menu>
Expand Down
7 changes: 1 addition & 6 deletions Testing/Testing.accdb.src/forms/frmColors.bas
Original file line number Diff line number Diff line change
Expand Up @@ -936,9 +936,4 @@ Begin Form
End
End
CodeBehindForm
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Compare Database
Option Explicit
' See "frmColors.cls"
6 changes: 6 additions & 0 deletions Testing/Testing.accdb.src/forms/frmColors.cls
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Compare Database
Option Explicit
Loading