summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-01-28 13:15:55 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-01-28 13:15:55 +0000
commit58feee85e3f5d16fb27efed19d9d6489097911b4 (patch)
tree96017f05435b2d7772f54f5266bb964eb8cbbe53
parentde942fcc79e749d88bcc74c413bfa2af5bac63a2 (diff)
INTEGRATION: CWS tbe32 (1.2.202); FILE MERGED
2007/10/30 15:29:29 pl 1.2.202.1: #i71010# add: RadioButton::GetRadioButtonGroup
-rw-r--r--vcl/inc/vcl/button.hxx21
1 files changed, 19 insertions, 2 deletions
diff --git a/vcl/inc/vcl/button.hxx b/vcl/inc/vcl/button.hxx
index a5470c8fa08f..68807a13f011 100644
--- a/vcl/inc/vcl/button.hxx
+++ b/vcl/inc/vcl/button.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: button.hxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: ihi $ $Date: 2008-01-14 13:02:22 $
+ * last change: $Author: vg $ $Date: 2008-01-28 14:15:55 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -61,6 +61,8 @@
#include <vcl/salnativewidgets.hxx>
#endif
+#include <vector>
+
class UserDrawEvent;
class ImplCommonButtonData;
@@ -398,6 +400,21 @@ public:
void SetToggleHdl( const Link& rLink ) { maToggleHdl = rLink; }
const Link& GetToggleHdl() const { return maToggleHdl; }
+
+ /** GetRadioButtonGroup returns a list of pointers to <code>RadioButton</code>s in the same group.
+
+ The pointers in the returned list are valid at the time call returns. However rescheduling
+ or giving up the SolarMutex may mean events get executed that lead to the pointers getting
+ invalid.
+
+ @param io_rGroup
+ gets cleared on entering the function. on return contains the <code>RadioButton</code>s
+ in the same group as this <code>RadioButton</code>.
+
+ @param bIncludeThis
+ defines whether <code>this</code> is contained in the returned list
+ */
+ void GetRadioButtonGroup( std::vector<RadioButton*>& io_rGroup, bool bIncludeThis ) const;
};
// ------------