summaryrefslogtreecommitdiff
path: root/sd/source/ui/dlg
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/dlg')
-rw-r--r--sd/source/ui/dlg/animobjs.cxx2
-rw-r--r--sd/source/ui/dlg/diactrl.cxx2
-rw-r--r--sd/source/ui/dlg/gluectrl.cxx2
-rw-r--r--sd/source/ui/dlg/navigatr.cxx4
-rw-r--r--sd/source/ui/dlg/paragr.cxx4
-rw-r--r--sd/source/ui/dlg/tpoption.cxx6
6 files changed, 10 insertions, 10 deletions
diff --git a/sd/source/ui/dlg/animobjs.cxx b/sd/source/ui/dlg/animobjs.cxx
index 0fa83e45f29c..89dabc6a7a1b 100644
--- a/sd/source/ui/dlg/animobjs.cxx
+++ b/sd/source/ui/dlg/animobjs.cxx
@@ -1220,7 +1220,7 @@ AnimationControllerItem::AnimationControllerItem(
void AnimationControllerItem::StateChanged( sal_uInt16 nSId,
SfxItemState eState, const SfxPoolItem* pItem )
{
- if( eState >= SFX_ITEM_AVAILABLE && nSId == SID_ANIMATOR_STATE )
+ if( eState >= SFX_ITEM_DEFAULT && nSId == SID_ANIMATOR_STATE )
{
const SfxUInt16Item* pStateItem = PTR_CAST( SfxUInt16Item, pItem );
assert(pStateItem); //SfxUInt16Item expected
diff --git a/sd/source/ui/dlg/diactrl.cxx b/sd/source/ui/dlg/diactrl.cxx
index c093b95098c9..09da8ea9e653 100644
--- a/sd/source/ui/dlg/diactrl.cxx
+++ b/sd/source/ui/dlg/diactrl.cxx
@@ -122,7 +122,7 @@ void SdTbxCtlDiaPages::StateChanged( sal_uInt16,
pFld->Enable();
const SfxUInt16Item* pItem = 0;
- if ( eState == SFX_ITEM_AVAILABLE )
+ if ( eState == SFX_ITEM_DEFAULT )
{
pItem = dynamic_cast< const SfxUInt16Item* >( pState );
DBG_ASSERT( pItem, "sd::SdTbxCtlDiaPages::StateChanged(), wrong item type!" );
diff --git a/sd/source/ui/dlg/gluectrl.cxx b/sd/source/ui/dlg/gluectrl.cxx
index fbffc0846447..f3d7da4f3172 100644
--- a/sd/source/ui/dlg/gluectrl.cxx
+++ b/sd/source/ui/dlg/gluectrl.cxx
@@ -130,7 +130,7 @@ SdTbxCtlGlueEscDir::SdTbxCtlGlueEscDir(
void SdTbxCtlGlueEscDir::StateChanged( sal_uInt16 nSId,
SfxItemState eState, const SfxPoolItem* pState )
{
- if( eState == SFX_ITEM_AVAILABLE )
+ if( eState == SFX_ITEM_DEFAULT )
{
GlueEscDirLB* pGlueEscDirLB = (GlueEscDirLB*) ( GetToolBox().
GetItemWindow( GetId() ) );
diff --git a/sd/source/ui/dlg/navigatr.cxx b/sd/source/ui/dlg/navigatr.cxx
index be7b2cd18dfd..e9f9bc21c280 100644
--- a/sd/source/ui/dlg/navigatr.cxx
+++ b/sd/source/ui/dlg/navigatr.cxx
@@ -863,7 +863,7 @@ SdNavigatorControllerItem::SdNavigatorControllerItem(
void SdNavigatorControllerItem::StateChanged( sal_uInt16 nSId,
SfxItemState eState, const SfxPoolItem* pItem )
{
- if( eState >= SFX_ITEM_AVAILABLE && nSId == SID_NAVIGATOR_STATE )
+ if( eState >= SFX_ITEM_DEFAULT && nSId == SID_NAVIGATOR_STATE )
{
const SfxUInt32Item* pStateItem = PTR_CAST( SfxUInt32Item, pItem );
DBG_ASSERT( pStateItem, "SfxUInt16Item expected");
@@ -946,7 +946,7 @@ SdPageNameControllerItem::SdPageNameControllerItem(
void SdPageNameControllerItem::StateChanged( sal_uInt16 nSId,
SfxItemState eState, const SfxPoolItem* pItem )
{
- if( eState >= SFX_ITEM_AVAILABLE && nSId == SID_NAVIGATOR_PAGENAME )
+ if( eState >= SFX_ITEM_DEFAULT && nSId == SID_NAVIGATOR_PAGENAME )
{
// only if doc in LB is the active
NavDocInfo* pInfo = pNavigatorWin->GetDocInfo();
diff --git a/sd/source/ui/dlg/paragr.cxx b/sd/source/ui/dlg/paragr.cxx
index 069fb40a7fb4..bfecb9288bd3 100644
--- a/sd/source/ui/dlg/paragr.cxx
+++ b/sd/source/ui/dlg/paragr.cxx
@@ -111,7 +111,7 @@ bool SdParagraphNumTabPage::FillItemSet( SfxItemSet* rSet )
void SdParagraphNumTabPage::Reset( const SfxItemSet* rSet )
{
SfxItemState eItemState = rSet->GetItemState( ATTR_NUMBER_NEWSTART );
- if(eItemState > SFX_ITEM_AVAILABLE )
+ if(eItemState > SFX_ITEM_DEFAULT )
{
const SfxBoolItem& rStart = (const SfxBoolItem&)rSet->Get(ATTR_NUMBER_NEWSTART);
m_pNewStartCB->SetState( rStart.GetValue() ? TRISTATE_TRUE : TRISTATE_FALSE );
@@ -125,7 +125,7 @@ void SdParagraphNumTabPage::Reset( const SfxItemSet* rSet )
m_pNewStartCB->SaveValue();
eItemState = rSet->GetItemState( ATTR_NUMBER_NEWSTART_AT);
- if( eItemState > SFX_ITEM_AVAILABLE )
+ if( eItemState > SFX_ITEM_DEFAULT )
{
sal_Int16 nNewStart = ((const SfxInt16Item&)rSet->Get(ATTR_NUMBER_NEWSTART_AT)).GetValue();
m_pNewStartNumberCB->Check(-1 != nNewStart);
diff --git a/sd/source/ui/dlg/tpoption.cxx b/sd/source/ui/dlg/tpoption.cxx
index 273816f54b15..fc123faa32b2 100644
--- a/sd/source/ui/dlg/tpoption.cxx
+++ b/sd/source/ui/dlg/tpoption.cxx
@@ -217,7 +217,7 @@ SdTpOptionsMisc::SdTpOptionsMisc(Window* pParent, const SfxItemSet& rInAttrs)
FieldUnit eFUnit;
sal_uInt16 nWhich = GetWhich( SID_ATTR_METRIC );
- if ( rInAttrs.GetItemState( nWhich ) >= SFX_ITEM_AVAILABLE )
+ if ( rInAttrs.GetItemState( nWhich ) >= SFX_ITEM_DEFAULT )
{
const SfxUInt16Item& rItem = (SfxUInt16Item&)rInAttrs.Get( nWhich );
eFUnit = (FieldUnit)rItem.GetValue();
@@ -441,7 +441,7 @@ void SdTpOptionsMisc::Reset( const SfxItemSet* rAttrs )
sal_uInt16 nWhich = GetWhich( SID_ATTR_METRIC );
m_pLbMetric->SetNoSelection();
- if ( rAttrs->GetItemState( nWhich ) >= SFX_ITEM_AVAILABLE )
+ if ( rAttrs->GetItemState( nWhich ) >= SFX_ITEM_DEFAULT )
{
const SfxUInt16Item& rItem = (SfxUInt16Item&)rAttrs->Get( nWhich );
long nFieldUnit = (long)rItem.GetValue();
@@ -458,7 +458,7 @@ void SdTpOptionsMisc::Reset( const SfxItemSet* rAttrs )
// tabulator space
nWhich = GetWhich( SID_ATTR_DEFTABSTOP );
- if( rAttrs->GetItemState( nWhich ) >= SFX_ITEM_AVAILABLE )
+ if( rAttrs->GetItemState( nWhich ) >= SFX_ITEM_DEFAULT )
{
SfxMapUnit eUnit = rAttrs->GetPool()->GetMetric( nWhich );
const SfxUInt16Item& rItem = (SfxUInt16Item&)rAttrs->Get( nWhich );