svdattr.cxx (027cdf4a) | svdattr.cxx (e67a7c0c) |
---|---|
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 --- 2027 unchanged lines hidden (view full) --- 2036sal_uInt16 __EXPORT SdrMeasureUnitItem::GetValueCount() const { return 14; } 2037 2038XubString __EXPORT SdrMeasureUnitItem::GetValueTextByPos(sal_uInt16 nPos) const 2039{ 2040 XubString aRetval; 2041 2042 if((FieldUnit)nPos == FUNIT_NONE) 2043 { | 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 --- 2027 unchanged lines hidden (view full) --- 2036sal_uInt16 __EXPORT SdrMeasureUnitItem::GetValueCount() const { return 14; } 2037 2038XubString __EXPORT SdrMeasureUnitItem::GetValueTextByPos(sal_uInt16 nPos) const 2039{ 2040 XubString aRetval; 2041 2042 if((FieldUnit)nPos == FUNIT_NONE) 2043 { |
2044 cont sal_Char aText[] = "default"; | 2044 const sal_Char aText[] = "default"; |
2045 aRetval += UniString(aText, sizeof(aText)-1); 2046 } 2047 else 2048 { 2049 SdrFormatter::TakeUnitStr((FieldUnit)nPos, aRetval); 2050 } 2051 2052 return aRetval; --- 372 unchanged lines hidden --- | 2045 aRetval += UniString(aText, sizeof(aText)-1); 2046 } 2047 else 2048 { 2049 SdrFormatter::TakeUnitStr((FieldUnit)nPos, aRetval); 2050 } 2051 2052 return aRetval; --- 372 unchanged lines hidden --- |