Kaydet (Commit) e3e1bddb authored tarafından Matúš Kukan's avatar Matúš Kukan

Rename ToolBoxFactory -> ToolBarFactory, as the service is named.

Change-Id: Iec6cbefcb6863f14d6c21b2f7fd8e3418cb5d2d5
üst 289ced40
...@@ -157,11 +157,11 @@ $(eval $(call gb_Library_add_exception_objects,fwk,\ ...@@ -157,11 +157,11 @@ $(eval $(call gb_Library_add_exception_objects,fwk,\
framework/source/uielement/toolbarmerger \ framework/source/uielement/toolbarmerger \
framework/source/uielement/toolbarwrapper \ framework/source/uielement/toolbarwrapper \
framework/source/uielement/uicommanddescription \ framework/source/uielement/uicommanddescription \
framework/source/uifactory/addonstoolboxfactory \ framework/source/uifactory/addonstoolbarfactory \
framework/source/uifactory/factoryconfiguration \ framework/source/uifactory/factoryconfiguration \
framework/source/uifactory/menubarfactory \ framework/source/uifactory/menubarfactory \
framework/source/uifactory/statusbarfactory \ framework/source/uifactory/statusbarfactory \
framework/source/uifactory/toolboxfactory \ framework/source/uifactory/toolbarfactory \
framework/source/uifactory/uicontrollerfactory \ framework/source/uifactory/uicontrollerfactory \
framework/source/uifactory/uielementfactorymanager \ framework/source/uifactory/uielementfactorymanager \
framework/source/uifactory/windowcontentfactorymanager \ framework/source/uifactory/windowcontentfactorymanager \
......
...@@ -52,13 +52,13 @@ using namespace framework; ...@@ -52,13 +52,13 @@ using namespace framework;
namespace { namespace {
class AddonsToolBoxFactory : protected ThreadHelpBase, // Struct for right initalization of mutex member! Must be first of baseclasses. class AddonsToolBarFactory : protected ThreadHelpBase, // Struct for right initalization of mutex member! Must be first of baseclasses.
public ::cppu::WeakImplHelper2< css::lang::XServiceInfo , public ::cppu::WeakImplHelper2< css::lang::XServiceInfo ,
css::ui::XUIElementFactory > css::ui::XUIElementFactory >
{ {
public: public:
AddonsToolBoxFactory( const css::uno::Reference< css::uno::XComponentContext >& xContext ); AddonsToolBarFactory( const css::uno::Reference< css::uno::XComponentContext >& xContext );
virtual ~AddonsToolBoxFactory(); virtual ~AddonsToolBarFactory();
virtual OUString SAL_CALL getImplementationName() virtual OUString SAL_CALL getImplementationName()
throw (css::uno::RuntimeException) throw (css::uno::RuntimeException)
...@@ -91,7 +91,7 @@ private: ...@@ -91,7 +91,7 @@ private:
css::uno::Reference< css::frame::XModuleManager2 > m_xModuleManager; css::uno::Reference< css::frame::XModuleManager2 > m_xModuleManager;
}; };
AddonsToolBoxFactory::AddonsToolBoxFactory( AddonsToolBarFactory::AddonsToolBarFactory(
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext ) : const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext ) :
ThreadHelpBase( &Application::GetSolarMutex() ) ThreadHelpBase( &Application::GetSolarMutex() )
, m_xContext( xContext ) , m_xContext( xContext )
...@@ -99,7 +99,7 @@ AddonsToolBoxFactory::AddonsToolBoxFactory( ...@@ -99,7 +99,7 @@ AddonsToolBoxFactory::AddonsToolBoxFactory(
{ {
} }
AddonsToolBoxFactory::~AddonsToolBoxFactory() AddonsToolBarFactory::~AddonsToolBarFactory()
{ {
} }
...@@ -117,7 +117,7 @@ static sal_Bool IsCorrectContext( const OUString& rModuleIdentifier, const OUStr ...@@ -117,7 +117,7 @@ static sal_Bool IsCorrectContext( const OUString& rModuleIdentifier, const OUStr
return sal_False; return sal_False;
} }
sal_Bool AddonsToolBoxFactory::hasButtonsInContext( sal_Bool AddonsToolBarFactory::hasButtonsInContext(
const Sequence< Sequence< PropertyValue > >& rPropSeqSeq, const Sequence< Sequence< PropertyValue > >& rPropSeqSeq,
const Reference< XFrame >& rFrame ) const Reference< XFrame >& rFrame )
{ {
...@@ -172,7 +172,7 @@ sal_Bool AddonsToolBoxFactory::hasButtonsInContext( ...@@ -172,7 +172,7 @@ sal_Bool AddonsToolBoxFactory::hasButtonsInContext(
} }
// XUIElementFactory // XUIElementFactory
Reference< XUIElement > SAL_CALL AddonsToolBoxFactory::createUIElement( Reference< XUIElement > SAL_CALL AddonsToolBarFactory::createUIElement(
const OUString& ResourceURL, const OUString& ResourceURL,
const Sequence< PropertyValue >& Args ) const Sequence< PropertyValue >& Args )
throw ( ::com::sun::star::container::NoSuchElementException, throw ( ::com::sun::star::container::NoSuchElementException,
...@@ -234,7 +234,7 @@ com_sun_star_comp_framework_AddonsToolBarFactory_get_implementation( ...@@ -234,7 +234,7 @@ com_sun_star_comp_framework_AddonsToolBarFactory_get_implementation(
css::uno::XComponentContext *context, css::uno::XComponentContext *context,
css::uno::Sequence<css::uno::Any> const &) css::uno::Sequence<css::uno::Any> const &)
{ {
return cppu::acquire(new AddonsToolBoxFactory(context)); return cppu::acquire(new AddonsToolBarFactory(context));
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -35,10 +35,10 @@ using namespace framework; ...@@ -35,10 +35,10 @@ using namespace framework;
namespace { namespace {
class ToolBoxFactory : public MenuBarFactory class ToolBarFactory : public MenuBarFactory
{ {
public: public:
ToolBoxFactory( const css::uno::Reference< css::uno::XComponentContext >& xContext ); ToolBarFactory( const css::uno::Reference< css::uno::XComponentContext >& xContext );
virtual OUString SAL_CALL getImplementationName() virtual OUString SAL_CALL getImplementationName()
throw (css::uno::RuntimeException) throw (css::uno::RuntimeException)
...@@ -66,13 +66,13 @@ public: ...@@ -66,13 +66,13 @@ public:
throw ( css::container::NoSuchElementException, css::lang::IllegalArgumentException, css::uno::RuntimeException ); throw ( css::container::NoSuchElementException, css::lang::IllegalArgumentException, css::uno::RuntimeException );
}; };
ToolBoxFactory::ToolBoxFactory( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext ) : ToolBarFactory::ToolBarFactory( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext ) :
MenuBarFactory( xContext ) MenuBarFactory( xContext )
{ {
} }
// XUIElementFactory // XUIElementFactory
Reference< XUIElement > SAL_CALL ToolBoxFactory::createUIElement( Reference< XUIElement > SAL_CALL ToolBarFactory::createUIElement(
const OUString& ResourceURL, const OUString& ResourceURL,
const Sequence< PropertyValue >& Args ) const Sequence< PropertyValue >& Args )
throw ( ::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException ) throw ( ::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException )
...@@ -93,7 +93,7 @@ com_sun_star_comp_framework_ToolBarFactory_get_implementation( ...@@ -93,7 +93,7 @@ com_sun_star_comp_framework_ToolBarFactory_get_implementation(
css::uno::XComponentContext *context, css::uno::XComponentContext *context,
css::uno::Sequence<css::uno::Any> const &) css::uno::Sequence<css::uno::Any> const &)
{ {
return cppu::acquire(new ToolBoxFactory(context)); return cppu::acquire(new ToolBarFactory(context));
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* 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