diff --git a/BlueBerry/Bundles/org.blueberry.ui/src/berryIStructuredSelection.h b/BlueBerry/Bundles/org.blueberry.ui/src/berryIStructuredSelection.h index 9d32c4cceb..c522f0c722 100755 --- a/BlueBerry/Bundles/org.blueberry.ui/src/berryIStructuredSelection.h +++ b/BlueBerry/Bundles/org.blueberry.ui/src/berryIStructuredSelection.h @@ -1,79 +1,79 @@ /*========================================================================= Program: BlueBerry Platform Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. See MITKCopyright.txt or http://www.mitk.org/copyright.html for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notices for more information. =========================================================================*/ #ifndef BERRYISTRUCTUREDSELECTION_H_ #define BERRYISTRUCTUREDSELECTION_H_ #include "berryISelection.h" #include - +#include namespace berry { /** * A selection containing elements. */ -struct IStructuredSelection : public ISelection { +struct BERRY_UI IStructuredSelection : public ISelection { typedef ObjectVector ContainerType; typedef ContainerType::const_iterator iterator; berryInterfaceMacro(IStructuredSelection, berry); /** * Returns the first element in this selection, or null * if the selection is empty. * * @return an element, or null if none */ virtual Object::Pointer GetFirstElement() const = 0; /** * Returns an iterator to the beginning of the elements of this selection. * * @return an iterator over the selected elements */ virtual iterator Begin() const = 0; /** * Returns an iterator to the end of the elements of this selection. * * @return an iterator over the selected elements */ virtual iterator End() const = 0; /** * Returns the number of elements selected in this selection. * * @return the number of elements selected */ virtual int Size() const = 0; /** * Returns the elements in this selection as a vector. * * @return the selected elements as a vector */ virtual ContainerType::Pointer ToVector() const = 0; }; } #endif /* BERRYISTRUCTUREDSELECTION_H_ */