Lines Matching refs:pWindow
46 static sal_Bool ImplHasIndirectTabParent( Window* pWindow ) in ImplHasIndirectTabParent() argument
51 return ( pWindow && pWindow->GetParent() in ImplHasIndirectTabParent()
52 && ( pWindow->GetParent()->ImplGetWindow()->GetStyle() & WB_CHILDDLGCTRL ) ); in ImplHasIndirectTabParent()
81 Window* pWindow = pParent->GetWindow( WINDOW_FIRSTCHILD ); in ImplGetSubChildWindow() local
82 Window* pNextWindow = pWindow; in ImplGetSubChildWindow()
83 while ( pWindow ) in ImplGetSubChildWindow()
85 pWindow = pWindow->ImplGetWindow(); in ImplGetSubChildWindow()
88 if ( pTabPage || pWindow->IsVisible() ) in ImplGetSubChildWindow()
99 pFoundWindow = pWindow; in ImplGetSubChildWindow()
103 if ( pWindow->GetType() == WINDOW_TABCONTROL ) in ImplGetSubChildWindow()
105 TabControl* pTabControl = ((TabControl*)pWindow); in ImplGetSubChildWindow()
127 else if ( ( pWindow->GetStyle() & WB_DIALOGCONTROL ) in ImplGetSubChildWindow()
128 || ( pWindow->GetStyle() & WB_CHILDDLGCTRL ) ) in ImplGetSubChildWindow()
129 pFoundWindow = ImplGetSubChildWindow( pWindow, n, nIndex ); in ImplGetSubChildWindow()
138 pWindow = pTabPage; in ImplGetSubChildWindow()
141 pWindow = pNextWindow->GetWindow( WINDOW_NEXT ); in ImplGetSubChildWindow()
142 pNextWindow = pWindow; in ImplGetSubChildWindow()
157 Window* pWindow = ImplGetSubChildWindow( pParent, n, nIndex ); in ImplGetChildWindow() local
161 while ( pWindow && (!pWindow->IsEnabled() || !pWindow->IsInputEnabled()) ) in ImplGetChildWindow()
165 pWindow = ImplGetSubChildWindow( pParent, n2, nIndex ); in ImplGetChildWindow()
176 pWindow = ImplGetSubChildWindow( pParent, n, nIndex ); in ImplGetChildWindow()
178 while ( pWindow && n && (!pWindow->IsEnabled() || !pWindow->IsInputEnabled()) ); in ImplGetChildWindow()
181 return pWindow; in ImplGetChildWindow()
188 Window* pWindow = ImplGetChildWindow( pParent, n+1, nIndex, bTestEnable ); in ImplGetNextWindow() local
192 pWindow = ImplGetChildWindow( pParent, n, nIndex, bTestEnable ); in ImplGetNextWindow()
194 return pWindow; in ImplGetNextWindow()
206 Window* pWindow = NULL; in ImplGetDlgWindow() local
220 pWindow = ImplGetChildWindow( this, i, nTemp, sal_True ); in ImplGetDlgWindow()
221 if ( !pWindow ) in ImplGetDlgWindow()
223 if ( (i == nTemp) && (pWindow->GetStyle() & WB_TABSTOP) ) in ImplGetDlgWindow()
231 pWindow = ImplGetChildWindow( this, i, i, (nType == DLGWINDOW_FIRST) ); in ImplGetDlgWindow()
232 if ( pWindow ) in ImplGetDlgWindow()
240 pWindow = ImplGetNextWindow( this, i, i, sal_True ); in ImplGetDlgWindow()
242 pWindow = ImplGetChildWindow( this, nFormStart, i, sal_True ); in ImplGetDlgWindow()
245 pWindow = ImplGetChildWindow( this, nFormStart, i, sal_True ); in ImplGetDlgWindow()
256 if ( pWindow->GetStyle() & WB_TABSTOP ) in ImplGetDlgWindow()
265 pWindow = ImplGetChildWindow( this, nFormStart, i, sal_True ); in ImplGetDlgWindow()
267 pWindow = ImplGetNextWindow( this, i, i, sal_True ); in ImplGetDlgWindow()
272 (!(pWindow->GetStyle() & WB_TABSTOP) || !pWindow->IsEnabled()) ) in ImplGetDlgWindow()
279 if ( pWindow ) in ImplGetDlgWindow()
281 if ( pWindow->GetType() == WINDOW_TABCONTROL ) in ImplGetDlgWindow()
286 if ( pWindow->IsChild( pNextWindow ) ) in ImplGetDlgWindow()
287 pWindow = pNextWindow; in ImplGetDlgWindow()
291 if ( !(pWindow->GetStyle() & WB_TABSTOP) ) in ImplGetDlgWindow()
292 pWindow = NULL; in ImplGetDlgWindow()
300 return pWindow; in ImplGetDlgWindow()
305 static Window* ImplFindDlgCtrlWindow( Window* pParent, Window* pWindow, sal_uInt16& rIndex, in ImplFindDlgCtrlWindow() argument
320 if( pWindow == NULL ) in ImplFindDlgCtrlWindow()
321 pWindow = pSWindow; in ImplFindDlgCtrlWindow()
332 if ( pSWindow->ImplIsWindowOrChild( pWindow ) ) in ImplFindDlgCtrlWindow()
337 if ( pSWindow == pWindow ) in ImplFindDlgCtrlWindow()
413 Window* pWindow; in ImplFindAccelWindow() local
424 pWindow = ImplGetNextWindow( pParent, i, i, sal_True ); in ImplFindAccelWindow()
426 pWindow = ImplGetChildWindow( pParent, nFormStart, i, sal_True ); in ImplFindAccelWindow()
427 while( bSearch && pWindow ) in ImplFindAccelWindow()
429 const XubString aStr = pWindow->GetText(); in ImplFindAccelWindow()
438 if ( (pWindow->GetType() == WINDOW_FIXEDTEXT) || in ImplFindAccelWindow()
439 (pWindow->GetType() == WINDOW_FIXEDLINE) || in ImplFindAccelWindow()
440 (pWindow->GetType() == WINDOW_GROUPBOX) ) in ImplFindAccelWindow()
441 pWindow = pParent->ImplGetDlgWindow( i, DLGWINDOW_NEXT ); in ImplFindAccelWindow()
443 return pWindow; in ImplFindAccelWindow()
452 if( (pWindow->GetStyle() & WB_CHILDDLGCTRL) != 0 ) in ImplFindAccelWindow()
459 ::ImplFindDlgCtrlWindow( pWindow, NULL, in ImplFindAccelWindow()
461 Window* pAccelWin = ImplFindAccelWindow( pWindow, nChildIndex, cCharCode, in ImplFindAccelWindow()
473 pWindow = ImplGetNextWindow( pParent, i, i, bCheckEnable ); in ImplFindAccelWindow()
474 if( ! pWindow ) in ImplFindAccelWindow()
475 pWindow = ImplGetChildWindow( pParent, nFormStart, i, bCheckEnable ); in ImplFindAccelWindow()
478 pWindow = ImplGetChildWindow( pParent, nFormStart, i, bCheckEnable ); in ImplFindAccelWindow()
762 … Window* pWindow = ImplGetDlgWindow( i, nType, nFormStart, nFormEnd, &nNewIndex ); in ImplDlgCtrl() local
765 if ( pWindow == pSWindow ) in ImplDlgCtrl()
777 else if ( pWindow ) in ImplDlgCtrl()
790 pWindow->ImplControlFocus( nGetFocusFlags ); in ImplDlgCtrl()
799 Window* pWindow = pSWindow; in ImplDlgCtrl() local
803 pWindow = pWindow->GetWindow( WINDOW_PREV ); in ImplDlgCtrl()
804 while ( pWindow ) in ImplDlgCtrl()
806 pWindow = pWindow->ImplGetWindow(); in ImplDlgCtrl()
808 nStyle = pWindow->GetStyle(); in ImplDlgCtrl()
810 if ( pWindow->IsVisible() && pWindow->IsEnabled() && pWindow->IsInputEnabled() ) in ImplDlgCtrl()
812 if ( pWindow != pSWindow ) in ImplDlgCtrl()
813 pWindow->ImplControlFocus( GETFOCUS_CURSOR | GETFOCUS_BACKWARD ); in ImplDlgCtrl()
820 pWindow = pWindow->GetWindow( WINDOW_PREV ); in ImplDlgCtrl()
826 Window* pWindow; in ImplDlgCtrl() local
828 pWindow = pSWindow->GetWindow( WINDOW_NEXT ); in ImplDlgCtrl()
829 while ( pWindow ) in ImplDlgCtrl()
831 pWindow = pWindow->ImplGetWindow(); in ImplDlgCtrl()
833 nStyle = pWindow->GetStyle(); in ImplDlgCtrl()
840 if ( pWindow->IsVisible() && pWindow->IsEnabled() && in ImplDlgCtrl()
841 pWindow->IsInputEnabled() && ( in ImplDlgCtrl()
842 pWindow->GetType() != WINDOW_WINDOW && in ImplDlgCtrl()
843 pWindow->GetType() != WINDOW_SYSWINDOW && in ImplDlgCtrl()
844 pWindow->GetType() != WINDOW_WORKWINDOW && in ImplDlgCtrl()
845 pWindow->GetType() != WINDOW_CONTROL in ImplDlgCtrl()
849 pWindow->ImplControlFocus( GETFOCUS_CURSOR | GETFOCUS_BACKWARD ); in ImplDlgCtrl()
853 pWindow = pWindow->GetWindow( WINDOW_NEXT ); in ImplDlgCtrl()
948 …Window* pWindow = pDlgCtrlParent->ImplGetDlgWindow( nIndex, DLGWINDOW_NEXT, nFormStart, nFormEnd ); in ImplDlgCtrlNextWindow() local
949 if ( pWindow && (pWindow != pSWindow) ) in ImplDlgCtrlNextWindow()
950 pWindow->ImplControlFocus(); in ImplDlgCtrlNextWindow()
1014 void Window::ImplDlgCtrlFocusChanged( Window* pWindow, sal_Bool bGetFocus ) in ImplDlgCtrlFocusChanged() argument
1022 ImplDlgCtrlUpdateDefButton( this, pWindow, bGetFocus ); in ImplDlgCtrlFocusChanged()
1027 Window* Window::ImplFindDlgCtrlWindow( Window* pWindow ) in ImplFindDlgCtrlWindow() argument
1034 return ::ImplFindDlgCtrlWindow( this, pWindow, nIndex, nFormStart, nFormEnd ); in ImplFindDlgCtrlWindow()
1071 Window* pWindow = NULL; in ImplGetLabelFor() local
1091 pWindow = ::ImplFindAccelWindow( pFrameWindow, in ImplGetLabelFor()
1116 pWindow = pSWindow; in ImplGetLabelFor()
1120 pWindow = pSWindow; in ImplGetLabelFor()
1128 return pWindow; in ImplGetLabelFor()
1140 Window* pWindow = NULL; in GetAccessibleRelationLabelFor() local
1150 pWindow = mpWindowImpl->mpRealParent->GetParentLabelFor( this ); in GetAccessibleRelationLabelFor()
1152 if( pWindow ) in GetAccessibleRelationLabelFor()
1153 return pWindow; in GetAccessibleRelationLabelFor()
1157 pWindow = ImplGetLabelFor( pFrameWindow, GetType(), const_cast<Window*>(this), nAccel ); in GetAccessibleRelationLabelFor()
1158 if( ! pWindow && mpWindowImpl->mpRealParent ) in GetAccessibleRelationLabelFor()
1159 …pWindow = ImplGetLabelFor( mpWindowImpl->mpRealParent, GetType(), const_cast<Window*>(this), nAcce… in GetAccessibleRelationLabelFor()
1160 return pWindow; in GetAccessibleRelationLabelFor()
1167 Window* pWindow = NULL; in ImplGetLabeledBy() local
1208 pWindow = pSWindow; in ImplGetLabeledBy()
1217 return pWindow; in ImplGetLabeledBy()
1228 Window* pWindow = NULL; in GetAccessibleRelationLabeledBy() local
1233 pWindow = mpWindowImpl->mpRealParent->GetParentLabeledBy( this ); in GetAccessibleRelationLabeledBy()
1235 if( pWindow ) in GetAccessibleRelationLabeledBy()
1236 return pWindow; in GetAccessibleRelationLabeledBy()
1249 pWindow = ImplGetLabeledBy( pFrameWindow, GetType(), const_cast<Window*>(this) ); in GetAccessibleRelationLabeledBy()
1250 if( ! pWindow && mpWindowImpl->mpRealParent ) in GetAccessibleRelationLabeledBy()
1251 … pWindow = ImplGetLabeledBy( mpWindowImpl->mpRealParent, GetType(), const_cast<Window*>(this) ); in GetAccessibleRelationLabeledBy()
1253 return pWindow; in GetAccessibleRelationLabeledBy()
1258 Window* pWindow = NULL; in GetAccessibleRelationMemberOf() local
1300 pWindow = pSWindow; in GetAccessibleRelationMemberOf()
1308 return pWindow; in GetAccessibleRelationMemberOf()
1320 Window* pWindow = GetAccessibleRelationLabeledBy(); in GetActivationKey() local
1321 if( pWindow ) in GetActivationKey()
1322 nAccel = getAccel( pWindow->GetText() ); in GetActivationKey()