Lines Matching refs:pItem
94 ImplBtnDlgItem* pItem = mpItemList->First(); in ~ButtonDialog() local
95 while ( pItem ) in ~ButtonDialog()
97 if ( pItem->mpPushButton && pItem->mbOwnButton ) in ~ButtonDialog()
98 delete pItem->mpPushButton; in ~ButtonDialog()
99 delete pItem; in ~ButtonDialog()
100 pItem = mpItemList->Next(); in ~ButtonDialog()
134 ImplBtnDlgItem* pItem = mpItemList->First(); in ImplGetItem() local
135 while ( pItem ) in ImplGetItem()
137 if ( pItem->mnId == nId ) in ImplGetItem()
138 return pItem; in ImplGetItem()
140 pItem = mpItemList->Next(); in ImplGetItem()
158 ImplBtnDlgItem* pItem = mpItemList->First(); in ImplGetButtonSize() local
159 while ( pItem ) in ImplGetButtonSize()
163 long nTxtWidth = pItem->mpPushButton->GetCtrlTextWidth( pItem->mpPushButton->GetText() ); in ImplGetButtonSize()
167 long nTxtHeight = pItem->mpPushButton->GetTextHeight(); in ImplGetButtonSize()
172 nSepSize += pItem->mnSepSize; in ImplGetButtonSize()
181 pItem = mpItemList->Next(); in ImplGetButtonSize()
203 ImplBtnDlgItem* pItem; in ImplPosControls() local
237 pItem = mpItemList->First(); in ImplPosControls()
238 while ( pItem ) in ImplPosControls()
241 nX += pItem->mnSepSize; in ImplPosControls()
243 nY += pItem->mnSepSize; in ImplPosControls()
244 pItem->mpPushButton->SetPosSizePixel( Point( nX, nY ), maCtrlSize ); in ImplPosControls()
245 pItem->mpPushButton->Show(); in ImplPosControls()
251 pItem = mpItemList->Next(); in ImplPosControls()
263 ImplBtnDlgItem* pItem = mpItemList->First(); in IMPL_LINK() local
264 while ( pItem ) in IMPL_LINK()
266 if ( pItem->mpPushButton == pBtn ) in IMPL_LINK()
268 mnCurButtonId = pItem->mnId; in IMPL_LINK()
273 pItem = mpItemList->Next(); in IMPL_LINK()
292 ImplBtnDlgItem* pItem = mpItemList->First(); in StateChanged() local
293 while ( pItem ) in StateChanged()
295 if ( pItem->mpPushButton && pItem->mbOwnButton ) in StateChanged()
296 pItem->mpPushButton->SetZOrder(0, WINDOW_ZORDER_LAST); in StateChanged()
297 pItem = mpItemList->Next(); in StateChanged()
303 ImplBtnDlgItem* pItem = mpItemList->First(); in StateChanged() local
304 while ( pItem ) in StateChanged()
306 if ( pItem->mnId == mnFocusButtonId ) in StateChanged()
308 if ( pItem->mpPushButton->IsVisible() ) in StateChanged()
309 pItem->mpPushButton->GrabFocus(); in StateChanged()
313 pItem = mpItemList->Next(); in StateChanged()
340 ImplBtnDlgItem* pItem = new ImplBtnDlgItem; in AddButton() local
341 pItem->mnId = nId; in AddButton()
342 pItem->mbOwnButton = sal_True; in AddButton()
343 pItem->mnSepSize = nSepPixel; in AddButton()
344 pItem->mpPushButton = ImplCreatePushButton( nBtnFlags ); in AddButton()
346 pItem->mpPushButton->SetText( rText ); in AddButton()
349 mpItemList->Insert( pItem, LIST_APPEND ); in AddButton()
363 ImplBtnDlgItem* pItem = new ImplBtnDlgItem; in AddButton() local
364 pItem->mnId = nId; in AddButton()
365 pItem->mbOwnButton = sal_True; in AddButton()
366 pItem->mnSepSize = nSepPixel; in AddButton()
374 pItem->mpPushButton = ImplCreatePushButton( nBtnFlags ); in AddButton()
377 if ( !((eType == BUTTON_OK) && (pItem->mpPushButton->GetType() == WINDOW_OKBUTTON)) || in AddButton()
378 !((eType == BUTTON_CANCEL) && (pItem->mpPushButton->GetType() == WINDOW_CANCELBUTTON)) || in AddButton()
379 !((eType == BUTTON_HELP) && (pItem->mpPushButton->GetType() == WINDOW_HELPBUTTON)) ) in AddButton()
381 pItem->mpPushButton->SetText( Button::GetStandardText( eType ) ); in AddButton()
382 pItem->mpPushButton->SetHelpText( Button::GetStandardHelpText( eType ) ); in AddButton()
389 mpItemList->Insert( pItem, LIST_APPEND ); in AddButton()
400 ImplBtnDlgItem* pItem = new ImplBtnDlgItem; in AddButton() local
401 pItem->mnId = nId; in AddButton()
402 pItem->mbOwnButton = sal_False; in AddButton()
403 pItem->mnSepSize = nSepPixel; in AddButton()
404 pItem->mpPushButton = pBtn; in AddButton()
410 mpItemList->Insert( pItem, LIST_APPEND ); in AddButton()
419 ImplBtnDlgItem* pItem = mpItemList->First(); in RemoveButton() local
420 while ( pItem ) in RemoveButton()
422 if ( pItem->mnId == nId ) in RemoveButton()
424 pItem->mpPushButton->Hide(); in RemoveButton()
425 if ( pItem->mbOwnButton ) in RemoveButton()
426 delete pItem->mpPushButton; in RemoveButton()
427 delete pItem; in RemoveButton()
433 pItem = mpItemList->Next(); in RemoveButton()
443 ImplBtnDlgItem* pItem = mpItemList->First(); in Clear() local
444 while ( pItem ) in Clear()
446 pItem->mpPushButton->Hide(); in Clear()
447 if ( pItem->mbOwnButton ) in Clear()
448 delete pItem->mpPushButton; in Clear()
449 delete pItem; in Clear()
450 pItem = mpItemList->Next(); in Clear()
478 ImplBtnDlgItem* pItem = ImplGetItem( nId ); in GetPushButton() local
480 if ( pItem ) in GetPushButton()
481 return pItem->mpPushButton; in GetPushButton()
490 ImplBtnDlgItem* pItem = ImplGetItem( nId ); in SetButtonText() local
492 if ( pItem ) in SetButtonText()
494 pItem->mpPushButton->SetText( rText ); in SetButtonText()
503 ImplBtnDlgItem* pItem = ImplGetItem( nId ); in GetButtonText() local
505 if ( pItem ) in GetButtonText()
506 return pItem->mpPushButton->GetText(); in GetButtonText()
515 ImplBtnDlgItem* pItem = ImplGetItem( nId ); in SetButtonHelpText() local
517 if ( pItem ) in SetButtonHelpText()
518 pItem->mpPushButton->SetHelpText( rText ); in SetButtonHelpText()
525 ImplBtnDlgItem* pItem = ImplGetItem( nId ); in GetButtonHelpText() local
527 if ( pItem ) in GetButtonHelpText()
528 return pItem->mpPushButton->GetHelpText(); in GetButtonHelpText()
537 ImplBtnDlgItem* pItem = ImplGetItem( nId ); in SetButtonHelpId() local
539 if ( pItem ) in SetButtonHelpId()
540 pItem->mpPushButton->SetHelpId( rHelpId ); in SetButtonHelpId()
547 ImplBtnDlgItem* pItem = ImplGetItem( nId ); in GetButtonHelpId() local
549 return pItem ? rtl::OString( pItem->mpPushButton->GetHelpId() ) : rtl::OString(); in GetButtonHelpId()