Kaydet (Commit) bf398e70 authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS dba05 (1.27.44); FILE MERGED

2003/05/05 13:43:32 oj 1.27.44.1: #i13959# correct search loop
üst 6426ef38
......@@ -2,9 +2,9 @@
*
* $RCSfile: fmvwimp.cxx,v $
*
* $Revision: 1.27 $
* $Revision: 1.28 $
*
* last change: $Author: hr $ $Date: 2003-03-27 15:02:38 $
* last change: $Author: vg $ $Date: 2003-05-19 12:51:31 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -350,13 +350,18 @@ sal_Int32 SAL_CALL FmXPageViewWinRec::getCount(void) throw( ::com::sun::star::un
if (xIndex.is() && xIndex->getCount())
{
::com::sun::star::uno::Reference< ::com::sun::star::form::XFormController > xController;
for (sal_Int32 n = xIndex->getCount(); n--; )
for (sal_Int32 n = xIndex->getCount(); n-- && !xController.is(); )
{
xIndex->getByIndex(n) >>= xController;
if ((::com::sun::star::awt::XTabControllerModel*)xModel.get() == (::com::sun::star::awt::XTabControllerModel*)xController->getModel().get())
return xController;
else
return getControllerSearchChilds(::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess > (xController, ::com::sun::star::uno::UNO_QUERY), xModel);
{
xController = getControllerSearchChilds(::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess > (xController, ::com::sun::star::uno::UNO_QUERY), xModel);
if ( xController.is() )
return xController;
}
}
}
return ::com::sun::star::uno::Reference< ::com::sun::star::form::XFormController > ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment