Kaydet (Commit) 23e16b91 authored tarafından Tsutomu Uchino's avatar Tsutomu Uchino

#i114416# use default service name for scroll bar if failed to detect the control-implementation

üst 459c1d18
......@@ -190,7 +190,7 @@ namespace xmloff
}
if ( !m_sServiceName.getLength() )
determineDefaultServiceName();
m_sServiceName = determineDefaultServiceName();
// create the object *now*. This allows setting properties in the various handleAttribute methods.
// (Though currently not all code is migrated to this pattern, most attributes are still handled
......@@ -712,6 +712,7 @@ namespace xmloff
case OControlElement::IMAGE_FRAME: pServiceName = "com.sun.star.form.component.DatabaseImageControl"; break;
case OControlElement::HIDDEN: pServiceName = "com.sun.star.form.component.HiddenControl"; break;
case OControlElement::GRID: pServiceName = "com.sun.star.form.component.GridControl"; break;
case OControlElement::VALUERANGE: pServiceName = "com.sun.star.form.component.ScrollBar"; break;
case OControlElement::TIME: pServiceName = "com.sun.star.form.component.DateField"; break;
case OControlElement::DATE: pServiceName = "com.sun.star.form.component.TimeField"; break;
default: break;
......@@ -2221,6 +2222,12 @@ namespace xmloff
}
}
//---------------------------------------------------------------------
::rtl::OUString OFormImport::determineDefaultServiceName() const
{
return ::rtl::OUString::createFromAscii( "com.sun.star.form.component.Form" );
}
//.........................................................................
} // namespace xmloff
//.........................................................................
......
......@@ -740,7 +740,7 @@ namespace xmloff
sal_uInt16 _nPrefix, const ::rtl::OUString& _rLocalName,
OControlElement::ElementType _eType );
virtual ::rtl::OUString determineDefaultServiceName() const;
void implTranslateStringListProperty(const ::rtl::OUString& _rPropertyName, const ::rtl::OUString& _rValue);
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment