Kaydet (Commit) 680608b1 authored tarafından Ariel Constenla-Haile's avatar Ariel Constenla-Haile Kaydeden (comit) Caolán McNamara

Related: #i121513# Remove deprecated UnoControlThrobberModel

(cherry picked from commit 5569d97f)

Conflicts:
	icon-themes/human/toolkit/source/awt/spinner03-grey_01.png
	icon-themes/human/toolkit/source/awt/spinner03-grey_02.png
	icon-themes/human/toolkit/source/awt/spinner03-grey_03.png
	icon-themes/human/toolkit/source/awt/spinner03-grey_04.png
	icon-themes/human/toolkit/source/awt/spinner03-grey_05.png
	icon-themes/human/toolkit/source/awt/spinner03-grey_06.png
	icon-themes/human/toolkit/source/awt/spinner03-grey_07.png
	icon-themes/human/toolkit/source/awt/spinner03-grey_08.png
	icon-themes/human/toolkit/source/awt/spinner03-grey_09.png
	icon-themes/human/toolkit/source/awt/spinner03-grey_10.png
	icon-themes/human/toolkit/source/awt/spinner03-grey_11.png
	icon-themes/human/toolkit/source/awt/spinner03-grey_12.png
	offapi/com/sun/star/awt/UnoControlThrobber.idl
	offapi/com/sun/star/awt/UnoControlThrobberModel.idl
	offapi/com/sun/star/awt/XThrobber.idl
	offapi/com/sun/star/awt/makefile.mk
	offapi/type_reference/typelibrary_history.txt
	offapi/type_reference/types.rdb
	rat-excludes
	swext/mediawiki/help/component.txt
	swext/mediawiki/src/com/sun/star/wiki/WikiDialog.java
	swext/mediawiki/src/com/sun/star/wiki/WikiEditSettingDialog.java
	swext/mediawiki/src/com/sun/star/wiki/WikiPropDialog.java
	swext/mediawiki/src/description.xml
	toolkit/AllLangResTarget_tk.mk
	toolkit/inc/toolkit/helper/servicenames.hxx
	toolkit/source/awt/vclxtoolkit.cxx
	toolkit/source/awt/xthrobber.cxx
	toolkit/source/awt/xthrobber.hrc
	toolkit/source/awt/xthrobber.src
	toolkit/source/controls/tkthrobber.cxx
	toolkit/source/helper/registerservices.cxx
	toolkit/source/helper/servicenames.cxx
	toolkit/src2xml/src.lst
	toolkit/util/toolkit.xml

Change-Id: Ic415a96fe6ba7040a3b03fd562f997d2df1516d6
üst 38ca96be
......@@ -99,8 +99,6 @@ extern const sal_Char szServiceName_SortableGridDataModel[];
extern const sal_Char szServiceName_UnoSimpleAnimationControl[], szServiceName2_UnoSimpleAnimationControl[];
extern const sal_Char szServiceName_UnoSimpleAnimationControlModel[], szServiceName2_UnoSimpleAnimationControlModel[];
extern const sal_Char szServiceName_UnoThrobberControl[], szServiceName2_UnoThrobberControl[];
extern const sal_Char szServiceName_UnoThrobberControlModel[], szServiceName2_UnoThrobberControlModel[];
extern const sal_Char szServiceName_AnimatedImagesControl[];
extern const sal_Char szServiceName_AnimatedImagesControlModel[];
extern const sal_Char szServiceName_SpinningProgressControlModel[];
......
......@@ -577,8 +577,6 @@ $(eval $(call gb_UnoApi_add_idlfiles_noheader,offapi,offapi/com/sun/star/awt,\
UnoControlSimpleAnimationModel \
UnoControlSpinButton \
UnoControlSpinButtonModel \
UnoControlThrobber \
UnoControlThrobberModel \
UnoControlTimeField \
UnoControlTimeFieldModel \
))
......@@ -1874,7 +1872,6 @@ $(eval $(call gb_UnoApi_add_idlfiles,offapi,offapi/com/sun/star/awt,\
XTextEditField \
XTextLayoutConstrains \
XTextListener \
XThrobber \
XTimeField \
XToggleButton \
XToolkit \
......
/* -*- 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 __com_sun_star_awt_UnoControlThrobber_idl__
#define __com_sun_star_awt_UnoControlThrobber_idl__
#include <com/sun/star/awt/UnoControl.idl>
#include <com/sun/star/awt/XThrobber.idl>
module com { module sun { module star { module awt {
/**
@since OOo 2.2
@deprecated
You should use AnimatedImagesControl and SpinningProgressControlModel
*/
published service UnoControlThrobber
{
service com::sun::star::awt::UnoControl;
interface com::sun::star::awt::XThrobber;
};
}; }; }; };
#endif
/* 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 __com_sun_star_awt_UnoControlThrobberModel_idl__
#define __com_sun_star_awt_UnoControlThrobberModel_idl__
#include <com/sun/star/awt/UnoControlModel.idl>
module com { module sun { module star { module awt {
/**
@since OOo 2.2
@deprecated
You should use SpinningProgressControlModel.
*/
published service UnoControlThrobberModel
{
service com::sun::star::awt::UnoControlModel;
};
}; }; }; };
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -95,7 +95,6 @@ published struct WindowDescriptor
<li>simpleanimation</li>
<li>spinbutton</li>
<li>spinfield</li>
<li>throbber</li>
<li>splitter</li>
<li>splitwindow</li>
<li>statusbar</li>
......
/* -*- 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 __com_sun_star_awt_XThrobber_idl__
#define __com_sun_star_awt_XThrobber_idl__
#include <com/sun/star/uno/XInterface.idl>
#include <com/sun/star/graphic/XGraphic.idl>
module com { module sun { module star { module awt {
/**
@deprecated
You should use XAnimation, AnimatedImagesControl, and SpinningProgressControlModel.
*/
published interface XThrobber: com::sun::star::uno::XInterface
{
void start();
void stop();
};
}; }; }; };
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
"UnoThrobberControl";"com::sun::star::awt::XView";"setGraphics()"
"UnoThrobberControl";"com::sun::star::awt::XView";"getGraphics()"
"UnoThrobberControl";"com::sun::star::awt::XView";"getSize()"
"UnoThrobberControl";"com::sun::star::awt::XView";"draw()"
"UnoThrobberControl";"com::sun::star::awt::XView";"setZoom()"
"UnoThrobberControl";"com::sun::star::lang::XComponent";"dispose()"
"UnoThrobberControl";"com::sun::star::lang::XComponent";"addEventListener()"
"UnoThrobberControl";"com::sun::star::lang::XComponent";"removeEventListener()"
"UnoThrobberControl";"com::sun::star::awt::XControl";"setContext()"
"UnoThrobberControl";"com::sun::star::awt::XControl";"getContext()"
"UnoThrobberControl";"com::sun::star::awt::XControl";"createPeer()"
"UnoThrobberControl";"com::sun::star::awt::XControl";"getPeer()"
"UnoThrobberControl";"com::sun::star::awt::XControl";"setModel()"
"UnoThrobberControl";"com::sun::star::awt::XControl";"getModel()"
"UnoThrobberControl";"com::sun::star::awt::XControl";"getView()"
"UnoThrobberControl";"com::sun::star::awt::XControl";"setDesignMode()"
"UnoThrobberControl";"com::sun::star::awt::XControl";"isDesignMode()"
"UnoThrobberControl";"com::sun::star::awt::XControl";"isTransparent()"
"UnoThrobberControl";"com::sun::star::accessibility::XAccessible#optional";"getAccessibleContext()"
"UnoThrobberControl";"com::sun::star::awt::XWindow";"setPosSize()"
"UnoThrobberControl";"com::sun::star::awt::XWindow";"getPosSize()"
"UnoThrobberControl";"com::sun::star::awt::XWindow";"setVisible()"
"UnoThrobberControl";"com::sun::star::awt::XWindow";"setEnable()"
"UnoThrobberControl";"com::sun::star::awt::XWindow";"setFocus()"
"UnoThrobberControl";"com::sun::star::awt::XWindow";"addWindowListener()"
"UnoThrobberControl";"com::sun::star::awt::XWindow";"removeWindowListener()"
"UnoThrobberControl";"com::sun::star::awt::XWindow";"addFocusListener()"
"UnoThrobberControl";"com::sun::star::awt::XWindow";"removeFocusListener()"
"UnoThrobberControl";"com::sun::star::awt::XWindow";"addKeyListener()"
"UnoThrobberControl";"com::sun::star::awt::XWindow";"removeKeyListener()"
"UnoThrobberControl";"com::sun::star::awt::XWindow";"addMouseListener()"
"UnoThrobberControl";"com::sun::star::awt::XWindow";"removeMouseListener()"
"UnoThrobberControl";"com::sun::star::awt::XWindow";"addMouseMotionListener()"
"UnoThrobberControl";"com::sun::star::awt::XWindow";"removeMouseMotionListener()"
"UnoThrobberControl";"com::sun::star::awt::XWindow";"addPaintListener()"
"UnoThrobberControl";"com::sun::star::awt::XWindow";"removePaintListener()"
"UnoThrobberControlModel";"com::sun::star::awt::UnoControlModel";"DefaultControl"
"UnoThrobberControlModel";"com::sun::star::util::XCloneable";"createClone()"
"UnoThrobberControlModel";"com::sun::star::awt::UnoControlDialogElement#optional";"Height"
"UnoThrobberControlModel";"com::sun::star::awt::UnoControlDialogElement#optional";"Name"
"UnoThrobberControlModel";"com::sun::star::awt::UnoControlDialogElement#optional";"PositionX"
"UnoThrobberControlModel";"com::sun::star::awt::UnoControlDialogElement#optional";"PositionY"
"UnoThrobberControlModel";"com::sun::star::awt::UnoControlDialogElement#optional";"Step"
"UnoThrobberControlModel";"com::sun::star::awt::UnoControlDialogElement#optional";"TabIndex"
"UnoThrobberControlModel";"com::sun::star::awt::UnoControlDialogElement#optional";"Tag"
"UnoThrobberControlModel";"com::sun::star::awt::UnoControlDialogElement#optional";"Width"
"UnoThrobberControlModel";"com::sun::star::lang::XComponent";"dispose()"
"UnoThrobberControlModel";"com::sun::star::lang::XComponent";"addEventListener()"
"UnoThrobberControlModel";"com::sun::star::lang::XComponent";"removeEventListener()"
"UnoThrobberControlModel";"com::sun::star::beans::XMultiPropertySet";"getPropertySetInfo()"
"UnoThrobberControlModel";"com::sun::star::beans::XMultiPropertySet";"setPropertyValues()"
"UnoThrobberControlModel";"com::sun::star::beans::XMultiPropertySet";"getPropertyValues()"
"UnoThrobberControlModel";"com::sun::star::beans::XMultiPropertySet";"addPropertiesChangeListener()"
"UnoThrobberControlModel";"com::sun::star::beans::XMultiPropertySet";"removePropertiesChangeListener()"
"UnoThrobberControlModel";"com::sun::star::beans::XMultiPropertySet";"firePropertiesChangeEvent()"
"UnoThrobberControlModel";"com::sun::star::io::XPersistObject";"getServiceName()"
"UnoThrobberControlModel";"com::sun::star::io::XPersistObject";"write()"
"UnoThrobberControlModel";"com::sun::star::io::XPersistObject";"read()"
"UnoThrobberControlModel";"com::sun::star::beans::XPropertySet";"getPropertySetInfo()"
"UnoThrobberControlModel";"com::sun::star::beans::XPropertySet";"setPropertyValue()"
"UnoThrobberControlModel";"com::sun::star::beans::XPropertySet";"getPropertyValue()"
"UnoThrobberControlModel";"com::sun::star::beans::XPropertySet";"addPropertyChangeListener()"
"UnoThrobberControlModel";"com::sun::star::beans::XPropertySet";"removePropertyChangeListener()"
"UnoThrobberControlModel";"com::sun::star::beans::XPropertySet";"addVetoableChangeListener()"
"UnoThrobberControlModel";"com::sun::star::beans::XPropertySet";"removeVetoableChangeListener()"
......@@ -89,7 +89,7 @@ STD_RES_FILE( gid_File_Res_Cui, cui )
STD_RES_FILE( gid_File_Res_Sw, sw )
STD_RES_FILE( gid_File_Res_Tk, tk )
STD_RES_FILE( gid_File_Res_Acc, acc )
STD_RES_FILE( gid_File_Res_Tpl, tpl )
......
......@@ -24,7 +24,7 @@ import com.sun.star.awt.XControlModel;
import com.sun.star.awt.XDialog;
import com.sun.star.awt.XDialogEventHandler;
import com.sun.star.awt.XDialogProvider2;
import com.sun.star.awt.XThrobber;
import com.sun.star.awt.XAnimation;
import com.sun.star.beans.XPropertySet;
import com.sun.star.lang.XMultiComponentFactory;
import com.sun.star.uno.UnoRuntime;
......@@ -204,7 +204,7 @@ public class WikiDialog implements XDialogEventHandler, XTopWindowListener
XMultiServiceFactory xDialogFactory = UnoRuntime.queryInterface( XMultiServiceFactory.class, xDialogModel );
if ( xDialogFactory != null )
{
XControlModel xThrobberModel = UnoRuntime.queryInterface( XControlModel.class, xDialogFactory.createInstance( "com.sun.star.awt.UnoThrobberControlModel" ) );
XControlModel xThrobberModel = UnoRuntime.queryInterface( XControlModel.class, xDialogFactory.createInstance( "com.sun.star.awt.SpinningProgressControlModel" ) );
XPropertySet xThrobberProps = UnoRuntime.queryInterface( XPropertySet.class, xThrobberModel );
if ( xThrobberProps != null )
{
......@@ -233,13 +233,13 @@ public class WikiDialog implements XDialogEventHandler, XTopWindowListener
{
try
{
XThrobber xThrobber = UnoRuntime.queryInterface( XThrobber.class, m_xControlContainer.getControl( "WikiThrobber" ) );
XAnimation xThrobber = UnoRuntime.queryInterface( XAnimation.class, m_xControlContainer.getControl( "WikiThrobber" ) );
if ( xThrobber != null )
{
if ( bActive )
xThrobber.start();
xThrobber.startAnimation();
else
xThrobber.stop();
xThrobber.stopAnimation();
}
}
catch( Exception e )
......
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# 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 .
#
$(eval $(call gb_AllLangResTarget_AllLangResTarget,tk))
$(eval $(call gb_AllLangResTarget_set_reslocation,tk,toolkit))
$(eval $(call gb_AllLangResTarget_add_srs,tk,\
toolkit/awt \
))
$(eval $(call gb_SrsTarget_SrsTarget,toolkit/awt))
$(eval $(call gb_SrsTarget_set_include,toolkit/awt,\
$$(INCLUDE) \
-I$(SRCDIR)/toolkit/source/awt \
))
$(eval $(call gb_SrsTarget_add_nonlocalized_files,toolkit/awt,\
toolkit/source/awt/xthrobber.src \
))
# vim: set noet sw=4 ts=4:
......@@ -70,7 +70,6 @@ $(eval $(call gb_Library_add_exception_objects,tk,\
toolkit/source/awt/vclxwindow1 \
toolkit/source/awt/vclxwindows \
toolkit/source/awt/xsimpleanimation \
toolkit/source/awt/xthrobber \
toolkit/source/controls/accessiblecontrolcontext \
toolkit/source/controls/controlmodelcontainerbase \
toolkit/source/controls/dialogcontrol \
......@@ -92,7 +91,6 @@ $(eval $(call gb_Library_add_exception_objects,tk,\
toolkit/source/controls/tkscrollbar \
toolkit/source/controls/tksimpleanimation \
toolkit/source/controls/tkspinbutton \
toolkit/source/controls/tkthrobber \
toolkit/source/controls/animatedimages \
toolkit/source/controls/spinningprogress \
toolkit/source/controls/tree/treecontrol \
......
......@@ -20,7 +20,6 @@
$(eval $(call gb_Module_Module,toolkit))
$(eval $(call gb_Module_add_targets,toolkit,\
AllLangResTarget_tk \
Library_tk \
))
......
......@@ -128,14 +128,6 @@ toolkit.UnoSimpleAnimationControl
toolkit.UnoSimpleAnimationControlModel
# -> disabled in toolkit.sce
### i86022 ###
toolkit.UnoThrobberControl
# -> disabled in toolkit.sce
### i86023 ###
toolkit.UnoThrobberControlModel
# -> disabled in toolkit.sce
### i86298 ###
toolkit.UnoTreeControl
# -> disabled in toolkit.sce
......@@ -159,7 +151,6 @@ toolkit.UnoControlListBox::com::sun::star::awt::XView
toolkit.UnoControlEdit::com::sun::star::awt::XView
toolkit.UnoControlImageControl::com::sun::star::awt::XView
toolkit.UnoControlDialog::com::sun::star::awt::XView
toolkit.UnoThrobberControl::com::sun::star::awt::XView
toolkit.UnoControlFileControl::com::sun::star::awt::XView
toolkit.UnoControlCurrencyField::com::sun::star::awt::XView
toolkit.UnoSimpleAnimationControl::com::sun::star::awt::XView
......@@ -195,7 +186,6 @@ toolkit.UnoControlContainer::com::sun::star::lang::XComponent
toolkit.UnoControlFixedText::com::sun::star::lang::XComponent
toolkit.UnoControlListBox::com::sun::star::lang::XComponent
toolkit.UnoControlCheckBoxModel::com::sun::star::lang::XComponent
toolkit.UnoThrobberControlModel::com::sun::star::lang::XComponent
toolkit.UnoControlEditModel::com::sun::star::lang::XComponent
toolkit.UnoControlEdit::com::sun::star::lang::XComponent
toolkit.UnoControlImageControl::com::sun::star::lang::XComponent
......@@ -204,7 +194,6 @@ toolkit.UnoControlGroupBoxModel::com::sun::star::lang::XComponent
toolkit.UnoControlImageControlModel::com::sun::star::lang::XComponent
toolkit.UnoControlNumericFieldModel::com::sun::star::lang::XComponent
toolkit.UnoSimpleAnimationControlModel::com::sun::star::lang::XComponent
toolkit.UnoThrobberControl::com::sun::star::lang::XComponent
toolkit.UnoControlFileControl::com::sun::star::lang::XComponent
toolkit.UnoControlCurrencyField::com::sun::star::lang::XComponent
toolkit.UnoControlComboBoxModel::com::sun::star::lang::XComponent
......
......@@ -89,7 +89,5 @@
#i86021 -o toolkit.UnoSimpleAnimationControlModel
-o toolkit.UnoSpinButtonControl
-o toolkit.UnoSpinButtonControlModel
#i86022 -o toolkit.UnoThrobberControl
#i86023 -o toolkit.UnoThrobberControlModel
#i86298 -o toolkit.UnoTreeControl
-o toolkit.UnoTreeModel
......@@ -69,7 +69,6 @@ using org::libreoffice::touch::ByteBufferWrapper;
#include <toolkit/awt/vclxtabpagemodel.hxx>
#include <toolkit/awt/xsimpleanimation.hxx>
#include <toolkit/awt/xthrobber.hxx>
#include <toolkit/awt/animatedimagespeer.hxx>
#include <toolkit/awt/vclxtopwindow.hxx>
#include <toolkit/awt/vclxwindow.hxx>
......@@ -312,7 +311,6 @@ static ComponentInfo aComponentInfos [] =
{ "animatedimages", WINDOW_CONTROL },
{ "spinbutton", WINDOW_SPINBUTTON },
{ "spinfield", WINDOW_SPINFIELD },
{ "throbber", WINDOW_CONTROL },
{ "splitter", WINDOW_SPLITTER },
{ "splitwindow", WINDOW_SPLITWINDOW },
{ "statusbar", WINDOW_STATUSBAR },
......@@ -982,13 +980,6 @@ Window* VCLXToolkit::ImplCreateWindow( VCLXWindow** ppNewComp,
// (compatibility)
*ppNewComp = new ::toolkit::XSimpleAnimation;
}
else if ( aServiceName.EqualsAscii( "throbber" ) )
{
pNewWindow = new Throbber( pParent, nWinBits, Throbber::IMAGES_NONE );
((Throbber*)pNewWindow)->SetScaleMode( css::awt::ImageScaleMode::ANISOTROPIC );
// (compatibility)
*ppNewComp = new ::toolkit::XThrobber;
}
else if ( rDescriptor.WindowServiceName.equalsIgnoreAsciiCase(
"tabpagecontainer" ) )
{
......
/* -*- 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 "toolkit/awt/xthrobber.hxx"
#include "toolkit/helper/property.hxx"
#include <toolkit/helper/tkresmgr.hxx>
#include "xthrobber.hrc"
#include <tools/debug.hxx>
#include <vcl/fixed.hxx>
#include <vcl/timer.hxx>
#include <vcl/svapp.hxx>
#include <vcl/throbber.hxx>
//........................................................................
namespace toolkit
{
//........................................................................
using namespace ::com::sun::star;
//====================================================================
//= XThrobber
//====================================================================
DBG_NAME( XThrobber )
//--------------------------------------------------------------------
XThrobber::XThrobber()
{
DBG_CTOR( XThrobber, NULL );
}
//--------------------------------------------------------------------
XThrobber::~XThrobber()
{
DBG_DTOR( XThrobber, NULL );
}
//--------------------------------------------------------------------
void SAL_CALL XThrobber::start() throw ( uno::RuntimeException )
{
SolarMutexGuard aGuard;
Throbber* pThrobber( dynamic_cast< Throbber* >( GetWindow() ) );
if ( pThrobber != NULL)
pThrobber->start();
}
//--------------------------------------------------------------------
void SAL_CALL XThrobber::stop() throw ( uno::RuntimeException )
{
SolarMutexGuard aGuard;
Throbber* pThrobber( dynamic_cast< Throbber* >( GetWindow() ) );
if ( pThrobber != NULL)
pThrobber->stop();
}
//--------------------------------------------------------------------
void XThrobber::SetWindow( Window* pWindow )
{
XThrobber_Base::SetWindow( pWindow );
InitImageList();
}
//--------------------------------------------------------------------
void SAL_CALL XThrobber::InitImageList()
throw( uno::RuntimeException )
{
SolarMutexGuard aGuard;
Throbber* pThrobber( dynamic_cast< Throbber* >( GetWindow() ) );
if ( pThrobber == NULL)
return;
uno::Sequence< uno::Reference< graphic::XGraphic > > aImageList(12);
sal_uInt16 nIconIdStart = RID_TK_ICON_THROBBER_START;
for ( sal_uInt16 i=0; i<12; i++ )
{
Image aImage = TK_RES_IMAGE( nIconIdStart + i );
aImageList[i] = aImage.GetXGraphic();
}
pThrobber->setImageList( aImageList );
}
//........................................................................
} // namespace toolkit
//........................................................................
/* 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 _TOOLKIT_AWT_XTHROBBER_HRC_
#define _TOOLKIT_AWT_XTHROBBER_HRC_
#define RID_TK_ICON_THROBBER_START 1000
#endif // _TOOLKIT_AWT_XTHROBBER_HRC_
/* 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 .
*/
#include <xthrobber.hrc>
#define STD_MASK_COLOR MaskColor = Color { Red = 0xFFFF; Green = 0x0000; Blue = 0xFFFF; };
Image RID_TK_ICON_THROBBER_START
{
ImageBitmap = Bitmap{ file = "spinner03-grey_01.png"; };
STD_MASK_COLOR
};
Image RID_TK_ICON_THROBBER_START + 1
{
ImageBitmap = Bitmap{ file = "spinner03-grey_02.png"; };
STD_MASK_COLOR
};
Image RID_TK_ICON_THROBBER_START + 2
{
ImageBitmap = Bitmap{ file = "spinner03-grey_03.png"; };
STD_MASK_COLOR
};
Image RID_TK_ICON_THROBBER_START + 3
{
ImageBitmap = Bitmap{ file = "spinner03-grey_04.png"; };
STD_MASK_COLOR
};
Image RID_TK_ICON_THROBBER_START + 4
{
ImageBitmap = Bitmap{ file = "spinner03-grey_05.png"; };
STD_MASK_COLOR
};
Image RID_TK_ICON_THROBBER_START + 5
{
ImageBitmap = Bitmap{ file = "spinner03-grey_06.png"; };
STD_MASK_COLOR
};
Image RID_TK_ICON_THROBBER_START + 6
{
ImageBitmap = Bitmap{ file = "spinner03-grey_07.png"; };
STD_MASK_COLOR
};
Image RID_TK_ICON_THROBBER_START + 7
{
ImageBitmap = Bitmap{ file = "spinner03-grey_08.png"; };
STD_MASK_COLOR
};
Image RID_TK_ICON_THROBBER_START + 8
{
ImageBitmap = Bitmap{ file = "spinner03-grey_09.png"; };
STD_MASK_COLOR
};
Image RID_TK_ICON_THROBBER_START + 9
{
ImageBitmap = Bitmap{ file = "spinner03-grey_10.png"; };
STD_MASK_COLOR
};
Image RID_TK_ICON_THROBBER_START + 10
{
ImageBitmap = Bitmap{ file = "spinner03-grey_11.png"; };
STD_MASK_COLOR
};
Image RID_TK_ICON_THROBBER_START + 11
{
ImageBitmap = Bitmap{ file = "spinner03-grey_12.png"; };
STD_MASK_COLOR
};
/* 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 .
*/
#include "toolkit/controls/tkthrobber.hxx"
#include "toolkit/helper/property.hxx"
#include "toolkit/helper/unopropertyarrayhelper.hxx"
#include <cppuhelper/typeprovider.hxx>
//........................................................................
namespace toolkit
{
//........................................................................
using namespace ::com::sun::star;
//====================================================================
//= UnoThrobberControlModel
//====================================================================
//--------------------------------------------------------------------
UnoThrobberControlModel::UnoThrobberControlModel( const uno::Reference< uno::XComponentContext >& i_factory )
:UnoControlModel( i_factory )
{
ImplRegisterProperty( BASEPROPERTY_BORDER );
ImplRegisterProperty( BASEPROPERTY_BORDERCOLOR );
ImplRegisterProperty( BASEPROPERTY_BACKGROUNDCOLOR );
ImplRegisterProperty( BASEPROPERTY_DEFAULTCONTROL );
ImplRegisterProperty( BASEPROPERTY_ENABLEVISIBLE );
ImplRegisterProperty( BASEPROPERTY_HELPTEXT );
ImplRegisterProperty( BASEPROPERTY_HELPURL );
}
//--------------------------------------------------------------------
OUString UnoThrobberControlModel::getServiceName( ) throw ( uno::RuntimeException )
{
return OUString::createFromAscii( szServiceName_UnoThrobberControlModel );
}
//--------------------------------------------------------------------
uno::Any UnoThrobberControlModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const
{
switch ( nPropId )
{
case BASEPROPERTY_DEFAULTCONTROL:
return uno::makeAny( OUString::createFromAscii( szServiceName_UnoThrobberControl ) );
case BASEPROPERTY_BORDER:
return uno::makeAny( (sal_Int16) 0 );
default:
return UnoControlModel::ImplGetDefaultValue( nPropId );
}
}
//--------------------------------------------------------------------
::cppu::IPropertyArrayHelper& UnoThrobberControlModel::getInfoHelper()
{
static UnoPropertyArrayHelper* pHelper = NULL;
if ( !pHelper )
{
uno::Sequence< sal_Int32 > aIDs = ImplGetPropertyIds();
pHelper = new UnoPropertyArrayHelper( aIDs );
}
return *pHelper;
}
//--------------------------------------------------------------------
uno::Reference< beans::XPropertySetInfo > UnoThrobberControlModel::getPropertySetInfo()
throw( uno::RuntimeException )
{
static uno::Reference< beans::XPropertySetInfo > xInfo( createPropertySetInfo( getInfoHelper() ) );
return xInfo;
}
//--------------------------------------------------------------------
OUString SAL_CALL UnoThrobberControlModel::getImplementationName()
throw( uno::RuntimeException )
{
return OUString( "com.sun.star.comp.toolkit.UnoThrobberControlModel" );
}
//--------------------------------------------------------------------
uno::Sequence< OUString > SAL_CALL UnoThrobberControlModel::getSupportedServiceNames()
throw( uno::RuntimeException )
{
uno::Sequence< OUString > aServices( UnoControlModel::getSupportedServiceNames() );
aServices.realloc( aServices.getLength() + 2 );
aServices[sal::static_int_cast<sal_uInt32>(aServices.getLength()) - 2] =
OUString::createFromAscii(szServiceName_UnoThrobberControlModel);
aServices[sal::static_int_cast<sal_uInt32>(aServices.getLength()) - 1] =
OUString::createFromAscii(szServiceName2_UnoThrobberControlModel);
return aServices;
}
//====================================================================
//= UnoThrobberControl
//====================================================================
//--------------------------------------------------------------------
UnoThrobberControl::UnoThrobberControl()
:UnoControlBase()
{
}
//--------------------------------------------------------------------
OUString UnoThrobberControl::GetComponentServiceName()
{
return OUString("Throbber");
}
//--------------------------------------------------------------------
uno::Any UnoThrobberControl::queryAggregation( const uno::Type & rType ) throw( uno::RuntimeException )
{
uno::Any aRet = UnoControlBase::queryAggregation( rType );
if ( !aRet.hasValue() )
aRet = UnoThrobberControl_Base::queryInterface( rType );
return aRet;
}
//--------------------------------------------------------------------
IMPLEMENT_FORWARD_XTYPEPROVIDER2( UnoThrobberControl, UnoControlBase, UnoThrobberControl_Base )
//--------------------------------------------------------------------
void UnoThrobberControl::dispose() throw( uno::RuntimeException )
{
::osl::ClearableMutexGuard aGuard( GetMutex() );
UnoControl::dispose();
}
//--------------------------------------------------------------------
OUString SAL_CALL UnoThrobberControl::getImplementationName()
throw( uno::RuntimeException )
{
return OUString( "com.sun.star.comp.toolkit.UnoThrobberControl" );
}
//--------------------------------------------------------------------
uno::Sequence< OUString > SAL_CALL UnoThrobberControl::getSupportedServiceNames()
throw( uno::RuntimeException )
{
uno::Sequence< OUString > aServices( UnoControlBase::getSupportedServiceNames() );
aServices.realloc( aServices.getLength() + 2 );
aServices[sal::static_int_cast<sal_uInt32>(aServices.getLength()) - 2] =
OUString::createFromAscii(szServiceName_UnoThrobberControl);
aServices[sal::static_int_cast<sal_uInt32>(aServices.getLength()) - 1] =
OUString::createFromAscii(szServiceName2_UnoThrobberControl);
return aServices;
}
//--------------------------------------------------------------------
void UnoThrobberControl::createPeer( const uno::Reference< awt::XToolkit > & rxToolkit,
const uno::Reference< awt::XWindowPeer > & rParentPeer )
throw( uno::RuntimeException )
{
UnoControl::createPeer( rxToolkit, rParentPeer );
}
//--------------------------------------------------------------------
void SAL_CALL UnoThrobberControl::start() throw ( uno::RuntimeException )
{
::osl::MutexGuard aGuard( GetMutex() );
uno::Reference< XThrobber > xAnimation( getPeer(), uno::UNO_QUERY );
if ( xAnimation.is() )
xAnimation->start();
}
//--------------------------------------------------------------------
void SAL_CALL UnoThrobberControl::stop() throw ( uno::RuntimeException )
{
::osl::MutexGuard aGuard( GetMutex() );
uno::Reference< XThrobber > xAnimation( getPeer(), uno::UNO_QUERY );
if ( xAnimation.is() )
xAnimation->stop();
}
//........................................................................
} // namespace toolkit
//........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -42,7 +42,6 @@
#include <toolkit/controls/tkscrollbar.hxx>
#include "toolkit/controls/tkspinbutton.hxx"
#include <toolkit/controls/tksimpleanimation.hxx>
#include <toolkit/controls/tkthrobber.hxx>
#include <toolkit/controls/animatedimages.hxx>
#include <toolkit/controls/spinningprogress.hxx>
#include <toolkit/controls/tabpagemodel.hxx>
......@@ -176,8 +175,6 @@ IMPL_CREATEINSTANCE( UnoRoadmapControl )
IMPL_CREATEINSTANCE_CTX( UnoControlRoadmapModel )
IMPL_CREATEINSTANCE( UnoSimpleAnimationControl )
IMPL_CREATEINSTANCE_CTX( UnoSimpleAnimationControlModel )
IMPL_CREATEINSTANCE( UnoThrobberControl )
IMPL_CREATEINSTANCE_CTX( UnoThrobberControlModel )
IMPL_CREATEINSTANCE_CTX( UnoControlTabPage )
IMPL_CREATEINSTANCE_CTX( UnoControlTabPageModel )
IMPL_CREATEINSTANCE_CTX( UnoControlTabPageContainer )
......@@ -278,8 +275,6 @@ TOOLKIT_DLLPUBLIC void* SAL_CALL tk_component_getFactory( const sal_Char* sImple
GET_FACTORY( MutableTreeDataModel, szServiceName_MutableTreeDataModel, NULL )
GET_FACTORY( UnoSimpleAnimationControlModel, szServiceName_UnoSimpleAnimationControlModel, szServiceName2_UnoSimpleAnimationControlModel )
GET_FACTORY( UnoSimpleAnimationControl, szServiceName_UnoSimpleAnimationControl, szServiceName2_UnoSimpleAnimationControl )
GET_FACTORY( UnoThrobberControlModel, szServiceName_UnoThrobberControlModel, szServiceName2_UnoThrobberControlModel )
GET_FACTORY( UnoThrobberControl, szServiceName_UnoThrobberControl, szServiceName2_UnoThrobberControl )
GET_FACTORY( UnoFixedHyperlinkControl, szServiceName_UnoControlFixedHyperlink, NULL )
GET_FACTORY( UnoControlFixedHyperlinkModel, szServiceName_UnoControlFixedHyperlinkModel, NULL )
GET_FACTORY( GridControl, szServiceName_GridControl, NULL );
......
......@@ -94,8 +94,6 @@ const sal_Char szServiceName_TreeControlModel[] = "com.sun.star.awt.tree.TreeCon
const sal_Char szServiceName_MutableTreeDataModel[] = "com.sun.star.awt.tree.MutableTreeDataModel";
const sal_Char szServiceName_UnoSimpleAnimationControlModel[] = "com.sun.star.awt.UnoSimpleAnimationControlModel", szServiceName2_UnoSimpleAnimationControlModel[] = "com.sun.star.awt.UnoControlSimpleAnimationModel";
const sal_Char szServiceName_UnoSimpleAnimationControl[] = "com.sun.star.awt.UnoSimpleAnimationControl", szServiceName2_UnoSimpleAnimationControl[] = "com.sun.star.awt.UnoControlSimpleAnimation";
const sal_Char szServiceName_UnoThrobberControlModel[] = "com.sun.star.awt.UnoThrobberControlModel", szServiceName2_UnoThrobberControlModel[] = "com.sun.star.awt.UnoControlThrobberModel";
const sal_Char szServiceName_UnoThrobberControl[] = "com.sun.star.awt.UnoThrobberControl", szServiceName2_UnoThrobberControl[] = "com.sun.star.awt.UnoControlThrobber";
const sal_Char szServiceName_UnoControlFixedHyperlink[] = "com.sun.star.awt.UnoControlFixedHyperlink";
const sal_Char szServiceName_UnoControlFixedHyperlinkModel[] = "com.sun.star.awt.UnoControlFixedHyperlinkModel";
const sal_Char szServiceName_GridControl[] = "com.sun.star.awt.grid.UnoControlGrid";
......
......@@ -278,14 +278,6 @@
<implementation name="stardiv.Toolkit.UnoSpinButtonModel">
<service name="com.sun.star.awt.UnoControlSpinButtonModel"/>
</implementation>
<implementation name="stardiv.Toolkit.UnoThrobberControl">
<service name="com.sun.star.awt.UnoControlThrobber"/>
<service name="com.sun.star.awt.UnoThrobberControl"/>
</implementation>
<implementation name="stardiv.Toolkit.UnoThrobberControlModel">
<service name="com.sun.star.awt.UnoControlThrobberModel"/>
<service name="com.sun.star.awt.UnoThrobberControlModel"/>
</implementation>
<implementation name="stardiv.Toolkit.UnoTimeFieldControl">
<service name="com.sun.star.awt.UnoControlTimeField"/>
<service name="stardiv.vcl.control.TimeField"/>
......
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