// Complete refactoring of the class and enhancement of the class for lists.
XMLTextNumRuleInfo::XMLTextNumRuleInfo()
: mbListIdIsDefault(false)
, mnListStartValue( -1 )
, mnListLevel( 0 )
, mbIsNumbered( false )
, mbIsRestart( false )
, mnListLevelStartValue( -1 )
, mbOutlineStyleAsNormalListStyle( false )
{
Reset();
}
// Written OpenDocument file format doesn't fit to the created text document (#i69627#) void XMLTextNumRuleInfo::Set( const css::uno::Reference < css::text::XTextContent > & xTextContent, constbool bOutlineStyleAsNormalListStyle, const XMLTextListAutoStylePool& rListAutoPool, constbool bExportTextNumberElement, constbool bListIdIsDefault )
{
Reset(); // Written OpenDocument file format doesn't fit to the created text document (#i69627#)
mbOutlineStyleAsNormalListStyle = bOutlineStyleAsNormalListStyle;
// Written OpenDocument file format doesn't fit to the created text document (#i69627#) bool bSuppressListStyle( false ); if ( mxNumRules.is() )
{ if ( !mbOutlineStyleAsNormalListStyle )
{
Reference<XPropertySet> xNumRulesProps(mxNumRules, UNO_QUERY); if ( xNumRulesProps.is() &&
xNumRulesProps->getPropertySetInfo()->
hasPropertyByName( u"NumberingIsOutline"_ustr ) )
{ bool bIsOutline = false;
xNumRulesProps->getPropertyValue( u"NumberingIsOutline"_ustr ) >>= bIsOutline;
bSuppressListStyle = bIsOutline;
}
}
}
if( mxNumRules.is() && !bSuppressListStyle )
{ // First try to find the numbering rules in the list auto style pool. // If not found, the numbering rules instance has to be named.
msNumRulesName = rListAutoPool.Find( mxNumRules ); if ( msNumRulesName.isEmpty() )
{
Reference < XNamed > xNamed( mxNumRules, UNO_QUERY );
SAL_WARN_IF( !xNamed.is(), "xmloff", "<XMLTextNumRuleInfo::Set(..)> - numbering rules instance have to be named. Serious defect."); if( xNamed.is() )
{
msNumRulesName = xNamed->getName();
}
}
SAL_WARN_IF( msNumRulesName.isEmpty(), "xmloff", "<XMLTextNumRuleInfo::Set(..)> - no name found for numbering rules instance. Serious defect." );
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.