summaryrefslogtreecommitdiffstats
path: root/svtools/inc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-03-06 09:46:00 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-03-06 11:26:36 +0000
commite7737fef7f84f065ec94f114761d70fc7f90ed5a (patch)
tree3bb571ec8e7597e8605b4ce6c7f1d66052e0e84d /svtools/inc
parentsilence SolarMutex not locked spew (diff)
downloadcore-e7737fef7f84f065ec94f114761d70fc7f90ed5a.tar.gz
core-e7737fef7f84f065ec94f114761d70fc7f90ed5a.zip
ditch archaic taskbox/taskmisc/taskstat implementations
Diffstat (limited to 'svtools/inc')
-rw-r--r--svtools/inc/svtools/taskbar.hxx271
1 files changed, 0 insertions, 271 deletions
diff --git a/svtools/inc/svtools/taskbar.hxx b/svtools/inc/svtools/taskbar.hxx
deleted file mode 100644
index f7122b12d746..000000000000
--- a/svtools/inc/svtools/taskbar.hxx
+++ /dev/null
@@ -1,271 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _TASKBAR_HXX
-#define _TASKBAR_HXX
-
-#include "svtools/svtdllapi.h"
-#include <tools/time.hxx>
-#include <vcl/timer.hxx>
-#include <vcl/toolbox.hxx>
-#include <vcl/status.hxx>
-
-class TaskStatusFieldItem;
-struct ImplTaskSBFldItem;
-
-struct ImplTaskItem;
-typedef ::std::vector< ImplTaskItem* > ImplTaskItemList;
-
-struct ImplTaskSBFldItem;
-typedef ::std::vector< ImplTaskSBFldItem* > ImplTaskSBItemList;
-
-// -----------------
-// - Dokumentation -
-// -----------------
-
-/*
-
-TaskToolBox
-===========
-
-ActivateTask()
-Handler der gerufen wird, wenn ein Task aktiviert werden muss.
-
-ContextMenu()
-Dieser Handler wird gerufen, wenn ein ContextMenu angezeigt werden soll.
-Mit GetTaskMode() kann abgefragt werden, ob fuer einen Task oder ein
-Item.
-
-GetContextMenuPos()
-Liefert die Position zurueck, wo das Contextmenu angezeigt werden soll.
-
-
-TaskStatusBar
-=============
-
-Fuegt ein Statusfeld ein, wo die aktuelle Uhrzeit angezeigt wird. In
-dieses Feld koennen dann mit AddStatusFielItem(), ModifyStatusFielItem()
-und RemoveStatusFielItem() Status-Items eingefuegt werden. Bei diesen
-muss man ein Image angeben, welches dann angezeigt wird. Ausserdem kann
-man bei diesen noch Hilfe-Texte angeben oder sagen, ob sie blinken
-sollen und ein Notify-Object, worueber man informiert wird, wenn ein
-Kontextmenu angezeigt wird oder das Item angeklickt wird. Am
-TaskStatusBar kann auch ein Notify-Object gesetzt werden, wenn man
-benachrichtigt werden will, wenn die Uhrzeit oder die TaskStatusBar
-angeklickt wird. Wenn der Notify fuer die Uhrzeit kommt, ist die
-Id TASKSTATUSBAR_CLOCKID, wenn er fuer die TaskStatusBar kommt, ist
-die Id 0.
-*/
-
-// -----------------
-// - TaskButtonBar -
-// -----------------
-
-class TaskButtonBar : public ToolBox
-{
-private:
- void* mpDummy1;
- void* mpDummy2;
- void* mpDummy3;
- void* mpDummy4;
-
-public:
- TaskButtonBar( Window* pParent, WinBits nWinStyle = 0 );
- ~TaskButtonBar();
-
- virtual void RequestHelp( const HelpEvent& rHEvt );
-
- void InsertButton( sal_uInt16 nItemId,
- const Image& rImage, const String& rText,
- sal_uInt16 nPos = TOOLBOX_APPEND )
- { InsertItem( nItemId, rImage, rText, TIB_LEFT | TIB_AUTOSIZE, nPos ); }
- void RemoveButton( sal_uInt16 nItemId )
- { RemoveItem( nItemId ); }
-};
-
-// ---------------
-// - TaskToolBox -
-// ---------------
-
-class SVT_DLLPUBLIC TaskToolBox : public ToolBox
-{
-private:
- ImplTaskItemList* mpItemList;
- Point maContextMenuPos;
- size_t mnOldItemCount;
- long mnMaxTextWidth;
- long mnDummy1;
- size_t mnUpdatePos;
- size_t mnUpdateNewPos;
- size_t mnActiveItemId;
- size_t mnNewActivePos;
- sal_uInt16 mnSmallItem;
- sal_uInt16 mnDummy2;
- sal_Bool mbMinActivate;
- sal_Bool mbDummy1;
- Link maActivateTaskHdl;
- Link maContextMenuHdl;
-
-#ifdef _TASKBAR_CXX
- SVT_DLLPRIVATE void ImplFormatTaskToolBox();
-#endif
-
- // Forbidden and not implemented.
- TaskToolBox (const TaskToolBox &);
- TaskToolBox & operator= (const TaskToolBox &);
-
-public:
- TaskToolBox( Window* pParent, WinBits nWinStyle = 0 );
- ~TaskToolBox();
-
- void ActivateTaskItem( sal_uInt16 nItemId,
- sal_Bool bMinActivate = sal_False );
-
- virtual void ActivateTask();
- virtual void ContextMenu();
-
- virtual void Select();
-
- virtual void MouseButtonDown( const MouseEvent& rMEvt );
- virtual void Resize();
- virtual void Command( const CommandEvent& rCEvt );
- virtual void RequestHelp( const HelpEvent& rHEvt );
-
- const Point& GetContextMenuPos() const { return maContextMenuPos; }
- sal_Bool IsMinActivate() const { return mbMinActivate; }
-
- void SetActivateTaskHdl( const Link& rLink ) { maActivateTaskHdl = rLink; }
- const Link& GetActivateTaskHdl() const { return maActivateTaskHdl; }
- void SetContextMenuHdl( const Link& rLink ) { maContextMenuHdl = rLink; }
- const Link& GetContextMenuHdl() const { return maContextMenuHdl; }
-};
-
-// ---------------------
-// - ITaskStatusNotify -
-// ---------------------
-
-class ITaskStatusNotify
-{
-public:
- virtual sal_Bool MouseButtonDown( sal_uInt16 nItemd, const MouseEvent& rMEvt );
- virtual sal_Bool MouseButtonUp( sal_uInt16 nItemd, const MouseEvent& rMEvt );
- virtual sal_Bool MouseMove( sal_uInt16 nItemd, const MouseEvent& rMEvt );
- virtual sal_Bool Command( sal_uInt16 nItemd, const CommandEvent& rCEvt );
- virtual sal_Bool UpdateHelp( sal_uInt16 nItemd );
-};
-
-// -----------------------
-// - TaskStatusFieldItem -
-// -----------------------
-
-#define TASKSTATUSFIELDITEM_FLASH ((sal_uInt16)0x0001)
-
-class TaskStatusFieldItem
-{
-private:
- ITaskStatusNotify* mpNotify;
- Image maImage;
- XubString maQuickHelpText;
- XubString maHelpText;
- rtl::OString maHelpId;
- sal_uInt16 mnFlags;
-
-public:
- TaskStatusFieldItem();
- TaskStatusFieldItem( const TaskStatusFieldItem& rItem );
- ~TaskStatusFieldItem();
-
- void SetNotifyObject( ITaskStatusNotify* pNotify ) { mpNotify = pNotify; }
- ITaskStatusNotify* GetNotifyObject() const { return mpNotify; }
- void SetImage( const Image& rImage ) { maImage = rImage; }
- const Image& GetImage() const { return maImage; }
- void SetQuickHelpText( const XubString& rStr ) { maQuickHelpText = rStr; }
- const XubString& GetQuickHelpText() const { return maQuickHelpText; }
- void SetHelpText( const XubString& rStr ) { maHelpText = rStr; }
- const XubString& GetHelpText() const { return maHelpText; }
- void SetHelpId( const rtl::OString& rHelpId ) { maHelpId = rHelpId; }
- const rtl::OString& GetHelpId() const { return maHelpId; }
- void SetFlags( sal_uInt16 nFlags ) { mnFlags = nFlags; }
- sal_uInt16 GetFlags() const { return mnFlags; }
-
- const TaskStatusFieldItem& operator=( const TaskStatusFieldItem& rItem );
-};
-
-// -----------------
-// - TaskStatusBar -
-// -----------------
-
-#define TASKSTATUSBAR_STATUSFIELDID ((sal_uInt16)61000)
-
-#define TASKSTATUSBAR_CLOCKID ((sal_uInt16)61000)
-#define TASKSTATUSFIELD_CLOCK ((sal_uInt16)0x0001)
-
-class SVT_DLLPUBLIC TaskStatusBar : public StatusBar
-{
-private:
- ImplTaskSBItemList* mpFieldItemList;
- ITaskStatusNotify* mpNotify;
- Time maTime;
- XubString maTimeText;
- AutoTimer maTimer;
- long mnClockWidth;
- long mnItemWidth;
- long mnFieldWidth;
- sal_uInt16 mnFieldFlags;
- sal_uInt16 mnDummy1;
- sal_Bool mbFlashItems;
- sal_Bool mbOutInterval;
- sal_Bool mbDummy1;
- sal_Bool mbDummy2;
-
-#ifdef _TASKBAR_CXX
- SVT_DLLPRIVATE ImplTaskSBFldItem* ImplGetFieldItem( const Point& rPos, sal_Bool& rFieldRect ) const;
- SVT_DLLPRIVATE sal_Bool ImplUpdateClock();
- SVT_DLLPRIVATE sal_Bool ImplUpdateFlashItems();
- DECL_DLLPRIVATE_LINK( ImplTimerHdl, void* );
-#endif
-
-public:
- TaskStatusBar( Window* pParent, WinBits nWinStyle = WB_LEFT );
- ~TaskStatusBar();
-
- virtual void MouseButtonDown( const MouseEvent& rMEvt );
- virtual void MouseButtonUp( const MouseEvent& rMEvt );
- virtual void MouseMove( const MouseEvent& rMEvt );
- virtual void Command( const CommandEvent& rCEvt );
- virtual void RequestHelp( const HelpEvent& rHEvt );
- virtual void UserDraw( const UserDrawEvent& rUDEvt );
-
- sal_uInt16 GetFieldFlags() const { return mnFieldFlags; }
- void SetNotifyObject( ITaskStatusNotify* pNotify ) { mpNotify = pNotify; }
- ITaskStatusNotify* GetNotifyObject() const { return mpNotify; }
-};
-
-#endif // _TASKBAR_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */