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,\
framework/source/uielement/toolbarmerger \
framework/source/uielement/toolbarwrapper \
framework/source/uielement/uicommanddescription \
framework/source/uifactory/addonstoolboxfactory \
framework/source/uifactory/addonstoolbarfactory \
framework/source/uifactory/factoryconfiguration \
framework/source/uifactory/menubarfactory \
framework/source/uifactory/statusbarfactory \
framework/source/uifactory/toolboxfactory \
framework/source/uifactory/toolbarfactory \
framework/source/uifactory/uicontrollerfactory \
framework/source/uifactory/uielementfactorymanager \
framework/source/uifactory/windowcontentfactorymanager \
......
......@@ -52,13 +52,13 @@ using namespace framework;
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 ,
css::ui::XUIElementFactory >
{
public:
AddonsToolBoxFactory( const css::uno::Reference< css::uno::XComponentContext >& xContext );
virtual ~AddonsToolBoxFactory();
AddonsToolBarFactory( const css::uno::Reference< css::uno::XComponentContext >& xContext );
virtual ~AddonsToolBarFactory();
virtual OUString SAL_CALL getImplementationName()
throw (css::uno::RuntimeException)
......@@ -91,7 +91,7 @@ private:
css::uno::Reference< css::frame::XModuleManager2 > m_xModuleManager;
};
AddonsToolBoxFactory::AddonsToolBoxFactory(
AddonsToolBarFactory::AddonsToolBarFactory(
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext ) :
ThreadHelpBase( &Application::GetSolarMutex() )
, m_xContext( xContext )
......@@ -99,7 +99,7 @@ AddonsToolBoxFactory::AddonsToolBoxFactory(
{
}
AddonsToolBoxFactory::~AddonsToolBoxFactory()
AddonsToolBarFactory::~AddonsToolBarFactory()
{
}
......@@ -117,7 +117,7 @@ static sal_Bool IsCorrectContext( const OUString& rModuleIdentifier, const OUStr
return sal_False;
}
sal_Bool AddonsToolBoxFactory::hasButtonsInContext(
sal_Bool AddonsToolBarFactory::hasButtonsInContext(
const Sequence< Sequence< PropertyValue > >& rPropSeqSeq,
const Reference< XFrame >& rFrame )
{
......@@ -172,7 +172,7 @@ sal_Bool AddonsToolBoxFactory::hasButtonsInContext(
}
// XUIElementFactory
Reference< XUIElement > SAL_CALL AddonsToolBoxFactory::createUIElement(
Reference< XUIElement > SAL_CALL AddonsToolBarFactory::createUIElement(
const OUString& ResourceURL,
const Sequence< PropertyValue >& Args )
throw ( ::com::sun::star::container::NoSuchElementException,
......@@ -234,7 +234,7 @@ com_sun_star_comp_framework_AddonsToolBarFactory_get_implementation(
css::uno::XComponentContext *context,
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: */
......@@ -35,10 +35,10 @@ using namespace framework;
namespace {
class ToolBoxFactory : public MenuBarFactory
class ToolBarFactory : public MenuBarFactory
{
public:
ToolBoxFactory( const css::uno::Reference< css::uno::XComponentContext >& xContext );
ToolBarFactory( const css::uno::Reference< css::uno::XComponentContext >& xContext );
virtual OUString SAL_CALL getImplementationName()
throw (css::uno::RuntimeException)
......@@ -66,13 +66,13 @@ public:
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 )
{
}
// XUIElementFactory
Reference< XUIElement > SAL_CALL ToolBoxFactory::createUIElement(
Reference< XUIElement > SAL_CALL ToolBarFactory::createUIElement(
const OUString& ResourceURL,
const Sequence< PropertyValue >& Args )
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(
css::uno::XComponentContext *context,
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: */
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