Commits

Oliver-Rainer Wittmann  committed 5dee490

textalignment01: #i105270# - solving last items in Calc for new writing direction dependent text alignments

  • Participants
  • Parent commits 155eb91

Comments (0)

Files changed (4)

File sc/source/core/data/patattr.cxx

                 eVal = SVX_HOR_JUSTIFY_END;
                 break;
             // <--
-            // #i105270-TODO# - LEFT and RIGHT may not occur, if other TODO is solved
             case SVX_ADJUST_LEFT: // legacy
                 // #30154# EditEngine Default ist bei dem GetAttribs() ItemSet
                 // immer gesetzt!
         case SVX_HOR_JUSTIFY_REPEAT:
         case SVX_HOR_JUSTIFY_START:  eSvxAdjust = SVX_ADJUST_START;  break;
         case SVX_HOR_JUSTIFY_END:    eSvxAdjust = SVX_ADJUST_END;  break;
-        // #i105270-TODO# - map to START depending on text direction?
         case SVX_HOR_JUSTIFY_LEFT:   eSvxAdjust = SVX_ADJUST_LEFT;  break; // legacy
-        // #i105270-TODO# - map to START depending on text direction?
         case SVX_HOR_JUSTIFY_RIGHT:  eSvxAdjust = SVX_ADJUST_RIGHT;  break; // legacy
         // <--
 		case SVX_HOR_JUSTIFY_CENTER: eSvxAdjust = SVX_ADJUST_CENTER; break;

File sc/source/ui/app/inputhdl.cxx

 	{
 		ScViewData* pViewData = pActiveViewSh->GetViewData();
 
-        // #i105270-TODO# - needed to handle SVX_ADJUST_START and/or SVX_ADJUST_END?
         // --> OD #i105270# - refactoring
 //        BOOL bNeedGrow = ( nEditAdjust != SVX_ADJUST_LEFT );
         BOOL bNeedGrow = ( pViewData->GetEditAdjust() != SVX_ADJUST_LEFT );

File sc/source/ui/app/transobj.cxx

 							nCol,nRow,nDestTab, ATTR_HOR_JUSTIFY))->GetValue() ==
 							SVX_HOR_JUSTIFY_STANDARD )
                     {
-                        // #i105270-TODO# - apply SVX_HOR_JUSTIFY_END ?
 						pDestDoc->ApplyAttr( nCol,nRow,nDestTab,
 								SvxHorJustifyItem(SVX_HOR_JUSTIFY_RIGHT, ATTR_HOR_JUSTIFY) );
                     }

File sc/source/ui/view/output2.cxx

 							// default alignment for asian vertical mode is top-right
 							if ( eHorJust == SVX_HOR_JUSTIFY_STANDARD )
                             {
-                                // #i105270-TODO# - adjustment needed ?        
 								eHorJust = SVX_HOR_JUSTIFY_RIGHT;
                             }
 						}
                         if ( eOutHorJust == SVX_HOR_JUSTIFY_BLOCK || 
                              eOutHorJust == SVX_HOR_JUSTIFY_REPEAT )
                         {
-                            // #i105270-TODO# - adjustment needed ?        
-                            eOutHorJust = SVX_HOR_JUSTIFY_LEFT;     // repeat is not yet implemented
+                            // #i105270# 
+                            eOutHorJust = SVX_HOR_JUSTIFY_START;
+                            // <--
                         }