Lines 945-951
Link Here
|
945 |
if(nRubyHeight < 0 ) |
945 |
if(nRubyHeight < 0 ) |
946 |
nRubyHeight = 0; |
946 |
nRubyHeight = 0; |
947 |
operator[]( PropertyDefinition( PROP_GRID_RUBY_HEIGHT, false )) = uno::makeAny( nRubyHeight ); |
947 |
operator[]( PropertyDefinition( PROP_GRID_RUBY_HEIGHT, false )) = uno::makeAny( nRubyHeight ); |
948 |
|
948 |
/* |
949 |
sal_Int16 nGridMode = text::TextGridMode::NONE; |
949 |
sal_Int16 nGridMode = text::TextGridMode::NONE; |
950 |
|
950 |
|
951 |
switch (m_nGridType) |
951 |
switch (m_nGridType) |
Lines 961-966
Link Here
|
961 |
} |
961 |
} |
962 |
|
962 |
|
963 |
operator[](PropertyDefinition(PROP_GRID_MODE, false)) = uno::makeAny(nGridMode); |
963 |
operator[](PropertyDefinition(PROP_GRID_MODE, false)) = uno::makeAny(nGridMode); |
|
|
964 |
*/ |
965 |
// force to set document as standard page mode |
966 |
// refer to ww8 import process function "SwWW8ImplReader::SetDocumentGrid" |
967 |
try |
968 |
{ |
969 |
uno::Reference< beans::XPropertySet > xDocProperties; |
970 |
xDocProperties = uno::Reference< beans::XPropertySet >( rDM_Impl.GetTextDocument(), uno::UNO_QUERY_THROW ); |
971 |
sal_Bool bSquaredPageMode = sal_False; |
972 |
operator[]( PropertyDefinition( PROP_GRID_STANDARD_MODE, false )) = uno::makeAny( !bSquaredPageMode ); |
973 |
xDocProperties->setPropertyValue( rtl::OUString::createFromAscii("DefaultPageMode"), uno::makeAny( bSquaredPageMode )); |
974 |
} |
975 |
catch (const uno::Exception& rEx) |
976 |
{ |
977 |
OSL_ENSURE( false, "Exception in SectionPropertyMap::CloseSectionGroup"); |
978 |
(void)rEx; |
979 |
} |
964 |
|
980 |
|
965 |
_ApplyProperties( xFollowPageStyle ); |
981 |
_ApplyProperties( xFollowPageStyle ); |
966 |
|
982 |
|