| solveroptions.cxx (b3f79822) | solveroptions.cxx (0deba7fb) |
|---|---|
| 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 --- 70 unchanged lines hidden (view full) --- 79 mnIntValue( 0 ) {} 80 81 bool IsDouble() const { return mbIsDouble; } 82 double GetDoubleValue() const { return mfDoubleValue; } 83 sal_Int32 GetIntValue() const { return mnIntValue; } 84 85 void SetDoubleValue( double fNew ) { mbIsDouble = true; mfDoubleValue = fNew; } 86 void SetIntValue( sal_Int32 nNew ) { mbIsDouble = false; mnIntValue = nNew; } | 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 --- 70 unchanged lines hidden (view full) --- 79 mnIntValue( 0 ) {} 80 81 bool IsDouble() const { return mbIsDouble; } 82 double GetDoubleValue() const { return mfDoubleValue; } 83 sal_Int32 GetIntValue() const { return mnIntValue; } 84 85 void SetDoubleValue( double fNew ) { mbIsDouble = true; mfDoubleValue = fNew; } 86 void SetIntValue( sal_Int32 nNew ) { mbIsDouble = false; mnIntValue = nNew; } |
| 87 | 87 //IAccessibility2 Implementation 2009----- 88// MT: Commented out SV_ITEM_ID_EXTENDRLBOXSTRING and GetExtendText() in svlbitem.hxx - needed? 89// virtual USHORT IsA() {return SV_ITEM_ID_EXTENDRLBOXSTRING;} 90// virtual XubString GetExtendText() const; 91 //-----IAccessibility2 Implementation 2009 |
| 88 virtual void Paint( const Point& rPos, SvLBox& rDev, sal_uInt16 nFlags, SvLBoxEntry* pEntry ); 89}; 90 | 92 virtual void Paint( const Point& rPos, SvLBox& rDev, sal_uInt16 nFlags, SvLBoxEntry* pEntry ); 93}; 94 |
| 95//IAccessibility2 Implementation 2009----- 96// MT: Commented out SV_ITEM_ID_EXTENDRLBOXSTRING and GetExtendText() in svlbitem.hxx - needed? 97/* 98XubString ScSolverOptionsString::GetExtendText() const 99{ 100 String aNormalStr( GetText() ); 101 aNormalStr.Append( (sal_Unicode) ':' ); 102 String sTxt( ' ' ); 103 if ( mbIsDouble ) 104 sTxt += (String)rtl::math::doubleToUString( mfDoubleValue, 105 rtl_math_StringFormat_Automatic, rtl_math_DecimalPlaces_Max, 106 ScGlobal::GetpLocaleData()->getNumDecimalSep().GetChar(0), true ); 107 else 108 sTxt += String::CreateFromInt32( mnIntValue ); 109 aNormalStr.Append(sTxt); 110 return aNormalStr; 111} 112*/ 113//-----IAccessibility2 Implementation 2009 114 |
|
| 91void ScSolverOptionsString::Paint( const Point& rPos, SvLBox& rDev, sal_uInt16, SvLBoxEntry* /* pEntry */ ) 92{ 93 //! move position? (SvxLinguTabPage: aPos.X() += 20) 94 String aNormalStr( GetText() ); 95 aNormalStr.Append( (sal_Unicode) ':' ); 96 rDev.DrawText( rPos, aNormalStr ); 97 98 Point aNewPos( rPos ); --- 390 unchanged lines hidden --- | 115void ScSolverOptionsString::Paint( const Point& rPos, SvLBox& rDev, sal_uInt16, SvLBoxEntry* /* pEntry */ ) 116{ 117 //! move position? (SvxLinguTabPage: aPos.X() += 20) 118 String aNormalStr( GetText() ); 119 aNormalStr.Append( (sal_Unicode) ':' ); 120 rDev.DrawText( rPos, aNormalStr ); 121 122 Point aNewPos( rPos ); --- 390 unchanged lines hidden --- |