Export - add default definitions / templates
authorPaul Mehrer <p.mehrer@metaways.de>
Tue, 25 Jul 2017 10:06:44 +0000 (12:06 +0200)
committerPaul Mehrer <p.mehrer@metaways.de>
Tue, 25 Jul 2017 10:01:05 +0000 (12:01 +0200)
Change-Id: Id1eba18fe522b4b2dfa6b816c5d5a0f2eb15c20e
Reviewed-on: http://gerrit.tine20.com/customers/5304
Reviewed-by: Paul Mehrer <p.mehrer@metaways.de>
Tested-by: Paul Mehrer <p.mehrer@metaways.de>
13 files changed:
tine20/Addressbook/Export/definitions/adb_default_ods.xml
tine20/Addressbook/Export/definitions/adb_doc.xml
tine20/Addressbook/Export/definitions/adb_doc_letter.xml
tine20/Addressbook/Export/definitions/adb_list_overview_xls.xml [new file with mode: 0644]
tine20/Addressbook/Export/definitions/adb_list_xls.xml
tine20/Addressbook/Export/definitions/adb_xls.xml
tine20/Addressbook/Export/definitions/adb_xls_overview.xml [new file with mode: 0644]
tine20/Addressbook/Export/templates/addressbook_contact_overview.xlsx [new file with mode: 0644]
tine20/Addressbook/Export/templates/addressbook_list_overview.xlsx [new file with mode: 0644]
tine20/Calendar/Export/definitions/cal_default_doc_single.xml [new file with mode: 0644]
tine20/Calendar/Export/definitions/cal_resource_xls_overview.xml [new file with mode: 0644]
tine20/Calendar/Export/templates/calendar_export.docx [new file with mode: 0644]
tine20/Calendar/Export/templates/calendar_resource_overview.xlsx [new file with mode: 0644]

index e44cac3..a6c9d9e 100644 (file)
@@ -6,8 +6,6 @@
     <plugin>Addressbook_Export_Ods</plugin>
     <!-- _('OpenDocument all data') -->
     <label>OpenDocument all data</label>
-    <favorite>true</favorite>
-    <order>300</order>
     <scope>multi</scope>
     <header>1</header>
     <headers>
index d0b2387..35e236f 100644 (file)
@@ -8,6 +8,6 @@
     <plugin>Addressbook_Export_Doc</plugin>
     <icon_class>tinebase-action-export-doc</icon_class>
     <favorite>true</favorite>
-    <order>500</order>
+    <order>400</order>
     <template>tine20:///Tinebase/folders/shared/export/templates/Addressbook/addressbook_contact_export.docx</template>
 </config>
index 8c4b765..9d8d334 100644 (file)
@@ -9,5 +9,5 @@
     <template>tine20:///Tinebase/folders/shared/export/templates/Addressbook/addressbook_contact_letter.docx</template>
     <icon_class>tinebase-action-export-doc</icon_class>
     <favorite>true</favorite>
-    <order>600</order>
+    <order>500</order>
 </config>
diff --git a/tine20/Addressbook/Export/definitions/adb_list_overview_xls.xml b/tine20/Addressbook/Export/definitions/adb_list_overview_xls.xml
new file mode 100644 (file)
index 0000000..2bc6279
--- /dev/null
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<config>
+    <model>Addressbook_Model_List</model>
+    <name>adb_list_xls</name>
+    <!-- _('Excel overview') -->
+    <label>Excel overview</label>
+    <type>export</type>
+    <plugin>Addressbook_Export_List_Xls</plugin>
+    <icon_class>tinebase-action-export-xls</icon_class>
+    <template>tine20:///Tinebase/folders/shared/export/templates/Addressbook/addressbook_list_overview.xlsx</template>
+    <scope>multi</scope>
+    <favorite>true</favorite>
+    <order>200</order>
+</config>
index 3d935f7..55b0f9c 100644 (file)
@@ -9,4 +9,6 @@
     <icon_class>tinebase-action-export-xls</icon_class>
     <template>tine20:///Tinebase/folders/shared/export/templates/Addressbook/addressbook_list_export.xlsx</template>
     <scope>multi</scope>
+    <favorite>true</favorite>
+    <order>300</order>
 </config>
index 0d969f2..c12ab1a 100644 (file)
@@ -9,6 +9,6 @@
     <icon_class>tinebase-action-export-xls</icon_class>
     <template>tine20:///Tinebase/folders/shared/export/templates/Addressbook/addressbook_contact_export.xlsx</template>
     <favorite>true</favorite>
-    <order>400</order>
+    <order>600</order>
     <scope>multi</scope>
 </config>
diff --git a/tine20/Addressbook/Export/definitions/adb_xls_overview.xml b/tine20/Addressbook/Export/definitions/adb_xls_overview.xml
new file mode 100644 (file)
index 0000000..ee1b005
--- /dev/null
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<config>
+    <model>Addressbook_Model_Contact</model>
+    <name>adb_xls</name>
+    <!-- _('Excel overview') -->
+    <label>Excel overview</label>
+    <type>export</type>
+    <plugin>Addressbook_Export_Xls</plugin>
+    <icon_class>tinebase-action-export-xls</icon_class>
+    <template>tine20:///Tinebase/folders/shared/export/templates/Addressbook/addressbook_contact_overview.xlsx</template>
+    <favorite>true</favorite>
+    <order>550</order>
+    <scope>multi</scope>
+</config>
diff --git a/tine20/Addressbook/Export/templates/addressbook_contact_overview.xlsx b/tine20/Addressbook/Export/templates/addressbook_contact_overview.xlsx
new file mode 100644 (file)
index 0000000..03547ed
Binary files /dev/null and b/tine20/Addressbook/Export/templates/addressbook_contact_overview.xlsx differ
diff --git a/tine20/Addressbook/Export/templates/addressbook_list_overview.xlsx b/tine20/Addressbook/Export/templates/addressbook_list_overview.xlsx
new file mode 100644 (file)
index 0000000..e6a13a0
Binary files /dev/null and b/tine20/Addressbook/Export/templates/addressbook_list_overview.xlsx differ
diff --git a/tine20/Calendar/Export/definitions/cal_default_doc_single.xml b/tine20/Calendar/Export/definitions/cal_default_doc_single.xml
new file mode 100644 (file)
index 0000000..28cd740
--- /dev/null
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<config>
+    <model>Calendar_Model_Event</model>
+    <name>cal_default_doc_sheet</name>
+    <type>export</type>
+    <plugin>Calendar_Export_Doc</plugin>
+    <favorite>true</favorite>
+    <!-- <scope>multi</scope> -->
+    <template>tine20:///Tinebase/folders/shared/export/templates/Calendar/calendar_export.docx</template>
+    <!-- _('Word details') -->
+    <label>Word details</label>
+</config>
diff --git a/tine20/Calendar/Export/definitions/cal_resource_xls_overview.xml b/tine20/Calendar/Export/definitions/cal_resource_xls_overview.xml
new file mode 100644 (file)
index 0000000..1e0536c
--- /dev/null
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<config>
+    <model>Calendar_Model_Resource</model>
+    <name>cal_resource_xls</name>
+    <!-- _('Excel overview') -->
+    <label>Excel overview</label>
+    <favorite>true</favorite>
+    <scope>multi</scope>
+    <type>export</type>
+    <order>150</order>
+    <plugin>Calendar_Export_Resource_Xls</plugin>
+    <icon_class>tinebase-action-export-xls</icon_class>
+    <template>tine20:///Tinebase/folders/shared/export/templates/Calendar/calendar_resource_overview.xlsx</template>
+    <virtualFields>
+        <virtualField>
+            <name>location</name>
+            <relatedModel>Addressbook_Model_Contact</relatedModel>
+            <relatedDegree>child</relatedDegree>
+            <type>SITE</type>
+        </virtualField>
+    </virtualFields>
+    <keyFields>
+        <keyField>
+            <name>resourceTypes</name>
+            <propertyName>type</propertyName>
+        </keyField>
+        <keyField>
+            <name>freebusyTypes</name>
+            <propertyName>busy_type</propertyName>
+        </keyField>
+        <keyField>
+            <name>attendeeStatus</name>
+            <propertyName>status</propertyName>
+        </keyField>
+    </keyFields>
+</config>
diff --git a/tine20/Calendar/Export/templates/calendar_export.docx b/tine20/Calendar/Export/templates/calendar_export.docx
new file mode 100644 (file)
index 0000000..204f440
Binary files /dev/null and b/tine20/Calendar/Export/templates/calendar_export.docx differ
diff --git a/tine20/Calendar/Export/templates/calendar_resource_overview.xlsx b/tine20/Calendar/Export/templates/calendar_resource_overview.xlsx
new file mode 100644 (file)
index 0000000..9911075
Binary files /dev/null and b/tine20/Calendar/Export/templates/calendar_resource_overview.xlsx differ