summaryrefslogtreecommitdiff
path: root/sw/source/filter/xml/xmlithlp.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2007-09-27 09:12:51 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2007-09-27 09:12:51 +0000
commit767fa95a9ba66e0b6050cb7eb11a6ff9faff5ae8 (patch)
tree064089c5169f710f84669b6bd380a33d5e29f406 /sw/source/filter/xml/xmlithlp.cxx
parentf8e2cec3fe8edd6e75a9a01bb7922905a9493e30 (diff)
INTEGRATION: CWS swwarnings (1.6.222); FILE MERGED
2007/05/29 11:55:07 os 1.6.222.3: RESYNC: (1.6-1.7); FILE MERGED 2007/04/03 13:00:58 tl 1.6.222.2: #i69287# warning-free code 2007/03/15 15:52:28 tl 1.6.222.1: #i69287# warning-free code
Diffstat (limited to 'sw/source/filter/xml/xmlithlp.cxx')
-rw-r--r--sw/source/filter/xml/xmlithlp.cxx27
1 files changed, 16 insertions, 11 deletions
diff --git a/sw/source/filter/xml/xmlithlp.cxx b/sw/source/filter/xml/xmlithlp.cxx
index 5033b48fd617..b622d7db76c3 100644
--- a/sw/source/filter/xml/xmlithlp.cxx
+++ b/sw/source/filter/xml/xmlithlp.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: xmlithlp.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: rt $ $Date: 2007-04-18 07:52:45 $
+ * last change: $Author: hr $ $Date: 2007-09-27 10:12:51 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -101,6 +101,7 @@
using namespace ::rtl;
using namespace ::xmloff::token;
+using namespace ::com::sun::star;
#define SVX_XML_BORDER_STYLE_NONE 0
@@ -397,6 +398,8 @@ void lcl_frmitems_MergeXMLHoriPos( SvxGraphicPosition& ePos,
case GPOS_RB:
ePos = GPOS_LM==eHori ? GPOS_LB : (GPOS_MM==eHori ? GPOS_MB : GPOS_RB);
break;
+ default:
+ ;
}
}
@@ -426,6 +429,8 @@ void lcl_frmitems_MergeXMLVertPos( SvxGraphicPosition& ePos,
case GPOS_RB:
ePos = GPOS_MT==eVert ? GPOS_RT : (GPOS_MM==eVert ? GPOS_RM : GPOS_RB);
break;
+ default:
+ ;
}
}
@@ -442,20 +447,20 @@ const struct SvXMLEnumMapEntry psXML_BreakType[] =
const struct SvXMLEnumMapEntry aXMLTableAlignMap[] =
{
- { XML_LEFT, HORI_LEFT },
- { XML_LEFT, HORI_LEFT_AND_WIDTH },
- { XML_CENTER, HORI_CENTER },
- { XML_RIGHT, HORI_RIGHT },
- { XML_MARGINS, HORI_FULL },
- { XML_MARGINS, HORI_NONE },
+ { XML_LEFT, text::HoriOrientation::LEFT },
+ { XML_LEFT, text::HoriOrientation::LEFT_AND_WIDTH },
+ { XML_CENTER, text::HoriOrientation::CENTER },
+ { XML_RIGHT, text::HoriOrientation::RIGHT },
+ { XML_MARGINS, text::HoriOrientation::FULL },
+ { XML_MARGINS, text::HoriOrientation::NONE },
{ XML_TOKEN_INVALID, 0 }
};
const struct SvXMLEnumMapEntry aXMLTableVAlignMap[] =
{
- { XML_TOP, VERT_TOP },
- { XML_MIDDLE, VERT_CENTER },
- { XML_BOTTOM, VERT_BOTTOM },
+ { XML_TOP, text::VertOrientation::TOP },
+ { XML_MIDDLE, text::VertOrientation::CENTER },
+ { XML_BOTTOM, text::VertOrientation::BOTTOM },
{ XML_TOKEN_INVALID, 0 }
};