summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2012-06-26 17:51:23 +0200
committerThomas Arnhold <thomas@arnhold.org>2012-06-27 13:34:23 +0200
commit6fcac7dfc4f2ad85e08aea781cfab28443e3781e (patch)
treefbbf82cb46dde6f13b6f5f11664c2c908b5709e1 /sd/source
parente5c28b86bed03c70bbe3054ccfcc6cb96291c580 (diff)
Remove unused include files
Those never get included at any point in the code. Change-Id: I17736e005635b9e57759cfc95176a99e7c5e8988
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/inc/3dchld.hxx43
-rw-r--r--sd/source/ui/inc/CustomAnimation.hxx34
-rw-r--r--sd/source/ui/inc/ViewTabControl.hxx113
-rw-r--r--sd/source/ui/inc/fugrid.hxx52
-rw-r--r--sd/source/ui/inc/unslsel.hxx44
-rw-r--r--sd/source/ui/slidesorter/cache/SlsQueueProcessorThread.hxx313
-rw-r--r--sd/source/ui/toolpanel/ControlList.hxx53
-rw-r--r--sd/source/ui/toolpanel/ToolPanelDescriptor.hxx83
8 files changed, 0 insertions, 735 deletions
diff --git a/sd/source/ui/inc/3dchld.hxx b/sd/source/ui/inc/3dchld.hxx
deleted file mode 100644
index 1e5093466bbe..000000000000
--- a/sd/source/ui/inc/3dchld.hxx
+++ /dev/null
@@ -1,43 +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 .
- */
-
-
-#ifndef _SD_3DCHLD_HXX
-#define _SD_3DCHLD_HXX
-
-
-#include <sfx2/childwin.hxx>
-
-/*************************************************************************
-|*
-|* Ableitung vom SfxChildWindow als "Behaelter" fuer 3D Window
-|*
-\************************************************************************/
-
-class Sd3DChildWindow : public SfxChildWindow
-{
- public:
- Sd3DChildWindow( Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo* );
-
- SFX_DECL_CHILDWINDOW(Sd3DChildWindow);
-};
-
-#endif // _SD_3DCHLD_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sd/source/ui/inc/CustomAnimation.hxx b/sd/source/ui/inc/CustomAnimation.hxx
deleted file mode 100644
index 6ca44ac71b3a..000000000000
--- a/sd/source/ui/inc/CustomAnimation.hxx
+++ /dev/null
@@ -1,34 +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 .
- */
-
-#ifndef _SD_CUSTOMANIMATION_HXX_
-#define _SD_CUSTOMANIMATION_HXX_
-
-#include <com/sun/star/frame/XModel.hpp>
-
-class Window;
-
-namespace sd {
-
- extern ::Window* createCustomAnimationPane( ::Window* pParent, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& xModel );
-}
-
-#endif // _SD_CUSTOMANIMATION_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sd/source/ui/inc/ViewTabControl.hxx b/sd/source/ui/inc/ViewTabControl.hxx
deleted file mode 100644
index 45e48b523b87..000000000000
--- a/sd/source/ui/inc/ViewTabControl.hxx
+++ /dev/null
@@ -1,113 +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 .
- */
-
-#ifndef SD_TAB_CONTROL_HXX
-#define SD_TAB_CONTROL_HXX
-
-#include <svtools/tabbar.hxx>
-#include <svtools/transfer.hxx>
-
-namespace sd {
-
-/*************************************************************************
-|*
-|* TabControl-Klasse fuer Seitenumschaltung
-|*
-\************************************************************************/
-
-class DrawViewShell;
-
-class TabControl
- : public TabBar,
- public DragSourceHelper,
- public DropTargetHelper
-{
-public:
- TabControl (DrawViewShell* pDrViewSh, ::Window* pParent);
- virtual ~TabControl (void);
-
- /** Inform all listeners of this control that the current page has been
- activated. Call this method after switching the current page and is
- not done elsewhere (like when using page up/down keys).
- */
- void SendActivatePageEvent (void);
-
- /** Inform all listeners of this control that the current page has been
- deactivated. Call this method before switching the current page and
- is not done elsewhere (like when using page up/down keys).
- */
- void SendDeactivatePageEvent (void);
-
-protected:
- DrawViewShell* pDrViewSh;
- sal_Bool bInternalMove;
-
- // TabBar
- virtual void Select();
- virtual void DoubleClick();
- virtual void MouseButtonDown(const MouseEvent& rMEvt);
-
- virtual void Command(const CommandEvent& rCEvt);
-
- virtual long StartRenaming();
- virtual long AllowRenaming();
- virtual void EndRenaming();
-
- virtual void ActivatePage();
- virtual long DeactivatePage();
-
- // DragSourceHelper
- virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel );
-
- // DropTargetHelper
- virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt );
- virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt );
-
- DECL_LINK(DeactivatePageHdl, void*);
-
-private:
- // nested class to implement the TransferableHelper
- class TabControlTransferable : public TransferableHelper
- {
- public:
- TabControlTransferable( TabControl& rParent ) :
- mrParent( rParent ) {}
- private:
-
- TabControl& mrParent;
-
- virtual ~TabControlTransferable();
-
- virtual void AddSupportedFormats();
- virtual sal_Bool GetData( const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- virtual void DragFinished( sal_Int8 nDropAction );
-
- };
-
- friend class TabControl::TabControlTransferable;
-
- void DragFinished( sal_Int8 nDropAction );
-
-};
-
-} // end of namespace sd
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sd/source/ui/inc/fugrid.hxx b/sd/source/ui/inc/fugrid.hxx
deleted file mode 100644
index 090c001885b2..000000000000
--- a/sd/source/ui/inc/fugrid.hxx
+++ /dev/null
@@ -1,52 +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 .
- */
-
-#ifndef SD_FU_GRID_HXX
-#define SD_FU_GRID_HXX
-
-#include "fupoor.hxx"
-
-namespace sd {
-
-class FuGrid
- : public FuPoor
-{
-public:
- TYPEINFO();
-
- static FunctionReference Create( ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View* pView, SdDrawDocument* pDoc, SfxRequest& rReq );
-
- virtual void Activate();
- virtual void Deactivate();
-
-private:
- FuGrid (
- ViewShell* pViewSh,
- ::sd::Window* pWin,
- ::sd::View* pView,
- SdDrawDocument* pDoc,
- SfxRequest& rReq);
-};
-
-} // end of namespace sd
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sd/source/ui/inc/unslsel.hxx b/sd/source/ui/inc/unslsel.hxx
deleted file mode 100644
index 171cfe2f28c8..000000000000
--- a/sd/source/ui/inc/unslsel.hxx
+++ /dev/null
@@ -1,44 +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 .
- */
-
-#ifndef _SD_UNSLSEL_HXX
-#define _SD_UNSLSEL_HXX
-
-#include "sdundo.hxx"
-
-class SlideSelectionUndoAction : public SdUndoAction
-{
- Container* pOldOrder;
- Container* pNewOrder;
-
-public:
- TYPEINFO();
- SlideSelectionUndoAction(SdDrawDocument* pTheDoc,
- Container* pOld, Container* pNew)
- : SdUndoAction(pTheDoc),
- pOldOrder(pOld),
- pNewOrder(pNew) {}
- virtual ~SlideSelectionUndoAction() {}
- virtual void Undo();
- virtual void Redo();
-};
-
-#endif // _SD_UNSLSEL_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sd/source/ui/slidesorter/cache/SlsQueueProcessorThread.hxx b/sd/source/ui/slidesorter/cache/SlsQueueProcessorThread.hxx
deleted file mode 100644
index 5bc93d1fefcb..000000000000
--- a/sd/source/ui/slidesorter/cache/SlsQueueProcessorThread.hxx
+++ /dev/null
@@ -1,313 +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 .
- */
-
-#ifndef SD_SLIDESORTER_QUEUE_PROCESSOR_THREAD_HXX
-#define SD_SLIDESORTER_QUEUE_PROCESSOR_THREAD_HXX
-
-#include "view/SlsPageObjectViewObjectContact.hxx"
-#include <vcl/svapp.hxx>
-#include <osl/thread.hxx>
-
-namespace sd { namespace slidesorter { namespace view {
-class SlideSorterView;
-} } }
-
-
-namespace sd { namespace slidesorter { namespace cache {
-
-
-template <class Queue,
- class RequestData,
- class BitmapCache,
- class BitmapFactory>
-class QueueProcessorThread
- : public ::osl::Thread
-{
-public:
- QueueProcessorThread (
- view::SlideSorterView& rView,
- Queue& rQueue,
- BitmapCache& rCache);
- ~QueueProcessorThread (void);
-
- /** Start the execution of a suspended thread. A thread is suspended
- after Stop() is called or when the queue on which it operates is
- empty. Calling Start() on a running thread is OK.
- */
- void Start (void);
-
- /** Stop the thread by suspending it. To re-start its execution call
- Start().
- */
- void Stop (void);
-
- /** As we can not really terminate the rendering of a preview bitmap for
- a request in midair this method acts more like a semaphor. It
- returns only when it is save for the caller to delete the request.
- For this to work it is important to remove the request from the
- queue before calling this method.
- */
- void RemoveRequest (RequestData& rRequest);
-
- /** Terminate the execution of the thread. When the thread is detached
- it deletes itself. Otherwise the caller of this method may call
- delete after this method returnes.
- */
- void SAL_CALL Terminate (void);
-
-protected:
- /** This virutal method is called (among others?) from the
- inherited create method and acts as the main function of this
- thread.
- */
- virtual void SAL_CALL run (void);
-
- /** Called after the thread is terminated via the terminate
- method. Used to kill the thread by calling delete on this.
- */
- virtual void SAL_CALL onTerminated (void);
-
-private:
- /** Flag that indicates whether the onTerminated method has been already
- called. If so then a subsequent call to detach deletes the thread.
- */
- volatile bool mbIsTerminated;
-
- volatile bool mbCanBeJoined;
-
- /** This mutex is used to guard the queue processor. Be carefull not to
- mix its use with that of the solar mutex.
- */
- ::osl::Mutex maMutex;
-
- view::SlideSorterView& mrView;
- Queue& mrQueue;
- BitmapCache& mrCache;
-
- void ProcessQueueEntry (void);
-};
-
-
-
-
-//===== QueueProcessorThread ================================================
-
-template <class Queue, class Request, class Cache, class Factory>
- QueueProcessorThread<Queue, Request, Cache, Factory>
- ::QueueProcessorThread (
- view::SlideSorterView& rView,
- Queue& rQueue,
- Cache& rCache)
- : mbIsTerminated (false),
- mbCanBeJoined (false),
- mrView (rView),
- mrQueue (rQueue),
- mrCache (rCache)
-{
- create();
-}
-
-
-
-
-template <class Queue, class Request, class Cache, class Factory>
- QueueProcessorThread<Queue, Request, Cache, Factory>
- ::~QueueProcessorThread (void)
-{
-}
-
-
-
-
-template <class Queue, class Request, class Cache, class Factory>
-void SAL_CALL QueueProcessorThread<Queue, Request, Cache, Factory>::run (void)
-{
- while ( ! mbIsTerminated)
- {
- if (mrQueue.IsEmpty())
- {
- // Sleep while the queue is empty.
- suspend();
- }
-
- else if (GetpApp()->AnyInput())
- {
- yield();
- // When there is input waiting to be processed we wait a short
- // time and try again.
- TimeValue aTimeToWait;
- aTimeToWait.Seconds = 0;
- aTimeToWait.Nanosec = 50*1000*1000;
- wait (aTimeToWait);
- }
-
- else
- {
- ProcessQueueEntry();
- yield ();
- }
- }
-}
-
-
-
-
-template <class Queue, class Request, class Cache, class Factory>
-void QueueProcessorThread<Queue, Request, Cache, Factory>
- ::ProcessQueueEntry (void)
-{
- Request* pRequest = NULL;
- int nPriorityClass;
- bool bRequestIsValid = false;
-
- do
- {
- {
- ::osl::MutexGuard aGuard (maMutex);
- if (mbIsTerminated)
- break;
- if (mrQueue.IsEmpty())
- break;
- }
- SolarMutexGuard aSolarGuard;
- ::osl::MutexGuard aGuard (maMutex);
- if (mbIsTerminated)
- break;
-
- if (mrQueue.IsEmpty())
- break;
-
- // Get the requeuest with the highest priority from the queue.
- nPriorityClass = mrQueue.GetFrontPriorityClass();
- pRequest = &mrQueue.GetFront();
- mrQueue.PopFront();
- bRequestIsValid = true;
-
- try
- {
- // Create a new preview bitmap and store it in the cache.
- if (mbIsTerminated)
- break;
- BitmapEx aBitmap (Factory::CreateBitmap (*pRequest, mrView));
- if (mbIsTerminated)
- break;
- mrCache.SetBitmap (
- pRequest->GetPage(),
- aBitmap,
- nPriorityClass==0);
- }
- catch (...)
- {
- OSL_TRACE ("QueueProcessorThread::ProcessQueueEntry(): caught exception; %p", this);
- // We are rendering a preview and can do without if need
- // be. So keep going if something happens that should
- // not happen.
- }
- }
- while (false);
-}
-
-
-
-
-template <class Queue,
- class RequestData,
- class BitmapCache,
- class BitmapFactory>
-void QueueProcessorThread<
- Queue, RequestData, BitmapCache, BitmapFactory
- >::Start (void)
-{
- resume ();
-}
-
-
-
-
-template <class Queue,
- class RequestData,
- class BitmapCache,
- class BitmapFactory>
-void QueueProcessorThread<
- Queue, RequestData, BitmapCache, BitmapFactory
- >::Stop (void)
-{
- suspend();
-}
-
-
-
-
-template <class Queue,
- class RequestData,
- class BitmapCache,
- class BitmapFactory>
-void QueueProcessorThread<
- Queue, RequestData, BitmapCache, BitmapFactory
- >::RemoveRequest (RequestData& rRequest)
-{
- // Do nothing else then wait for the mutex to be released.
- ::osl::MutexGuard aGuard (mrQueue.GetMutex());
-}
-
-
-
-
-template <class Queue,
- class RequestData,
- class BitmapCache,
- class BitmapFactory>
-void QueueProcessorThread<
- Queue, RequestData, BitmapCache, BitmapFactory
- >::Terminate (void)
-{
- // SolarMutexGuard aSolarGuard;
- ::osl::Thread::terminate ();
- {
- ::osl::MutexGuard aGuard (maMutex);
- mbIsTerminated = true;
- }
- Start();
-}
-
-
-
-
-/** This callback method is called when the run() method terminates.
-*/
-template <class Queue,
- class RequestData,
- class BitmapCache,
- class BitmapFactory>
-void SAL_CALL QueueProcessorThread<
- Queue, RequestData, BitmapCache, BitmapFactory
- >::onTerminated (void)
-{
- ::osl::MutexGuard aGuard (maMutex);
- mbCanBeJoined = true;
-}
-
-
-
-
-} } } // end of namespace ::sd::slidesorter::cache
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sd/source/ui/toolpanel/ControlList.hxx b/sd/source/ui/toolpanel/ControlList.hxx
deleted file mode 100644
index ca3d2651e49d..000000000000
--- a/sd/source/ui/toolpanel/ControlList.hxx
+++ /dev/null
@@ -1,53 +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 .
- */
-
-#ifndef SD_TOOLPANEL_CONTROL_LIST_HXX
-#define SD_TOOLPANEL_CONTROL_LIST_HXX
-
-#include "ConstrainedIterator.hxx"
-#include "ConstrainedIterator.cxx"
-#include "TitledControl.hxx"
-
-#include <vector>
-
-namespace sd { namespace toolpanel {
-
-
-typedef ::std::vector<TitledControl*> ControlList;
-typedef ConstrainedIterator<ControlList> ControlIterator;
-
-
-class VisibilityConstraint
- : public Constraint<ControlList>
-{
-public:
- virtual bool operator() (
- const ControlList& rContainer,
- const ControlList::iterator& rIterator) const
- {
- return (**rIterator).GetWindow()->IsVisible();
- }
-};
-
-
-} } // end of namespace ::sd::toolpanel
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sd/source/ui/toolpanel/ToolPanelDescriptor.hxx b/sd/source/ui/toolpanel/ToolPanelDescriptor.hxx
deleted file mode 100644
index 1f149db5d4d0..000000000000
--- a/sd/source/ui/toolpanel/ToolPanelDescriptor.hxx
+++ /dev/null
@@ -1,83 +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 .
- */
-
-#ifndef SD_TOOL_PANEL_DESCRIPTOR_HXX
-#define SD_TOOL_PANEL_DESCRIPTOR_HXX
-
-#include <tools/string.hxx>
-#include <tools/gen.hxx>
-#include <memory>
-
-class Window;
-
-namespace sd { namespace toolpanel {
-
-
-/** Collection of information the describes entries of the tool
- panel. A descriptor owns the control it is associated with.
-*/
-class ToolPanelDescriptor
-{
-public:
- /** Create a new descriptor for the given control.
- @param pControl
- */
- ToolPanelDescriptor (::std::auto_ptr< ::Window> pControl,
- const String& rTitle);
-
- ~ToolPanelDescriptor (void);
-
- /** Return the height of the title bar.
- @return
- The title bar height is returned in pixels.
- */
- int GetTitleBarHeight (void) const;
-
-
- void SetPositionAndSize (const Point& aPosition,
- const Size& aSize);
- void SetPositionAndSize (const Rectangle& aBox);
- void SetWeight (double nWeight);
-
- Window* GetControl (void) const;
- const String& GetTitle (void) const;
- const Rectangle& GetTitleBox (void) const;
- Rectangle GetPositionAndSize (void) const;
- double GetWeight (void) const;
-
- int GetTotalHeight (void) const;
- int GetWindowHeight (void) const;
-
-private:
- ::std::auto_ptr< ::Window> mpControl;
- String msTitle;
- Rectangle maTitleBox;
- double mnWeight;
- int mnTotalHeight;
-
- /// Do not use! Assignment operator is not supported.
- const ToolPanelDescriptor& operator= (
- const ToolPanelDescriptor& aDescriptor);
-};
-
-} } // end of namespace ::sd::toolpanel
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */