field.cxx (6ac0dc2e) field.cxx (ae2dc0fa)
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

--- 1571 unchanged lines hidden (view full) ---

1580
1581XubString MetricFormatter::CreateFieldText( sal_Int64 nValue ) const
1582{
1583 XubString aStr = NumericFormatter::CreateFieldText( nValue );
1584
1585 if( meUnit == FUNIT_CUSTOM )
1586 aStr += maCustomUnitText;
1587 else
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

--- 1571 unchanged lines hidden (view full) ---

1580
1581XubString MetricFormatter::CreateFieldText( sal_Int64 nValue ) const
1582{
1583 XubString aStr = NumericFormatter::CreateFieldText( nValue );
1584
1585 if( meUnit == FUNIT_CUSTOM )
1586 aStr += maCustomUnitText;
1587 else
1588 {
1589 if ( meUnit != FUNIT_NONE || meUnit != FUNIT_PERCENT )
1590 aStr += xub_Unicode( ' ' );
1588 aStr += ImplMetricToString( meUnit );
1591 aStr += ImplMetricToString( meUnit );
1589
1592 }
1590 return aStr;
1591}
1592
1593// -----------------------------------------------------------------------
1594
1595void MetricFormatter::SetUserValue( sal_Int64 nNewValue, FieldUnit eInUnit )
1596{
1597 // Umrechnen auf eingestellte Einheiten

--- 919 unchanged lines hidden ---
1593 return aStr;
1594}
1595
1596// -----------------------------------------------------------------------
1597
1598void MetricFormatter::SetUserValue( sal_Int64 nNewValue, FieldUnit eInUnit )
1599{
1600 // Umrechnen auf eingestellte Einheiten

--- 919 unchanged lines hidden ---