clang-tidy modernize-pass-by-value in framework
Change-Id: I024653154c51389bb27f3e94b422ff7fc1c9b46b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135296 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
@@ -40,7 +40,7 @@ class RootActionTriggerContainer final : public PropertySetContainer,
|
||||
public css::container::XNamed
|
||||
{
|
||||
public:
|
||||
RootActionTriggerContainer(const css::uno::Reference<css::awt::XPopupMenu>& rMenu, const OUString* pMenuIdentifier);
|
||||
RootActionTriggerContainer(css::uno::Reference<css::awt::XPopupMenu> xMenu, const OUString* pMenuIdentifier);
|
||||
virtual ~RootActionTriggerContainer() override;
|
||||
|
||||
// XInterface
|
||||
|
||||
@@ -48,7 +48,7 @@ class TaskCreator final
|
||||
// interface
|
||||
public:
|
||||
|
||||
TaskCreator( const css::uno::Reference< css::uno::XComponentContext >& xContext );
|
||||
TaskCreator( css::uno::Reference< css::uno::XComponentContext > xContext );
|
||||
~TaskCreator( );
|
||||
|
||||
css::uno::Reference< css::frame::XFrame > createTask( const OUString& sName, const utl::MediaDescriptor& rDescriptor );
|
||||
|
||||
@@ -115,7 +115,7 @@ class CloseDispatcher final : public ::cppu::WeakImplHelper<
|
||||
@param sTarget
|
||||
help us to find the right target for this close operation.
|
||||
*/
|
||||
CloseDispatcher(const css::uno::Reference< css::uno::XComponentContext >& rxContext ,
|
||||
CloseDispatcher(css::uno::Reference< css::uno::XComponentContext > xContext ,
|
||||
const css::uno::Reference< css::frame::XFrame >& xFrame ,
|
||||
std::u16string_view sTarget);
|
||||
|
||||
|
||||
@@ -43,8 +43,8 @@ class DispatchInformationProvider final : public ::cppu::WeakImplHelper< css::f
|
||||
// interface
|
||||
public:
|
||||
|
||||
DispatchInformationProvider(const css::uno::Reference< css::uno::XComponentContext >& xContext ,
|
||||
const css::uno::Reference< css::frame::XFrame >& xFrame);
|
||||
DispatchInformationProvider(css::uno::Reference< css::uno::XComponentContext > xContext ,
|
||||
const css::uno::Reference< css::frame::XFrame >& xFrame);
|
||||
|
||||
virtual ~DispatchInformationProvider() override;
|
||||
|
||||
|
||||
@@ -80,8 +80,8 @@ class DispatchProvider final : public ::cppu::WeakImplHelper< css::frame::XDispa
|
||||
/* interface */
|
||||
public:
|
||||
|
||||
DispatchProvider( const css::uno::Reference< css::uno::XComponentContext >& xContext ,
|
||||
const css::uno::Reference< css::frame::XFrame >& xFrame );
|
||||
DispatchProvider( css::uno::Reference< css::uno::XComponentContext > xContext ,
|
||||
const css::uno::Reference< css::frame::XFrame >& xFrame );
|
||||
|
||||
virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL queryDispatch ( const css::util::URL& aURL ,
|
||||
const OUString& sTargetFrameName ,
|
||||
|
||||
@@ -151,7 +151,7 @@ class InterceptionHelper final : public ::cppu::WeakImplHelper<
|
||||
an outside creates dispatch provider, which has to be used here as lowest slave "interceptor".
|
||||
*/
|
||||
InterceptionHelper(const css::uno::Reference< css::frame::XFrame >& xOwner,
|
||||
const css::uno::Reference< css::frame::XDispatchProvider >& xSlave);
|
||||
css::uno::Reference< css::frame::XDispatchProvider > xSlave);
|
||||
|
||||
private:
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ class MailToDispatcher final : public ::cppu::WeakImplHelper<
|
||||
public:
|
||||
|
||||
// ctor/dtor
|
||||
MailToDispatcher( const css::uno::Reference< css::uno::XComponentContext >& rxContext );
|
||||
MailToDispatcher( css::uno::Reference< css::uno::XComponentContext > xContext );
|
||||
virtual ~MailToDispatcher( ) override;
|
||||
|
||||
/* interface XServiceInfo */
|
||||
|
||||
@@ -51,7 +51,7 @@ class Oxt_Handler final : public ::cppu::WeakImplHelper<
|
||||
|
||||
public:
|
||||
|
||||
Oxt_Handler( const css::uno::Reference< css::uno::XComponentContext >& );
|
||||
Oxt_Handler( css::uno::Reference< css::uno::XComponentContext > );
|
||||
virtual ~Oxt_Handler( ) override;
|
||||
|
||||
/* interface XServiceInfo */
|
||||
|
||||
@@ -64,7 +64,7 @@ class PopupMenuDispatcher final : public ::cppu::WeakImplHelper<
|
||||
public:
|
||||
|
||||
// constructor / destructor
|
||||
PopupMenuDispatcher( const css::uno::Reference< css::uno::XComponentContext >& xContext );
|
||||
PopupMenuDispatcher( css::uno::Reference< css::uno::XComponentContext > xContext );
|
||||
|
||||
/* interface XServiceInfo */
|
||||
virtual OUString SAL_CALL getImplementationName() override;
|
||||
|
||||
@@ -61,7 +61,7 @@ class ServiceHandler final : public ::cppu::WeakImplHelper<
|
||||
public:
|
||||
|
||||
// ctor/dtor
|
||||
ServiceHandler( const css::uno::Reference< css::uno::XComponentContext >& );
|
||||
ServiceHandler( css::uno::Reference< css::uno::XComponentContext > );
|
||||
virtual ~ServiceHandler( ) override;
|
||||
|
||||
/* interface XServiceInfo */
|
||||
|
||||
@@ -62,7 +62,7 @@ class StartModuleDispatcher final : public ::cppu::WeakImplHelper<
|
||||
@param xFrame
|
||||
the frame where the corresponding dispatch was started.
|
||||
*/
|
||||
StartModuleDispatcher(const css::uno::Reference< css::uno::XComponentContext >& rxContext);
|
||||
StartModuleDispatcher(css::uno::Reference< css::uno::XComponentContext > xContext);
|
||||
|
||||
/** @short does nothing real. */
|
||||
virtual ~StartModuleDispatcher() override;
|
||||
|
||||
@@ -59,7 +59,7 @@ class SystemExec final : public ::cppu::WeakImplHelper<
|
||||
public:
|
||||
|
||||
// ctor/dtor
|
||||
SystemExec( const css::uno::Reference< css::uno::XComponentContext >& rxContext );
|
||||
SystemExec( css::uno::Reference< css::uno::XComponentContext > xContext );
|
||||
virtual ~SystemExec( ) override;
|
||||
|
||||
/* interface XServiceInfo */
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
|
||||
#include <functional>
|
||||
#include <set>
|
||||
#include <utility>
|
||||
|
||||
namespace framework
|
||||
{
|
||||
@@ -108,7 +109,7 @@ class LanguageGuessingHelper
|
||||
css::uno::Reference< css::uno::XComponentContext > m_xContext;
|
||||
|
||||
public:
|
||||
LanguageGuessingHelper(const css::uno::Reference< css::uno::XComponentContext >& _xContext) : m_xContext(_xContext){}
|
||||
LanguageGuessingHelper(css::uno::Reference< css::uno::XComponentContext > _xContext) : m_xContext(std::move(_xContext)){}
|
||||
|
||||
css::uno::Reference< css::linguistic2::XLanguageGuessing > const & GetGuesser() const;
|
||||
};
|
||||
|
||||
@@ -72,7 +72,7 @@ class PersistentWindowState final : public ::cppu::WeakImplHelper<
|
||||
public:
|
||||
|
||||
// ctor/dtor
|
||||
PersistentWindowState(const css::uno::Reference< css::uno::XComponentContext >& xContext);
|
||||
PersistentWindowState(css::uno::Reference< css::uno::XComponentContext > xContext);
|
||||
virtual ~PersistentWindowState( ) override;
|
||||
|
||||
// XInitialization
|
||||
|
||||
@@ -170,7 +170,7 @@ class StatusIndicatorFactory final : public ::cppu::WeakImplHelper<
|
||||
// interface
|
||||
|
||||
public:
|
||||
StatusIndicatorFactory(const css::uno::Reference< css::uno::XComponentContext >& xContext);
|
||||
StatusIndicatorFactory(css::uno::Reference< css::uno::XComponentContext > xContext);
|
||||
|
||||
virtual OUString SAL_CALL getImplementationName() override
|
||||
{
|
||||
|
||||
@@ -68,7 +68,7 @@ class TitleBarUpdate final : public ::cppu::WeakImplHelper<
|
||||
public:
|
||||
|
||||
// ctor/dtor
|
||||
TitleBarUpdate(const css::uno::Reference< css::uno::XComponentContext >& xContext);
|
||||
TitleBarUpdate(css::uno::Reference< css::uno::XComponentContext > xContext);
|
||||
virtual ~TitleBarUpdate( ) override;
|
||||
|
||||
// XInterface, XTypeProvider
|
||||
|
||||
@@ -59,7 +59,7 @@ class VCLStatusIndicator final : public ::cppu::WeakImplHelper< css::task::XSta
|
||||
public:
|
||||
|
||||
/// ctor
|
||||
VCLStatusIndicator(const css::uno::Reference< css::awt::XWindow >& xParentWindow);
|
||||
VCLStatusIndicator(css::uno::Reference< css::awt::XWindow > xParentWindow);
|
||||
|
||||
/// dtor
|
||||
virtual ~VCLStatusIndicator() override;
|
||||
|
||||
@@ -72,8 +72,8 @@ class ConfigAccess final
|
||||
void closeImpl();
|
||||
public:
|
||||
|
||||
ConfigAccess( const css::uno::Reference< css::uno::XComponentContext >& rxContext,
|
||||
const OUString& sRoot );
|
||||
ConfigAccess( css::uno::Reference< css::uno::XComponentContext > xContext,
|
||||
OUString sRoot );
|
||||
~ConfigAccess();
|
||||
|
||||
void open ( EOpenMode eMode );
|
||||
|
||||
@@ -78,7 +78,7 @@ class HelpOnStartup final : public ::cppu::WeakImplHelper< css::lang::XServiceIn
|
||||
reference to the uno service manager, which created this instance.
|
||||
Can be used later to create own needed uno resources on demand.
|
||||
*/
|
||||
HelpOnStartup(const css::uno::Reference< css::uno::XComponentContext >& xContext);
|
||||
HelpOnStartup(css::uno::Reference< css::uno::XComponentContext > xContext);
|
||||
|
||||
/** @short does nothing real ...
|
||||
|
||||
|
||||
@@ -158,9 +158,9 @@ class Job final : public ::cppu::WeakImplHelper<
|
||||
public:
|
||||
|
||||
Job( const css::uno::Reference< css::uno::XComponentContext >& xContext ,
|
||||
const css::uno::Reference< css::frame::XFrame >& xFrame );
|
||||
css::uno::Reference< css::frame::XFrame > xFrame );
|
||||
Job( const css::uno::Reference< css::uno::XComponentContext >& xContext ,
|
||||
const css::uno::Reference< css::frame::XModel >& xModel );
|
||||
css::uno::Reference< css::frame::XModel > xModel );
|
||||
virtual ~Job( ) override;
|
||||
|
||||
void setDispatchResultFake( const css::uno::Reference< css::frame::XDispatchResultListener >& xListener ,
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include <rtl/ustring.hxx>
|
||||
|
||||
#include <string_view>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
namespace framework{
|
||||
@@ -86,10 +87,10 @@ class JobData final
|
||||
OUString m_sJobName;
|
||||
OUString m_sDocEvent;
|
||||
|
||||
TJob2DocEventBinding(const OUString& sJobName ,
|
||||
const OUString& sDocEvent)
|
||||
: m_sJobName (sJobName )
|
||||
, m_sDocEvent(sDocEvent)
|
||||
TJob2DocEventBinding(OUString sJobName ,
|
||||
OUString sDocEvent)
|
||||
: m_sJobName (std::move(sJobName ))
|
||||
, m_sDocEvent(std::move(sDocEvent))
|
||||
{}
|
||||
};
|
||||
|
||||
@@ -164,7 +165,7 @@ class JobData final
|
||||
|
||||
public:
|
||||
|
||||
JobData( const css::uno::Reference< css::uno::XComponentContext >& rxContext );
|
||||
JobData( css::uno::Reference< css::uno::XComponentContext > xContext );
|
||||
JobData( const JobData& rCopy );
|
||||
~JobData( );
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ class ShellJob final : public ::cppu::WeakImplHelper< css::lang::XServiceInfo,cs
|
||||
reference to the uno service manager, which created this instance.
|
||||
Can be used later to create own needed uno resources on demand.
|
||||
*/
|
||||
ShellJob(const css::uno::Reference< css::uno::XComponentContext >& xContext);
|
||||
ShellJob(css::uno::Reference< css::uno::XComponentContext > xContext);
|
||||
|
||||
/** @short does nothing real ...
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <cppuhelper/weakref.hxx>
|
||||
#include <utility>
|
||||
|
||||
namespace com::sun::star::container { class XIndexAccess; }
|
||||
namespace com::sun::star::frame { class XDispatchProvider; }
|
||||
@@ -35,16 +36,16 @@ struct MenuAttributes
|
||||
private:
|
||||
oslInterlockedCount refCount;
|
||||
|
||||
MenuAttributes(const OUString& rFrame, const OUString& rImageIdStr)
|
||||
MenuAttributes(OUString sFrame, OUString sImageIdStr)
|
||||
: refCount(0)
|
||||
, aTargetFrame(rFrame)
|
||||
, aImageId(rImageIdStr)
|
||||
, aTargetFrame(std::move(sFrame))
|
||||
, aImageId(std::move(sImageIdStr))
|
||||
{
|
||||
}
|
||||
|
||||
MenuAttributes(const css::uno::WeakReference<css::frame::XDispatchProvider>& rDispatchProvider)
|
||||
MenuAttributes(css::uno::WeakReference<css::frame::XDispatchProvider> _xDispatchProvider)
|
||||
: refCount(0)
|
||||
, xDispatchProvider(rDispatchProvider)
|
||||
, xDispatchProvider(std::move(_xDispatchProvider))
|
||||
{
|
||||
}
|
||||
|
||||
@@ -76,7 +77,7 @@ class MenuConfiguration final
|
||||
public:
|
||||
MenuConfiguration(
|
||||
// use const when giving a UNO reference by reference
|
||||
const css::uno::Reference< css::uno::XComponentContext >& rxContext );
|
||||
css::uno::Reference< css::uno::XComponentContext > rxContext );
|
||||
|
||||
~MenuConfiguration();
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace framework
|
||||
class GlobalSettings
|
||||
{
|
||||
public:
|
||||
GlobalSettings( const css::uno::Reference< css::uno::XComponentContext >& rxContext );
|
||||
GlobalSettings( css::uno::Reference< css::uno::XComponentContext > xContext );
|
||||
~GlobalSettings();
|
||||
|
||||
enum StateInfo
|
||||
|
||||
@@ -45,9 +45,9 @@ class ButtonToolbarController final : public css::frame::XStatusListener,
|
||||
public ::cppu::OWeakObject
|
||||
{
|
||||
public:
|
||||
ButtonToolbarController( const css::uno::Reference< css::uno::XComponentContext >& rxContext,
|
||||
ButtonToolbarController( css::uno::Reference< css::uno::XComponentContext > xContext,
|
||||
ToolBox* pToolBar,
|
||||
const OUString& aCommand );
|
||||
OUString aCommand );
|
||||
virtual ~ButtonToolbarController() override;
|
||||
|
||||
// XInterface
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <sal/config.h>
|
||||
|
||||
#include <unordered_map>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include <com/sun/star/frame/XFrame.hpp>
|
||||
@@ -130,12 +131,12 @@ class MenuBarManager final :
|
||||
struct MenuItemHandler
|
||||
{
|
||||
MenuItemHandler( sal_uInt16 aItemId,
|
||||
css::uno::Reference< css::frame::XStatusListener > const & xManager,
|
||||
css::uno::Reference< css::frame::XDispatch > const & rDispatch ) :
|
||||
css::uno::Reference< css::frame::XStatusListener > xManager,
|
||||
css::uno::Reference< css::frame::XDispatch > xDispatch ) :
|
||||
nItemId( aItemId ),
|
||||
bMadeInvisible ( false ),
|
||||
xSubMenuManager( xManager ),
|
||||
xMenuItemDispatch( rDispatch ) {}
|
||||
xSubMenuManager(std::move( xManager )),
|
||||
xMenuItemDispatch(std::move( xDispatch )) {}
|
||||
|
||||
sal_uInt16 nItemId;
|
||||
bool bMadeInvisible;
|
||||
|
||||
@@ -33,8 +33,7 @@ class MenuBarWrapper final : public UIConfigElementWrapperBase,
|
||||
|
||||
{
|
||||
public:
|
||||
MenuBarWrapper(
|
||||
const css::uno::Reference< css::uno::XComponentContext >& xContext );
|
||||
MenuBarWrapper( css::uno::Reference< css::uno::XComponentContext > xContext );
|
||||
virtual ~MenuBarWrapper() override;
|
||||
|
||||
// XInterface, XTypeProvider
|
||||
|
||||
@@ -37,7 +37,7 @@ public:
|
||||
explicit StatusbarItem(
|
||||
StatusBar *pStatusBar,
|
||||
sal_uInt16 nId,
|
||||
const OUString& aCommand );
|
||||
OUString aCommand );
|
||||
virtual ~StatusbarItem() override;
|
||||
|
||||
void disposing(std::unique_lock<std::mutex>&) override;
|
||||
|
||||
@@ -45,8 +45,8 @@ class StatusBarManager final: public ::cppu::WeakImplHelper<
|
||||
friend class FrameworkStatusBar;
|
||||
|
||||
public:
|
||||
StatusBarManager( const css::uno::Reference< css::uno::XComponentContext >& rxContext,
|
||||
const css::uno::Reference< css::frame::XFrame >& rFrame,
|
||||
StatusBarManager( css::uno::Reference< css::uno::XComponentContext > xContext,
|
||||
css::uno::Reference< css::frame::XFrame > xFrame,
|
||||
StatusBar* pStatusBar );
|
||||
virtual ~StatusBarManager() override;
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ class StatusBarWrapper final : public UIConfigElementWrapperBase
|
||||
{
|
||||
public:
|
||||
StatusBarWrapper(
|
||||
const css::uno::Reference< css::uno::XComponentContext >& rxContext );
|
||||
css::uno::Reference< css::uno::XComponentContext > xContext );
|
||||
virtual ~StatusBarWrapper() override;
|
||||
|
||||
// XComponent
|
||||
|
||||
@@ -34,7 +34,7 @@ class StyleDispatcher final : public cppu::WeakImplHelper< css::frame::XDispatch
|
||||
{
|
||||
public:
|
||||
StyleDispatcher( const css::uno::Reference< css::frame::XFrame >& rFrame,
|
||||
const css::uno::Reference< css::util::XURLTransformer >& rUrlTransformer,
|
||||
css::uno::Reference< css::util::XURLTransformer > xUrlTransformer,
|
||||
const css::util::URL& rURL );
|
||||
|
||||
// XDispatch
|
||||
|
||||
@@ -115,11 +115,11 @@ class ToolBarManager final : public ToolbarManager_Base
|
||||
public:
|
||||
ToolBarManager( const css::uno::Reference< css::uno::XComponentContext >& rxContext,
|
||||
const css::uno::Reference< css::frame::XFrame >& rFrame,
|
||||
const OUString& rResourceName,
|
||||
OUString aResourceName,
|
||||
ToolBox* pToolBar );
|
||||
ToolBarManager( const css::uno::Reference< css::uno::XComponentContext >& rxContext,
|
||||
const css::uno::Reference< css::frame::XFrame >& rFrame,
|
||||
const OUString& rResourceName,
|
||||
OUString aResourceName,
|
||||
weld::Toolbar* pToolBar,
|
||||
weld::Builder* pBuilder );
|
||||
virtual ~ToolBarManager() override;
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include <com/sun/star/awt/Size.hpp>
|
||||
|
||||
#include <rtl/ustring.hxx>
|
||||
#include <utility>
|
||||
#include <vcl/toolbox.hxx>
|
||||
|
||||
namespace framework
|
||||
@@ -65,12 +66,12 @@ struct UIElement
|
||||
m_nStyle( ButtonType::SYMBOLONLY )
|
||||
{}
|
||||
|
||||
UIElement( const OUString& rName,
|
||||
const OUString& rType,
|
||||
const css::uno::Reference< css::ui::XUIElement >& rUIElement
|
||||
) : m_aType( rType ),
|
||||
m_aName( rName ),
|
||||
m_xUIElement( rUIElement ),
|
||||
UIElement( OUString aName,
|
||||
OUString aType,
|
||||
css::uno::Reference< css::ui::XUIElement > xUIElement
|
||||
) : m_aType(std::move( aType )),
|
||||
m_aName(std::move( aName )),
|
||||
m_xUIElement(std::move( xUIElement )),
|
||||
m_bFloating( false ),
|
||||
m_bVisible( true ),
|
||||
m_bUserActive( false ),
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace framework {
|
||||
class ConfigurationAccess_FactoryManager final : public ::cppu::WeakImplHelper< css::container::XContainerListener>
|
||||
{
|
||||
public:
|
||||
ConfigurationAccess_FactoryManager( const css::uno::Reference< css::uno::XComponentContext>& rxContext, const OUString& _sRoot );
|
||||
ConfigurationAccess_FactoryManager( const css::uno::Reference< css::uno::XComponentContext>& rxContext, OUString _sRoot );
|
||||
virtual ~ConfigurationAccess_FactoryManager() override;
|
||||
|
||||
void readConfigurationData();
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#include <mutex>
|
||||
#include <string_view>
|
||||
#include <unordered_map>
|
||||
#include <utility>
|
||||
|
||||
// Namespace
|
||||
|
||||
@@ -42,7 +43,7 @@ class ConfigurationAccess_ControllerFactory final : // interfaces
|
||||
public ::cppu::WeakImplHelper< css::container::XContainerListener>
|
||||
{
|
||||
public:
|
||||
ConfigurationAccess_ControllerFactory( const css::uno::Reference< css::uno::XComponentContext >& rxContext, const OUString& _sRoot );
|
||||
ConfigurationAccess_ControllerFactory( const css::uno::Reference< css::uno::XComponentContext >& rxContext, OUString _sRoot );
|
||||
virtual ~ConfigurationAccess_ControllerFactory() override;
|
||||
|
||||
void readConfigurationData();
|
||||
@@ -67,7 +68,7 @@ private:
|
||||
{
|
||||
OUString m_aImplementationName;
|
||||
OUString m_aValue;
|
||||
ControllerInfo(const OUString& _aImplementationName,const OUString& _aValue) : m_aImplementationName(_aImplementationName),m_aValue(_aValue){}
|
||||
ControllerInfo(OUString _aImplementationName, OUString _aValue) : m_aImplementationName(std::move(_aImplementationName)),m_aValue(std::move(_aValue)){}
|
||||
ControllerInfo(){}
|
||||
};
|
||||
class MenuControllerMap : public std::unordered_map< OUString,
|
||||
|
||||
@@ -37,7 +37,7 @@ typedef ::cppu::WeakImplHelper<
|
||||
class MenuBarFactory : public MenuBarFactory_BASE
|
||||
{
|
||||
public:
|
||||
MenuBarFactory( const css::uno::Reference< css::uno::XComponentContext >& xContext );
|
||||
MenuBarFactory( css::uno::Reference< css::uno::XComponentContext > xContext );
|
||||
virtual ~MenuBarFactory() override;
|
||||
|
||||
virtual OUString SAL_CALL getImplementationName() override
|
||||
|
||||
@@ -55,7 +55,7 @@ class AcceleratorConfigurationWriter final
|
||||
used to write the configuration there.
|
||||
*/
|
||||
AcceleratorConfigurationWriter(const AcceleratorCache& rContainer,
|
||||
const css::uno::Reference< css::xml::sax::XDocumentHandler >& xConfig );
|
||||
css::uno::Reference< css::xml::sax::XDocumentHandler > xConfig );
|
||||
|
||||
/** @short does nothing real ... */
|
||||
~AcceleratorConfigurationWriter();
|
||||
|
||||
@@ -476,8 +476,8 @@ OUString XMLBasedAcceleratorConfiguration::impl_ts_getLocale() const
|
||||
*
|
||||
*******************************************************************************/
|
||||
|
||||
XCUBasedAcceleratorConfiguration::XCUBasedAcceleratorConfiguration(const css::uno::Reference< css::uno::XComponentContext >& xContext)
|
||||
: m_xContext (xContext )
|
||||
XCUBasedAcceleratorConfiguration::XCUBasedAcceleratorConfiguration(css::uno::Reference< css::uno::XComponentContext > xContext)
|
||||
: m_xContext (std::move(xContext ))
|
||||
{
|
||||
m_xCfg.set(
|
||||
::comphelper::ConfigurationHelper::openConfig( m_xContext, "org.openoffice.Office.Accelerators", ::comphelper::EConfigurationModes::AllLocales ),
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
|
||||
#include <com/sun/star/util/thePathSettings.hpp>
|
||||
|
||||
#include <utility>
|
||||
#include <vcl/svapp.hxx>
|
||||
#include <cppuhelper/exc_hlp.hxx>
|
||||
#include <rtl/ustrbuf.hxx>
|
||||
@@ -68,8 +69,8 @@ struct SharedStorages: public rtl::Static<TSharedStorages, SharedStorages> {};
|
||||
|
||||
}
|
||||
|
||||
PresetHandler::PresetHandler(const css::uno::Reference< css::uno::XComponentContext >& xContext)
|
||||
: m_xContext(xContext)
|
||||
PresetHandler::PresetHandler(css::uno::Reference< css::uno::XComponentContext > xContext)
|
||||
: m_xContext(std::move(xContext))
|
||||
, m_eConfigType(E_GLOBAL)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include <com/sun/star/frame/TaskCreator.hpp>
|
||||
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
|
||||
#include <com/sun/star/beans/NamedValue.hpp>
|
||||
#include <utility>
|
||||
|
||||
namespace framework{
|
||||
|
||||
@@ -36,8 +37,8 @@ namespace framework{
|
||||
@param xContext
|
||||
points to the valid uno service manager
|
||||
*//*-*****************************************************************************************************/
|
||||
TaskCreator::TaskCreator( const css::uno::Reference< css::uno::XComponentContext >& xContext )
|
||||
: m_xContext ( xContext )
|
||||
TaskCreator::TaskCreator( css::uno::Reference< css::uno::XComponentContext > xContext )
|
||||
: m_xContext (std::move( xContext ))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
#include <toolkit/helper/vclunohelper.hxx>
|
||||
|
||||
#include <osl/diagnose.h>
|
||||
#include <utility>
|
||||
#include <vcl/window.hxx>
|
||||
#include <vcl/svapp.hxx>
|
||||
#include <vcl/syswin.hxx>
|
||||
@@ -55,10 +56,10 @@ constexpr OUStringLiteral URL_CLOSEDOC = u".uno:CloseDoc";
|
||||
constexpr OUStringLiteral URL_CLOSEWIN = u".uno:CloseWin";
|
||||
const char URL_CLOSEFRAME[] = ".uno:CloseFrame";
|
||||
|
||||
CloseDispatcher::CloseDispatcher(const css::uno::Reference< css::uno::XComponentContext >& rxContext ,
|
||||
CloseDispatcher::CloseDispatcher(css::uno::Reference< css::uno::XComponentContext > xContext ,
|
||||
const css::uno::Reference< css::frame::XFrame >& xFrame ,
|
||||
std::u16string_view sTarget)
|
||||
: m_xContext (rxContext )
|
||||
: m_xContext(std::move(xContext))
|
||||
, m_aAsyncCallback(
|
||||
new vcl::EventPoster(LINK(this, CloseDispatcher, impl_asyncCallback)))
|
||||
, m_eOperation(E_CLOSE_DOC)
|
||||
|
||||
@@ -25,12 +25,13 @@
|
||||
#include <comphelper/sequence.hxx>
|
||||
|
||||
#include <unordered_map>
|
||||
#include <utility>
|
||||
|
||||
namespace framework{
|
||||
|
||||
DispatchInformationProvider::DispatchInformationProvider(const css::uno::Reference< css::uno::XComponentContext >& xContext ,
|
||||
DispatchInformationProvider::DispatchInformationProvider(css::uno::Reference< css::uno::XComponentContext > xContext ,
|
||||
const css::uno::Reference< css::frame::XFrame >& xFrame)
|
||||
: m_xContext (xContext )
|
||||
: m_xContext (std::move(xContext ))
|
||||
, m_xFrame (xFrame )
|
||||
{
|
||||
}
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
#include <com/sun/star/util/XCacheInfo.hpp>
|
||||
|
||||
#include <rtl/ustring.hxx>
|
||||
#include <utility>
|
||||
#include <vcl/svapp.hxx>
|
||||
#include <sal/log.hxx>
|
||||
#include <framework/dispatchhelper.hxx>
|
||||
@@ -55,9 +56,9 @@ namespace framework{
|
||||
@param xFrame
|
||||
reference to our owner frame.
|
||||
*/
|
||||
DispatchProvider::DispatchProvider( const css::uno::Reference< css::uno::XComponentContext >& rxContext ,
|
||||
const css::uno::Reference< css::frame::XFrame >& xFrame )
|
||||
: m_xContext ( rxContext )
|
||||
DispatchProvider::DispatchProvider( css::uno::Reference< css::uno::XComponentContext > xContext ,
|
||||
const css::uno::Reference< css::frame::XFrame >& xFrame )
|
||||
: m_xContext (std::move( xContext ))
|
||||
, m_xFrame ( xFrame )
|
||||
{
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <com/sun/star/frame/XInterceptorInfo.hpp>
|
||||
#include <com/sun/star/lang/DisposedException.hpp>
|
||||
#include <osl/diagnose.h>
|
||||
#include <utility>
|
||||
#include <vcl/svapp.hxx>
|
||||
#include <tools/diagnose_ex.h>
|
||||
|
||||
@@ -30,9 +31,9 @@ using namespace com::sun::star;
|
||||
namespace framework{
|
||||
|
||||
InterceptionHelper::InterceptionHelper(const css::uno::Reference< css::frame::XFrame >& xOwner,
|
||||
const css::uno::Reference< css::frame::XDispatchProvider >& xSlave)
|
||||
css::uno::Reference< css::frame::XDispatchProvider > xSlave)
|
||||
: m_xOwnerWeak (xOwner )
|
||||
, m_xSlave (xSlave )
|
||||
, m_xSlave (std::move(xSlave ))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -22,15 +22,16 @@
|
||||
#include <sal/log.hxx>
|
||||
|
||||
#include <com/sun/star/frame/DispatchResultState.hpp>
|
||||
#include <utility>
|
||||
|
||||
namespace framework{
|
||||
|
||||
LoadDispatcher::LoadDispatcher(const css::uno::Reference< css::uno::XComponentContext >& xContext ,
|
||||
const css::uno::Reference< css::frame::XFrame >& xOwnerFrame ,
|
||||
const OUString& sTargetName ,
|
||||
OUString sTargetName ,
|
||||
sal_Int32 nSearchFlags)
|
||||
: m_xOwnerFrame (xOwnerFrame )
|
||||
, m_sTarget (sTargetName )
|
||||
, m_sTarget (std::move(sTargetName ))
|
||||
, m_nSearchFlags(nSearchFlags)
|
||||
, m_aLoader (xContext )
|
||||
{
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#include <com/sun/star/system/SystemShellExecuteFlags.hpp>
|
||||
#include <com/sun/star/frame/DispatchResultState.hpp>
|
||||
#include <cppuhelper/supportsservice.hxx>
|
||||
#include <utility>
|
||||
|
||||
namespace framework{
|
||||
|
||||
@@ -54,8 +55,8 @@ css::uno::Sequence< OUString > SAL_CALL MailToDispatcher::getSupportedServiceNam
|
||||
@param rxContext
|
||||
reference to uno servicemanager for creation of new services
|
||||
*/
|
||||
MailToDispatcher::MailToDispatcher( const css::uno::Reference< css::uno::XComponentContext >& rxContext )
|
||||
: m_xContext ( rxContext )
|
||||
MailToDispatcher::MailToDispatcher( css::uno::Reference< css::uno::XComponentContext > xContext )
|
||||
: m_xContext (std::move( xContext ))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <com/sun/star/task/XJobExecutor.hpp>
|
||||
#include <cppuhelper/supportsservice.hxx>
|
||||
#include <tools/long.hxx>
|
||||
#include <utility>
|
||||
|
||||
namespace framework{
|
||||
|
||||
@@ -55,8 +56,8 @@ css::uno::Sequence< OUString > SAL_CALL Oxt_Handler::getSupportedServiceNames()
|
||||
@onerror Show an assertion and do nothing else.
|
||||
@threadsafe yes
|
||||
*//*-*************************************************************************************************************/
|
||||
Oxt_Handler::Oxt_Handler( const css::uno::Reference< css::uno::XComponentContext >& xContext )
|
||||
: m_xContext ( xContext )
|
||||
Oxt_Handler::Oxt_Handler( css::uno::Reference< css::uno::XComponentContext > xContext )
|
||||
: m_xContext (std::move( xContext ))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
|
||||
#include <cppuhelper/supportsservice.hxx>
|
||||
#include <sal/log.hxx>
|
||||
#include <utility>
|
||||
#include <vcl/svapp.hxx>
|
||||
|
||||
namespace framework{
|
||||
@@ -44,8 +45,8 @@ using namespace ::cppu;
|
||||
using namespace ::osl;
|
||||
|
||||
PopupMenuDispatcher::PopupMenuDispatcher(
|
||||
const uno::Reference< XComponentContext >& xContext )
|
||||
: m_xContext ( xContext )
|
||||
uno::Reference< XComponentContext > xContext )
|
||||
: m_xContext (std::move( xContext ))
|
||||
, m_bAlreadyDisposed ( false )
|
||||
, m_bActivateListener ( false )
|
||||
{
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
|
||||
#include <tools/diagnose_ex.h>
|
||||
#include <cppuhelper/supportsservice.hxx>
|
||||
#include <utility>
|
||||
|
||||
namespace framework{
|
||||
|
||||
@@ -56,8 +57,8 @@ css::uno::Sequence< OUString > SAL_CALL ServiceHandler::getSupportedServiceNames
|
||||
@param xFactory
|
||||
reference to uno servicemanager for creation of new services
|
||||
*/
|
||||
ServiceHandler::ServiceHandler( const css::uno::Reference< css::uno::XComponentContext >& xContext )
|
||||
: m_xContext ( xContext )
|
||||
ServiceHandler::ServiceHandler( css::uno::Reference< css::uno::XComponentContext > xContext )
|
||||
: m_xContext (std::move( xContext ))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#include <com/sun/star/frame/StartModule.hpp>
|
||||
|
||||
#include <unotools/moduleoptions.hxx>
|
||||
#include <utility>
|
||||
|
||||
namespace framework{
|
||||
|
||||
@@ -36,8 +37,8 @@ namespace framework{
|
||||
#error "Who uses \"fpf\" as define. It will overwrite my namespace alias ..."
|
||||
#endif
|
||||
|
||||
StartModuleDispatcher::StartModuleDispatcher(const css::uno::Reference< css::uno::XComponentContext >& rxContext)
|
||||
: m_xContext (rxContext )
|
||||
StartModuleDispatcher::StartModuleDispatcher(css::uno::Reference< css::uno::XComponentContext > xContext)
|
||||
: m_xContext (std::move(xContext ))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#include <com/sun/star/system/SystemShellExecuteFlags.hpp>
|
||||
#include <com/sun/star/frame/DispatchResultState.hpp>
|
||||
#include <cppuhelper/supportsservice.hxx>
|
||||
#include <utility>
|
||||
|
||||
namespace framework{
|
||||
|
||||
@@ -48,8 +49,8 @@ css::uno::Sequence< OUString > SAL_CALL SystemExec::getSupportedServiceNames()
|
||||
return { SERVICENAME_PROTOCOLHANDLER };
|
||||
}
|
||||
|
||||
SystemExec::SystemExec( const css::uno::Reference< css::uno::XComponentContext >& rxContext )
|
||||
: m_xContext ( rxContext )
|
||||
SystemExec::SystemExec( css::uno::Reference< css::uno::XComponentContext > xContext )
|
||||
: m_xContext (std::move( xContext ))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include <com/sun/star/util/URLTransformer.hpp>
|
||||
#include <com/sun/star/util/XURLTransformer.hpp>
|
||||
|
||||
#include <utility>
|
||||
#include <vcl/window.hxx>
|
||||
#include <vcl/svapp.hxx>
|
||||
#include <vcl/commandevent.hxx>
|
||||
@@ -32,9 +33,9 @@
|
||||
|
||||
namespace framework{
|
||||
|
||||
WindowCommandDispatch::WindowCommandDispatch(const css::uno::Reference< css::uno::XComponentContext >& xContext ,
|
||||
WindowCommandDispatch::WindowCommandDispatch(css::uno::Reference< css::uno::XComponentContext > xContext ,
|
||||
const css::uno::Reference< css::frame::XFrame >& xFrame)
|
||||
: m_xContext (xContext )
|
||||
: m_xContext (std::move(xContext ))
|
||||
, m_xFrame (xFrame )
|
||||
, m_xWindow (xFrame->getContainerWindow())
|
||||
{
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#include <cppuhelper/queryinterface.hxx>
|
||||
#include <cppuhelper/typeprovider.hxx>
|
||||
#include <framework/actiontriggerhelper.hxx>
|
||||
#include <utility>
|
||||
#include <vcl/svapp.hxx>
|
||||
|
||||
using namespace cppu;
|
||||
@@ -44,10 +45,10 @@ const css::uno::Sequence<sal_Int8>& RootActionTriggerContainer::getUnoTunnelId()
|
||||
return seqID;
|
||||
}
|
||||
|
||||
RootActionTriggerContainer::RootActionTriggerContainer(const css::uno::Reference<css::awt::XPopupMenu>& rMenu,
|
||||
RootActionTriggerContainer::RootActionTriggerContainer(css::uno::Reference<css::awt::XPopupMenu> xMenu,
|
||||
const OUString* pMenuIdentifier)
|
||||
: m_bContainerCreated(false)
|
||||
, m_xMenu(rMenu)
|
||||
, m_xMenu(std::move(xMenu))
|
||||
, m_pMenuIdentifier(pMenuIdentifier)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#include <framework/interaction.hxx>
|
||||
#include <com/sun/star/document/XInteractionFilterSelect.hpp>
|
||||
#include <com/sun/star/document/NoSuchFilterRequest.hpp>
|
||||
#include <utility>
|
||||
|
||||
using namespace ::com::sun::star;
|
||||
|
||||
@@ -191,9 +192,9 @@ class InteractionRequest_Impl : public ::cppu::WeakImplHelper< css::task::XInter
|
||||
uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > > m_lContinuations;
|
||||
|
||||
public:
|
||||
InteractionRequest_Impl( const css::uno::Any& aRequest,
|
||||
InteractionRequest_Impl( css::uno::Any aRequest,
|
||||
const css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > >& lContinuations )
|
||||
: m_aRequest(aRequest), m_lContinuations(lContinuations)
|
||||
: m_aRequest(std::move(aRequest)), m_lContinuations(lContinuations)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
#include <rtl/ustrbuf.hxx>
|
||||
#include <osl/mutex.hxx>
|
||||
#include <tools/urlobj.hxx>
|
||||
#include <utility>
|
||||
#include <vcl/svapp.hxx>
|
||||
|
||||
|
||||
@@ -45,11 +46,11 @@ using namespace css::frame;
|
||||
|
||||
namespace framework{
|
||||
|
||||
TitleHelper::TitleHelper(const css::uno::Reference< css::uno::XComponentContext >& rxContext,
|
||||
TitleHelper::TitleHelper(css::uno::Reference< css::uno::XComponentContext > xContext,
|
||||
const css::uno::Reference< css::uno::XInterface >& xOwner,
|
||||
const css::uno::Reference< css::frame::XUntitledNumbers >& xNumbers)
|
||||
: ::cppu::BaseMutex ()
|
||||
, m_xContext (rxContext)
|
||||
, m_xContext (std::move(xContext))
|
||||
, m_bExternalTitle (false)
|
||||
, m_nLeasedNumber (css::frame::UntitledNumbersConst::INVALID_NUMBER)
|
||||
, m_aListener (m_aMutex)
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
#include <mutex>
|
||||
#include <stack>
|
||||
#include <queue>
|
||||
#include <utility>
|
||||
|
||||
namespace framework
|
||||
{
|
||||
@@ -145,8 +146,8 @@ namespace framework
|
||||
class UndoManagerRequest : public ::comphelper::AnyEvent
|
||||
{
|
||||
public:
|
||||
explicit UndoManagerRequest( ::std::function<void ()> const& i_request )
|
||||
:m_request( i_request )
|
||||
explicit UndoManagerRequest( ::std::function<void ()> i_request )
|
||||
:m_request(std::move( i_request ))
|
||||
{
|
||||
m_finishCondition.reset();
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <menuconfiguration.hxx>
|
||||
|
||||
#include <addonmenu.hxx>
|
||||
#include <utility>
|
||||
#include <xml/menudocumenthandler.hxx>
|
||||
#include <xml/saxnamespacefilter.hxx>
|
||||
|
||||
@@ -41,9 +42,8 @@ using namespace ::com::sun::star::io;
|
||||
namespace framework
|
||||
{
|
||||
|
||||
MenuConfiguration::MenuConfiguration(
|
||||
const css::uno::Reference< css::uno::XComponentContext >& rxContext )
|
||||
: m_xContext( rxContext )
|
||||
MenuConfiguration::MenuConfiguration( css::uno::Reference< css::uno::XComponentContext > xContext )
|
||||
: m_xContext(std::move( xContext ))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include <com/sun/star/configuration/theDefaultProvider.hpp>
|
||||
#include <com/sun/star/beans/PropertyValue.hpp>
|
||||
#include <com/sun/star/util/XChangesBatch.hpp>
|
||||
#include <utility>
|
||||
|
||||
#include <tools/diagnose_ex.h>
|
||||
|
||||
@@ -39,10 +40,10 @@ namespace framework{
|
||||
@param eMode
|
||||
force opening of the configuration access in readonly or in read/write mode
|
||||
*/
|
||||
ConfigAccess::ConfigAccess( /*IN*/ const css::uno::Reference< css::uno::XComponentContext >& rxContext,
|
||||
/*IN*/ const OUString& sRoot )
|
||||
: m_xContext ( rxContext)
|
||||
, m_sRoot ( sRoot )
|
||||
ConfigAccess::ConfigAccess( /*IN*/ css::uno::Reference< css::uno::XComponentContext > xContext,
|
||||
/*IN*/ OUString sRoot )
|
||||
: m_xContext (std::move( xContext))
|
||||
, m_sRoot (std::move( sRoot ))
|
||||
, m_eMode ( E_CLOSED )
|
||||
{
|
||||
}
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
|
||||
#include <comphelper/lok.hxx>
|
||||
#include <comphelper/configurationhelper.hxx>
|
||||
#include <utility>
|
||||
#include <vcl/window.hxx>
|
||||
#include <vcl/syswin.hxx>
|
||||
|
||||
@@ -34,8 +35,8 @@
|
||||
|
||||
namespace framework{
|
||||
|
||||
PersistentWindowState::PersistentWindowState(const css::uno::Reference< css::uno::XComponentContext >& xContext)
|
||||
: m_xContext (xContext )
|
||||
PersistentWindowState::PersistentWindowState(css::uno::Reference< css::uno::XComponentContext > xContext)
|
||||
: m_xContext (std::move(xContext ))
|
||||
, m_bWindowStateAlreadySet(false )
|
||||
{
|
||||
}
|
||||
|
||||
@@ -44,8 +44,8 @@ sal_Int32 StatusIndicatorFactory::m_nInReschedule = 0; ///< static counter for
|
||||
|
||||
constexpr OUStringLiteral PROGRESS_RESOURCE = u"private:resource/progressbar/progressbar";
|
||||
|
||||
StatusIndicatorFactory::StatusIndicatorFactory(const css::uno::Reference< css::uno::XComponentContext >& xContext)
|
||||
: m_xContext (xContext )
|
||||
StatusIndicatorFactory::StatusIndicatorFactory(css::uno::Reference< css::uno::XComponentContext > xContext)
|
||||
: m_xContext (std::move(xContext ))
|
||||
, m_bAllowReschedule (false)
|
||||
, m_bAllowParentShow (false)
|
||||
, m_bDisableReschedule(false)
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
|
||||
#include <comphelper/sequenceashashmap.hxx>
|
||||
#include <unotools/configmgr.hxx>
|
||||
#include <utility>
|
||||
#include <vcl/window.hxx>
|
||||
#include <toolkit/helper/vclunohelper.hxx>
|
||||
#include <vcl/svapp.hxx>
|
||||
@@ -41,8 +42,8 @@ namespace framework{
|
||||
const ::sal_Int32 INVALID_ICON_ID = -1;
|
||||
const ::sal_Int32 DEFAULT_ICON_ID = 0;
|
||||
|
||||
TitleBarUpdate::TitleBarUpdate(const css::uno::Reference< css::uno::XComponentContext >& xContext)
|
||||
: m_xContext (xContext )
|
||||
TitleBarUpdate::TitleBarUpdate(css::uno::Reference< css::uno::XComponentContext > xContext)
|
||||
: m_xContext (std::move(xContext ))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -20,12 +20,13 @@
|
||||
#include <helper/vclstatusindicator.hxx>
|
||||
|
||||
#include <toolkit/helper/vclunohelper.hxx>
|
||||
#include <utility>
|
||||
#include <vcl/svapp.hxx>
|
||||
|
||||
namespace framework {
|
||||
|
||||
VCLStatusIndicator::VCLStatusIndicator(const css::uno::Reference< css::awt::XWindow >& xParentWindow)
|
||||
: m_xParentWindow (xParentWindow )
|
||||
VCLStatusIndicator::VCLStatusIndicator(css::uno::Reference< css::awt::XWindow > xParentWindow)
|
||||
: m_xParentWindow (std::move(xParentWindow ))
|
||||
, m_pStatusBar (nullptr )
|
||||
, m_nRange (0 )
|
||||
, m_nValue (0 )
|
||||
|
||||
@@ -220,7 +220,7 @@ class XCUBasedAcceleratorConfiguration : public ::cppu::WeakImplHelper<
|
||||
|
||||
public:
|
||||
|
||||
XCUBasedAcceleratorConfiguration( const css::uno::Reference< css::uno::XComponentContext >& xContext );
|
||||
XCUBasedAcceleratorConfiguration( css::uno::Reference< css::uno::XComponentContext > xContext );
|
||||
virtual ~XCUBasedAcceleratorConfiguration( ) override;
|
||||
|
||||
// uno interface!
|
||||
|
||||
@@ -122,7 +122,7 @@ class PresetHandler
|
||||
points to a uno service manager, which is used internally
|
||||
to create own needed uno resources.
|
||||
*/
|
||||
PresetHandler(const css::uno::Reference< css::uno::XComponentContext >& xContext);
|
||||
PresetHandler(css::uno::Reference< css::uno::XComponentContext > xContext);
|
||||
|
||||
/** @short copy ctor */
|
||||
PresetHandler(const PresetHandler& rCopy);
|
||||
|
||||
@@ -79,7 +79,7 @@ class LoadDispatcher final : public ::cppu::WeakImplHelper< css::frame::XNotify
|
||||
*/
|
||||
LoadDispatcher(const css::uno::Reference< css::uno::XComponentContext >& xContext,
|
||||
const css::uno::Reference< css::frame::XFrame >& xOwnerFrame ,
|
||||
const OUString& sTargetName ,
|
||||
OUString sTargetName ,
|
||||
sal_Int32 nSearchFlags);
|
||||
|
||||
/** @short used to free internal resources.
|
||||
|
||||
@@ -74,8 +74,8 @@ class WindowCommandDispatch final
|
||||
@param xFrame
|
||||
used as for new detected commands.
|
||||
*/
|
||||
WindowCommandDispatch(const css::uno::Reference< css::uno::XComponentContext >& xContext ,
|
||||
const css::uno::Reference< css::frame::XFrame >& xFrame);
|
||||
WindowCommandDispatch(css::uno::Reference< css::uno::XComponentContext > xContext ,
|
||||
const css::uno::Reference< css::frame::XFrame >& xFrame);
|
||||
|
||||
/** @short used to free internal resources.
|
||||
*/
|
||||
|
||||
@@ -200,7 +200,7 @@ public:
|
||||
@throw A RuntimeException in case any internal process indicates, that
|
||||
the whole runtime can't be used any longer.
|
||||
*/
|
||||
LoadEnv(const css::uno::Reference< css::uno::XComponentContext >& xContext);
|
||||
LoadEnv(css::uno::Reference< css::uno::XComponentContext > xContext);
|
||||
|
||||
/** @short deinitialize an instance of this class in the right way.
|
||||
*/
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <com/sun/star/uno/Any.hxx>
|
||||
#include <utility>
|
||||
|
||||
namespace framework{
|
||||
|
||||
@@ -75,9 +76,9 @@ class LoadEnvException
|
||||
css::uno::Any m_exOriginal;
|
||||
|
||||
LoadEnvException(
|
||||
sal_Int32 id, OUString const & message = OUString(),
|
||||
css::uno::Any const & original = css::uno::Any()):
|
||||
m_nID(id), m_sMessage(message), m_exOriginal(original)
|
||||
sal_Int32 id, OUString message = OUString(),
|
||||
css::uno::Any original = css::uno::Any()):
|
||||
m_nID(id), m_sMessage(std::move(message)), m_exOriginal(std::move(original))
|
||||
{}
|
||||
};
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
|
||||
// include others
|
||||
#include <comphelper/sequenceashashmap.hxx>
|
||||
#include <utility>
|
||||
#include <vcl/svapp.hxx>
|
||||
#include <vcl/help.hxx>
|
||||
|
||||
@@ -56,8 +57,8 @@ css::uno::Sequence< OUString > SAL_CALL HelpOnStartup::getSupportedServiceNames(
|
||||
return { SERVICENAME_JOB };
|
||||
}
|
||||
|
||||
HelpOnStartup::HelpOnStartup(const css::uno::Reference< css::uno::XComponentContext >& xContext)
|
||||
: m_xContext (xContext)
|
||||
HelpOnStartup::HelpOnStartup(css::uno::Reference< css::uno::XComponentContext > xContext)
|
||||
: m_xContext (std::move(xContext))
|
||||
{
|
||||
// create some needed uno services and cache it
|
||||
m_xModuleManager = css::frame::ModuleManager::create( m_xContext );
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
#include <comphelper/sequence.hxx>
|
||||
#include <sal/log.hxx>
|
||||
#include <tools/diagnose_ex.h>
|
||||
#include <utility>
|
||||
#include <vcl/svapp.hxx>
|
||||
|
||||
namespace framework{
|
||||
@@ -50,10 +51,10 @@ namespace framework{
|
||||
(May be null!)
|
||||
*/
|
||||
Job::Job( /*IN*/ const css::uno::Reference< css::uno::XComponentContext >& xContext ,
|
||||
/*IN*/ const css::uno::Reference< css::frame::XFrame >& xFrame )
|
||||
/*IN*/ css::uno::Reference< css::frame::XFrame > xFrame )
|
||||
: m_aJobCfg (xContext )
|
||||
, m_xContext (xContext )
|
||||
, m_xFrame (xFrame )
|
||||
, m_xFrame (std::move(xFrame ))
|
||||
, m_bListenOnDesktop (false )
|
||||
, m_bListenOnFrame (false )
|
||||
, m_bListenOnModel (false )
|
||||
@@ -77,10 +78,10 @@ Job::Job( /*IN*/ const css::uno::Reference< css::uno::XComponentContext >& xCont
|
||||
(May be null!)
|
||||
*/
|
||||
Job::Job( /*IN*/ const css::uno::Reference< css::uno::XComponentContext >& xContext ,
|
||||
/*IN*/ const css::uno::Reference< css::frame::XModel >& xModel )
|
||||
/*IN*/ css::uno::Reference< css::frame::XModel > xModel )
|
||||
: m_aJobCfg (xContext )
|
||||
, m_xContext (xContext )
|
||||
, m_xModel (xModel )
|
||||
, m_xModel (std::move(xModel ))
|
||||
, m_bListenOnDesktop (false )
|
||||
, m_bListenOnFrame (false )
|
||||
, m_bListenOnModel (false )
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
|
||||
#include <tools/wldcrd.hxx>
|
||||
#include <unotools/configpaths.hxx>
|
||||
#include <utility>
|
||||
#include <vcl/svapp.hxx>
|
||||
|
||||
namespace framework{
|
||||
@@ -45,8 +46,8 @@ namespace framework{
|
||||
@param rxContext
|
||||
reference to the uno service manager
|
||||
*/
|
||||
JobData::JobData( const css::uno::Reference< css::uno::XComponentContext >& rxContext )
|
||||
: m_xContext (rxContext )
|
||||
JobData::JobData( css::uno::Reference< css::uno::XComponentContext > xContext )
|
||||
: m_xContext (std::move(xContext ))
|
||||
{
|
||||
// share code for member initialization with defaults!
|
||||
impl_reset();
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
#include <cppuhelper/supportsservice.hxx>
|
||||
#include <cppuhelper/implbase.hxx>
|
||||
#include <rtl/ref.hxx>
|
||||
#include <utility>
|
||||
#include <vcl/svapp.hxx>
|
||||
|
||||
using namespace framework;
|
||||
@@ -73,7 +74,7 @@ private:
|
||||
|
||||
public:
|
||||
|
||||
explicit JobDispatch(const css::uno::Reference< css::uno::XComponentContext >& xContext);
|
||||
explicit JobDispatch(css::uno::Reference< css::uno::XComponentContext > xContext);
|
||||
virtual ~JobDispatch() override;
|
||||
|
||||
void impl_dispatchEvent ( const OUString& sEvent ,
|
||||
@@ -132,8 +133,8 @@ public:
|
||||
@param xContext
|
||||
reference to the uno service manager
|
||||
*/
|
||||
JobDispatch::JobDispatch( /*IN*/ const css::uno::Reference< css::uno::XComponentContext >& xContext )
|
||||
: m_xContext (xContext )
|
||||
JobDispatch::JobDispatch( /*IN*/ css::uno::Reference< css::uno::XComponentContext > xContext )
|
||||
: m_xContext (std::move(xContext ))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
#include <com/sun/star/util/PathSubstitution.hpp>
|
||||
#include <com/sun/star/util/XStringSubstitution.hpp>
|
||||
#include <cppuhelper/supportsservice.hxx>
|
||||
#include <utility>
|
||||
|
||||
namespace framework{
|
||||
|
||||
@@ -55,8 +56,8 @@ css::uno::Sequence< OUString > SAL_CALL ShellJob::getSupportedServiceNames()
|
||||
}
|
||||
|
||||
|
||||
ShellJob::ShellJob(const css::uno::Reference< css::uno::XComponentContext >& xContext)
|
||||
: m_xContext (xContext)
|
||||
ShellJob::ShellJob(css::uno::Reference< css::uno::XComponentContext > xContext)
|
||||
: m_xContext (std::move(xContext))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
#include <unotools/cmdoptions.hxx>
|
||||
#include <toolkit/helper/vclunohelper.hxx>
|
||||
#include <toolkit/helper/convert.hxx>
|
||||
#include <utility>
|
||||
#include <vcl/i18nhelp.hxx>
|
||||
#include <vcl/dockingarea.hxx>
|
||||
#include <vcl/settings.hxx>
|
||||
@@ -53,11 +54,11 @@ namespace framework
|
||||
{
|
||||
|
||||
ToolbarLayoutManager::ToolbarLayoutManager(
|
||||
const uno::Reference< uno::XComponentContext >& rxContext,
|
||||
const uno::Reference< ui::XUIElementFactory >& xUIElementFactory,
|
||||
uno::Reference< uno::XComponentContext > xContext,
|
||||
uno::Reference< ui::XUIElementFactory > xUIElementFactory,
|
||||
LayoutManager* pParentLayouter ):
|
||||
m_xContext( rxContext),
|
||||
m_xUIElementFactoryManager( xUIElementFactory ),
|
||||
m_xContext(std::move( xContext)),
|
||||
m_xUIElementFactoryManager(std::move( xUIElementFactory )),
|
||||
m_pParentLayouter( pParentLayouter ),
|
||||
m_aDockingArea(0, 0, 0, 0),
|
||||
m_aDockingAreaOffsets(0, 0, 0, 0),
|
||||
|
||||
@@ -56,8 +56,8 @@ class ToolbarLayoutManager : public ::cppu::WeakImplHelper< css::awt::XDockableW
|
||||
PREVIEWFRAME_YES
|
||||
};
|
||||
|
||||
ToolbarLayoutManager( const css::uno::Reference< css::uno::XComponentContext >& rxContext,
|
||||
const css::uno::Reference< css::ui::XUIElementFactory >& xUIElementFactory,
|
||||
ToolbarLayoutManager( css::uno::Reference< css::uno::XComponentContext > xContext,
|
||||
css::uno::Reference< css::ui::XUIElementFactory > xUIElementFactory,
|
||||
LayoutManager* pParentLayouter );
|
||||
virtual ~ToolbarLayoutManager() override;
|
||||
|
||||
|
||||
@@ -73,6 +73,7 @@
|
||||
#include <com/sun/star/util/XCloseable.hpp>
|
||||
#include <com/sun/star/util/XModifiable.hpp>
|
||||
|
||||
#include <utility>
|
||||
#include <vcl/window.hxx>
|
||||
#include <vcl/wrkwin.hxx>
|
||||
#include <vcl/syswin.hxx>
|
||||
@@ -130,8 +131,8 @@ class LoadEnvListener : public ::cppu::WeakImplHelper< css::frame::XLoadEventLis
|
||||
|
||||
}
|
||||
|
||||
LoadEnv::LoadEnv(const css::uno::Reference< css::uno::XComponentContext >& xContext)
|
||||
: m_xContext(xContext)
|
||||
LoadEnv::LoadEnv(css::uno::Reference< css::uno::XComponentContext > xContext)
|
||||
: m_xContext(std::move(xContext))
|
||||
, m_nSearchFlags(0)
|
||||
, m_eFeature(LoadEnvFeatures::NONE)
|
||||
, m_eContentType(E_UNSUPPORTED_CONTENT)
|
||||
|
||||
@@ -80,6 +80,7 @@
|
||||
#include <comphelper/multiinterfacecontainer3.hxx>
|
||||
#include <comphelper/namedvaluecollection.hxx>
|
||||
#include <comphelper/sequence.hxx>
|
||||
#include <utility>
|
||||
#include <vcl/evntpost.hxx>
|
||||
#include <vcl/svapp.hxx>
|
||||
#include <vcl/timer.hxx>
|
||||
@@ -451,7 +452,7 @@ private:
|
||||
|
||||
public:
|
||||
|
||||
explicit AutoRecovery(const css::uno::Reference< css::uno::XComponentContext >& xContext);
|
||||
explicit AutoRecovery(css::uno::Reference< css::uno::XComponentContext > xContext);
|
||||
virtual ~AutoRecovery( ) override;
|
||||
|
||||
virtual OUString SAL_CALL getImplementationName() override
|
||||
@@ -1210,10 +1211,10 @@ void DispatchParams::forget()
|
||||
m_xHoldRefForAsyncOpAlive.clear();
|
||||
};
|
||||
|
||||
AutoRecovery::AutoRecovery(const css::uno::Reference< css::uno::XComponentContext >& xContext)
|
||||
AutoRecovery::AutoRecovery(css::uno::Reference< css::uno::XComponentContext > xContext)
|
||||
: AutoRecovery_BASE (m_aMutex)
|
||||
, ::cppu::OPropertySetHelper(cppu::WeakComponentImplHelperBase::rBHelper)
|
||||
, m_xContext (xContext )
|
||||
, m_xContext (std::move(xContext ))
|
||||
, m_bListenForDocEvents (false )
|
||||
, m_bListenForConfigChanges (false )
|
||||
, m_nAutoSaveTimeIntervall (0 )
|
||||
|
||||
@@ -51,6 +51,7 @@
|
||||
#include <comphelper/sequence.hxx>
|
||||
#include <comphelper/lok.hxx>
|
||||
#include <cppuhelper/supportsservice.hxx>
|
||||
#include <utility>
|
||||
#include <vcl/svapp.hxx>
|
||||
#include <desktop/crashreport.hxx>
|
||||
#include <vcl/scheduler.hxx>
|
||||
@@ -139,14 +140,14 @@ void Desktop::constructorInit()
|
||||
The value must be different from NULL!
|
||||
@onerror We throw an ASSERT in debug version or do nothing in release version.
|
||||
*//*-*************************************************************************************************************/
|
||||
Desktop::Desktop( const css::uno::Reference< css::uno::XComponentContext >& xContext )
|
||||
Desktop::Desktop( css::uno::Reference< css::uno::XComponentContext > xContext )
|
||||
: Desktop_BASE ( m_aMutex )
|
||||
, cppu::OPropertySetHelper( cppu::WeakComponentImplHelperBase::rBHelper )
|
||||
// Init member
|
||||
, m_bIsTerminated(false)
|
||||
, m_bIsShutdown(false) // see dispose() for further information!
|
||||
, m_bSession ( false )
|
||||
, m_xContext ( xContext )
|
||||
, m_xContext (std::move( xContext ))
|
||||
, m_aListenerContainer ( m_aMutex )
|
||||
, m_eLoadState ( E_NOTSET )
|
||||
, m_bSuspendQuickstartVeto( false )
|
||||
@@ -341,9 +342,9 @@ namespace
|
||||
Desktop* const m_pDesktop;
|
||||
css::uno::Reference< css::frame::XTerminateListener > m_xQuickLauncher;
|
||||
public:
|
||||
QuickstartSuppressor(Desktop* const pDesktop, css::uno::Reference< css::frame::XTerminateListener > const & xQuickLauncher)
|
||||
QuickstartSuppressor(Desktop* const pDesktop, css::uno::Reference< css::frame::XTerminateListener > xQuickLauncher)
|
||||
: m_pDesktop(pDesktop)
|
||||
, m_xQuickLauncher(xQuickLauncher)
|
||||
, m_xQuickLauncher(std::move(xQuickLauncher))
|
||||
{
|
||||
SAL_INFO("fwk.desktop", "temporary removing Quickstarter");
|
||||
if(m_xQuickLauncher.is())
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
|
||||
#include <comphelper/profilezone.hxx>
|
||||
#include <unotools/mediadescriptor.hxx>
|
||||
#include <utility>
|
||||
#include <vcl/threadex.hxx>
|
||||
#include <cppuhelper/supportsservice.hxx>
|
||||
|
||||
@@ -51,8 +52,8 @@ css::uno::Sequence<OUString> SAL_CALL DispatchHelper::getSupportedServiceNames()
|
||||
|
||||
@param xSMGR the global uno service manager, which can be used to create own needed services.
|
||||
*/
|
||||
DispatchHelper::DispatchHelper(const css::uno::Reference<css::uno::XComponentContext>& xContext)
|
||||
: m_xContext(xContext)
|
||||
DispatchHelper::DispatchHelper(css::uno::Reference<css::uno::XComponentContext> xContext)
|
||||
: m_xContext(std::move(xContext))
|
||||
, m_aBlockFlag(false)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -113,7 +113,7 @@ class XFrameImpl:
|
||||
{
|
||||
public:
|
||||
|
||||
explicit XFrameImpl(const css::uno::Reference< css::uno::XComponentContext >& xContext);
|
||||
explicit XFrameImpl(css::uno::Reference< css::uno::XComponentContext > xContext);
|
||||
|
||||
/// Initialization function after having acquire()'d.
|
||||
void initListeners();
|
||||
@@ -452,10 +452,10 @@ private:
|
||||
The value must be different from NULL!
|
||||
@onerror ASSERT in debug version or nothing in release version.
|
||||
*//*-*****************************************************************************************************/
|
||||
XFrameImpl::XFrameImpl( const css::uno::Reference< css::uno::XComponentContext >& xContext )
|
||||
XFrameImpl::XFrameImpl( css::uno::Reference< css::uno::XComponentContext > xContext )
|
||||
: PartialWeakComponentImplHelper(m_aMutex)
|
||||
// init member
|
||||
, m_xContext ( xContext )
|
||||
, m_xContext (std::move( xContext ))
|
||||
, m_aListenerContainer ( m_aMutex )
|
||||
, m_eActiveState ( E_INACTIVE )
|
||||
, m_bIsFrameTop ( true ) // I think we are top without a parent ... and there is no parent yet!
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
#include <comphelper/sequenceashashmap.hxx>
|
||||
#include <comphelper/sequence.hxx>
|
||||
#include <comphelper/enumhelper.hxx>
|
||||
#include <utility>
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -60,7 +61,7 @@ private:
|
||||
|
||||
public:
|
||||
|
||||
explicit ModuleManager(const css::uno::Reference< css::uno::XComponentContext >& xContext);
|
||||
explicit ModuleManager(css::uno::Reference< css::uno::XComponentContext > xContext);
|
||||
|
||||
ModuleManager(const ModuleManager&) = delete;
|
||||
ModuleManager& operator=(const ModuleManager&) = delete;
|
||||
@@ -123,8 +124,8 @@ private:
|
||||
OUString implts_identify(const css::uno::Reference< css::uno::XInterface >& xComponent);
|
||||
};
|
||||
|
||||
ModuleManager::ModuleManager(const css::uno::Reference< css::uno::XComponentContext >& xContext)
|
||||
: m_xContext(xContext)
|
||||
ModuleManager::ModuleManager(css::uno::Reference< css::uno::XComponentContext > xContext)
|
||||
: m_xContext(std::move(xContext))
|
||||
{
|
||||
m_xCFG.set( comphelper::ConfigurationHelper::openConfig(
|
||||
m_xContext, "/org.openoffice.Setup/Office/Factories",
|
||||
|
||||
@@ -166,7 +166,7 @@ public:
|
||||
Attention: It's necessary for right function of this class, that the order of base
|
||||
classes is the right one. Because we transfer information from one base to another
|
||||
during this ctor runs! */
|
||||
explicit PathSettings(const css::uno::Reference< css::uno::XComponentContext >& xContext);
|
||||
explicit PathSettings(css::uno::Reference< css::uno::XComponentContext > xContext);
|
||||
|
||||
/** free all used resources ... if it was not already done. */
|
||||
virtual ~PathSettings() override;
|
||||
@@ -428,10 +428,10 @@ private:
|
||||
css::uno::Reference< css::container::XNameAccess > fa_getCfgNew();
|
||||
};
|
||||
|
||||
PathSettings::PathSettings( const css::uno::Reference< css::uno::XComponentContext >& xContext )
|
||||
PathSettings::PathSettings( css::uno::Reference< css::uno::XComponentContext > xContext )
|
||||
: PathSettings_BASE(m_aMutex)
|
||||
, ::cppu::OPropertySetHelper(cppu::WeakComponentImplHelperBase::rBHelper)
|
||||
, m_xContext (xContext)
|
||||
, m_xContext (std::move(xContext))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
|
||||
#include <com/sun/star/uno/Any.hxx>
|
||||
#include <com/sun/star/uno/Sequence.hxx>
|
||||
#include <utility>
|
||||
|
||||
using namespace css;
|
||||
using namespace com::sun::star::uno;
|
||||
@@ -101,7 +102,7 @@ private:
|
||||
void QuitSessionQuietly();
|
||||
|
||||
public:
|
||||
explicit SessionListener(const css::uno::Reference< css::uno::XComponentContext >& xContext);
|
||||
explicit SessionListener(css::uno::Reference< css::uno::XComponentContext > xContext);
|
||||
|
||||
virtual ~SessionListener() override;
|
||||
|
||||
@@ -138,8 +139,8 @@ public:
|
||||
virtual void SAL_CALL statusChanged(const css::frame::FeatureStateEvent& event) override;
|
||||
};
|
||||
|
||||
SessionListener::SessionListener(const css::uno::Reference< css::uno::XComponentContext >& rxContext )
|
||||
: m_xContext( rxContext )
|
||||
SessionListener::SessionListener(css::uno::Reference< css::uno::XComponentContext > rxContext )
|
||||
: m_xContext(std::move( rxContext ))
|
||||
, m_bRestored( false )
|
||||
, m_bSessionStoreRequested( false )
|
||||
, m_bAllowUserInteractionOnQuit( false )
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
#include <cppuhelper/supportsservice.hxx>
|
||||
#include <svtools/colorcfg.hxx>
|
||||
#include <toolkit/helper/vclunohelper.hxx>
|
||||
#include <utility>
|
||||
#include <vcl/svapp.hxx>
|
||||
#include <vcl/window.hxx>
|
||||
|
||||
@@ -61,7 +62,7 @@ private:
|
||||
|
||||
public:
|
||||
|
||||
explicit TaskCreatorService(const css::uno::Reference< css::uno::XComponentContext >& xContext);
|
||||
explicit TaskCreatorService(css::uno::Reference< css::uno::XComponentContext > xContext);
|
||||
|
||||
virtual OUString SAL_CALL getImplementationName() override
|
||||
{
|
||||
@@ -103,8 +104,8 @@ private:
|
||||
OUString impl_filterNames( const OUString& sName );
|
||||
};
|
||||
|
||||
TaskCreatorService::TaskCreatorService(const css::uno::Reference< css::uno::XComponentContext >& xContext)
|
||||
: m_xContext (xContext )
|
||||
TaskCreatorService::TaskCreatorService(css::uno::Reference< css::uno::XComponentContext > xContext)
|
||||
: m_xContext (std::move(xContext ))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#include <comphelper/propertysequence.hxx>
|
||||
#include <cppuhelper/implbase.hxx>
|
||||
#include <mutex>
|
||||
#include <utility>
|
||||
|
||||
// Defines
|
||||
|
||||
@@ -48,7 +49,7 @@ class GlobalSettings_Access : public ::cppu::WeakImplHelper<
|
||||
css::lang::XEventListener>
|
||||
{
|
||||
public:
|
||||
explicit GlobalSettings_Access( const css::uno::Reference< css::uno::XComponentContext >& rxContext );
|
||||
explicit GlobalSettings_Access( css::uno::Reference< css::uno::XComponentContext > xContext );
|
||||
|
||||
// XComponent
|
||||
virtual void SAL_CALL dispose() override;
|
||||
@@ -78,14 +79,14 @@ class GlobalSettings_Access : public ::cppu::WeakImplHelper<
|
||||
|
||||
}
|
||||
|
||||
GlobalSettings_Access::GlobalSettings_Access( const css::uno::Reference< css::uno::XComponentContext >& rxContext ) :
|
||||
GlobalSettings_Access::GlobalSettings_Access( css::uno::Reference< css::uno::XComponentContext > xContext ) :
|
||||
m_bDisposed( false ),
|
||||
m_bConfigRead( false ),
|
||||
m_aNodeRefStates( "States" ),
|
||||
m_aPropStatesEnabled( "StatesEnabled" ),
|
||||
m_aPropLocked( "Locked" ),
|
||||
m_aPropDocked( "Docked" ),
|
||||
m_xContext( rxContext )
|
||||
m_xContext(std::move( xContext ))
|
||||
{
|
||||
}
|
||||
|
||||
@@ -226,8 +227,8 @@ static GlobalSettings_Access* GetGlobalSettings( const css::uno::Reference< css:
|
||||
return pStaticSettings.get();
|
||||
}
|
||||
|
||||
GlobalSettings::GlobalSettings( const css::uno::Reference< css::uno::XComponentContext >& rxContext ) :
|
||||
m_xContext( rxContext )
|
||||
GlobalSettings::GlobalSettings( css::uno::Reference< css::uno::XComponentContext > xContext ) :
|
||||
m_xContext(std::move( xContext ))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
*/
|
||||
|
||||
#include "imagemanagerimpl.hxx"
|
||||
#include <utility>
|
||||
#include <xml/imagesconfiguration.hxx>
|
||||
#include <uiconfiguration/imagetype.hxx>
|
||||
#include <uiconfiguration/graphicnameaccess.hxx>
|
||||
@@ -100,10 +101,10 @@ static GlobalImageList* getGlobalImageList( const uno::Reference< uno::XComponen
|
||||
return pGlobalImageList;
|
||||
}
|
||||
|
||||
CmdImageList::CmdImageList( const uno::Reference< uno::XComponentContext >& rxContext, const OUString& aModuleIdentifier ) :
|
||||
CmdImageList::CmdImageList( uno::Reference< uno::XComponentContext > rxContext, OUString aModuleIdentifier ) :
|
||||
m_bInitialized(false),
|
||||
m_aModuleIdentifier( aModuleIdentifier ),
|
||||
m_xContext( rxContext )
|
||||
m_aModuleIdentifier(std::move( aModuleIdentifier )),
|
||||
m_xContext(std::move( rxContext ))
|
||||
{
|
||||
}
|
||||
|
||||
@@ -473,8 +474,8 @@ CmdImageList* ImageManagerImpl::implts_getDefaultImageList()
|
||||
return m_pDefaultImageList.get();
|
||||
}
|
||||
|
||||
ImageManagerImpl::ImageManagerImpl( const uno::Reference< uno::XComponentContext >& rxContext,::cppu::OWeakObject* pOwner,bool _bUseGlobal ) :
|
||||
m_xContext( rxContext )
|
||||
ImageManagerImpl::ImageManagerImpl( uno::Reference< uno::XComponentContext > xContext, ::cppu::OWeakObject* pOwner, bool _bUseGlobal ) :
|
||||
m_xContext(std::move( xContext ))
|
||||
, m_pOwner(pOwner)
|
||||
, m_aResourceString( "private:resource/images/moduleimages" )
|
||||
, m_bUseGlobal(_bUseGlobal)
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace framework
|
||||
class CmdImageList
|
||||
{
|
||||
public:
|
||||
CmdImageList(const css::uno::Reference< css::uno::XComponentContext >& rxContext, const OUString& aModuleIdentifier);
|
||||
CmdImageList(css::uno::Reference< css::uno::XComponentContext > xContext, OUString aModuleIdentifier);
|
||||
virtual ~CmdImageList();
|
||||
|
||||
virtual Image getImageFromCommandURL(vcl::ImageType nImageType, const OUString& rCommandURL);
|
||||
@@ -76,7 +76,7 @@ namespace framework
|
||||
class ImageManagerImpl
|
||||
{
|
||||
public:
|
||||
ImageManagerImpl(const css::uno::Reference< css::uno::XComponentContext >& rxContext
|
||||
ImageManagerImpl(css::uno::Reference< css::uno::XComponentContext > xContext
|
||||
,::cppu::OWeakObject *pOwner
|
||||
,bool _bUseGlobal);
|
||||
~ImageManagerImpl();
|
||||
|
||||
@@ -52,6 +52,7 @@
|
||||
#include <cppuhelper/exc_hlp.hxx>
|
||||
#include <cppuhelper/implbase.hxx>
|
||||
#include <cppuhelper/supportsservice.hxx>
|
||||
#include <utility>
|
||||
#include <vcl/svapp.hxx>
|
||||
#include <sal/log.hxx>
|
||||
#include <comphelper/interfacecontainer4.hxx>
|
||||
@@ -155,8 +156,8 @@ private:
|
||||
|
||||
struct UIElementInfo
|
||||
{
|
||||
UIElementInfo( const OUString& rResourceURL, const OUString& rUIName ) :
|
||||
aResourceURL( rResourceURL), aUIName( rUIName ) {}
|
||||
UIElementInfo( OUString _aResourceURL, OUString _aUIName ) :
|
||||
aResourceURL(std::move( _aResourceURL)), aUIName(std::move( _aUIName )) {}
|
||||
OUString aResourceURL;
|
||||
OUString aUIName;
|
||||
};
|
||||
|
||||
@@ -51,6 +51,7 @@
|
||||
#include <comphelper/interfacecontainer4.hxx>
|
||||
#include <comphelper/sequence.hxx>
|
||||
#include <comphelper/servicehelper.hxx>
|
||||
#include <utility>
|
||||
#include <vcl/svapp.hxx>
|
||||
#include <sal/log.hxx>
|
||||
#include <o3tl/string_view.hxx>
|
||||
@@ -90,7 +91,7 @@ public:
|
||||
return {"com.sun.star.ui.UIConfigurationManager"};
|
||||
}
|
||||
|
||||
explicit UIConfigurationManager( const css::uno::Reference< css::uno::XComponentContext > & rxContext );
|
||||
explicit UIConfigurationManager( css::uno::Reference< css::uno::XComponentContext > xContext );
|
||||
|
||||
// XComponent
|
||||
virtual void SAL_CALL dispose() override;
|
||||
@@ -136,8 +137,8 @@ private:
|
||||
|
||||
struct UIElementInfo
|
||||
{
|
||||
UIElementInfo( const OUString& rResourceURL, const OUString& rUIName ) :
|
||||
aResourceURL( rResourceURL), aUIName( rUIName ) {}
|
||||
UIElementInfo( OUString _aResourceURL, OUString _aUIName ) :
|
||||
aResourceURL(std::move( _aResourceURL)), aUIName(std::move( _aUIName )) {}
|
||||
OUString aResourceURL;
|
||||
OUString aUIName;
|
||||
};
|
||||
@@ -670,12 +671,12 @@ void UIConfigurationManager::impl_Initialize()
|
||||
}
|
||||
}
|
||||
|
||||
UIConfigurationManager::UIConfigurationManager( const css::uno::Reference< css::uno::XComponentContext > & rxContext ) :
|
||||
UIConfigurationManager::UIConfigurationManager( css::uno::Reference< css::uno::XComponentContext > xContext ) :
|
||||
m_bReadOnly( true )
|
||||
, m_bModified( false )
|
||||
, m_bDisposed( false )
|
||||
, m_aPropUIName( "UIName" )
|
||||
, m_xContext( rxContext )
|
||||
, m_xContext(std::move( xContext ))
|
||||
{
|
||||
// Make sure we have a default initialized entry for every layer and user interface element type!
|
||||
// The following code depends on this!
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#include <cppuhelper/queryinterface.hxx>
|
||||
#include <comphelper/processfactory.hxx>
|
||||
#include <comphelper/propertyvalue.hxx>
|
||||
#include <utility>
|
||||
#include <vcl/svapp.hxx>
|
||||
#include <vcl/toolbox.hxx>
|
||||
|
||||
@@ -43,13 +44,13 @@ namespace framework
|
||||
{
|
||||
|
||||
ButtonToolbarController::ButtonToolbarController(
|
||||
const uno::Reference< uno::XComponentContext >& rxContext,
|
||||
uno::Reference< uno::XComponentContext > xContext,
|
||||
ToolBox* pToolBar,
|
||||
const OUString& aCommand ) :
|
||||
OUString aCommand ) :
|
||||
m_bInitialized( false ),
|
||||
m_bDisposed( false ),
|
||||
m_aCommandURL( aCommand ),
|
||||
m_xContext( rxContext ),
|
||||
m_aCommandURL(std::move( aCommand )),
|
||||
m_xContext(std::move( xContext )),
|
||||
m_pToolbar( pToolBar )
|
||||
{
|
||||
}
|
||||
|
||||
@@ -48,6 +48,7 @@
|
||||
#include <uno/current_context.hxx>
|
||||
#include <unotools/cmdoptions.hxx>
|
||||
#include <toolkit/awt/vclxmenu.hxx>
|
||||
#include <utility>
|
||||
#include <vcl/svapp.hxx>
|
||||
#include <vcl/sysdata.hxx>
|
||||
#include <vcl/menu.hxx>
|
||||
@@ -526,9 +527,8 @@ class QuietInteractionContext:
|
||||
{
|
||||
public:
|
||||
explicit QuietInteractionContext(
|
||||
css::uno::Reference< css::uno::XCurrentContext >
|
||||
const & context):
|
||||
context_(context) {}
|
||||
css::uno::Reference< css::uno::XCurrentContext > context):
|
||||
context_(std::move(context)) {}
|
||||
QuietInteractionContext(const QuietInteractionContext&) = delete;
|
||||
QuietInteractionContext& operator=(const QuietInteractionContext&) = delete;
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#include <cppuhelper/typeprovider.hxx>
|
||||
#include <cppuhelper/queryinterface.hxx>
|
||||
#include <toolkit/awt/vclxmenu.hxx>
|
||||
#include <utility>
|
||||
#include <vcl/svapp.hxx>
|
||||
|
||||
using namespace com::sun::star;
|
||||
@@ -107,11 +108,11 @@ css::uno::Sequence< css::uno::Type > SAL_CALL MenuBarWrapper::getTypes()
|
||||
}
|
||||
|
||||
MenuBarWrapper::MenuBarWrapper(
|
||||
const css::uno::Reference< css::uno::XComponentContext >& rxContext
|
||||
css::uno::Reference< css::uno::XComponentContext > xContext
|
||||
)
|
||||
: UIConfigElementWrapperBase( UIElementType::MENUBAR ),
|
||||
m_bRefreshPopupControllerCache( true ),
|
||||
m_xContext( rxContext )
|
||||
m_xContext(std::move( xContext ))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#include <toolkit/helper/vclunohelper.hxx>
|
||||
#include <tools/diagnose_ex.h>
|
||||
#include <tools/urlobj.hxx>
|
||||
#include <utility>
|
||||
#include <vcl/commandinfoprovider.hxx>
|
||||
#include <vcl/menu.hxx>
|
||||
#include <vcl/svapp.hxx>
|
||||
@@ -70,7 +71,7 @@ public:
|
||||
|
||||
protected:
|
||||
PopupMenuToolbarController( const css::uno::Reference< css::uno::XComponentContext >& rxContext,
|
||||
const OUString &rPopupCommand = OUString() );
|
||||
OUString aPopupCommand = OUString() );
|
||||
virtual void functionExecuted( const OUString &rCommand );
|
||||
virtual ToolBoxItemBits getDropDownStyle() const;
|
||||
void createPopupMenuController();
|
||||
@@ -87,11 +88,11 @@ private:
|
||||
|
||||
PopupMenuToolbarController::PopupMenuToolbarController(
|
||||
const css::uno::Reference< css::uno::XComponentContext >& xContext,
|
||||
const OUString &rPopupCommand )
|
||||
OUString aPopupCommand )
|
||||
: ToolBarBase( xContext, css::uno::Reference< css::frame::XFrame >(), /*aCommandURL*/OUString() )
|
||||
, m_bHasController( false )
|
||||
, m_bResourceURL( false )
|
||||
, m_aPopupCommand( rPopupCommand )
|
||||
, m_aPopupCommand(std::move( aPopupCommand ))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
*/
|
||||
|
||||
#include <uielement/statusbaritem.hxx>
|
||||
#include <utility>
|
||||
#include <vcl/status.hxx>
|
||||
#include <vcl/svapp.hxx>
|
||||
|
||||
@@ -61,11 +62,11 @@ sal_uInt16 impl_convertItemBitsToItemStyle( StatusBarItemBits nItemBits )
|
||||
StatusbarItem::StatusbarItem(
|
||||
StatusBar *pStatusBar,
|
||||
sal_uInt16 nId,
|
||||
const OUString& aCommand )
|
||||
OUString aCommand )
|
||||
: m_pStatusBar( pStatusBar )
|
||||
, m_nId( nId )
|
||||
, m_nStyle( 0 )
|
||||
, m_aCommand( aCommand )
|
||||
, m_aCommand(std::move( aCommand ))
|
||||
{
|
||||
if ( m_pStatusBar )
|
||||
m_nStyle = impl_convertItemBitsToItemStyle(
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
#include <svtools/statusbarcontroller.hxx>
|
||||
#include <tools/debug.hxx>
|
||||
|
||||
#include <utility>
|
||||
#include <vcl/commandevent.hxx>
|
||||
#include <vcl/event.hxx>
|
||||
#include <vcl/status.hxx>
|
||||
@@ -120,15 +121,15 @@ StatusBarItemBits impl_convertItemStyleToItemBits( sal_Int16 nStyle )
|
||||
}
|
||||
|
||||
StatusBarManager::StatusBarManager(
|
||||
const uno::Reference< uno::XComponentContext >& rxContext,
|
||||
const uno::Reference< frame::XFrame >& rFrame,
|
||||
uno::Reference< uno::XComponentContext > xContext,
|
||||
uno::Reference< frame::XFrame > rFrame,
|
||||
StatusBar* pStatusBar ) :
|
||||
m_bDisposed( false ),
|
||||
m_bFrameActionRegistered( false ),
|
||||
m_bUpdateControllers( false ),
|
||||
m_pStatusBar( pStatusBar ),
|
||||
m_xFrame( rFrame ),
|
||||
m_xContext( rxContext )
|
||||
m_xFrame(std::move( rFrame )),
|
||||
m_xContext(std::move( xContext ))
|
||||
{
|
||||
|
||||
m_xStatusbarControllerFactory = frame::theStatusbarControllerFactory::get(
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#include <toolkit/helper/vclunohelper.hxx>
|
||||
|
||||
#include <tools/solar.h>
|
||||
#include <utility>
|
||||
#include <vcl/svapp.hxx>
|
||||
|
||||
using namespace com::sun::star::uno;
|
||||
@@ -40,10 +41,10 @@ namespace framework
|
||||
{
|
||||
|
||||
StatusBarWrapper::StatusBarWrapper(
|
||||
const css::uno::Reference< css::uno::XComponentContext >& rxContext
|
||||
css::uno::Reference< css::uno::XComponentContext > xContext
|
||||
)
|
||||
: UIConfigElementWrapperBase( UIElementType::STATUSBAR ),
|
||||
m_xContext( rxContext )
|
||||
m_xContext(std::move( xContext ))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include <uielement/styletoolbarcontroller.hxx>
|
||||
|
||||
#include <tools/urlobj.hxx>
|
||||
#include <utility>
|
||||
#include <vcl/svapp.hxx>
|
||||
#include <vcl/toolbox.hxx>
|
||||
#include <sal/log.hxx>
|
||||
@@ -80,10 +81,10 @@ OUString GetDisplayFromInternalName( const css::uno::Reference< css::frame::XFra
|
||||
namespace framework {
|
||||
|
||||
StyleDispatcher::StyleDispatcher( const css::uno::Reference< css::frame::XFrame >& rFrame,
|
||||
const css::uno::Reference< css::util::XURLTransformer >& rUrlTransformer,
|
||||
css::uno::Reference< css::util::XURLTransformer > xUrlTransformer,
|
||||
const css::util::URL& rURL )
|
||||
: m_aCommand( rURL.Complete )
|
||||
, m_xUrlTransformer( rUrlTransformer )
|
||||
, m_xUrlTransformer(std::move( xUrlTransformer ))
|
||||
, m_xFrame( rFrame, css::uno::UNO_QUERY )
|
||||
{
|
||||
SAL_WARN_IF( !m_aCommand.startsWith( ".uno:StyleApply?" ), "fwk.uielement", "Wrong dispatcher!" );
|
||||
|
||||
@@ -62,6 +62,7 @@
|
||||
#include <comphelper/sequence.hxx>
|
||||
#include <svtools/miscopt.hxx>
|
||||
#include <svtools/imgdef.hxx>
|
||||
#include <utility>
|
||||
#include <vcl/event.hxx>
|
||||
#include <vcl/graph.hxx>
|
||||
#include <vcl/svapp.hxx>
|
||||
@@ -138,7 +139,7 @@ class VclToolBarManager : public ToolBarManagerImpl
|
||||
|
||||
public:
|
||||
VclToolBarManager(VclPtr<ToolBox> pToolbar)
|
||||
: m_pToolBar(pToolbar)
|
||||
: m_pToolBar(std::move(pToolbar))
|
||||
, m_bAddedToTaskPaneList(true)
|
||||
, m_pManager(nullptr)
|
||||
{}
|
||||
@@ -565,7 +566,7 @@ IMPL_LINK(WeldToolBarManager, ToggleMenuHdl, const OString&, rCommand, void)
|
||||
|
||||
ToolBarManager::ToolBarManager( const Reference< XComponentContext >& rxContext,
|
||||
const Reference< XFrame >& rFrame,
|
||||
const OUString& rResourceName,
|
||||
OUString aResourceName,
|
||||
ToolBox* pToolBar ) :
|
||||
m_bDisposed( false ),
|
||||
m_bFrameActionRegistered( false ),
|
||||
@@ -573,7 +574,7 @@ ToolBarManager::ToolBarManager( const Reference< XComponentContext >& rxContext,
|
||||
m_eSymbolSize(SvtMiscOptions().GetCurrentSymbolsSize()),
|
||||
m_pImpl( new VclToolBarManager( pToolBar ) ),
|
||||
m_pToolBar( pToolBar ),
|
||||
m_aResourceName( rResourceName ),
|
||||
m_aResourceName(std::move( aResourceName )),
|
||||
m_xFrame( rFrame ),
|
||||
m_xContext( rxContext ),
|
||||
m_aAsyncUpdateControllersTimer( "framework::ToolBarManager m_aAsyncUpdateControllersTimer" ),
|
||||
@@ -584,7 +585,7 @@ ToolBarManager::ToolBarManager( const Reference< XComponentContext >& rxContext,
|
||||
|
||||
ToolBarManager::ToolBarManager( const Reference< XComponentContext >& rxContext,
|
||||
const Reference< XFrame >& rFrame,
|
||||
const OUString& rResourceName,
|
||||
OUString aResourceName,
|
||||
weld::Toolbar* pToolBar,
|
||||
weld::Builder* pBuilder ) :
|
||||
m_bDisposed( false ),
|
||||
@@ -593,7 +594,7 @@ ToolBarManager::ToolBarManager( const Reference< XComponentContext >& rxContext,
|
||||
m_eSymbolSize( SvtMiscOptions().GetCurrentSymbolsSize() ),
|
||||
m_pImpl( new WeldToolBarManager( pToolBar, pBuilder ) ),
|
||||
m_pToolBar( nullptr ),
|
||||
m_aResourceName( rResourceName ),
|
||||
m_aResourceName(std::move( aResourceName )),
|
||||
m_xFrame( rFrame ),
|
||||
m_xContext( rxContext ),
|
||||
m_aAsyncUpdateControllersTimer( "framework::ToolBarManager m_aAsyncUpdateControllersTimer" ),
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
#include <com/sun/star/container/XContainer.hpp>
|
||||
|
||||
#include <comphelper/propertysequence.hxx>
|
||||
#include <utility>
|
||||
|
||||
// Defines
|
||||
|
||||
@@ -53,12 +54,12 @@ static OUString getHashKeyFromStrings(
|
||||
|
||||
// XInterface, XTypeProvider
|
||||
|
||||
ConfigurationAccess_ControllerFactory::ConfigurationAccess_ControllerFactory( const Reference< XComponentContext >& rxContext, const OUString& _sRoot ) :
|
||||
ConfigurationAccess_ControllerFactory::ConfigurationAccess_ControllerFactory( const Reference< XComponentContext >& rxContext, OUString _sRoot ) :
|
||||
m_aPropCommand( "Command" ),
|
||||
m_aPropModule( "Module" ),
|
||||
m_aPropController( "Controller" ),
|
||||
m_aPropValue( "Value" ),
|
||||
m_sRoot(_sRoot),
|
||||
m_sRoot(std::move(_sRoot)),
|
||||
m_bConfigAccessInitialized( false )
|
||||
{
|
||||
m_xConfigProvider = configuration::theDefaultProvider::get( rxContext );
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#include <com/sun/star/ui/XUIConfigurationManagerSupplier.hpp>
|
||||
#include <com/sun/star/uno/XComponentContext.hpp>
|
||||
|
||||
#include <utility>
|
||||
#include <vcl/svapp.hxx>
|
||||
|
||||
using namespace com::sun::star::uno;
|
||||
@@ -41,8 +42,8 @@ using namespace ::com::sun::star::ui;
|
||||
namespace framework
|
||||
{
|
||||
|
||||
MenuBarFactory::MenuBarFactory( const css::uno::Reference< css::uno::XComponentContext >& xContext )
|
||||
: m_xContext( xContext )
|
||||
MenuBarFactory::MenuBarFactory( css::uno::Reference< css::uno::XComponentContext > xContext )
|
||||
: m_xContext(std::move( xContext ))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user