summaryrefslogtreecommitdiff
path: root/svx/source/accessibility
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-07-24 11:57:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-24 14:38:59 +0200
commitba031cc41321c7817c5b23e0b5378e532f7e1dea (patch)
tree326ffed1f3a7a3cb7310ea73afde3d8d27ec4f37 /svx/source/accessibility
parent00af4b1e5157d1a7f71da168dc7b48707e9113cd (diff)
remove unused accessibility::DescriptionGenerator::PropertyType::FillStyle
Change-Id: I20005ad23088d41262ff988eac2132918db56ab8 Reviewed-on: https://gerrit.libreoffice.org/76236 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/accessibility')
-rw-r--r--svx/source/accessibility/DescriptionGenerator.cxx76
1 files changed, 0 insertions, 76 deletions
diff --git a/svx/source/accessibility/DescriptionGenerator.cxx b/svx/source/accessibility/DescriptionGenerator.cxx
index cefe8e104fcc..ff5bb21f20eb 100644
--- a/svx/source/accessibility/DescriptionGenerator.cxx
+++ b/svx/source/accessibility/DescriptionGenerator.cxx
@@ -169,9 +169,6 @@ void DescriptionGenerator::AddProperty (const OUString& sPropertyName,
case PropertyType::String:
AddString (sPropertyName, sLocalizedName, nWhichId);
break;
- case PropertyType::FillStyle:
- AddFillStyle (sPropertyName, sLocalizedName);
- break;
}
}
}
@@ -266,79 +263,6 @@ void DescriptionGenerator::AddString (const OUString& sPropertyName,
}
-void DescriptionGenerator::AddFillStyle (const OUString& sPropertyName,
- const OUString& sLocalizedName)
-{
- msDescription.append(sLocalizedName);
- msDescription.append('=');
-
- try
- {
- if (mxSet.is())
- {
- uno::Any aValue = mxSet->getPropertyValue (sPropertyName);
- drawing::FillStyle aFillStyle;
- aValue >>= aFillStyle;
-
- // Get the fill style name from the resource.
- OUString sFillStyleName;
- {
- SolarMutexGuard aGuard;
- switch (aFillStyle)
- {
- case drawing::FillStyle_NONE:
- sFillStyleName = SvxResId(RID_SVXSTR_A11Y_FILLSTYLE_NONE);
- break;
- case drawing::FillStyle_SOLID:
- sFillStyleName = SvxResId(RID_SVXSTR_A11Y_FILLSTYLE_SOLID);
- break;
- case drawing::FillStyle_GRADIENT:
- sFillStyleName = SvxResId(RID_SVXSTR_A11Y_FILLSTYLE_GRADIENT);
- break;
- case drawing::FillStyle_HATCH:
- sFillStyleName = SvxResId(RID_SVXSTR_A11Y_FILLSTYLE_HATCH);
- break;
- case drawing::FillStyle_BITMAP:
- sFillStyleName = SvxResId(RID_SVXSTR_A11Y_FILLSTYLE_BITMAP);
- break;
- default:
- break;
- }
- }
- msDescription.append (sFillStyleName);
-
- // Append the appropriate properties.
- switch (aFillStyle)
- {
- case drawing::FillStyle_NONE:
- break;
- case drawing::FillStyle_SOLID:
- AddProperty ("FillColor", PropertyType::Color, SIP_XA_FILLCOLOR);
- break;
- case drawing::FillStyle_GRADIENT:
- AddProperty ("FillGradientName", PropertyType::String, SIP_XA_FILLGRADIENT,
- XATTR_FILLGRADIENT);
- break;
- case drawing::FillStyle_HATCH:
- AddProperty ("FillColor", PropertyType::Color, SIP_XA_FILLCOLOR);
- AddProperty ("FillHatchName", PropertyType::String, SIP_XA_FILLHATCH,
- XATTR_FILLHATCH);
- break;
- case drawing::FillStyle_BITMAP:
- AddProperty ("FillBitmapName", PropertyType::String, SIP_XA_FILLBITMAP,
- XATTR_FILLBITMAP);
- break;
- default:
- break;
- }
- }
- }
- catch (const css::beans::UnknownPropertyException &)
- {
- msDescription.append ("<unknown>");
- }
-}
-
} // end of namespace accessibility
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */