Fix typos

Change-Id: I60261b937215340d2eb6f439234e99a300b0e189
Reviewed-on: https://gerrit.libreoffice.org/76380
Tested-by: Jenkins
Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
This commit is contained in:
Andrea Gelmini
2019-07-26 18:50:35 +02:00
parent 7b0dd98941
commit 937440b653
38 changed files with 65 additions and 65 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ public abstract class Enum {
private final int m_value;
/**
* Constructs a enum value.
* Constructs an enum value.
* @param value the integer value of this enum value.
*/
protected Enum(int value) {
@@ -54,7 +54,7 @@ module com { module sun { module star { module container {
*/
interface XEnumerableMap : XMap
{
/** creates a enumerator for the keys of the map
/** creates an enumerator for the keys of the map
@param Isolated
controls whether the newly create enumerator should be isolated from the map.
@@ -65,7 +65,7 @@ interface XEnumerableMap : XMap
XEnumeration createKeyEnumeration( [in] boolean Isolated )
raises ( ::com::sun::star::lang::NoSupportException );
/** creates a enumerator for the values of the map
/** creates an enumerator for the values of the map
@param Isolated
controls whether the newly create enumerator should be isolated from the map.
@@ -76,7 +76,7 @@ interface XEnumerableMap : XMap
XEnumeration createValueEnumeration( [in] boolean Isolated )
raises ( ::com::sun::star::lang::NoSupportException );
/** creates a enumerator for the key-value pairs of the map
/** creates an enumerator for the key-value pairs of the map
<p>The elements returned by the enumerator are instances of com::sun::star::beans::Pair,
holding the key-value-pairs which are part of the map.</p>
+1 -1
View File
@@ -181,7 +181,7 @@ SvtViewOptionsBase_Impl::~SvtViewOptionsBase_Impl()
{
// don't flush configuration changes here to m_xRoot.
// That must be done inside every SetXXX() method already !
// Here its to late - DisposedExceptions from used configuration access can occur otherwise.
// Here it's too late - DisposedExceptions from used configuration access can occur otherwise.
m_xRoot.clear();
m_xSet.clear();
+1 -1
View File
@@ -186,7 +186,7 @@
table:cell-range-address %cell-range-address; #IMPLIED >
<!--
each series element must have an cell-range-address element that points
each series element must have a cell-range-address element that points
to the underlying table data.
Impl. Note: Internally all href elements are merged to one table range
that represents the data for the whole chart
@@ -37,13 +37,13 @@ public:
// Just needed for virtual destruction
virtual ~XMLBitmapLogicalSizePropertyHandler() override;
/// Imports the given value in cas of the given XML-data-type
/// Imports the given value in case of the given XML-data-type
virtual bool importXML(
const OUString& rStrImpValue,
css::uno::Any& rValue,
const SvXMLUnitConverter& rUnitConverter ) const override;
/// Exports the given value in cas of the given XML-data-type
/// Exports the given value in case of the given XML-data-type
virtual bool exportXML(
OUString& rStrExpValue,
const css::uno::Any& rValue,
@@ -39,13 +39,13 @@ public:
// Just needed for virtual destruction
virtual ~XMLBitmapRepeatOffsetPropertyHandler() override;
/// Imports the given value in cas of the given XML-data-type
/// Imports the given value in case of the given XML-data-type
virtual bool importXML(
const OUString& rStrImpValue,
css::uno::Any& rValue,
const SvXMLUnitConverter& rUnitConverter ) const override;
/// Exports the given value in cas of the given XML-data-type
/// Exports the given value in case of the given XML-data-type
virtual bool exportXML(
OUString& rStrExpValue,
const css::uno::Any& rValue,
@@ -37,13 +37,13 @@ public:
// Just needed for virtual destruction
virtual ~XMLFillBitmapSizePropertyHandler() override;
/// Imports the given value in cas of the given XML-data-type
/// Imports the given value in case of the given XML-data-type
virtual bool importXML(
const OUString& rStrImpValue,
css::uno::Any& rValue,
const SvXMLUnitConverter& rUnitConverter ) const override;
/// Exports the given value in cas of the given XML-data-type
/// Exports the given value in case of the given XML-data-type
virtual bool exportXML(
OUString& rStrExpValue,
const css::uno::Any& rValue,
+2 -2
View File
@@ -39,13 +39,13 @@ public:
// Just needed for virtual destruction
virtual ~XMLRectangleMembersHdl() override;
/// Imports the given value in cas of the given XML-data-type
/// Imports the given value in case of the given XML-data-type
virtual bool importXML(
const OUString& rStrImpValue,
css::uno::Any& rValue,
const SvXMLUnitConverter& rUnitConverter ) const override;
/// Exports the given value in cas of the given XML-data-type
/// Exports the given value in case of the given XML-data-type
virtual bool exportXML(
OUString& rStrExpValue,
const css::uno::Any& rValue,
+2 -2
View File
@@ -687,7 +687,7 @@ std::unique_ptr<SvXMLNamespaceMap> SvXMLImport::processNSAttributes(
// Add namespace, but only if it is known.
sal_uInt16 nKey = mpNamespaceMap->AddIfKnown( aPrefix, rAttrValue );
// If namespace is unknown, try to match a name with similar
// TC Id an version
// TC Id and version
if( XML_NAMESPACE_UNKNOWN == nKey )
{
OUString aTestName( rAttrValue );
@@ -1327,7 +1327,7 @@ bool SvXMLImport::IsPackageURL( const OUString& rURL ) const
// it's not an external URI
return false;
else if( '/' == rURL[1] )
// we are remaining on a level, so it's an package URI
// we are remaining on a level, so it's a package URI
return true;
}
+1 -1
View File
@@ -169,7 +169,7 @@ bool XMLOpacityPropertyHdl::exportXML(
return bRet;
}
// implementation of an text animation step amount
// implementation of a text animation step amount
XMLTextAnimationStepPropertyHdl::~XMLTextAnimationStepPropertyHdl()
{
+4 -4
View File
@@ -1346,7 +1346,7 @@ void XMLShapeExport::ImpExportNewTrans(const uno::Reference< beans::XPropertySet
::basegfx::B2DHomMatrix aMatrix;
ImpExportNewTrans_GetB2DHomMatrix(aMatrix, xPropSet);
// decompose and correct abour pRefPoint
// decompose and correct about pRefPoint
::basegfx::B2DTuple aTRScale;
double fTRShear(0.0);
double fTRRotate(0.0);
@@ -2182,7 +2182,7 @@ void XMLShapeExport::ImpExportPolygonShape(
::basegfx::B2DHomMatrix aMatrix;
ImpExportNewTrans_GetB2DHomMatrix(aMatrix, xPropSet);
// decompose and correct abour pRefPoint
// decompose and correct about pRefPoint
::basegfx::B2DTuple aTRScale;
double fTRShear(0.0);
double fTRRotate(0.0);
@@ -2867,8 +2867,8 @@ void XMLShapeExport::ImpExportOLE2Shape(
// xlink:href
if( !sURL.isEmpty() )
{
// #96717# in theorie, if we don't have a url we shouldn't even
// export this ole shape. But practical its to risky right now
// #96717# in theorie, if we don't have a URL we shouldn't even
// export this OLE shape. But practically it's too risky right now
// to change this so we better dispose this on load
sURL = mrExport.AddEmbeddedObject( sURL );
+1 -1
View File
@@ -1185,7 +1185,7 @@ static void CheckAndResolveEquationParameter( css::drawing::EnhancedCustomShapeP
void XMLEnhancedCustomShapeContext::EndElement()
{
// resolve properties that are indexing a Equation
// resolve properties that are indexing an Equation
if ( !maEquations.empty() )
{
// creating hash map containing the name and index of each equation
+3 -3
View File
@@ -2186,7 +2186,7 @@ void SdXMLPageShapeContext::StartElement(const uno::Reference< xml::sax::XAttrib
// add, set style and properties from base shape
// #86163# take into account which type of PageShape needs to
// be constructed. It's an pres shape if presentation:XML_CLASS == XML_PRESENTATION_PAGE.
// be constructed. It's a pres shape if presentation:XML_CLASS == XML_PRESENTATION_PAGE.
bool bIsPresentation = !maPresentationClass.isEmpty() &&
GetImport().GetShapeImport()->IsPresentationShapesSupported();
@@ -2598,8 +2598,8 @@ SdXMLObjectShapeContext::~SdXMLObjectShapeContext()
void SdXMLObjectShapeContext::StartElement( const css::uno::Reference< css::xml::sax::XAttributeList >& )
{
// #96717# in theorie, if we don't have a url we shouldn't even
// export this ole shape. But practical its to risky right now
// #96717# in theorie, if we don't have a URL we shouldn't even
// export this OLE shape. But practically it's too risky right now
// to change this so we better dispose this on load
//if( !mbIsPlaceholder && ImpIsEmptyURL(maHref) )
// return;
+1 -1
View File
@@ -1310,7 +1310,7 @@ namespace xmloff
}
if (i < nValues)
{
// there is an value at this position
// there is a value at this position
AddAttribute(
OAttributeMetaData::getCommonControlAttributeNamespace(CCAFlags::Value),
OAttributeMetaData::getCommonControlAttributeName(CCAFlags::Value),
+2 -2
View File
@@ -217,7 +217,7 @@ namespace xmloff
// set all the properties we collected
#if OSL_DEBUG_LEVEL > 0
// check if the object has all the properties
// (We do this in the non-pro version only. Doing it all the time would be much to expensive)
// (We do this in the non-pro version only. Doing it all the time would be too much expensive)
if ( m_xInfo.is() )
{
for ( const auto& rCheck : m_aValues )
@@ -1922,7 +1922,7 @@ namespace xmloff
if (*pChars == ',')
++nEstimate;
aElements.reserve(nEstimate + 1);
// that's the worst case. If the string contains the separator character _quoted_, we reserved to much ...
// that's the worst case. If the string contains the separator character _quoted_, we reserved too much...
sal_Int32 nElementStart = 0;
sal_Int32 nNextSep = 0;
+2 -2
View File
@@ -133,7 +133,7 @@ namespace xmloff
/** create the (uninitialized) element which is to represent the read data
<p>The default implementation uses <member>m_xORB</member> to create a object with <member>m_sServiceName</member>.
<p>The default implementation uses <member>m_xORB</member> to create an object with <member>m_sServiceName</member>.
*/
virtual css::uno::Reference< css::beans::XPropertySet >
createElement();
@@ -501,7 +501,7 @@ namespace xmloff
const OUString& _rLocalName,
const OUString& _rValue) override;
// OControlImport ovrridables
// OControlImport overridables
virtual void doRegisterCellValueBinding( const OUString& _rBoundCellAddress ) override;
protected:
+9 -9
View File
@@ -196,7 +196,7 @@ namespace xmloff
*/
static const sal_Char* getFormAttributeName(FormAttributes _eAttrib);
/** calculates the xml namespace key to use for a attribute of a form xml representation
/** calculates the xml namespace key to use for an attribute of a form xml representation
@param _eAttrib
enum value specifying the attribute
*/
@@ -246,13 +246,13 @@ namespace xmloff
*/
static sal_uInt16 getSpecialAttributeNamespace(SCAFlags _nId);
/** calculates the xml attribute representation of a attribute of the office:forms element
/** calculates the xml attribute representation of an attribute of the office:forms element
@param _nId
the id of the attribute
*/
static const sal_Char* getOfficeFormsAttributeName(OfficeFormsAttributes _eAttrib);
/** calculates the xml namedspace key of a attribute of the office:forms element
/** calculates the xml namedspace key of an attribute of the office:forms element
@param _nId
the id of the attribute
*/
@@ -306,7 +306,7 @@ namespace xmloff
const AttributeAssignment* getAttributeTranslation(
const OUString& _rAttribName);
/** add a attribute assignment referring to a string property to the map
/** add an attribute assignment referring to a string property to the map
@param _pAttributeName
the name of the attribute
@param _rPropertyName
@@ -315,7 +315,7 @@ namespace xmloff
void addStringProperty(
const sal_Char* _pAttributeName, const OUString& _rPropertyName);
/** add a attribute assignment referring to a boolean property to the map
/** add an attribute assignment referring to a boolean property to the map
@param _pAttributeName
the name of the attribute
@@ -324,14 +324,14 @@ namespace xmloff
@param _bAttributeDefault
the default value for the attribute.
@param _bInverseSemantics
if <TRUE/>, a attribute value of <TRUE/> means a property value of <FALSE/> and vice verse.<br/>
if <TRUE/>, an attribute value of <TRUE/> means a property value of <FALSE/> and vice verse.<br/>
if <FALSE/>, the attribute value is used as property value directly
*/
void addBooleanProperty(
const sal_Char* _pAttributeName, const OUString& _rPropertyName,
const bool _bAttributeDefault, const bool _bInverseSemantics = false);
/** add a attribute assignment referring to an int16 property to the map
/** add an attribute assignment referring to an int16 property to the map
@param _pAttributeName
the name of the attribute
@@ -341,7 +341,7 @@ namespace xmloff
void addInt16Property(
const sal_Char* _pAttributeName, const OUString& _rPropertyName);
/** add a attribute assignment referring to an int32 property to the map
/** add an attribute assignment referring to an int32 property to the map
@param _pAttributeName
the name of the attribute
@@ -351,7 +351,7 @@ namespace xmloff
void addInt32Property(
const sal_Char* _pAttributeName, const OUString& _rPropertyName );
/** add a attribute assignment referring to an enum property to the map
/** add an attribute assignment referring to an enum property to the map
@param _pAttributeName
the name of the attribute
+1 -1
View File
@@ -56,7 +56,7 @@ namespace xmloff
the control model which is or will be bound
@param _rxDocument
the document. If this is <NULL/>, the document will be obtained from the model
itself by walkon up the chain of its ancestors.<br/>
itself by walk on up the chain of its ancestors.<br/>
This parameter can be used if the control model is not (yet) part of a document
model.
*/
+1 -1
View File
@@ -198,7 +198,7 @@ namespace xmloff
// without this, a lot of stuff in the export routines may fail
continue;
// if the element is part of a ignore list, we are not allowed to export it
// if the element is part of an ignore list, we are not allowed to export it
if ( m_aIgnoreList.end() != m_aIgnoreList.find( xCurrentProps ) )
continue;
+1 -1
View File
@@ -105,7 +105,7 @@ namespace xmloff
m_aCurrentPageReferring;
// the same for the map of referring controls
// TODO: To avoid this construct above, and to have a cleaner implementation, an class encapsulating the
// TODO: To avoid this construct above, and to have a cleaner implementation, a class encapsulating the
// export of a single page should be introduced.
typedef std::map<css::uno::Reference<css::beans::XPropertySet>, sal_Int32> MapPropertySet2Int;
+1 -1
View File
@@ -243,7 +243,7 @@ namespace xmloff
{
DBG_CHECK_PROPERTY( _rPropertyName, OUString );
// no try-catch here, this would be to expensive. The outer scope has to handle exceptions (which should not
// no try-catch here, this would be too expensive. The outer scope has to handle exceptions (which should not
// happen if we're used correctly :)
// this is way simple, as we don't need to convert anything (the property already is a string)
+2 -2
View File
@@ -54,7 +54,7 @@ namespace xmloff
//= OPropertyExport
/** provides export related tools for attribute handling
<p>(The name is somewhat misleading. It's not only a PropertyExport, but in real a ElementExport.
<p>(The name is somewhat misleading. It's not only a PropertyExport, but in real an ElementExport.
Anyway.)</p>
*/
class OPropertyExport
@@ -195,7 +195,7 @@ namespace xmloff
const OUString& _rPropertyName,
const sal_Int32 _nDefault);
/** add an attribute which is represented by a enum property to the export context
/** add an attribute which is represented by an enum property to the export context
@param _nNamespaceKey
the key of the namespace to use for the attribute name. Is used with the namespace map
+1 -1
View File
@@ -121,7 +121,7 @@ namespace xmloff
const OUString& _rLocalName,
const OUString& _rValue);
/** determine if the element imported by the object had an given attribute.
/** determine if the element imported by the object had a given attribute.
<p>Please be aware of the fact that the name given must be a local name, i.e. not contain a namespace.
All form relevant attributes are in the same namespace, so this would be an redundant information.</p>
*/
+1 -1
View File
@@ -171,7 +171,7 @@ void SvXMLImportPropertyMapper::importXML(
sal_Int32 nReference = -1;
// if this is a multi attribute check if another attribute already set
// this any. If so use this as a initial value
// this any. If so use this as an initial value
if( ( nFlags & MID_FLAG_MERGE_PROPERTY ) != 0 )
{
const OUString aAPIName( maPropMapper->GetEntryAPIName( nIndex ) );
+1 -1
View File
@@ -380,7 +380,7 @@ void XMLRedlineExport::ExportChangedRegion(
if (aSuccessorData.hasElements())
{
// The only change that can be "undone" is an insertion -
// after all, you can't re-insert an deletion, but you can
// after all, you can't re-insert a deletion, but you can
// delete an insertion. This assumption is asserted in
// ExportChangeInfo(Sequence<PropertyValue>&).
SvXMLElementExport aSecondChangeElem(
+2 -2
View File
@@ -143,11 +143,11 @@ private:
void ExportChangedRegion(
const css::uno::Reference<css::beans::XPropertySet> & rPropSet);
/// export an change-info element (from a PropertySet)
/// export a change-info element (from a PropertySet)
void ExportChangeInfo(
const css::uno::Reference<css::beans::XPropertySet> & rPropSet);
/// export an change-info element (from PropertyValues)
/// export a change-info element (from PropertyValues)
void ExportChangeInfo(
const css::uno::Sequence<css::beans::PropertyValue> & rValues);
+1 -1
View File
@@ -708,7 +708,7 @@ void XMLTextFrameContext_Impl::Create()
}
// Make adding the shape to Z-Ordering dependent from if we are
// inside a inside_deleted_section (redlining). That is necessary
// inside an inside_deleted_section (redlining). That is necessary
// since the shape will be removed again later. It would lead to
// errors if it would stay inside the Z-Ordering. Thus, the
// easiest way to solve that conflict is to not add it here.
+1 -1
View File
@@ -2441,7 +2441,7 @@ sal_Int32 XMLTextImportHelper::GetDataStyleKey(const OUString& sStyleName,
// get appropriate context
// first check if it's a impress and draw only number format
// first check if it's an Impress and draw only number format
// this is needed since its also a SvXMLNumFormatContext,
// that was needed to support them for controls in impress/draw also
const SdXMLNumberFormatImportContext* pSdNumStyle = dynamic_cast<const SdXMLNumberFormatImportContext*>( pStyle );
+1 -1
View File
@@ -176,7 +176,7 @@ void XMLTextImportPropertyMapper::FontFinished(
}
/** since the properties "CharFontFamilyName", "CharFontStyleName", "CharFontFamily",
"CharFontPitch" and "CharFontSet" and theire CJK and CTL counterparts are only
"CharFontPitch" and "CharFontSet" and their CJK and CTL counterparts are only
usable as a union, we add defaults to all values that are not set as long as we
have an "CharFontFamilyName"
+1 -1
View File
@@ -58,7 +58,7 @@ public:
void SetEnd( const css::uno::Reference < css::text::XTextRange > & rPos ) { xEnd = rPos; }
// We don't use virtual methods to differ between the sub classes,
// because this seems to be to expensive if compared to inline methods.
// because this seems to be too expensive if compared to inline methods.
sal_uInt8 GetType() const { return nType; }
bool IsReference() { return XML_HINT_REFERENCE==nType; }
};
+1 -1
View File
@@ -228,7 +228,7 @@ void XMLTextStyleContext::CreateAndInsert( bool bOverwrite )
// tell the style about it's events (if applicable)
if (m_xEventContext.is())
{
// pass events into event suppplier
// pass events into event supplier
Reference<document::XEventsSupplier> xEventsSupplier(xStyle,UNO_QUERY);
m_xEventContext->SetEvents(xEventsSupplier);
m_xEventContext.clear();
+1 -1
View File
@@ -33,7 +33,7 @@ public:
const OUString& rQName );
// StartElement is called after a context has been constructed and
// before a elements context is parsed. It may be used for actions that
// before an elements context is parsed. It may be used for actions that
// require virtual methods. The default is to do nothing.
virtual void StartElement( const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList ) override;
};
@@ -69,7 +69,7 @@ XMLTokenEnum XMLFormPropOASISTransformerContext::GetValueType(
if( nPos == nLen )
{
// It's a integer number
// It's an integer number
if( bOverflow )
eRet = XML_LONG;
else if( nVal > (bNeg ? 32768UL : 32767UL) )
+2 -2
View File
@@ -55,12 +55,12 @@ public:
const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList ) override;
// StartElement is called after a context has been constructed and
// before a elements context is parsed. It may be used for actions that
// before an elements context is parsed. It may be used for actions that
// require virtual methods. The default is to do nothing.
virtual void StartElement( const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList ) override;
// EndElement is called before a context will be destructed, but
// after a elements context has been parsed. It may be used for actions
// after an elements context has been parsed. It may be used for actions
// that require virtual methods. The default is to do nothing.
virtual void EndElement() override;
+1 -1
View File
@@ -55,7 +55,7 @@ public:
const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList ) override;
// EndElement is called before a context will be destructed, but
// after a elements context has been parsed. It may be used for actions
// after an elements context has been parsed. It may be used for actions
// that require virtual methods. The default is to do nothing.
virtual void EndElement() override;
@@ -69,12 +69,12 @@ public:
const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList ) override;
// StartElement is called after a context has been constructed and
// before a elements context is parsed. It may be used for actions that
// before an elements context is parsed. It may be used for actions that
// require virtual methods. The default is to do nothing.
virtual void StartElement( const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList ) override;
// EndElement is called before a context will be destructed, but
// after a elements context has been parsed. It may be used for actions
// after an elements context has been parsed. It may be used for actions
// that require virtual methods. The default is to do nothing.
virtual void EndElement() override;
+1 -1
View File
@@ -231,7 +231,7 @@ void SAL_CALL XMLTransformerBase::startElement( const OUString& rName,
// Add namespace, but only if it is known.
sal_uInt16 nKey = m_pNamespaceMap->AddIfKnown( aPrefix, rAttrValue );
// If namespace is unknown, try to match a name with similar
// TC Id an version
// TC Id and version
if( XML_NAMESPACE_UNKNOWN == nKey )
{
OUString aTestName( rAttrValue );
@@ -72,12 +72,12 @@ public:
const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList );
// StartElement is called after a context has been constructed and
// before a elements context is parsed. It may be used for actions that
// before an elements context is parsed. It may be used for actions that
// require virtual methods. The default is to do nothing.
virtual void StartElement( const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList );
// EndElement is called before a context will be destructed, but
// after a elements context has been parsed. It may be used for actions
// after an elements context has been parsed. It may be used for actions
// that require virtual methods. The default is to do nothing.
virtual void EndElement();