summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-03-21 17:40:40 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-03-22 09:48:45 +0100
commit19997cdac6bbb046f3f7dc0b1f57c42bd05fc8c8 (patch)
tree58c8fce1fee1856c0da67de3370b1d0fd75be788 /sd
parent1a06e2cd02a28ba1ac43bc44704cead1650f1df5 (diff)
CustomAnimationBox is unused
since... commit 57ca02a7486090f1dd63977bb8fb351f9bf9a7f3 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: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/Library_sd.mk1
-rw-r--r--sd/source/ui/animations/CustomAnimationBox.cxx81
2 files changed, 0 insertions, 82 deletions
diff --git a/sd/Library_sd.mk b/sd/Library_sd.mk
index 67109b97c960..e0cff8ce0d2c 100644
--- a/sd/Library_sd.mk
+++ b/sd/Library_sd.mk
@@ -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 \
diff --git a/sd/source/ui/animations/CustomAnimationBox.cxx b/sd/source/ui/animations/CustomAnimationBox.cxx
deleted file mode 100644
index 02487e2a513d..000000000000
--- a/sd/source/ui/animations/CustomAnimationBox.cxx
+++ /dev/null
@@ -1,81 +0,0 @@
-/* -*- 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: */