summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorKorrawit Pruegsanusak <detective.conan.1412@gmail.com>2011-06-12 16:40:20 +0700
committerNorbert Thiebaud <nthiebaud@gmail.com>2011-06-12 16:44:43 -0500
commit655d930476045a2de7f3ead4768bb75df8cf7c82 (patch)
tree9f240c0f4ef720b1899d5797ac1fcdffe5be2f40 /oox
parent0fa6dbcdab49b79852c451c173867fac0d8f213a (diff)
Code cleanup
* Remove dead code * Fix comment typos Released under LGPLv3+/MPL
Diffstat (limited to 'oox')
-rw-r--r--oox/inc/oox/core/filterbase.hxx2
-rw-r--r--oox/inc/oox/helper/graphichelper.hxx2
-rw-r--r--oox/inc/oox/helper/refmap.hxx4
-rw-r--r--oox/inc/oox/vml/vmlformatting.hxx6
-rw-r--r--oox/inc/oox/vml/vmlshapecontainer.hxx2
-rw-r--r--oox/inc/oox/xls/biffoutputstream.hxx2
-rw-r--r--oox/inc/oox/xls/defnamesbuffer.hxx2
-rw-r--r--oox/source/core/filterdetect.cxx2
-rw-r--r--oox/source/drawingml/customshapeproperties.cxx2
-rw-r--r--oox/source/drawingml/diagram/layoutnodecontext.cxx2
-rw-r--r--oox/source/export/preset-definitions-to-shape-types.pl2
-rw-r--r--oox/source/export/vmlexport.cxx2
-rw-r--r--oox/source/xls/formulaparser.cxx2
-rw-r--r--oox/source/xls/stylesbuffer.cxx2
14 files changed, 17 insertions, 17 deletions
diff --git a/oox/inc/oox/core/filterbase.hxx b/oox/inc/oox/core/filterbase.hxx
index 5a106354c769..4a58cc5ec9d9 100644
--- a/oox/inc/oox/core/filterbase.hxx
+++ b/oox/inc/oox/core/filterbase.hxx
@@ -213,7 +213,7 @@ public:
the imported document. */
ModelObjectHelper& getModelObjectHelper() const;
- /** Returns a helper for the handling of OLE obejcts. */
+ /** Returns a helper for the handling of OLE objects. */
::oox::ole::OleObjectHelper& getOleObjectHelper() const;
/** Returns the VBA project manager. */
diff --git a/oox/inc/oox/helper/graphichelper.hxx b/oox/inc/oox/helper/graphichelper.hxx
index 4c0d0976ca74..2d5d71148b55 100644
--- a/oox/inc/oox/helper/graphichelper.hxx
+++ b/oox/inc/oox/helper/graphichelper.hxx
@@ -60,7 +60,7 @@ namespace oox {
persistent graphic objects internally and store them in an internal
container to prevent their early destruction. This makes it possible to use
the returned URL of the graphic object in any way (e.g. insert it into a
- property map) without needing to store it immediatly at an object that
+ property map) without needing to store it immediately at an object that
resolves the graphic object from the passed URL and thus prevents it from
being destroyed.
*/
diff --git a/oox/inc/oox/helper/refmap.hxx b/oox/inc/oox/helper/refmap.hxx
index 48e04efba61f..dc1089aeb61d 100644
--- a/oox/inc/oox/helper/refmap.hxx
+++ b/oox/inc/oox/helper/refmap.hxx
@@ -55,7 +55,7 @@ public:
typedef typename container_type::key_compare key_compare;
public:
- /** Returns true, if the object accossiated to the passed key exists.
+ /** Returns true, if the object associated to the passed key exists.
Returns false, if the key exists but points to an empty reference. */
inline bool has( key_type nKey ) const
{
@@ -63,7 +63,7 @@ public:
return pxRef && pxRef->get();
}
- /** Returns a reference to the object accossiated to the passed key, or an
+ /** Returns a reference to the object associated to the passed key, or an
empty reference on error. */
inline mapped_type get( key_type nKey ) const
{
diff --git a/oox/inc/oox/vml/vmlformatting.hxx b/oox/inc/oox/vml/vmlformatting.hxx
index 5135452583c3..627da96e987a 100644
--- a/oox/inc/oox/vml/vmlformatting.hxx
+++ b/oox/inc/oox/vml/vmlformatting.hxx
@@ -192,12 +192,12 @@ struct FillModel
OptValue< ::rtl::OUString > moColor; /// Solid fill color.
OptValue< double > moOpacity; /// Solid fill color opacity.
OptValue< ::rtl::OUString > moColor2; /// End color of gradient.
- OptValue< double > moOpacity2; /// End color opycity of gradient.
+ OptValue< double > moOpacity2; /// End color opacity of gradient.
OptValue< sal_Int32 > moType; /// Fill type.
OptValue< sal_Int32 > moAngle; /// Gradient rotation angle.
OptValue< double > moFocus; /// Linear gradient focus of second color.
- OptValue< DoublePair > moFocusPos; /// Rectanguar gradient focus position of second color.
- OptValue< DoublePair > moFocusSize; /// Rectanguar gradient focus size of second color.
+ OptValue< DoublePair > moFocusPos; /// Rectangular gradient focus position of second color.
+ OptValue< DoublePair > moFocusSize; /// Rectangular gradient focus size of second color.
OptValue< ::rtl::OUString > moBitmapPath; /// Path to fill bitmap fragment.
OptValue< bool > moRotate; /// True = rotate gradient/bitmap with shape.
diff --git a/oox/inc/oox/vml/vmlshapecontainer.hxx b/oox/inc/oox/vml/vmlshapecontainer.hxx
index 96831dc8212a..288062566a00 100644
--- a/oox/inc/oox/vml/vmlshapecontainer.hxx
+++ b/oox/inc/oox/vml/vmlshapecontainer.hxx
@@ -73,7 +73,7 @@ public:
/** Final processing after import of the drawing fragment. */
void finalizeFragmentImport();
- /** Returns true, if this contaikner does not contain any shapes. */
+ /** Returns true, if this container does not contain any shapes. */
inline bool empty() const { return maShapes.empty(); }
/** Returns the shape template with the passed identifier.
diff --git a/oox/inc/oox/xls/biffoutputstream.hxx b/oox/inc/oox/xls/biffoutputstream.hxx
index c58b86fa4496..2a4ea9d2c20b 100644
--- a/oox/inc/oox/xls/biffoutputstream.hxx
+++ b/oox/inc/oox/xls/biffoutputstream.hxx
@@ -69,7 +69,7 @@ public:
private:
typedef ::std::vector< sal_uInt8 > DataBuffer;
- BinaryOutputStream& mrOutStrm; /// Core ouput stream.
+ BinaryOutputStream& mrOutStrm; /// Core output stream.
DataBuffer maData; /// Record data buffer.
sal_uInt16 mnMaxRecSize; /// Maximum size of record contents.
sal_uInt16 mnRecId; /// Current record identifier.
diff --git a/oox/inc/oox/xls/defnamesbuffer.hxx b/oox/inc/oox/xls/defnamesbuffer.hxx
index f7a6b0cdc53c..a4b9257189fd 100644
--- a/oox/inc/oox/xls/defnamesbuffer.hxx
+++ b/oox/inc/oox/xls/defnamesbuffer.hxx
@@ -192,7 +192,7 @@ public:
/** Creates all defined names in the document. */
void finalizeImport();
- /** Returns a defined name by zero-based index (order of appearence). */
+ /** Returns a defined name by zero-based index (order of appearance). */
DefinedNameRef getByIndex( sal_Int32 nIndex ) const;
/** Returns a defined name by token index (index in XDefinedNames container). */
DefinedNameRef getByTokenIndex( sal_Int32 nIndex ) const;
diff --git a/oox/source/core/filterdetect.cxx b/oox/source/core/filterdetect.cxx
index 98040dc60ace..5c01b2e0f8f0 100644
--- a/oox/source/core/filterdetect.cxx
+++ b/oox/source/core/filterdetect.cxx
@@ -549,7 +549,7 @@ Reference< XInputStream > FilterDetect::extractUnencryptedPackage( MediaDescript
BinaryXInputStream aInfoStrm( xEncryptionInfo, true );
bool bValidInfo = lclReadEncryptionInfo( aEncryptInfo, aInfoStrm );
- // check flags and agorithm IDs, requiered are AES128 and SHA-1
+ // check flags and algorithm IDs, required are AES128 and SHA-1
bool bImplemented = bValidInfo &&
getFlag( aEncryptInfo.mnFlags, ENCRYPTINFO_CRYPTOAPI ) &&
getFlag( aEncryptInfo.mnFlags, ENCRYPTINFO_AES ) &&
diff --git a/oox/source/drawingml/customshapeproperties.cxx b/oox/source/drawingml/customshapeproperties.cxx
index 233066377818..23e2e19a546d 100644
--- a/oox/source/drawingml/customshapeproperties.cxx
+++ b/oox/source/drawingml/customshapeproperties.cxx
@@ -2023,7 +2023,7 @@ if ( maShapePresetType.equals( sWedgeRoundedRectCallout ) ) {
// to determine the correct adjustment handle that should be updated with the adjustment
// position. here is the solution: the adjustment value that is used within the position
// has to be updated, in case the position is a formula the first usage of a
- // adjument value is decisive
+ // adjustment value is decisive
if ( maAdjustHandleList[ i ].polar )
{
aHandle[ PROP_Position ] <<= maAdjustHandleList[ i ].pos;
diff --git a/oox/source/drawingml/diagram/layoutnodecontext.cxx b/oox/source/drawingml/diagram/layoutnodecontext.cxx
index 45bd03024c94..3edf483555da 100644
--- a/oox/source/drawingml/diagram/layoutnodecontext.cxx
+++ b/oox/source/drawingml/diagram/layoutnodecontext.cxx
@@ -221,7 +221,7 @@ void SAL_CALL LayoutNodeContext::endFastElement( ::sal_Int32 )
}
/** convert the XML tag to a variable index in the array
- * @param aTag the tag, wihout namespace
+ * @param aTag the tag, without namespace
* @return the variable index. -1 is an error
*/
sal_Int32 LayoutNodeContext::tagToVarIdx( sal_Int32 aTag )
diff --git a/oox/source/export/preset-definitions-to-shape-types.pl b/oox/source/export/preset-definitions-to-shape-types.pl
index c185a07cdce3..be53eb88d756 100644
--- a/oox/source/export/preset-definitions-to-shape-types.pl
+++ b/oox/source/export/preset-definitions-to-shape-types.pl
@@ -853,7 +853,7 @@ sub start_element( $% )
$path .= "x";
}
elsif ( $element eq "pt" ) {
- # rememeber the last position for the arcTo
+ # remember the last position for the arcTo
$last_pos_x = value( $attr{'x'} );
$last_pos_y = value( $attr{'y'} );
diff --git a/oox/source/export/vmlexport.cxx b/oox/source/export/vmlexport.cxx
index 1a317c14db0f..554d49faae53 100644
--- a/oox/source/export/vmlexport.cxx
+++ b/oox/source/export/vmlexport.cxx
@@ -102,7 +102,7 @@ void VMLExport::OpenContainer( sal_uInt16 nEscherContainer, int nRecInstance )
m_pShapeStyle->ensureCapacity( 200 );
- // postpone the ouput so that we are able to write even the elements
+ // postpone the output so that we are able to write even the elements
// that we learn inside Commit()
m_pSerializer->mark();
}
diff --git a/oox/source/xls/formulaparser.cxx b/oox/source/xls/formulaparser.cxx
index 7260144ab9ab..fa96869afadc 100644
--- a/oox/source/xls/formulaparser.cxx
+++ b/oox/source/xls/formulaparser.cxx
@@ -372,7 +372,7 @@ const ApiToken* FormulaFinalizer::findParameters( ParameterPosVector& rParams,
void FormulaFinalizer::appendEmptyParameter( const FunctionInfo& rFuncInfo, size_t nParam )
{
- // remeber old size of the token array
+ // remember old size of the token array
size_t nTokenArraySize = maTokens.size();
switch( rFuncInfo.mnBiff12FuncId )
diff --git a/oox/source/xls/stylesbuffer.cxx b/oox/source/xls/stylesbuffer.cxx
index 5daf7cebb9ef..df6d93c3f53c 100644
--- a/oox/source/xls/stylesbuffer.cxx
+++ b/oox/source/xls/stylesbuffer.cxx
@@ -212,7 +212,7 @@ const sal_uInt8 BIFF_FONTUNDERL_DOUBLE_ACC = 34;
const sal_uInt16 BIFF_XF_LOCKED = 0x0001;
const sal_uInt16 BIFF_XF_HIDDEN = 0x0002;
const sal_uInt16 BIFF_XF_STYLE = 0x0004;
-const sal_uInt16 BIFF_XF_STYLEPARENT = 0x0FFF; /// Syles don't have a parent.
+const sal_uInt16 BIFF_XF_STYLEPARENT = 0x0FFF; /// Styles don't have a parent.
const sal_uInt16 BIFF_XF_WRAPTEXT = 0x0008; /// Automatic line break.
const sal_uInt16 BIFF_XF_JUSTLASTLINE = 0x0080;
const sal_uInt16 BIFF_XF_SHRINK = 0x0010; /// Shrink to fit into cell.