Lines Matching refs:pWidget

444         for ( Widget *pWidget = mpParent; pWidget; pWidget = pWidget->mpParent )  in getDepth()  local
538 PropertyIterator( Widget *pWidget, PropertyKind rKind ) in PropertyIterator()
544 if ( layoutimpl::prophlp::canHandleProps( pWidget->mxWidget ) ) in PropertyIterator()
547 = layoutimpl::prophlp::queryPropertyInfo( pWidget->mxWidget ); in PropertyIterator()
555 if ( pWidget->mpParent ) in PropertyIterator()
558pWidget->mpParent->mxContainer->getChildProperties( pWidget->mxWidget ) ); in PropertyIterator()
608 Widget *pWidget = new Widget( id, mxToolkit, xParent, unoName, attrbs ); in create() local
610 mxWindow = uno::Reference< awt::XWindow >( pWidget->getPeer(), uno::UNO_QUERY ); in create()
612 if ( pWidget->mxContainer.is() ) in create()
613 pWidget->mxContainer->setLayoutUnit( mpParent->mxContainer->getLayoutUnit() ); in create()
615 return pWidget; in create()
622 Widget *next( Widget *pWidget ) in next() argument
625 pNext = pWidget->down(); in next()
627 pNext = pWidget->next(); in next()
629 for ( Widget *pUp = pWidget->up(); pUp != NULL; pUp = pUp->up() ) in next()
660 bool moveWidget( Widget *pWidget, bool up /*or down*/ ) in moveWidget() argument
663 Widget *pOriContainer = pWidget->up(); in moveWidget()
664 unsigned int oriChildPos = pOriContainer->getChildPos( pWidget ); in moveWidget()
667 Widget *pSibling = up ? pWidget->prev() : pWidget->next(); in moveWidget()
668 Widget *pContainer = pWidget->up(); in moveWidget()
678 if ( pContainer->swapWithChild( pWidget ) ) in moveWidget()
685 if ( pWidget->down() && pWidget->swapWithChild( pWidget->down() ) ) in moveWidget()
691 pContainer->removeChild( pWidget ); in moveWidget()
696 if ( pSibling->addChild( pWidget, up ? 0xffff : 0 ) ) in moveWidget()
700 if ( pContainer->addChild( pWidget, childPos + (up ? 0 : 1) ) ) in moveWidget()
709 if ( pContainer->up()->addChild( pWidget, childPos + (up ? 0 : 1) ) ) in moveWidget()
715 if ( !pOriContainer->addChild( pWidget, oriChildPos ) ) in moveWidget()
719 delete pWidget; in moveWidget()
734 int get( Widget *pRoot, Widget *pWidget ) in get() argument
738 for ( it = pRoot; it != NULL && it != pWidget; it = next( it ) ) in get()
758 AnyWidget( Widget *pWidget, rtl::OUString aPropName, Widget::PropertyKind aPropKind ) in AnyWidget()
759 : mpWidget( pWidget ), maPropName( aPropName ), maPropKind( aPropKind ) in AnyWidget()
835 AnyEdit( Widget *pWidget, rtl::OUString aPropName, in AnyEdit()
837 … : AnyWidget( pWidget, aPropName, aPropKind ), layout::HBox( 0, false ), mpWinParent( pWinParent ) in AnyEdit()
957 AnyInteger( Widget *pWidget, rtl::OUString aPropName, in AnyInteger()
959 … : AnyWidget( pWidget, aPropName, aPropKind ), NumericField( pWinParent, WB_SPIN|WB_BORDER ) in AnyInteger()
986 AnyFloat( Widget *pWidget, rtl::OUString aPropName, in AnyFloat()
988 : AnyInteger( pWidget, aPropName, aPropKind, pWinParent ) in AnyFloat()
999 AnyCheckBox( Widget *pWidget, rtl::OUString aPropName, in AnyCheckBox()
1001 : AnyWidget( pWidget, aPropName, aPropKind ), layout::CheckBox( pWinParent ) in AnyCheckBox()
1043 AnyListBox( Widget *pWidget, rtl::OUString aPropName, in AnyListBox()
1045 … : AnyWidget( pWidget, aPropName, aPropKind ), layout::ListBox( pWinParent, WB_DROPDOWN ) in AnyListBox()
1067 AnyAlign( Widget *pWidget, rtl::OUString aPropName, in AnyAlign()
1069 : AnyListBox( pWidget, aPropName, aPropKind, pWinParent ) in AnyAlign()
1083 AnyComboBox( Widget *pWidget, rtl::OUString aPropName, in AnyComboBox()
1085 … : AnyWidget( pWidget, aPropName, aPropKind ), layout::ComboBox( pWinParent, WB_DROPDOWN ) in AnyComboBox()
1107 AnyFontStyle( Widget *pWidget, rtl::OUString aPropName, in AnyFontStyle()
1109 : AnyComboBox( pWidget, aPropName, aPropKind, pWinParent ) in AnyFontStyle()
1150 static PropertyEntry *construct( Widget *pWidget, rtl::OUString aPropName, in construct() argument
1159 pAnyWidget = new AnyFontStyle( pWidget, aPropName, aPropKind, pWinParent ); in construct()
1162 pAnyWidget = new AnyEdit( pWidget, aPropName, aPropKind, pWinParent ); in construct()
1167 pAnyWidget = new AnyAlign( pWidget, aPropName, aPropKind, pWinParent ); in construct()
1173 pAnyWidget = new AnyInteger( pWidget, aPropName, aPropKind, pWinParent ); in construct()
1177 pAnyWidget = new AnyFloat( pWidget, aPropName, aPropKind, pWinParent ); in construct()
1180 pAnyWidget = new AnyCheckBox( pWidget, aPropName, aPropKind, pWinParent ); in construct()
1250 void addProperties( Widget *pWidget, Widget::PropertyKind rKind ) in addProperties() argument
1252 Widget::PropertyIterator it( pWidget, rKind ); in addProperties()
1262 pWidget, name, rKind, type, mpParentWindow ); in addProperties()
1279 void selectedWidget( Widget *pWidget ) in selectedWidget() argument
1283 if ( !pWidget ) in selectedWidget()
1286 addProperties( pWidget, Widget::CONTAINER_PROPERTY ); in selectedWidget()
1292 addProperties( pWidget, Widget::WINDOW_PROPERTY ); in selectedWidget()
1491 virtual void widgetSelected( Widget *pWidget ) = 0;
1522 Widget *pWidget = getWidget( mpListBox->GetSelectEntryPos() ); in getSelectedWidget() local
1523 if ( !pWidget ) // return root, if none selected in getSelectedWidget()
1524 pWidget = mpRootWidget; in getSelectedWidget()
1525 return pWidget; in getSelectedWidget()
1528 void selectWidget( Widget *pWidget ) in selectWidget() argument
1530 int pos = FlatLayout::get( mpRootWidget, pWidget ); in selectWidget()
1635 Widget *pWidget = getWidget( nPos ); in upPressed() local
1636 if ( FlatLayout::moveWidget( pWidget, true ) ) in upPressed()
1638 selectWidget( pWidget ); in upPressed()
1643 Widget *pWidget = getWidget( nPos ); in downPressed() local
1644 if ( FlatLayout::moveWidget( pWidget, false ) ) in downPressed()
1646 selectWidget( pWidget ); in downPressed()
1651 Widget *pWidget = getWidget( nPos ); in removePressed() local
1652 if ( pWidget ) in removePressed()
1654 pWidget->up()->removeChild( pWidget ); in removePressed()
1655 delete pWidget; in removePressed()
1696 virtual void widgetSelected( Widget *pWidget );
1839 Widget *pWidget = mpLayoutTree->getSelectedWidget(); in createWidget() local
1842 if ( !pWidget->addChild( pChild ) ) in createWidget()
1850 mpLayoutTree->selectWidget( pWidget ); in createWidget()
1854 void EditorImpl::widgetSelected( Widget *pWidget ) in widgetSelected() argument
1859 if ( !pWidget || pWidget->isContainer() ) in widgetSelected()
1872 mpPropertiesList->selectedWidget( pWidget ); in widgetSelected()