aboutsummaryrefslogtreecommitdiff
path: root/Source/DataExport/RibbonController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Source/DataExport/RibbonController.cs')
-rw-r--r--Source/DataExport/RibbonController.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/Source/DataExport/RibbonController.cs b/Source/DataExport/RibbonController.cs
new file mode 100644
index 0000000..a9eedb5
--- /dev/null
+++ b/Source/DataExport/RibbonController.cs
@@ -0,0 +1,26 @@
+using System.Runtime.InteropServices;
+using System.Windows.Forms;
+using ExcelDna.Integration.CustomUI;
+
+namespace Ribbon
+{
+ [ComVisible(true)]
+ public class RibbonController : ExcelRibbon
+ {
+ public override string GetCustomUI(string RibbonID)
+ {
+ return @"
+ <customUI xmlns='http://schemas.microsoft.com/office/2006/01/customui'>
+ <ribbon>
+ <tabs>
+ <tab id='tab1' label='REHAU'>
+ <group id='group1' label='Прайс-лист'>
+ <button id='button1' label='Экспорт' onAction='OnButtonPressed'/>
+ </group >
+ </tab>
+ </tabs>
+ </ribbon>
+ </customUI>";
+ }
+ }
+}