Lines 1488-1496
void SvNumberFormatter::GetInputLineString(const double& fOutNumber,
Link Here
|
1488 |
sal_uInt32 nFIndex, |
1488 |
sal_uInt32 nFIndex, |
1489 |
String& sOutString) |
1489 |
String& sOutString) |
1490 |
{ |
1490 |
{ |
|
|
1491 |
Color* pColor; |
1492 |
GetInputLineString(fOutNumber, nFIndex, sOutString, &pColor); |
1493 |
} |
1494 |
|
1495 |
void SvNumberFormatter::GetInputLineString(const double& fOutNumber, |
1496 |
sal_uInt32 nFIndex, |
1497 |
String& sOutString, Color** ppColor) |
1498 |
{ |
1491 |
SvNumberformat* pFormat; |
1499 |
SvNumberformat* pFormat; |
1492 |
short nOldPrec; |
1500 |
short nOldPrec; |
1493 |
Color* pColor; |
|
|
1494 |
pFormat = (SvNumberformat*) aFTable.Get(nFIndex); |
1501 |
pFormat = (SvNumberformat*) aFTable.Get(nFIndex); |
1495 |
if (!pFormat) |
1502 |
if (!pFormat) |
1496 |
pFormat = aFTable.Get(ZF_STANDARD); |
1503 |
pFormat = aFTable.Get(ZF_STANDARD); |
Lines 1531-1537
void SvNumberFormatter::GetInputLineString(const double& fOutNumber,
Link Here
|
1531 |
nOldPrec = pFormatScanner->GetStandardPrec(); |
1538 |
nOldPrec = pFormatScanner->GetStandardPrec(); |
1532 |
ChangeStandardPrec(300); // Merkwert |
1539 |
ChangeStandardPrec(300); // Merkwert |
1533 |
} |
1540 |
} |
1534 |
pFormat->GetOutputString(fOutNumber, sOutString, &pColor); |
1541 |
if (ppColor) |
|
|
1542 |
pFormat->GetOutputString(fOutNumber, sOutString, ppColor); |
1543 |
else |
1544 |
{ |
1545 |
Color* pColor; // throw away the color info. |
1546 |
pFormat->GetOutputString(fOutNumber, sOutString, &pColor); |
1547 |
} |
1535 |
} |
1548 |
} |
1536 |
if (nOldPrec != -1) |
1549 |
if (nOldPrec != -1) |
1537 |
ChangeStandardPrec(nOldPrec); |
1550 |
ChangeStandardPrec(nOldPrec); |
Lines 1574-1579
void SvNumberFormatter::GetOutputString(String& sString,
Link Here
|
1574 |
} |
1587 |
} |
1575 |
} |
1588 |
} |
1576 |
|
1589 |
|
|
|
1590 |
void SvNumberFormatter::GetStringColor( sal_uInt32 nFIndex, Color** ppColor) |
1591 |
{ |
1592 |
if (!ppColor) |
1593 |
return; |
1594 |
|
1595 |
SvNumberformat* pFormat = (SvNumberformat*) aFTable.Get(nFIndex); |
1596 |
if (!pFormat) |
1597 |
pFormat = aFTable.Get(ZF_STANDARD_TEXT); |
1598 |
|
1599 |
if (pFormat->IsTextFormat() || pFormat->HasTextFormat()) |
1600 |
pFormat->GetStringColor(ppColor); |
1601 |
else |
1602 |
*ppColor = NULL; |
1603 |
} |
1604 |
|
1577 |
BOOL SvNumberFormatter::GetPreviewString(const String& sFormatString, |
1605 |
BOOL SvNumberFormatter::GetPreviewString(const String& sFormatString, |
1578 |
double fPreviewNumber, |
1606 |
double fPreviewNumber, |
1579 |
String& sOutString, |
1607 |
String& sOutString, |