diff --git a/Gostomizer.dotm b/Gostomizer.dotm new file mode 100644 index 0000000..22c8243 Binary files /dev/null and b/Gostomizer.dotm differ diff --git a/Gostomizer.dotm/word/settings.xml b/Gostomizer.dotm/word/settings.xml deleted file mode 100644 index dd2ee9d..0000000 --- a/Gostomizer.dotm/word/settings.xml +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/Gostomizer.dotm/word/vbaProject.bin b/Gostomizer.dotm/word/vbaProject.bin deleted file mode 100644 index d8ca2b4..0000000 Binary files a/Gostomizer.dotm/word/vbaProject.bin and /dev/null differ diff --git a/MacrosList.bas b/MacrosList.bas new file mode 100644 index 0000000..4efd968 --- /dev/null +++ b/MacrosList.bas @@ -0,0 +1,90 @@ +Attribute VB_Name = "MacrosList" + +Sub ML_AddListA4() + 'for debug + 'MsgBox "Çàïóñê ôóíêöèè âñòàâêè ëèñòà À4" + + MsgBox "äî Selection.PageSetup.Orientation = " & Selection.PageSetup.Orientation + + Selection.InsertBreak Type:=wdSectionBreakNextPage + With Selection.PageSetup + .LineNumbering.Active = False + .Orientation = wdOrientPortrait + .TopMargin = CentimetersToPoints(2) + .BottomMargin = CentimetersToPoints(2) + .LeftMargin = CentimetersToPoints(3) + .RightMargin = CentimetersToPoints(1.5) + .Gutter = CentimetersToPoints(0) + .HeaderDistance = CentimetersToPoints(1.25) + .FooterDistance = CentimetersToPoints(1.25) + .PageWidth = CentimetersToPoints(29.7) + .PageHeight = CentimetersToPoints(42) + .FirstPageTray = wdPrinterDefaultBin + .OtherPagesTray = wdPrinterDefaultBin + .SectionStart = wdSectionNewPage + .OddAndEvenPagesHeaderFooter = False + .DifferentFirstPageHeaderFooter = False + .VerticalAlignment = wdAlignVerticalTop + .SuppressEndnotes = False + .MirrorMargins = False + .TwoPagesOnOne = False + .BookFoldPrinting = False + .BookFoldRevPrinting = False + .BookFoldPrintingSheets = 1 + .GutterPos = wdGutterPosLeft + End With + + MsgBox "ïîñëå Selection.PageSetup.Orientation = " & Selection.PageSetup.Orientation + + If Selection.PageSetup.Orientation = wdOrientPortrait Then + MsgBox "Ïîðòðåòíàÿ" + Selection.PageSetup.Orientation = wdOrientLandscape + Else + MsgBox "Àëüáîìíàÿ" + Selection.PageSetup.Orientation = wdOrientPortrait + End If + +End Sub + +Sub ML_AddListA3() + 'for debug + MsgBox "Çàïóñê ôóíêöèè âñòàâêè ëèñòà À3" + + Dim ps As PageSetup + + Set ps = Selection.PageSetup + + Selection.InsertBreak Type:=wdSectionBreakNextPage + With Selection.PageSetup + .LineNumbering.Active = False + .Orientation = wdOrientLandscape + .TopMargin = CentimetersToPoints(1.5) + .BottomMargin = CentimetersToPoints(3) + .LeftMargin = CentimetersToPoints(2) + .RightMargin = CentimetersToPoints(2) + .Gutter = CentimetersToPoints(0) + .HeaderDistance = CentimetersToPoints(1.25) + .FooterDistance = CentimetersToPoints(1.25) + .PageWidth = CentimetersToPoints(29.7) + .PageHeight = CentimetersToPoints(21) + .FirstPageTray = wdPrinterDefaultBin + .OtherPagesTray = wdPrinterDefaultBin + .SectionStart = wdSectionNewPage + .OddAndEvenPagesHeaderFooter = False + .DifferentFirstPageHeaderFooter = False + .VerticalAlignment = wdAlignVerticalTop + .SuppressEndnotes = False + .MirrorMargins = False + .TwoPagesOnOne = False + .BookFoldPrinting = False + .BookFoldRevPrinting = False + .BookFoldPrintingSheets = 1 + .GutterPos = wdGutterPosLeft + End With + + Selection.InsertBreak Type:=wdSectionBreakNextPage + Selection.PageSetup = ps + + +End Sub + diff --git a/Gostomizer.dotm/[Content_Types].xml b/RXE/Gostomizer.dotm/[Content_Types].xml similarity index 100% rename from Gostomizer.dotm/[Content_Types].xml rename to RXE/Gostomizer.dotm/[Content_Types].xml diff --git a/Gostomizer.dotm/_rels/.rels b/RXE/Gostomizer.dotm/_rels/.rels similarity index 100% rename from Gostomizer.dotm/_rels/.rels rename to RXE/Gostomizer.dotm/_rels/.rels diff --git a/Gostomizer.dotm/customUI/_rels/customUI14.xml.rels b/RXE/Gostomizer.dotm/customUI/_rels/customUI14.xml.rels similarity index 100% rename from Gostomizer.dotm/customUI/_rels/customUI14.xml.rels rename to RXE/Gostomizer.dotm/customUI/_rels/customUI14.xml.rels diff --git a/Gostomizer.dotm/customUI/customUI14.xml b/RXE/Gostomizer.dotm/customUI/customUI14.xml similarity index 100% rename from Gostomizer.dotm/customUI/customUI14.xml rename to RXE/Gostomizer.dotm/customUI/customUI14.xml diff --git a/Gostomizer.dotm/customUI/images/Frame.png b/RXE/Gostomizer.dotm/customUI/images/Frame.png similarity index 100% rename from Gostomizer.dotm/customUI/images/Frame.png rename to RXE/Gostomizer.dotm/customUI/images/Frame.png diff --git a/Gostomizer.dotm/customUI/images/StampForm5.png b/RXE/Gostomizer.dotm/customUI/images/StampForm5.png similarity index 100% rename from Gostomizer.dotm/customUI/images/StampForm5.png rename to RXE/Gostomizer.dotm/customUI/images/StampForm5.png diff --git a/Gostomizer.dotm/customUI/images/StampForm6.png b/RXE/Gostomizer.dotm/customUI/images/StampForm6.png similarity index 100% rename from Gostomizer.dotm/customUI/images/StampForm6.png rename to RXE/Gostomizer.dotm/customUI/images/StampForm6.png diff --git a/Gostomizer.dotm/customUI/images/StampLeftDown.png b/RXE/Gostomizer.dotm/customUI/images/StampLeftDown.png similarity index 100% rename from Gostomizer.dotm/customUI/images/StampLeftDown.png rename to RXE/Gostomizer.dotm/customUI/images/StampLeftDown.png diff --git a/Gostomizer.dotm/customUI/images/StampLeftMiddle.png b/RXE/Gostomizer.dotm/customUI/images/StampLeftMiddle.png similarity index 100% rename from Gostomizer.dotm/customUI/images/StampLeftMiddle.png rename to RXE/Gostomizer.dotm/customUI/images/StampLeftMiddle.png diff --git a/Gostomizer.dotm/customUI/images/StampLeftUp.png b/RXE/Gostomizer.dotm/customUI/images/StampLeftUp.png similarity index 100% rename from Gostomizer.dotm/customUI/images/StampLeftUp.png rename to RXE/Gostomizer.dotm/customUI/images/StampLeftUp.png diff --git a/Gostomizer.dotm/customUI/images/StampPageNumber.png b/RXE/Gostomizer.dotm/customUI/images/StampPageNumber.png similarity index 100% rename from Gostomizer.dotm/customUI/images/StampPageNumber.png rename to RXE/Gostomizer.dotm/customUI/images/StampPageNumber.png diff --git a/Gostomizer.dotm/customUI/images/a3.png b/RXE/Gostomizer.dotm/customUI/images/a3.png similarity index 100% rename from Gostomizer.dotm/customUI/images/a3.png rename to RXE/Gostomizer.dotm/customUI/images/a3.png diff --git a/Gostomizer.dotm/customUI/images/a4.png b/RXE/Gostomizer.dotm/customUI/images/a4.png similarity index 100% rename from Gostomizer.dotm/customUI/images/a4.png rename to RXE/Gostomizer.dotm/customUI/images/a4.png diff --git a/Gostomizer.dotm/docProps/app.xml b/RXE/Gostomizer.dotm/docProps/app.xml similarity index 93% rename from Gostomizer.dotm/docProps/app.xml rename to RXE/Gostomizer.dotm/docProps/app.xml index c54a775..7a89a52 100644 --- a/Gostomizer.dotm/docProps/app.xml +++ b/RXE/Gostomizer.dotm/docProps/app.xml @@ -1,2 +1,2 @@ -24100Microsoft Office Word000falseНазвание1false0falsefalse14.0000 \ No newline at end of file +68100Microsoft Office Word000falseНазвание1false0falsefalse14.0000 \ No newline at end of file diff --git a/Gostomizer.dotm/docProps/core.xml b/RXE/Gostomizer.dotm/docProps/core.xml similarity index 79% rename from Gostomizer.dotm/docProps/core.xml rename to RXE/Gostomizer.dotm/docProps/core.xml index aaf980d..1de5727 100644 --- a/Gostomizer.dotm/docProps/core.xml +++ b/RXE/Gostomizer.dotm/docProps/core.xml @@ -1,2 +1,2 @@ -BronikBronik112024-02-16T15:42:00Z2024-02-18T19:10:00Z \ No newline at end of file +BronikBronik262024-02-16T15:42:00Z2025-05-13T20:31:00Z \ No newline at end of file diff --git a/Gostomizer.dotm/word/_rels/document.xml.rels b/RXE/Gostomizer.dotm/word/_rels/document.xml.rels similarity index 100% rename from Gostomizer.dotm/word/_rels/document.xml.rels rename to RXE/Gostomizer.dotm/word/_rels/document.xml.rels diff --git a/Gostomizer.dotm/word/_rels/vbaProject.bin.rels b/RXE/Gostomizer.dotm/word/_rels/vbaProject.bin.rels similarity index 100% rename from Gostomizer.dotm/word/_rels/vbaProject.bin.rels rename to RXE/Gostomizer.dotm/word/_rels/vbaProject.bin.rels diff --git a/Gostomizer.dotm/word/document.xml b/RXE/Gostomizer.dotm/word/document.xml similarity index 84% rename from Gostomizer.dotm/word/document.xml rename to RXE/Gostomizer.dotm/word/document.xml index cd8404f..dd9ff6e 100644 --- a/Gostomizer.dotm/word/document.xml +++ b/RXE/Gostomizer.dotm/word/document.xml @@ -1,2 +1,2 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/Gostomizer.dotm/word/fontTable.xml b/RXE/Gostomizer.dotm/word/fontTable.xml similarity index 100% rename from Gostomizer.dotm/word/fontTable.xml rename to RXE/Gostomizer.dotm/word/fontTable.xml diff --git a/RXE/Gostomizer.dotm/word/settings.xml b/RXE/Gostomizer.dotm/word/settings.xml new file mode 100644 index 0000000..f46e01e --- /dev/null +++ b/RXE/Gostomizer.dotm/word/settings.xml @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/Gostomizer.dotm/word/styles.xml b/RXE/Gostomizer.dotm/word/styles.xml similarity index 100% rename from Gostomizer.dotm/word/styles.xml rename to RXE/Gostomizer.dotm/word/styles.xml diff --git a/Gostomizer.dotm/word/stylesWithEffects.xml b/RXE/Gostomizer.dotm/word/stylesWithEffects.xml similarity index 100% rename from Gostomizer.dotm/word/stylesWithEffects.xml rename to RXE/Gostomizer.dotm/word/stylesWithEffects.xml diff --git a/Gostomizer.dotm/word/theme/theme1.xml b/RXE/Gostomizer.dotm/word/theme/theme1.xml similarity index 100% rename from Gostomizer.dotm/word/theme/theme1.xml rename to RXE/Gostomizer.dotm/word/theme/theme1.xml diff --git a/Gostomizer.dotm/word/vbaData.xml b/RXE/Gostomizer.dotm/word/vbaData.xml similarity index 78% rename from Gostomizer.dotm/word/vbaData.xml rename to RXE/Gostomizer.dotm/word/vbaData.xml index 14340cf..46b48f8 100644 --- a/Gostomizer.dotm/word/vbaData.xml +++ b/RXE/Gostomizer.dotm/word/vbaData.xml @@ -1,2 +1,2 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/RXE/Gostomizer.dotm/word/vbaProject.bin b/RXE/Gostomizer.dotm/word/vbaProject.bin new file mode 100644 index 0000000..ab5260c Binary files /dev/null and b/RXE/Gostomizer.dotm/word/vbaProject.bin differ diff --git a/Gostomizer.dotm/word/webSettings.xml b/RXE/Gostomizer.dotm/word/webSettings.xml similarity index 100% rename from Gostomizer.dotm/word/webSettings.xml rename to RXE/Gostomizer.dotm/word/webSettings.xml diff --git a/RibbonCallbacks.bas b/RibbonCallbacks.bas new file mode 100644 index 0000000..31250d5 --- /dev/null +++ b/RibbonCallbacks.bas @@ -0,0 +1,63 @@ +Option Explicit 'Потребовать явного объявления всех переменных в файле + +'TableFormatter (элемент: button, атрибут: onAction), 2010+ +Private Sub TableFormatter(control As IRibbonControl) + MsgBox "Сработала процедура, заданная в onAction элемента " & control.ID +End Sub + +'PicFormatter (элемент: button, атрибут: onAction), 2010+ +Private Sub PicFormatter(control As IRibbonControl) + MsgBox "Сработала процедура, заданная в onAction элемента " & control.ID +End Sub + +'AddListA4 (элемент: button, атрибут: onAction), 2010+ +Private Sub AddListA3(control As IRibbonControl) + 'MsgBox "Сработала процедура, заданная в onAction элемента " & control.ID + + Call ML_AddListA4 + +End Sub + +'AddListA3 (элемент: button, атрибут: onAction), 2010+ +Private Sub AddListA4(control As IRibbonControl) + 'MsgBox "Сработала процедура, заданная в onAction элемента " & control.ID + + Call ML_AddListA3 + + +End Sub + +'StampForm5 (элемент: button, атрибут: onAction), 2010+ +Private Sub AddStampForm5(control As IRibbonControl) + MsgBox "Сработала процедура, заданная в onAction элемента " & control.ID +End Sub + +'StampForm6 (элемент: button, атрибут: onAction), 2010+ +Private Sub AddStampForm6(control As IRibbonControl) + MsgBox "Сработала процедура, заданная в onAction элемента " & control.ID +End Sub + +'StampFrame (элемент: button, атрибут: onAction), 2010+ +Private Sub AddFrame(control As IRibbonControl) + MsgBox "Сработала процедура, заданная в onAction элемента " & control.ID +End Sub + +'StampLeftUp (элемент: button, атрибут: onAction), 2010+ +Private Sub AddStampLeftUp(control As IRibbonControl) + MsgBox "Сработала процедура, заданная в onAction элемента " & control.ID +End Sub + +'StampLeftDown (элемент: button, атрибут: onAction), 2010+ +Private Sub AddStampLeftDown(control As IRibbonControl) + MsgBox "Сработала процедура, заданная в onAction элемента " & control.ID +End Sub + +'StampLeftMiddle (элемент: button, атрибут: onAction), 2010+ +Private Sub AddStampLefMid(control As IRibbonControl) + MsgBox "Сработала процедура, заданная в onAction элемента " & control.ID +End Sub + +'StampPageNumber (элемент: button, атрибут: onAction), 2010+ +Private Sub AddPageNumber(control As IRibbonControl) + MsgBox "Сработала процедура, заданная в onAction элемента " & control.ID +End Sub \ No newline at end of file diff --git a/modules.vbs b/modules.vbs deleted file mode 100644 index 2a7caae..0000000 --- a/modules.vbs +++ /dev/null @@ -1,128 +0,0 @@ -Option Explicit 'Потребовать явного объявления всех переменных в файле - -'TableFormatter (элемент: button, атрибут: onAction), 2010+ -Private Sub TableFormatter(control As IRibbonControl) - MsgBox "Сработала процедура, заданная в onAction элемента " & control.ID -End Sub - -'PicFormatter (элемент: button, атрибут: onAction), 2010+ -Private Sub PicFormatter(control As IRibbonControl) - MsgBox "Сработала процедура, заданная в onAction элемента " & control.ID -End Sub - -'AddListA4 (элемент: button, атрибут: onAction), 2010+ -Private Sub AddListA3(control As IRibbonControl) - 'for debug - MsgBox "Сработала процедура, заданная в onAction элемента " & control.ID - - Dim ps As PageSetup - - Set ps = Selection.PageSetup - - Selection.InsertBreak Type:=wdSectionBreakNextPage - With Selection.PageSetup - .LineNumbering.Active = False - .Orientation = wdOrientLandscape - .TopMargin = CentimetersToPoints(1.5) - .BottomMargin = CentimetersToPoints(3) - .LeftMargin = CentimetersToPoints(2) - .RightMargin = CentimetersToPoints(2) - .Gutter = CentimetersToPoints(0) - .HeaderDistance = CentimetersToPoints(1.25) - .FooterDistance = CentimetersToPoints(1.25) - .PageWidth = CentimetersToPoints(29.7) - .PageHeight = CentimetersToPoints(21) - .FirstPageTray = wdPrinterDefaultBin - .OtherPagesTray = wdPrinterDefaultBin - .SectionStart = wdSectionNewPage - .OddAndEvenPagesHeaderFooter = False - .DifferentFirstPageHeaderFooter = False - .VerticalAlignment = wdAlignVerticalTop - .SuppressEndnotes = False - .MirrorMargins = False - .TwoPagesOnOne = False - .BookFoldPrinting = False - .BookFoldRevPrinting = False - .BookFoldPrintingSheets = 1 - .GutterPos = wdGutterPosLeft - End With - - Selection.InsertBreak Type:=wdSectionBreakNextPage - Selection.PageSetup = ps - -End Sub - -'AddListA3 (элемент: button, атрибут: onAction), 2010+ -Private Sub AddListA4(control As IRibbonControl) - 'for debug - MsgBox "Сработала процедура, заданная в onAction элемента " & control.ID - Selection.InsertBreak Type:=wdSectionBreakNextPage - With Selection.PageSetup - .LineNumbering.Active = False - .Orientation = wdOrientPortrait - .TopMargin = CentimetersToPoints(2) - .BottomMargin = CentimetersToPoints(2) - .LeftMargin = CentimetersToPoints(3) - .RightMargin = CentimetersToPoints(1.5) - .Gutter = CentimetersToPoints(0) - .HeaderDistance = CentimetersToPoints(1.25) - .FooterDistance = CentimetersToPoints(1.25) - .PageWidth = CentimetersToPoints(29.7) - .PageHeight = CentimetersToPoints(42) - .FirstPageTray = wdPrinterDefaultBin - .OtherPagesTray = wdPrinterDefaultBin - .SectionStart = wdSectionNewPage - .OddAndEvenPagesHeaderFooter = False - .DifferentFirstPageHeaderFooter = False - .VerticalAlignment = wdAlignVerticalTop - .SuppressEndnotes = False - .MirrorMargins = False - .TwoPagesOnOne = False - .BookFoldPrinting = False - .BookFoldRevPrinting = False - .BookFoldPrintingSheets = 1 - .GutterPos = wdGutterPosLeft - End With - If Selection.PageSetup.Orientation = wdOrientPortrait Then - Selection.PageSetup.Orientation = wdOrientLandscape - Else - Selection.PageSetup.Orientation = wdOrientPortrait - End If - -End Sub - -'StampForm5 (элемент: button, атрибут: onAction), 2010+ -Private Sub AddStampForm5(control As IRibbonControl) - MsgBox "Сработала процедура, заданная в onAction элемента " & control.ID -End Sub - -'StampForm6 (элемент: button, атрибут: onAction), 2010+ -Private Sub AddStampForm6(control As IRibbonControl) - MsgBox "Сработала процедура, заданная в onAction элемента " & control.ID -End Sub - -'StampFrame (элемент: button, атрибут: onAction), 2010+ -Private Sub AddFrame(control As IRibbonControl) - MsgBox "Сработала процедура, заданная в onAction элемента " & control.ID -End Sub - -'StampLeftUp (элемент: button, атрибут: onAction), 2010+ -Private Sub AddStampLeftUp(control As IRibbonControl) - MsgBox "Сработала процедура, заданная в onAction элемента " & control.ID -End Sub - -'StampLeftDown (элемент: button, атрибут: onAction), 2010+ -Private Sub AddStampLeftDown(control As IRibbonControl) - MsgBox "Сработала процедура, заданная в onAction элемента " & control.ID -End Sub - -'StampLeftMiddle (элемент: button, атрибут: onAction), 2010+ -Private Sub AddStampLefMid(control As IRibbonControl) - MsgBox "Сработала процедура, заданная в onAction элемента " & control.ID -End Sub - -'StampPageNumber (элемент: button, атрибут: onAction), 2010+ -Private Sub AddPageNumber(control As IRibbonControl) - MsgBox "Сработала процедура, заданная в onAction элемента " & control.ID -End Sub -