https://bugs.freedesktop.org/show_bug.cgi?id=82641

          Priority: medium
            Bug ID: 82641
          Assignee: [email protected]
           Summary: Currency drop-down ...
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: [email protected]
          Hardware: Other
            Status: UNCONFIRMED
           Version: 4.3.0.2 rc
         Component: Spreadsheet
           Product: LibreOffice

The calc toolbar for setting a currency format is pretty useful - but
unfortuantely uses just one currency.

It'd be great to have a drop-down next to it with a list of currencies.

-Even-better- would be to have a list of the most commonly used (in fact the
only ones ever used by that user would be even better - I only ~ever use USD,
EUR, GBP myself) - in a "most frequently used" selection at the top - cf. the
font drop-down.

The code that currently handles currency lists is in the format cells dialog
(it'd be great to have the frequent currencies thing there too FWIW ;-)

cui/source/tabpages/numfmt.cxx

has that format page; and:

void SvxNumberFormatTabPage::FillCurrencyBox()

fills that currency goodness; m_pLbCurrency is 'member' 'pointer' 'Listbox'
'currency' when de-mangled ;-)

For an example of turning a toolbar button into a drop-down thingit; you could
do worse than poke at:

git log -u -1 f60424b29622033ae02491bda328c304ae1bc05d

Replacing your work into the 'CreatePopupWindow' method I guess =)

Thanks !

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to