Kaydet (Commit) 7cad6b12 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

[API CHANGE] add way to get XSidebar from XSidebarProvider

Change-Id: I9fcf1cffa70eac6fec228ca4a9d4d32783295f21
üst 498e03c2
......@@ -14,6 +14,7 @@
#include <sfx2/dllapi.h>
#include <com/sun/star/frame/XFrame.hpp>
#include <com/sun/star/ui/XSidebarProvider.hpp>
#include <com/sun/star/ui/XSidebar.hpp>
#include <com/sun/star/awt/XWindow2.hpp>
......@@ -56,6 +57,9 @@ public:
virtual css::uno::Reference<css::ui::XDecks> SAL_CALL getDecks()
throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual css::uno::Reference<css::ui::XSidebar> SAL_CALL getSidebar()
throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
};
#endif
......
......@@ -14,6 +14,7 @@
#include <com/sun/star/frame/XFrame.idl>
#include <com/sun/star/awt/XWindow2.idl>
#include <com/sun/star/ui/XSidebar.idl>
#include <com/sun/star/ui/XDecks.idl>
......@@ -52,6 +53,11 @@ interface XSidebarProvider: com::sun::star::uno::XInterface
</ul>
*/
void showDecks([in] boolean bVisible);
/**
* Returns the sidebar object
*/
com::sun::star::ui::XSidebar getSidebar();
} ;
} ; } ; } ; } ;
......
......@@ -98,5 +98,11 @@ uno::Reference<ui::XDecks> SAL_CALL SfxUnoSidebar::getDecks()
return decks;
}
uno::Reference<ui::XSidebar> SAL_CALL SfxUnoSidebar::getSidebar()
throw (uno::RuntimeException, std::exception)
{
return getSidebarController();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment