Kaydet (Commit) 19997cda authored tarafından Caolán McNamara's avatar Caolán McNamara

CustomAnimationBox is unused

since...

commit 57ca02a7
Date:   Wed Apr 18 00:04:09 2018 +0200

    NB Impress tabbed toolbar big update

    Reviewed-on: https://gerrit.libreoffice.org/53072

Change-Id: I45f099d2521db576089e8d555f7ccc8fef6d49bc
Reviewed-on: https://gerrit.libreoffice.org/69535
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 1a06e2cd
......@@ -489,9 +489,6 @@
<glade-widget-class title="Table Design Control" name="sdlo-TableDesignBox"
generic-name="TableDesignBox" parent="GtkImage"
icon-name="widget-gtk-image"/>
<glade-widget-class title="Animation" name="sdlo-CustomAnimationBox"
generic-name="CustomAnimationBox" parent="GtkImage"
icon-name="widget-gtk-image"/>
<glade-widget-class title="Box which can move own content to the popup" name="sfxlo-DropdownBox"
generic-name="DropdownBox" parent="GtkBox"
icon-name="widget-gtk-box"/>
......
......@@ -182,7 +182,6 @@ $(eval $(call gb_Library_add_exception_objects,sd,\
sd/source/ui/accessibility/AccessibleViewForwarder \
sd/source/ui/accessibility/SdShapeTypes \
sd/source/ui/animations/CategoryListBox \
sd/source/ui/animations/CustomAnimationBox \
sd/source/ui/animations/CustomAnimationDialog \
sd/source/ui/animations/CustomAnimationList \
sd/source/ui/animations/CustomAnimationPane \
......
/* -*- 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 <ViewShellBase.hxx>
#include <sfx2/viewfrm.hxx>
#include "CustomAnimationPane.hxx"
#include <vcl/builderfactory.hxx>
#include <vcl/layout.hxx>
namespace sd
{
class CustomAnimationBox : public VclVBox
{
VclPtr<CustomAnimationPane> m_pPane;
bool m_bIsInitialized;
public:
explicit CustomAnimationBox(vcl::Window* pParent);
~CustomAnimationBox() override;
virtual void dispose() override;
virtual void StateChanged(StateChangedType nStateChange) override;
};
VCL_BUILDER_FACTORY(CustomAnimationBox);
CustomAnimationBox::CustomAnimationBox(vcl::Window* pParent)
: VclVBox(pParent)
, m_bIsInitialized(false)
{
}
CustomAnimationBox::~CustomAnimationBox()
{
disposeOnce();
}
void CustomAnimationBox::dispose()
{
m_pPane.disposeAndClear();
VclVBox::dispose();
}
void CustomAnimationBox::StateChanged(StateChangedType nStateChange)
{
if(SfxViewFrame::Current() && !m_bIsInitialized)
{
ViewShellBase* pBase = ViewShellBase::GetViewShellBase(SfxViewFrame::Current());
if(pBase && pBase->GetDocShell())
{
css::uno::Reference<css::frame::XFrame> xFrame;
m_pPane = VclPtr<CustomAnimationPane>::Create(this, *pBase, xFrame, true);
m_pPane->Show();
m_pPane->SetSizePixel(GetSizePixel());
m_bIsInitialized = true;
}
}
VclVBox::StateChanged(nStateChange);
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -11868,7 +11868,6 @@ sd/source/ui/accessibility/AccessibleViewForwarder.cxx
sd/source/ui/accessibility/SdShapeTypes.cxx
sd/source/ui/animations/CategoryListBox.cxx
sd/source/ui/animations/CategoryListBox.hxx
sd/source/ui/animations/CustomAnimationBox.cxx
sd/source/ui/animations/CustomAnimationDialog.cxx
sd/source/ui/animations/CustomAnimationDialog.hxx
sd/source/ui/animations/CustomAnimationList.cxx
......
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