Kaydet (Commit) 83111eda authored tarafından Caolán McNamara's avatar Caolán McNamara

remove now unused ToolPanelModule

Change-Id: I30c91acf28fc8c9d1815796b0a0d7924b42a06f8
Reviewed-on: https://gerrit.libreoffice.org/44767Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 0eb5a4da
......@@ -250,7 +250,6 @@ $(eval $(call gb_Library_add_exception_objects,sd,\
sd/source/ui/framework/module/ShellStackGuard \
sd/source/ui/framework/module/SlideSorterModule \
sd/source/ui/framework/module/ToolBarModule \
sd/source/ui/framework/module/ToolPanelModule \
sd/source/ui/framework/module/ViewTabBarModule \
sd/source/ui/framework/tools/FrameworkHelper \
sd/source/ui/func/bulmaper \
......
......@@ -23,7 +23,6 @@
#include "ViewTabBarModule.hxx"
#include "CenterViewFocusModule.hxx"
#include "SlideSorterModule.hxx"
#include "ToolPanelModule.hxx"
#include "ToolBarModule.hxx"
#include "ShellStackGuard.hxx"
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include "ToolPanelModule.hxx"
#include <framework/FrameworkHelper.hxx>
#include <com/sun/star/drawing/framework/XTabBar.hpp>
#include <com/sun/star/drawing/framework/TabBarButton.hpp>
#include <strings.hrc>
#include <sdresid.hxx>
#include <svtools/toolpanelopt.hxx>
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::drawing::framework;
using ::sd::framework::FrameworkHelper;
namespace sd { namespace framework {
//===== ToolPanelModule ==================================================
ToolPanelModule::ToolPanelModule (
const Reference<frame::XController>& rxController,
const OUString& rsSidebarPaneURL)
: ResourceManager(rxController,
FrameworkHelper::CreateResourceId(FrameworkHelper::msSidebarViewURL, rsSidebarPaneURL))
{
if (mxConfigurationController.is())
{
if (SvtToolPanelOptions().GetVisibleImpressView())
AddActiveMainView(FrameworkHelper::msImpressViewURL);
if (SvtToolPanelOptions().GetVisibleOutlineView())
AddActiveMainView(FrameworkHelper::msOutlineViewURL);
if (SvtToolPanelOptions().GetVisibleNotesView())
AddActiveMainView(FrameworkHelper::msNotesViewURL);
if (SvtToolPanelOptions().GetVisibleHandoutView())
AddActiveMainView(FrameworkHelper::msHandoutViewURL);
if (SvtToolPanelOptions().GetVisibleSlideSorterView())
AddActiveMainView(FrameworkHelper::msSlideSorterURL);
mxConfigurationController->addConfigurationChangeListener(
this,
FrameworkHelper::msResourceActivationEvent,
Any());
}
}
ToolPanelModule::~ToolPanelModule()
{
}
void ToolPanelModule::SaveResourceState()
{
SvtToolPanelOptions().SetVisibleImpressView(IsResourceActive(FrameworkHelper::msImpressViewURL));
SvtToolPanelOptions().SetVisibleOutlineView(IsResourceActive(FrameworkHelper::msOutlineViewURL));
SvtToolPanelOptions().SetVisibleNotesView(IsResourceActive(FrameworkHelper::msNotesViewURL));
SvtToolPanelOptions().SetVisibleHandoutView(IsResourceActive(FrameworkHelper::msHandoutViewURL));
SvtToolPanelOptions().SetVisibleSlideSorterView(IsResourceActive(FrameworkHelper::msSlideSorterURL));
}
void SAL_CALL ToolPanelModule::notifyConfigurationChange (
const ConfigurationChangeEvent& rEvent)
{
if (rEvent.Type != FrameworkHelper::msResourceActivationEvent)
ResourceManager::notifyConfigurationChange(rEvent);
}
} } // end of namespace sd::framework
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_SD_SOURCE_UI_FRAMEWORK_MODULE_TOOLPANELMODULE_HXX
#define INCLUDED_SD_SOURCE_UI_FRAMEWORK_MODULE_TOOLPANELMODULE_HXX
#include "ResourceManager.hxx"
#include <com/sun/star/drawing/framework/XControllerManager.hpp>
#include <com/sun/star/drawing/framework/XTabBar.hpp>
namespace sd { namespace framework {
/** This module is responsible for showing the toolpanel bar.
*/
class ToolPanelModule
: public ResourceManager
{
public:
ToolPanelModule (
const css::uno::Reference<css::frame::XController>& rxController,
const OUString& rsRightPaneURL);
virtual ~ToolPanelModule() override;
virtual void SaveResourceState() override;
// XConfigurationChangeListener
virtual void SAL_CALL notifyConfigurationChange (
const css::drawing::framework::ConfigurationChangeEvent& rEvent) override;
};
} } // end of namespace sd::framework
#endif
/* 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