dlgutil.cxx (cdf0e10c) dlgutil.cxx (0d5343ee)
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *

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

41FieldUnit GetModuleFieldUnit( const SfxItemSet& rSet )
42{
43 FieldUnit eUnit = FUNIT_INCH;
44 const SfxPoolItem* pItem = NULL;
45 if ( SFX_ITEM_SET == rSet.GetItemState( SID_ATTR_METRIC, sal_False, &pItem ) )
46 eUnit = (FieldUnit)( (const SfxUInt16Item*)pItem )->GetValue();
47 else
48 {
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *

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

41FieldUnit GetModuleFieldUnit( const SfxItemSet& rSet )
42{
43 FieldUnit eUnit = FUNIT_INCH;
44 const SfxPoolItem* pItem = NULL;
45 if ( SFX_ITEM_SET == rSet.GetItemState( SID_ATTR_METRIC, sal_False, &pItem ) )
46 eUnit = (FieldUnit)( (const SfxUInt16Item*)pItem )->GetValue();
47 else
48 {
49 DBG_ERROR("Using fallback for field unit - field unit should be provided in ItemSet");
50 return SfxModule::GetCurrentFieldUnit();
51 }
52
53 return eUnit;
54}
55
49 return SfxModule::GetCurrentFieldUnit();
50 }
51
52 return eUnit;
53}
54