Lines Matching refs:pControl
85 NSControl* pControl = (*control); in ~ControlHelper() local
86 NSString* sLabelName = m_aMapListLabels[pControl]; in ~ControlHelper()
90 if ([pControl class] == [NSPopUpButton class]) { in ~ControlHelper()
91 NSTextField* pField = m_aMapListLabelFields[(NSPopUpButton*)pControl]; in ~ControlHelper()
96 [pControl release]; in ~ControlHelper()
175 NSControl* pControl = getControl(nControlId); in enableControl() local
177 if( pControl != nil ) { in enableControl()
183 [pControl setEnabled:bEnable]; in enableControl()
197 NSControl* pControl = getControl( nControlId ); in getLabel() local
199 if( pControl == nil ) { in getLabel()
205 if ([pControl class] == [NSPopUpButton class]) { in getLabel()
206 NSString *temp = m_aMapListLabels[pControl]; in getLabel()
211 NSString* sLabel = [[pControl cell] title]; in getLabel()
228 NSControl* pControl = getControl(nControlId); in setLabel() local
230 if (nil != pControl) { in setLabel()
231 if ([pControl class] == [NSPopUpButton class]) { in setLabel()
232 NSString *sOldName = m_aMapListLabels[pControl]; in setLabel()
237 m_aMapListLabels[pControl] = [aLabel retain]; in setLabel()
238 } else if ([pControl class] == [NSButton class]) { in setLabel()
239 [[pControl cell] setTitle:aLabel]; in setLabel()
262 NSControl* pControl = getControl( nControlId ); in setValue() local
264 if( pControl == nil ) { in setValue()
267 if( [pControl class] == [NSPopUpButton class] ) { in setValue()
268 HandleSetListValue(pControl, nControlAction, rValue); in setValue()
269 } else if( [pControl class] == [NSButton class] ) { in setValue()
273 [(NSButton*)pControl setState:(bChecked ? NSOnState : NSOffState)]; in setValue()
292 NSControl* pControl = getControl( nControlId ); in getValue() local
294 if( pControl == nil ) { in getValue()
298 if( [pControl class] == [NSPopUpButton class] ) { in getValue()
299 aRetval = HandleGetListValue(pControl, nControlAction); in getValue()
300 } else if( [pControl class] == [NSButton class] ) { in getValue()
302 sal_Bool bValue = [(NSButton*)pControl state] == NSOnState ? sal_True : sal_False; in getValue()
349 NSControl* pControl = *child; in createUserPane() local
352 [pControl sizeToFit]; in createUserPane()
354 NSRect frame = [pControl frame]; in createUserPane()
355 …OSL_TRACE("frame for control %s is {%f, %f, %f, %f}", [[pControl description] UTF8String], frame.o… in createUserPane()
361 if ([pControl class] == [NSPopUpButton class]) { in createUserPane()
373 NSString *label = m_aMapListLabels[pControl]; in createUserPane()
377 m_aMapListLabelFields[(NSPopUpButton*)pControl] = textField; in createUserPane()
394 [pControl setFrame:frame]; in createUserPane()
400 [pControl setFrame:frame]; in createUserPane()
416 else if ([pControl class] == [NSButton class]) { in createUserPane()
436 [m_pUserPane addSubview:pControl]; in createUserPane()
586 void ControlHelper::HandleSetListValue(const NSControl* pControl, const sal_Int16 nControlAction, c… in HandleSetListValue() argument
590 if ([pControl class] != [NSPopUpButton class]) { in HandleSetListValue()
596 NSPopUpButton *pButton = (NSPopUpButton*)pControl; in HandleSetListValue()
673 uno::Any ControlHelper::HandleGetListValue(const NSControl* pControl, const sal_Int16 nControlActio… in HandleGetListValue() argument
679 if ([pControl class] != [NSPopUpButton class]) { in HandleGetListValue()
685 NSPopUpButton *pButton = (NSPopUpButton*)pControl; in HandleGetListValue()
831 NSControl* pControl = *child; in layoutControls() local
833 NSRect controlRect = [pControl frame]; in layoutControls()
836 Class aSubType = [pControl class]; in layoutControls()
841 NSTextField *label = m_aMapListLabelFields[(NSPopUpButton*)pControl]; in layoutControls()
862 NSControl* pControl = *child; in layoutControls() local
865 NSRect controlRect = [pControl frame]; in layoutControls()
872 Class aSubType = [pControl class]; in layoutControls()
875 nDistBetweenControls = getVerticalDistance(previousControl, pControl); in layoutControls()
879 previousControl = pControl; in layoutControls()
886 NSTextField *label = m_aMapListLabelFields[(NSPopUpButton*)pControl]; in layoutControls()
902 [pControl setFrame:controlRect]; in layoutControls()
914 [pControl setFrame:controlRect]; in layoutControls()