Lines Matching refs:nPart

189 static Rectangle NWGetButtonArea( int nScreen, ControlType nType, ControlPart nPart, Rectangle aAre…
193 static Rectangle NWGetEditBoxPixmapRect( int nScreen, ControlType nType, ControlPart nPart, Rectang…
197 ControlType nType, ControlPart nPart, Rectangle aEditBoxRect,
202 static Rectangle NWGetSpinButtonRect( int nScreen, ControlType nType, ControlPart nPart, Rectangle …
205 …inButton( int nScreen, GdkPixmap * pixmap, ControlType nType, ControlPart nPart, Rectangle aAreaRe…
209 static Rectangle NWGetComboBoxButtonRect( int nScreen, ControlType nType, ControlPart nPart, Rectan…
213 static Rectangle NWGetListBoxButtonRect( int nScreen, ControlType nType, ControlPart nPart, Rectang…
216 static Rectangle NWGetListBoxIndicatorRect( int nScreen, ControlType nType, ControlPart nPart, Rect…
221 ControlPart nPart,
228 static Rectangle NWGetScrollButtonRect( int nScreen, ControlPart nPart, Rectangle aAreaRect );
518 sal_Bool GtkSalGraphics::IsNativeControlSupported( ControlType nType, ControlPart nPart ) in IsNativeControlSupported() argument
521 ((nType==CTRL_PUSHBUTTON) && (nPart==PART_ENTIRE_CONTROL)) || in IsNativeControlSupported()
522 ((nType==CTRL_RADIOBUTTON) && (nPart==PART_ENTIRE_CONTROL)) || in IsNativeControlSupported()
523 ((nType==CTRL_CHECKBOX) && (nPart==PART_ENTIRE_CONTROL)) || in IsNativeControlSupported()
525 ( (nPart==PART_DRAW_BACKGROUND_HORZ) in IsNativeControlSupported()
526 || (nPart==PART_DRAW_BACKGROUND_VERT) in IsNativeControlSupported()
527 || (nPart==PART_ENTIRE_CONTROL) in IsNativeControlSupported()
528 || (nPart==HAS_THREE_BUTTONS) ) ) || in IsNativeControlSupported()
530 ( (nPart==PART_ENTIRE_CONTROL) in IsNativeControlSupported()
531 || (nPart==HAS_BACKGROUND_TEXTURE) ) ) || in IsNativeControlSupported()
533 ( (nPart==PART_ENTIRE_CONTROL) in IsNativeControlSupported()
534 || (nPart==HAS_BACKGROUND_TEXTURE) ) ) || in IsNativeControlSupported()
536 ( (nPart==PART_ENTIRE_CONTROL) in IsNativeControlSupported()
537 || (nPart==PART_ALL_BUTTONS) in IsNativeControlSupported()
538 || (nPart==HAS_BACKGROUND_TEXTURE) ) ) || in IsNativeControlSupported()
540 ( (nPart==PART_ENTIRE_CONTROL) in IsNativeControlSupported()
541 || (nPart==PART_ALL_BUTTONS) ) ) || in IsNativeControlSupported()
543 ( (nPart==PART_ENTIRE_CONTROL) in IsNativeControlSupported()
544 || (nPart==HAS_BACKGROUND_TEXTURE) ) ) || in IsNativeControlSupported()
547 ( (nPart==PART_ENTIRE_CONTROL) in IsNativeControlSupported()
548 || (nPart==PART_TABS_DRAW_RTL) ) ) || in IsNativeControlSupported()
550 ( (nPart==PART_ENTIRE_CONTROL) in IsNativeControlSupported()
551 || (nPart==PART_WINDOW) in IsNativeControlSupported()
552 || (nPart==HAS_BACKGROUND_TEXTURE) ) ) || in IsNativeControlSupported()
554 ( (nPart==PART_ENTIRE_CONTROL) in IsNativeControlSupported()
555 || (nPart==PART_DRAW_BACKGROUND_HORZ) in IsNativeControlSupported()
556 || (nPart==PART_DRAW_BACKGROUND_VERT) in IsNativeControlSupported()
557 || (nPart==PART_THUMB_HORZ) in IsNativeControlSupported()
558 || (nPart==PART_THUMB_VERT) in IsNativeControlSupported()
559 || (nPart==PART_BUTTON) in IsNativeControlSupported()
563 ( (nPart==PART_ENTIRE_CONTROL) ) ) || in IsNativeControlSupported()
565 ( (nPart==PART_ENTIRE_CONTROL) ) ) || in IsNativeControlSupported()
567 ( (nPart==PART_ENTIRE_CONTROL) in IsNativeControlSupported()
568 || (nPart==PART_MENU_ITEM) in IsNativeControlSupported()
569 || (nPart==PART_MENU_ITEM_CHECK_MARK) in IsNativeControlSupported()
570 || (nPart==PART_MENU_ITEM_RADIO_MARK) in IsNativeControlSupported()
574 ( (nPart == PART_ENTIRE_CONTROL) ) in IsNativeControlSupported()
577 ( (nPart == PART_ENTIRE_CONTROL) ) in IsNativeControlSupported()
580 ( (nPart == PART_TRACK_HORZ_AREA) in IsNativeControlSupported()
581 || (nPart == PART_TRACK_VERT_AREA) in IsNativeControlSupported()
601 ControlPart nPart, in hitTestNativeControl() argument
607 ( ( nPart == PART_BUTTON_UP ) || in hitTestNativeControl()
608 ( nPart == PART_BUTTON_DOWN ) || in hitTestNativeControl()
609 ( nPart == PART_BUTTON_LEFT ) || in hitTestNativeControl()
610 ( nPart == PART_BUTTON_RIGHT ) ) ) in hitTestNativeControl()
630 if ( nPart == PART_BUTTON_UP ) in hitTestNativeControl()
632 else if ( nPart == PART_BUTTON_DOWN ) in hitTestNativeControl()
634 else if ( nPart == PART_BUTTON_LEFT ) in hitTestNativeControl()
636 else if ( nPart == PART_BUTTON_RIGHT ) in hitTestNativeControl()
639 aBackward = NWGetScrollButtonRect( m_nScreen, nPart, rControlRegion ); in hitTestNativeControl()
645 if ( ( nPart == PART_BUTTON_UP ) || ( nPart == PART_BUTTON_DOWN ) ) in hitTestNativeControl()
651 if ( nPart == PART_BUTTON_DOWN ) in hitTestNativeControl()
653 else if ( nPart == PART_BUTTON_RIGHT ) in hitTestNativeControl()
660 if ( ( nPart == PART_BUTTON_UP ) || ( nPart == PART_BUTTON_DOWN ) ) in hitTestNativeControl()
666 if ( nPart == PART_BUTTON_DOWN ) in hitTestNativeControl()
668 else if ( nPart == PART_BUTTON_RIGHT ) in hitTestNativeControl()
672 if ( ( nPart == PART_BUTTON_UP ) || ( nPart == PART_BUTTON_LEFT ) ) in hitTestNativeControl()
689 if( IsNativeControlSupported(nType, nPart) ) in hitTestNativeControl()
711 ControlPart nPart, in drawNativeControl() argument
747 …&& ! (bToolbarGripWorkaround && nType == CTRL_TOOLBAR && (nPart == PART_THUMB_HORZ || nPart == PAR… in drawNativeControl()
788 if ( (nType==CTRL_PUSHBUTTON) && (nPart==PART_ENTIRE_CONTROL) ) in drawNativeControl()
790 …returnVal = NWPaintGTKButton( gdkDrawable, nType, nPart, aCtrlRect, aClip, nState, aValue, rCaptio… in drawNativeControl()
792 else if ( (nType==CTRL_RADIOBUTTON) && (nPart==PART_ENTIRE_CONTROL) ) in drawNativeControl()
794 …returnVal = NWPaintGTKRadio( gdkDrawable, nType, nPart, aCtrlRect, aClip, nState, aValue, rCaption… in drawNativeControl()
796 else if ( (nType==CTRL_CHECKBOX) && (nPart==PART_ENTIRE_CONTROL) ) in drawNativeControl()
798 …returnVal = NWPaintGTKCheck( gdkDrawable, nType, nPart, aCtrlRect, aClip, nState, aValue, rCaption… in drawNativeControl()
800 …else if ( (nType==CTRL_SCROLLBAR) && ((nPart==PART_DRAW_BACKGROUND_HORZ) || (nPart==PART_DRAW_BACK… in drawNativeControl()
802 returnVal = NWPaintGTKScrollbar( nType, nPart, aCtrlRect, aClip, nState, aValue, rCaption ); in drawNativeControl()
804 …else if ( ((nType==CTRL_EDITBOX) && ((nPart==PART_ENTIRE_CONTROL) || (nPart==HAS_BACKGROUND_TEXTUR… in drawNativeControl()
805 || ((nType==CTRL_SPINBOX) && (nPart==HAS_BACKGROUND_TEXTURE)) in drawNativeControl()
806 || ((nType==CTRL_COMBOBOX) && (nPart==HAS_BACKGROUND_TEXTURE)) in drawNativeControl()
807 || ((nType==CTRL_LISTBOX) && (nPart==HAS_BACKGROUND_TEXTURE)) ) in drawNativeControl()
809 …returnVal = NWPaintGTKEditBox( gdkDrawable, nType, nPart, aCtrlRect, aClip, nState, aValue, rCapti… in drawNativeControl()
811 …else if ( ((nType==CTRL_MULTILINE_EDITBOX) && ((nPart==PART_ENTIRE_CONTROL) || (nPart==HAS_BACKGRO… in drawNativeControl()
813 …returnVal = NWPaintGTKEditBox( gdkDrawable, nType, nPart, aCtrlRect, aClip, nState, aValue, rCapti… in drawNativeControl()
816 && ((nPart==PART_ENTIRE_CONTROL) || (nPart==PART_ALL_BUTTONS)) ) in drawNativeControl()
818 returnVal = NWPaintGTKSpinBox( nType, nPart, aCtrlRect, aClip, nState, aValue, rCaption ); in drawNativeControl()
821 ( (nPart==PART_ENTIRE_CONTROL) in drawNativeControl()
822 ||(nPart==PART_BUTTON_DOWN) in drawNativeControl()
825 …returnVal = NWPaintGTKComboBox( gdkDrawable, nType, nPart, aCtrlRect, aClip, nState, aValue, rCapt… in drawNativeControl()
832 … returnVal = NWPaintGTKTabItem( nType, nPart, aCtrlRect, aClip, nState, aValue, rCaption); in drawNativeControl()
834 else if ( (nType==CTRL_LISTBOX) && ((nPart==PART_ENTIRE_CONTROL) || (nPart==PART_WINDOW)) ) in drawNativeControl()
836 …returnVal = NWPaintGTKListBox( gdkDrawable, nType, nPart, aCtrlRect, aClip, nState, aValue, rCapti… in drawNativeControl()
840 …returnVal = NWPaintGTKToolbar( gdkDrawable, nType, nPart, aCtrlRect, aClip, nState, aValue, rCapti… in drawNativeControl()
844 …returnVal = NWPaintGTKMenubar( gdkDrawable, nType, nPart, aCtrlRect, aClip, nState, aValue, rCapti… in drawNativeControl()
847 && ( (nPart == PART_ENTIRE_CONTROL) in drawNativeControl()
848 || (nPart == PART_MENU_ITEM) in drawNativeControl()
849 || (nPart == PART_MENU_ITEM_CHECK_MARK) in drawNativeControl()
850 || (nPart == PART_MENU_ITEM_RADIO_MARK) in drawNativeControl()
854 …returnVal = NWPaintGTKPopupMenu( gdkDrawable, nType, nPart, aCtrlRect, aClip, nState, aValue, rCap… in drawNativeControl()
856 else if( (nType == CTRL_TOOLTIP) && (nPart == PART_ENTIRE_CONTROL) ) in drawNativeControl()
858 …returnVal = NWPaintGTKTooltip( gdkDrawable, nType, nPart, aCtrlRect, aClip, nState, aValue, rCapti… in drawNativeControl()
860 else if( (nType == CTRL_PROGRESS) && (nPart == PART_ENTIRE_CONTROL) ) in drawNativeControl()
862 …returnVal = NWPaintGTKProgress( gdkDrawable, nType, nPart, aCtrlRect, aClip, nState, aValue, rCapt… in drawNativeControl()
864 else if( (nType == CTRL_LISTNODE) && (nPart == PART_ENTIRE_CONTROL) ) in drawNativeControl()
866 …returnVal = NWPaintGTKListNode( gdkDrawable, nType, nPart, aCtrlRect, aClip, nState, aValue, rCapt… in drawNativeControl()
868 else if( (nType == CTRL_LISTNET) && (nPart == PART_ENTIRE_CONTROL) ) in drawNativeControl()
875 …returnVal = NWPaintGTKSlider( gdkDrawable, nType, nPart, aCtrlRect, aClip, nState, aValue, rCaptio… in drawNativeControl()
922 ControlPart nPart, in getNativeControlRegion() argument
932 if ( (nType==CTRL_PUSHBUTTON) && (nPart==PART_ENTIRE_CONTROL) in getNativeControlRegion()
936 rNativeBoundingRegion = NWGetButtonArea( m_nScreen, nType, nPart, rControlRegion, in getNativeControlRegion()
942 if ( (nType==CTRL_COMBOBOX) && ((nPart==PART_BUTTON_DOWN) || (nPart==PART_SUB_EDIT)) ) in getNativeControlRegion()
944 … rNativeBoundingRegion = NWGetComboBoxButtonRect( m_nScreen, nType, nPart, rControlRegion, nState, in getNativeControlRegion()
950 …if ( (nType==CTRL_SPINBOX) && ((nPart==PART_BUTTON_UP) || (nPart==PART_BUTTON_DOWN) || (nPart==PAR… in getNativeControlRegion()
953 … rNativeBoundingRegion = NWGetSpinButtonRect( m_nScreen, nType, nPart, rControlRegion, nState, in getNativeControlRegion()
959 if ( (nType==CTRL_LISTBOX) && ((nPart==PART_BUTTON_DOWN) || (nPart==PART_SUB_EDIT)) ) in getNativeControlRegion()
961 … rNativeBoundingRegion = NWGetListBoxButtonRect( m_nScreen, nType, nPart, rControlRegion, nState, in getNativeControlRegion()
968 ((nPart==PART_DRAW_BACKGROUND_HORZ) || in getNativeControlRegion()
969 (nPart==PART_DRAW_BACKGROUND_VERT) || in getNativeControlRegion()
970 (nPart==PART_THUMB_HORZ) || in getNativeControlRegion()
971 (nPart==PART_THUMB_VERT) || in getNativeControlRegion()
972 (nPart==PART_BUTTON) in getNativeControlRegion()
975 …rNativeBoundingRegion = NWGetToolbarRect( m_nScreen, nType, nPart, rControlRegion, nState, aValue,… in getNativeControlRegion()
979 if ( (nType==CTRL_SCROLLBAR) && ((nPart==PART_BUTTON_LEFT) || (nPart==PART_BUTTON_RIGHT) || in getNativeControlRegion()
980 (nPart==PART_BUTTON_UP) || (nPart==PART_BUTTON_DOWN) ) ) in getNativeControlRegion()
982 rNativeBoundingRegion = NWGetScrollButtonRect( m_nScreen, nPart, rControlRegion ); in getNativeControlRegion()
990 if( (nType == CTRL_MENUBAR) && (nPart == PART_ENTIRE_CONTROL) ) in getNativeControlRegion()
1004 if( (nPart == PART_MENU_ITEM_CHECK_MARK) || in getNativeControlRegion()
1005 (nPart == PART_MENU_ITEM_RADIO_MARK) ) in getNativeControlRegion()
1010 GtkWidget* pWidget = (nPart == PART_MENU_ITEM_CHECK_MARK) ? in getNativeControlRegion()
1041 if( (nType == CTRL_EDITBOX || nType == CTRL_SPINBOX) && nPart == PART_ENTIRE_CONTROL ) in getNativeControlRegion()
1055 if( (nType == CTRL_SLIDER) && (nPart == PART_THUMB_HORZ || nPart == PART_THUMB_VERT) ) in getNativeControlRegion()
1058 …GtkWidget* widget = (nPart == PART_THUMB_HORZ) ? gWidgetData[m_nScreen].gHScale : gWidgetData[m_nS… in getNativeControlRegion()
1066 if( nPart == PART_THUMB_HORZ ) in getNativeControlRegion()
1373 sal_Bool GtkSalGraphics::NWPaintGTKScrollbar( ControlType, ControlPart nPart, in NWPaintGTKScrollbar() argument
1452 if ( nPart == PART_DRAW_BACKGROUND_HORZ ) in NWPaintGTKScrollbar()
1559 if ( nPart == PART_DRAW_BACKGROUND_HORZ ) in NWPaintGTKScrollbar()
1696 static Rectangle NWGetScrollButtonRect( int nScreen, ControlPart nPart, Rectangle aAreaRect ) in NWGetScrollButtonRect() argument
1734 if ( ( nPart == PART_BUTTON_UP ) || ( nPart == PART_BUTTON_DOWN ) ) in NWGetScrollButtonRect()
1745 if ( nPart == PART_BUTTON_UP ) in NWGetScrollButtonRect()
1752 else if ( nPart == PART_BUTTON_LEFT ) in NWGetScrollButtonRect()
1759 else if ( nPart == PART_BUTTON_DOWN ) in NWGetScrollButtonRect()
1765 else if ( nPart == PART_BUTTON_RIGHT ) in NWGetScrollButtonRect()
1780 ControlType nType, ControlPart nPart, in NWPaintGTKEditBox() argument
1792 pixmapRect = NWGetEditBoxPixmapRect( m_nScreen, nType, nPart, rControlRectangle, in NWPaintGTKEditBox()
1801 …NWPaintOneEditBox( m_nScreen, gdkDrawable, &clipRect, nType, nPart, pixmapRect, nState, aValue, rC… in NWPaintGTKEditBox()
1917 sal_Bool GtkSalGraphics::NWPaintGTKSpinBox( ControlType nType, ControlPart nPart, in NWPaintGTKSpinBox() argument
1973 if ( (nType==CTRL_SPINBOX) && (nPart!=PART_ALL_BUTTONS) ) in NWPaintGTKSpinBox()
1981 …NWPaintOneEditBox( m_nScreen, pixmap, NULL, nType, nPart, aEditBoxRect, nState, aValue, rCaption ); in NWPaintGTKSpinBox()
2015 ControlPart nPart, in NWGetSpinButtonRect() argument
2032 if ( nPart == PART_BUTTON_UP ) in NWGetSpinButtonRect()
2037 else if( nPart == PART_BUTTON_DOWN ) in NWGetSpinButtonRect()
2058 ControlPart nPart, in NWPaintOneSpinButton() argument
2073 buttonRect = NWGetSpinButtonRect( nScreen, nType, nPart, aAreaRect, nState, aValue, rCaption ); in NWPaintOneSpinButton()
2077 (nPart == PART_BUTTON_UP) ? "spinbutton_up" : "spinbutton_down", in NWPaintOneSpinButton()
2085 if ( nPart == PART_BUTTON_UP ) in NWPaintOneSpinButton()
2091 "spinbutton", (nPart == PART_BUTTON_UP) ? GTK_ARROW_UP : GTK_ARROW_DOWN, sal_True, in NWPaintOneSpinButton()
2100 ControlType nType, ControlPart nPart, in NWPaintGTKComboBox() argument
2131 if( nPart == PART_BUTTON_DOWN ) in NWPaintGTKComboBox()
2150 if( nPart == PART_ENTIRE_CONTROL ) in NWPaintGTKComboBox()
2151 NWPaintOneEditBox( m_nScreen, gdkDrawable, &clipRect, nType, nPart, aEditBoxRect, in NWPaintGTKComboBox()
2179 ControlPart nPart, in NWGetComboBoxButtonRect() argument
2202 if( nPart == PART_BUTTON_DOWN ) in NWGetComboBoxButtonRect()
2208 else if( nPart == PART_SUB_EDIT ) in NWGetComboBoxButtonRect()
2374 ControlType nType, ControlPart nPart, in NWPaintGTKListBox() argument
2400 if ( nPart == PART_WINDOW ) in NWPaintGTKListBox()
2418 if ( nPart != PART_WINDOW ) in NWPaintGTKListBox()
2434 if ( nPart != PART_WINDOW ) in NWPaintGTKListBox()
2445 … aIndicatorRect = NWGetListBoxIndicatorRect( m_nScreen, nType, nPart, widgetRect, nState, in NWPaintGTKListBox()
2469 ControlType, ControlPart nPart, in NWPaintGTKToolbar() argument
2484 if( nPart == PART_BUTTON ) // toolbar buttons cannot focus in gtk in NWPaintGTKToolbar()
2494 if( nPart == PART_DRAW_BACKGROUND_HORZ || nPart == PART_DRAW_BACKGROUND_VERT ) in NWPaintGTKToolbar()
2502 if( nPart == PART_DRAW_BACKGROUND_HORZ ) in NWPaintGTKToolbar()
2508 else if( nPart == PART_THUMB_HORZ || nPart == PART_THUMB_VERT ) in NWPaintGTKToolbar()
2529 else if( nPart == PART_BUTTON ) in NWPaintGTKToolbar()
2564 if( nPart == PART_DRAW_BACKGROUND_HORZ || nPart == PART_DRAW_BACKGROUND_VERT ) in NWPaintGTKToolbar()
2584 else if( nPart == PART_THUMB_HORZ || nPart == PART_THUMB_VERT ) in NWPaintGTKToolbar()
2594 nPart == PART_THUMB_HORZ ? in NWPaintGTKToolbar()
2600 else if( nPart == PART_BUTTON ) in NWPaintGTKToolbar()
2620 ControlType, ControlPart nPart, in NWPaintGTKMenubar() argument
2640 if( nPart == PART_MENU_ITEM ) in NWPaintGTKMenubar()
2658 if( nPart == PART_ENTIRE_CONTROL ) in NWPaintGTKMenubar()
2684 else if( nPart == PART_MENU_ITEM ) in NWPaintGTKMenubar()
2705 ControlType, ControlPart nPart, in NWPaintGTKPopupMenu() argument
2713 if( nPart == PART_MENU_ITEM && ! (nState & CTRL_STATE_ENABLED) ) in NWPaintGTKPopupMenu()
2730 if( nPart == PART_MENU_ITEM && in NWPaintGTKPopupMenu()
2751 if( nPart == PART_ENTIRE_CONTROL ) in NWPaintGTKPopupMenu()
2771 else if( nPart == PART_MENU_ITEM ) in NWPaintGTKPopupMenu()
2786 else if( nPart == PART_MENU_ITEM_CHECK_MARK || nPart == PART_MENU_ITEM_RADIO_MARK ) in NWPaintGTKPopupMenu()
2788 GtkWidget* pWidget = (nPart == PART_MENU_ITEM_CHECK_MARK) ? in NWPaintGTKPopupMenu()
2805 if ( nPart == PART_MENU_ITEM_CHECK_MARK ) in NWPaintGTKPopupMenu()
2991 ControlType, ControlPart nPart, in NWPaintGTKSlider() argument
3011 GtkWidget* pWidget = (nPart == PART_TRACK_HORZ_AREA) in NWPaintGTKSlider()
3014 const gchar* pDetail = (nPart == PART_TRACK_HORZ_AREA) ? "hscale" : "vscale"; in NWPaintGTKSlider()
3015 …GtkOrientation eOri = (nPart == PART_TRACK_HORZ_AREA) ? GTK_ORIENTATION_HORIZONTAL : GTK_ORIENTATI… in NWPaintGTKSlider()
3027 if( nPart == PART_TRACK_HORZ_AREA ) in NWPaintGTKSlider()
3119 ControlPart nPart, in NWGetListBoxButtonRect() argument
3150 switch( nPart ) in NWGetListBoxButtonRect()
3227 ControlPart nPart, in NWGetToolbarRect() argument
3235 if( nPart == PART_DRAW_BACKGROUND_HORZ || in NWGetToolbarRect()
3236 nPart == PART_DRAW_BACKGROUND_VERT ) in NWGetToolbarRect()
3238 else if( nPart == PART_THUMB_HORZ ) in NWGetToolbarRect()
3240 else if( nPart == PART_THUMB_VERT ) in NWGetToolbarRect()
3242 else if( nPart == PART_BUTTON ) in NWGetToolbarRect()