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 | 29b75975f530d479a2b42abe6b0a412e78cf6feb (patch) | |
tree | d939d131b418351e139df1e3cdea97c29b1dcd56 /extensions/source/propctrlr/browserview.cxx | |
parent | bb216c0d2003fa508524bdd7b04747f5465c3419 (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 e3f9bb582..9d263bb41 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 * |