summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/inc/attrib.hxx15
-rw-r--r--sc/inc/sc.hrc2
-rw-r--r--sc/sdi/cellsh.sdi1
-rw-r--r--sc/sdi/scalc.sdi19
-rw-r--r--sc/sdi/scslots.sdi1
-rw-r--r--sc/source/core/data/attrib.cxx32
-rw-r--r--sc/source/ui/view/cellsh.cxx8
7 files changed, 1 insertions, 77 deletions
diff --git a/sc/inc/attrib.hxx b/sc/inc/attrib.hxx
index 08363b2ac681..5c0ce12a45c0 100644
--- a/sc/inc/attrib.hxx
+++ b/sc/inc/attrib.hxx
@@ -214,21 +214,6 @@ public:
const IntlWrapper& rIntl ) const override;
};
-class ScDoubleItem : public SfxPoolItem
-{
-public:
- static SfxPoolItem* CreateDefault();
- ScDoubleItem( sal_uInt16 nWhich, double nVal );
- ScDoubleItem( const ScDoubleItem& rItem );
- virtual ~ScDoubleItem() override;
-
- virtual bool operator==( const SfxPoolItem& ) const override;
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
-
-private:
- double nValue;
-};
-
/** Member ID for "page scale to width" value in QueryValue() and PutValue(). */
const sal_uInt8 SC_MID_PAGE_SCALETO_WIDTH = 1;
/** Member ID for "page scale to height" value in QueryValue() and PutValue(). */
diff --git a/sc/inc/sc.hrc b/sc/inc/sc.hrc
index 961b17979070..52b945ea9441 100644
--- a/sc/inc/sc.hrc
+++ b/sc/inc/sc.hrc
@@ -521,7 +521,7 @@
#define SID_RANGE_ROW (SID_NEW_SLOTS+20)
#define SID_RANGE_COL (SID_NEW_SLOTS+21)
#define SID_RANGE_TABLE (SID_NEW_SLOTS+22)
-#define SID_RANGE_VALUE (SID_NEW_SLOTS+23)
+// empty, was SID_RANGE_VALUE
#define SID_RANGE_FORMULA (SID_NEW_SLOTS+24)
#define SID_RANGE_TEXTVALUE (SID_NEW_SLOTS+26)
#define SID_TABLE_ACTIVATE (SID_NEW_SLOTS+27)
diff --git a/sc/sdi/cellsh.sdi b/sc/sdi/cellsh.sdi
index f7610a9f854d..e58ef8de34a8 100644
--- a/sc/sdi/cellsh.sdi
+++ b/sc/sdi/cellsh.sdi
@@ -76,7 +76,6 @@ interface CellSelection
SID_RANGE_ROW [ StateMethod = GetState; ]
SID_RANGE_COL [ StateMethod = GetState; ]
SID_RANGE_TABLE [ StateMethod = GetState; ]
- SID_RANGE_VALUE [ StateMethod = GetState; ]
SID_RANGE_FORMULA [ StateMethod = GetState; ]
SID_RANGE_TEXTVALUE [ StateMethod = GetState; ]
SID_RANGE_NOTETEXT [ ExecMethod = ExecuteEdit; StateMethod = GetState; ]
diff --git a/sc/sdi/scalc.sdi b/sc/sdi/scalc.sdi
index c8283fd09ac0..3519242625bb 100644
--- a/sc/sdi/scalc.sdi
+++ b/sc/sdi/scalc.sdi
@@ -5725,25 +5725,6 @@ SfxVoidItem CurrentValidation FID_CURRENTVALIDATION
]
-ScDoubleItem Value SID_RANGE_VALUE
-
-[
- AutoUpdate = FALSE,
- FastCall = FALSE,
- ReadOnlyDoc = TRUE,
- Toggle = FALSE,
- Container = FALSE,
- RecordAbsolute = FALSE,
- RecordPerSet;
-
-
- AccelConfig = FALSE,
- MenuConfig = FALSE,
- ToolBoxConfig = FALSE,
- GroupId = SfxGroupId::Intern;
-]
-
-
SvxVerJustifyItem VerticalAlignment SID_V_ALIGNCELL
[
diff --git a/sc/sdi/scslots.sdi b/sc/sdi/scslots.sdi
index e862c4ab6a12..8cf0aaddc0fe 100644
--- a/sc/sdi/scslots.sdi
+++ b/sc/sdi/scslots.sdi
@@ -30,7 +30,6 @@ module StarCalc
};
item ScProtection ScProtectionAttr;
- item double ScDoubleItem;
item INT32 SfxIntegerListItem;
diff --git a/sc/source/core/data/attrib.cxx b/sc/source/core/data/attrib.cxx
index 769f9722725b..1e36bdc80177 100644
--- a/sc/source/core/data/attrib.cxx
+++ b/sc/source/core/data/attrib.cxx
@@ -45,7 +45,6 @@ using namespace com::sun::star;
SfxPoolItem* ScProtectionAttr::CreateDefault() { return new ScProtectionAttr; }
-SfxPoolItem* ScDoubleItem::CreateDefault() { SAL_WARN( "sc", "No ScDoubleItem factory available"); return nullptr; }
/**
* General Help Function
@@ -570,37 +569,6 @@ sal_uInt16 ScViewObjectModeItem::GetVersion( sal_uInt16 /* nFileVersion */ ) con
return 1;
}
-/**
- * Double
- */
-ScDoubleItem::ScDoubleItem( sal_uInt16 nWhichP, double nVal )
- : SfxPoolItem ( nWhichP ),
- nValue ( nVal )
-{
-}
-
-ScDoubleItem::ScDoubleItem( const ScDoubleItem& rItem )
- : SfxPoolItem ( rItem )
-{
- nValue = rItem.nValue;
-}
-
-bool ScDoubleItem::operator==( const SfxPoolItem& rItem ) const
-{
- assert(SfxPoolItem::operator==(rItem));
- const ScDoubleItem& _rItem = static_cast<const ScDoubleItem&>(rItem);
- return nValue == _rItem.nValue;
-}
-
-SfxPoolItem* ScDoubleItem::Clone( SfxItemPool* ) const
-{
- return new ScDoubleItem( *this );
-}
-
-ScDoubleItem::~ScDoubleItem()
-{
-}
-
ScPageScaleToItem::ScPageScaleToItem() :
SfxPoolItem( ATTR_PAGE_SCALETO ),
mnWidth( 0 ),
diff --git a/sc/source/ui/view/cellsh.cxx b/sc/source/ui/view/cellsh.cxx
index 77d8b29e6570..7800a0f7fac3 100644
--- a/sc/source/ui/view/cellsh.cxx
+++ b/sc/source/ui/view/cellsh.cxx
@@ -707,14 +707,6 @@ void ScCellShell::GetState(SfxItemSet &rSet)
rSet.Put( SfxInt16Item( nWhich, nTab+1 ) );
break;
- case SID_RANGE_VALUE:
- {
- double nValue;
- pDoc->GetValue( nPosX, nPosY, nTab, nValue );
- rSet.Put( ScDoubleItem( nWhich, nValue ) );
- }
- break;
-
case SID_RANGE_FORMULA:
{
OUString aString;