Issue 23839 - Underlines in user defined number format, accounting underlining
Summary: Underlines in user defined number format, accounting underlining
Status: CONFIRMED
Alias: None
Product: Calc
Classification: Application
Component: ui (show other issues)
Version: OOo 1.0.3
Hardware: All All
: P3 Trivial with 30 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: ms_interoperability, oooqa
: 31799 (view as issue list)
Depends on:
Blocks:
 
Reported: 2003-12-23 21:55 UTC by jeanniemcquaid
Modified: 2017-05-20 11:11 UTC (History)
3 users (show)

See Also:
Issue Type: FEATURE
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Accounting underlining demonstration (Microsoft Excel 2000) (1.54 KB, application/pdf)
2005-09-26 23:57 UTC, aziem
no flags Details
Format->Cell UI and Accounting Underline (Microsoft Excel 2000) (8.54 KB, image/png)
2005-09-27 00:01 UTC, aziem
no flags Details
(better) example demonstrates three things: accounting underlining, underline stretch to margin, and aligning currency symbol --Excel 2000 (1.54 KB, application/pdf)
2005-10-11 23:35 UTC, aziem
no flags Details
Excel 2000 source for previous attachment (#30326) (15.00 KB, application/vnd.ms-excel)
2005-10-11 23:37 UTC, aziem
no flags Details
[replaces incorrect attachment id=30326] demonstrates three things: accounting underlining, underline stretch to margin, and aligning currency symbol -- Excel 2000 (2.57 KB, application/pdf)
2005-10-11 23:39 UTC, aziem
no flags Details
"raw" (to be applied manually) patch; it implements the requested feature as a proof of concept (13.63 KB, text/plain)
2012-06-21 22:41 UTC, johann messner
no flags Details
sample libreoffice 3.5.3 calc file SavedAs "Portable Document" (.pdf) (67.98 KB, application/octet-stream)
2012-06-21 22:59 UTC, johann messner
no flags Details
sample libreoffice 3.5.3 calc file (was used to "demonstrate/validate" during implementation) (15.22 KB, application/octet-stream)
2012-06-21 23:01 UTC, johann messner
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description jeanniemcquaid 2003-12-23 21:55:41 UTC
There is a user defined number format:   _(* #,##0.00_);_(* (#,##0.00);_(* "-"??
_);_(@_), which in Excel, provides for expressing a value with thousands 
separator, negatives indicated in parentheses () and when used with the 
underline format, the underline fills the cell to its margins.  The same format 
code in Open Office does everything except alter the behaviour of the 
underlining and as result only the characters in the cell are underlined.  This 
is really ugly if you're trying to produce presentation quality documents.  The 
alternative is to use the cell border on the bottom, but that means inserting 
blank columns between the columns of numbers which is really poor sheet 
design.  Is there some other way to achieve underlined adjacent number columns 
with out having the underlines meet or stuffing extra columns? Is this clear as 
mud?
Comment 1 frank 2004-01-09 10:31:46 UTC
Hi Bettina,

1 4 u.

Frank
Comment 2 frank 2004-01-09 10:32:13 UTC
set the target
Comment 3 jcausey 2004-01-10 15:00:00 UTC
Just thought I would add a comment.  I completely understand what Jeannie is
suggesting.  This feature is really vital to any CPA's, finance professionals,
etc., being able to use OOo for their work.  The lack of this feature would be
one reason I would not be able to use OOo in a work setting.

fwiw, the MS implementation has the underline function automatically recognize a
number formatted in the "accounting" or "currency" format and when underlining
is applied (of any sort) the underlining is automatically done as Jeannie
suggests - filling the cell, not just the contents.  Maybe something to consider
as the issue is worked on.  If you need any examples, I can point you to
documents that will show the difference and what Jeannie (and myself now) are
suggesting.

Thanks,

Jeff Causey
Comment 4 frank 2004-07-21 08:44:14 UTC
*** Issue 31799 has been marked as a duplicate of this issue. ***
Comment 5 aziem 2005-09-26 23:57:18 UTC
Created attachment 29919 [details]
Accounting underlining demonstration (Microsoft Excel 2000)
Comment 6 aziem 2005-09-27 00:01:56 UTC
Created attachment 29920 [details]
Format->Cell UI and Accounting Underline (Microsoft Excel 2000)
Comment 7 aziem 2005-10-07 04:49:51 UTC
add keyword: ms_interoperability
Comment 8 aziem 2005-10-09 15:26:56 UTC
Summary: 
"Underlines in user defined number format" --> "Underlines in user defined
number format, accounting underlining" to make it more searchable

Note: 
A description of single accounting underlining from an old CSS3 draft.
"single line drawn below the bottom of the character, rather than just below the
baseline." <http://www.w3.org/TR/2001/WD-css3-text-20010517/#text-underline-props>
Comment 9 aziem 2005-10-11 23:35:56 UTC
Created attachment 30326 [details]
(better) example demonstrates three things: accounting underlining, underline stretch to margin, and aligning currency symbol --Excel 2000
Comment 10 aziem 2005-10-11 23:37:11 UTC
Created attachment 30327 [details]
Excel 2000 source for previous attachment (#30326)
Comment 11 aziem 2005-10-11 23:39:18 UTC
Created attachment 30328 [details]
[replaces incorrect attachment id=30326] demonstrates three things: accounting underlining, underline stretch to margin, and aligning currency symbol -- Excel 2000
Comment 12 bettina.haberer 2007-09-26 15:57:02 UTC
Hi Niklas, these RFEs are in your ownership.
Comment 13 frank.loehmann 2008-05-06 13:45:01 UTC
cc myself
Comment 14 frank.loehmann 2008-05-06 13:45:52 UTC
set target
Comment 15 johann messner 2012-06-21 22:41:55 UTC
Created attachment 78433 [details]
"raw" (to be applied manually) patch; it implements the requested feature as a proof of concept

A function extending patch for the Spreadsheet Processor LibreOffice Calc.
It resembles a proof of concept (prototypical implementation) for supporting  
a "fill-in character" in user defined NumberFormat strings for spreadsheet cells; 
an asterisk ('*') character which shows up in between double quotes defines
the immediately following character to be the fill-in character, which in turn
is to be printed repeatedly such that the available cell space is used up.
E.g. the user defined number (or currency) format string: 
    $"*-"##0.0#                
results, when applied (we assume locale en_US) to the value 
    47.11                      
in a visible cell content of
    $----------47.11           
(the number of dashes depends on the actual column width).

Only one fill-in character definition per number format string is supported.

When using standard conditional formatting (i.e. a tripel of format strings 
for negative values, postitive values and null, respectively) you can define
a separate fill-in character per branch; the semicolon (';') separates  
the components of the tripel.

From a typographical perspective you should use a fixed width (i.e. non-proportional) 
font for typesetting numerical data which is to be shown column-wise. This rule of
thumb is twice as relevant when using this kind of "fill-in character" in your
user defined number format string.
Comment 16 johann messner 2012-06-21 22:59:38 UTC
Created attachment 78434 [details]
sample libreoffice 3.5.3 calc file SavedAs "Portable Document" (.pdf)
Comment 17 johann messner 2012-06-21 23:01:01 UTC
Created attachment 78435 [details]
sample libreoffice 3.5.3 calc file (was used to "demonstrate/validate" during implementation)
Comment 18 Marcus 2017-05-20 11:11:49 UTC
Reset assigne to the default "issues@openoffice.apache.org".