View | Details | Raw Unified | Return to issue 119464
Collapse All | Expand All

(-)source/dmapper/StyleSheetTable.cxx (-2 / +20 lines)
Lines 37-42 Link Here
37
#include <com/sun/star/text/XTextDocument.hpp>
37
#include <com/sun/star/text/XTextDocument.hpp>
38
#include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
38
#include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
39
#include <com/sun/star/style/XStyle.hpp>
39
#include <com/sun/star/style/XStyle.hpp>
40
#include <com/sun/star/style/ParagraphAdjust.hpp>
40
#include <com/sun/star/text/WritingMode.hpp>
41
#include <com/sun/star/text/WritingMode.hpp>
41
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
42
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
42
#include <map>
43
#include <map>
Lines 88-95 Link Here
88
    sNextStyleIdentifier = rEntry.sNextStyleIdentifier;
89
    sNextStyleIdentifier = rEntry.sNextStyleIdentifier;
89
    sStyleName = rEntry.sStyleName;
90
    sStyleName = rEntry.sStyleName;
90
    sStyleName1 = rEntry.sStyleName1;
91
    sStyleName1 = rEntry.sStyleName1;
91
	sStyleIdentifierI = rEntry.sStyleIdentifierI;
92
	sStyleIdentifierD = rEntry.sStyleIdentifierD;
93
92
94
    m_nColBandSize = 1;
93
    m_nColBandSize = 1;
95
    m_nRowBandSize = 1;
94
    m_nRowBandSize = 1;
Lines 894-899 Link Here
894
                            xState->setPropertyToDefault(rPropNameSupplier.GetName( PROP_CHAR_PROP_HEIGHT_COMPLEX));
893
                            xState->setPropertyToDefault(rPropNameSupplier.GetName( PROP_CHAR_PROP_HEIGHT_COMPLEX));
895
894
896
                        }
895
                        }
896
						else if(sConvertedStyleName.equalsAscii( "Title" ) ||
897
							sConvertedStyleName.equalsAscii( "Subtitle" ))
898
						{
899
							//set the default adjust for ParaStyle Title and Subtitle to left
900
							try
901
							{
902
								uno::Reference< beans::XPropertySet > xProp( xStyle, uno::UNO_QUERY );
903
								if( xProp.is() )
904
								{
905
									uno::Any aMSDefaultVal = uno::makeAny( (sal_Int16)style::ParagraphAdjust_LEFT );
906
									xProp->setPropertyValue( rPropNameSupplier.GetName( PROP_PARA_ADJUST), aMSDefaultVal );
907
								}
908
909
							}
910
							catch(...)
911
							{
912
								OSL_ENSURE( false, "Default ParaAdjust style property could not be set");
913
							}
914
						}
897
                    }
915
                    }
898
916
899
                    if(bAddFollowStyle || aPropValues.getLength())
917
                    if(bAddFollowStyle || aPropValues.getLength())

Return to issue 119464