summaryrefslogtreecommitdiff
path: root/include/framework
diff options
context:
space:
mode:
authorSumit Chauhan <sumitcn25@gmail.com>2019-07-05 17:13:26 +0530
committerSzymon Kłos <szymon.klos@collabora.com>2019-07-19 11:47:56 +0200
commit147e820cc1bd7110331a6ea73db678a4a6c324e0 (patch)
treef9dd0d7321c6c317097c6822b24f40a1f6ab3d38 /include/framework
parente6d23c144ccadbd962b5dfb953bf29e49a7f64a3 (diff)
Addons(extension) support is extended for NotebookBar
This patch adds the schema for the extensions to be available in Notebookbar. We will adding items in addons.xcs in future if needed. Change-Id: I0a3831983b9758fac0a6fa32213ad6da20d6a97f Reviewed-on: https://gerrit.libreoffice.org/75134 Tested-by: Jenkins Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'include/framework')
-rw-r--r--include/framework/addonsoptions.hxx47
1 files changed, 47 insertions, 0 deletions
diff --git a/include/framework/addonsoptions.hxx b/include/framework/addonsoptions.hxx
index 8a96f25970b7..ca7a464b61a0 100644
--- a/include/framework/addonsoptions.hxx
+++ b/include/framework/addonsoptions.hxx
@@ -68,6 +68,19 @@ struct FWE_DLLPUBLIC MergeToolbarInstruction
typedef ::std::vector< MergeToolbarInstruction > MergeToolbarInstructionContainer;
+struct FWE_DLLPUBLIC MergeNotebookBarInstruction
+{
+ OUString aMergeNotebookBar;
+ OUString aMergePoint;
+ OUString aMergeCommand;
+ OUString aMergeCommandParameter;
+ OUString aMergeFallback;
+ OUString aMergeContext;
+ css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > aMergeNotebookBarItems;
+};
+
+typedef ::std::vector< MergeNotebookBarInstruction > MergeNotebookBarInstructionContainer;
+
struct FWE_DLLPUBLIC MergeStatusbarInstruction
{
OUString aMergePoint;
@@ -117,6 +130,14 @@ class FWE_DLLPUBLIC AddonsOptions
sal_Int32 GetAddonsToolBarCount() const ;
/*-****************************************************************************************************
+ @short returns number of addons notebookbar
+ @descr Call to retrieve the number of addons notebookbar
+
+ @return number of addons notebookar
+ *//*-*****************************************************************************************************/
+ sal_Int32 GetAddonsNotebookBarCount() const ;
+
+ /*-****************************************************************************************************
@short returns the complete addons menu
@descr Call it to get all entries of the addon menu.
We return a list of all nodes with its names and properties.
@@ -155,6 +176,24 @@ class FWE_DLLPUBLIC AddonsOptions
const OUString GetAddonsToolbarResourceName( sal_uInt32 nIndex ) const;
/*-****************************************************************************************************
+ @short Gets a NotebookBar part of an single addon
+ @return A complete
+
+ @onerror We return sal_False
+ *//*-*****************************************************************************************************/
+
+ const css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > >& GetAddonsNotebookBarPart( sal_uInt32 nIndex ) const;
+
+ /*-****************************************************************************************************
+ @short Gets a unique NotebookBar resource name of an single addon
+ @return A complete
+
+ @onerror We return sal_False
+ *//*-*****************************************************************************************************/
+
+ const OUString GetAddonsNotebookBarResourceName( sal_uInt32 ) const;
+
+ /*-****************************************************************************************************
@short Retrieves all available merge instructions for the Office menu bar
@return The filled MergeMenuDefinitionContaier
@@ -172,6 +211,14 @@ class FWE_DLLPUBLIC AddonsOptions
bool GetMergeToolbarInstructions( const OUString& rToolbarName, MergeToolbarInstructionContainer& rToolbar ) const;
/*-****************************************************************************************************
+ @short Retrieves all available merge instructions for Notebookbar
+ @return The filled
+
+ @onerror We return sal_False
+ *//*-*****************************************************************************************************/
+ bool GetMergeNotebookBarInstructions( const OUString& rNotebookBarName, MergeNotebookBarInstructionContainer& rNotebookBar ) const;
+
+ /*-****************************************************************************************************
@short Gets the Add-On help menu part of all addon components registered
@return A complete