Commits

Oliver-Rainer Wittmann  committed 3bb4be6

textalignment01: #i150270# - remove unused code

  • Participants
  • Parent commits 1f50dcf

Comments (0)

Files changed (2)

File sc/source/filter/xml/xmlstyle.cxx

 	const ::com::sun::star::uno::Any& rValue,
     const SvXMLUnitConverter& /* rUnitConverter */ ) const
 {
-	table::CellHoriJustify nVal;
-	sal_Bool bRetval(sal_False);
-
-	if(rValue >>= nVal)
-	{
-		switch (nVal)
-		{
-			case table::CellHoriJustify_REPEAT:
-			case table::CellHoriJustify_LEFT:
-			{
-				rStrExpValue = GetXMLToken(XML_START);
-				bRetval = sal_True;
-			}
-			break;
-			case table::CellHoriJustify_RIGHT:
-			{
-				rStrExpValue = GetXMLToken(XML_END);
-				bRetval = sal_True;
-			}
-			break;
-			case table::CellHoriJustify_CENTER:
-			{
-				rStrExpValue = GetXMLToken(XML_CENTER);
-				bRetval = sal_True;
-			}
-			break;
-			case table::CellHoriJustify_BLOCK:
-			{
-				rStrExpValue = GetXMLToken(XML_JUSTIFY);
-				bRetval = sal_True;
-			}
-			break;
-            default:
-            {
-                // added to avoid warnings
-            }
-		}
-	}
-
-	return bRetval;
+    // do nothing as this handler shall not be used any more for exporting.
+    return sal_False;
 }
 
 XmlScPropHdl_HoriJustifySource::~XmlScPropHdl_HoriJustifySource()
 	const ::com::sun::star::uno::Any& rValue,
     const SvXMLUnitConverter& /* rUnitConverter */ ) const
 {
-	table::CellHoriJustify nVal;
-	sal_Bool bRetval(sal_False);
-
-	if(rValue >>= nVal)
-	{
-		if (nVal == table::CellHoriJustify_STANDARD)
-		{
-			rStrExpValue = GetXMLToken(XML_VALUE_TYPE);
-			bRetval = sal_True;
-		}
-		else
-		{
-			rStrExpValue = GetXMLToken(XML_FIX);
-			bRetval = sal_True;
-		}
-	}
-
-	return bRetval;
+    // do nothing as this handler shall not be used any more for exporting.
+    return sal_False;
 }
 
 XmlScPropHdl_HoriJustifyRepeat::~XmlScPropHdl_HoriJustifyRepeat()
 	const ::com::sun::star::uno::Any& rValue,
     const SvXMLUnitConverter& /* rUnitConverter */ ) const
 {
-	table::CellHoriJustify nVal;
-	sal_Bool bRetval(sal_False);
-
-	if(rValue >>= nVal)
-	{
-		if (nVal == table::CellHoriJustify_REPEAT)
-		{
-			rStrExpValue = GetXMLToken(XML_TRUE);
-			bRetval = sal_True;
-		}
-		else
-		{
-			rStrExpValue = GetXMLToken(XML_FALSE);
-			bRetval = sal_True;
-		}
-	}
-
-	return bRetval;
+    // do nothing as this handler shall not be used any more for exporting.
+    return sal_False;
 }
 
 XmlScPropHdl_Orientation::~XmlScPropHdl_Orientation()

File sc/source/filter/xml/xmlstyli.cxx

     XMLPropertyState* pCellTextAlign = 0;
     // horizontal justify attribute - kept for the import of legacy documents
     XMLPropertyState* pHorJust = 0;
-//    // legacy horizontal source attribute
-//    XMLPropertyState* pHorJustSource = 0;
-//    // legacy horizontal repeat attribute
-//    XMLPropertyState* pHorJustRepeat = 0;
     // <--
 
 	::std::vector< XMLPropertyState >::iterator endproperty(rProperties.end());
                 // --> OD #i105270#
                 case CTF_SC_CELLTEXTALIGN               : pCellTextAlign = &*property; break;
                 case CTF_SC_HORIJUSTIFY                 : pHorJust = &*property; break;
-//                case CTF_SC_HORIJUSTIFY_SOURCE          : pHorJustSource = &*property; break;
-//                case CTF_SC_HORIJUSTIFY_REPEAT          : pHorJustRepeat = &*property; break;
                 // <--
 		    }
         }
         }            
     }
 
-//    if ( pHorJustSource )
-//    {
-//        pHorJustSource->mnIndex = -1;
-//    }
-
-//    if ( pHorJustRepeat )
-//    {
-//        pHorJustRepeat->mnIndex = -1;
-//    }
-    // <--
-
     // #i27594#; copy Value, but don't insert
     if (pAllBorderWidthProperty)
         pAllBorderWidthProperty->mnIndex = -1;