ControlHelper.cxx (b557fc96) | ControlHelper.cxx (d7e3d99b) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 203 unchanged lines hidden (view full) --- 212 retVal = [sLabel OUString]; 213 } 214 215 DBG_PRINT_EXIT(CLASS_NAME, __func__, retVal); 216 217 return retVal; 218} 219 | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 203 unchanged lines hidden (view full) --- 212 retVal = [sLabel OUString]; 213 } 214 215 DBG_PRINT_EXIT(CLASS_NAME, __func__, retVal); 216 217 return retVal; 218} 219 |
220void ControlHelper::setLabel( sal_Int16 nControlId, const NSString* aLabel ) | 220void ControlHelper::setLabel( sal_Int16 nControlId, NSString* aLabel ) |
221{ 222 DBG_PRINT_ENTRY(CLASS_NAME, __func__, "controlId", nControlId, "label", aLabel); 223 224 ::vos::OGuard aGuard( Application::GetSolarMutex() ); 225 226 NSAutoreleasePool *pool = [NSAutoreleasePool new]; 227 228 NSControl* pControl = getControl(nControlId); --- 720 unchanged lines hidden (view full) --- 949 950 // always add the filter as first item 951 m_aActiveControls.push_front(m_pFilterControl); 952 m_aMapListLabels[m_pFilterControl] = [sLabel retain]; 953 954 DBG_PRINT_EXIT(CLASS_NAME, __func__); 955} 956 | 221{ 222 DBG_PRINT_ENTRY(CLASS_NAME, __func__, "controlId", nControlId, "label", aLabel); 223 224 ::vos::OGuard aGuard( Application::GetSolarMutex() ); 225 226 NSAutoreleasePool *pool = [NSAutoreleasePool new]; 227 228 NSControl* pControl = getControl(nControlId); --- 720 unchanged lines hidden (view full) --- 949 950 // always add the filter as first item 951 m_aActiveControls.push_front(m_pFilterControl); 952 m_aMapListLabels[m_pFilterControl] = [sLabel retain]; 953 954 DBG_PRINT_EXIT(CLASS_NAME, __func__); 955} 956 |
957NSTextField* ControlHelper::createLabelWithString(const NSString* labelString) { | 957NSTextField* ControlHelper::createLabelWithString(NSString* labelString) { |
958 DBG_PRINT_ENTRY(CLASS_NAME, __func__, "label", labelString); 959 960 NSTextField *textField = [NSTextField new]; 961 [textField setEditable:NO]; 962 [textField setSelectable:NO]; 963 [textField setDrawsBackground:NO]; 964 [textField setBordered:NO]; 965 [[textField cell] setTitle:labelString]; --- 50 unchanged lines hidden --- | 958 DBG_PRINT_ENTRY(CLASS_NAME, __func__, "label", labelString); 959 960 NSTextField *textField = [NSTextField new]; 961 [textField setEditable:NO]; 962 [textField setSelectable:NO]; 963 [textField setDrawsBackground:NO]; 964 [textField setBordered:NO]; 965 [[textField cell] setTitle:labelString]; --- 50 unchanged lines hidden --- |