diff options
author | Frank Schönheit <fs@openoffice.org> | 2001-02-19 13:08:31 +0000 |
---|---|---|
committer | Frank Schönheit <fs@openoffice.org> | 2001-02-19 13:08:31 +0000 |
commit | e4d9718afdcdec1a0674a899a2175d6a9375cf02 (patch) | |
tree | 5521e3d30f789b0881141739d74f6d561647f5ad /extensions/source/propctrlr/browserview.cxx | |
parent | 717e294d581243b802eaf42ab349e38f5ea169b7 (diff) |
#84041# infrastructure for activating pages from outside
Diffstat (limited to 'extensions/source/propctrlr/browserview.cxx')
-rw-r--r-- | extensions/source/propctrlr/browserview.cxx | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/extensions/source/propctrlr/browserview.cxx b/extensions/source/propctrlr/browserview.cxx index 5d484ed1c0f3..989f0c754128 100644 --- a/extensions/source/propctrlr/browserview.cxx +++ b/extensions/source/propctrlr/browserview.cxx @@ -2,9 +2,9 @@ * * $RCSfile: browserview.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: rt $ $Date: 2001-01-18 14:45:10 $ + * last change: $Author: fs $ $Date: 2001-02-19 14:08:31 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -100,6 +100,7 @@ namespace pcr m_pPropBox = new OPropertyEditor( this ); m_pPropBox->SetHelpId(HID_FM_PROPDLG_TABCTR); + m_pPropBox->setPageActivationHandler(LINK(this, OPropertyBrowserView, OnPageActivation)); m_pPropBox->Show(); } @@ -115,8 +116,8 @@ namespace pcr DBG_CTOR(OPropertyBrowserView,NULL); m_pPropBox = new OPropertyEditor( this ); - m_pPropBox->SetHelpId(HID_FM_PROPDLG_TABCTR); + m_pPropBox->setPageActivationHandler(LINK(this, OPropertyBrowserView, OnPageActivation)); Size aSize = GetOutputSizePixel(); m_pPropBox->SetPosSizePixel(Point(0,0), aSize); @@ -124,6 +125,15 @@ namespace pcr } //------------------------------------------------------------------------ + IMPL_LINK(OPropertyBrowserView, OnPageActivation, void*, EMPTYARG) + { + m_nActivePage = m_pPropBox->GetCurPage(); + if (m_aPageActivationHandler.IsSet()) + m_aPageActivationHandler.Call(NULL); + return 0L; + } + + //------------------------------------------------------------------------ OPropertyBrowserView::~OPropertyBrowserView() { if(m_pPropBox) @@ -174,6 +184,9 @@ namespace pcr /************************************************************************* * history: * $Log: not supported by cvs2svn $ + * Revision 1.2 2001/01/18 14:45:10 rt + * #65293# semicolon removed + * * Revision 1.1 2001/01/12 11:26:10 fs * initial checkin - outsourced the form property browser * |