diff options
author | Oliver Specht <os@openoffice.org> | 2001-02-19 13:04:13 +0000 |
---|---|---|
committer | Oliver Specht <os@openoffice.org> | 2001-02-19 13:04:13 +0000 |
commit | 5fac2a309510c15fa90a244e3958a5eb66a50031 (patch) | |
tree | d449638b27760f994bc6d5da2f1c5e12514c44f3 /extensions | |
parent | dc970e9a4e391537fb3814e0a2b011c51320ada6 (diff) |
#83607# interface of number format changed
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/bibliography/datman.cxx | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/extensions/source/bibliography/datman.cxx b/extensions/source/bibliography/datman.cxx index d4ff182d0f6a..eb9b24849abe 100644 --- a/extensions/source/bibliography/datman.cxx +++ b/extensions/source/bibliography/datman.cxx @@ -2,9 +2,9 @@ * * $RCSfile: datman.cxx,v $ * - * $Revision: 1.13 $ + * $Revision: 1.14 $ * - * last change: $Author: os $ $Date: 2001-02-12 08:35:59 $ + * last change: $Author: os $ $Date: 2001-02-19 14:04:13 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1479,11 +1479,15 @@ Reference< awt::XControlModel > BibDataManager::loadControlModel( if(xFields->hasByName(rName)) { aElement = xFields->getByName(rName); - xField = *(Reference< XPropertySet > *)aElement.getValue(); + aElement >>= xField; Reference< XPropertySetInfo > xInfo = xField.is() ? xField->getPropertySetInfo() : Reference< XPropertySetInfo > (); + + OUString sCurrentModelType; + const OUString sType(C2U("Type")); sal_Int32 nFormatKey = 0; - if (xInfo.is() && xInfo->hasPropertyByName(FM_PROP_FORMATKEY)) - xField->getPropertyValue(FM_PROP_FORMATKEY) >>= nFormatKey; + sal_Bool bIsFormatted = sal_False; + sal_Bool bFormattedIsNumeric = sal_True; + xField->getPropertyValue(sType) >>= nFormatKey; rtl::OUString aInstanceName(C2U("com.sun.star.form.component.")); |