summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2013-04-15 18:09:25 +0200
committerMiklos Vajna <vmiklos@suse.cz>2013-04-15 18:14:12 +0200
commit60556d58e88946ee27bce3c47f5ec9b02e27fdf0 (patch)
treea5ab0ee84186aa85ee14f9b80803e63b23bc1270 /sw
parentf182521948f0d31b0f6ad7b98eb5fc32562ba3d1 (diff)
sw: remove unused classes in RTF export
- RTFProtect was never used by the RTF export filter, unused since the old RTF import is gone - RTFVertOrient and RTFHoriOrient is obsoleted by the new-style posrelh and posrelv textframe properties Change-Id: I0a7d306870900b9ff86d5a173b540db04aed012d
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/inc/rtf.hxx76
-rw-r--r--sw/source/filter/ww8/rtfattributeoutput.cxx13
2 files changed, 0 insertions, 89 deletions
diff --git a/sw/source/filter/inc/rtf.hxx b/sw/source/filter/inc/rtf.hxx
index f82780af9e92..a892e6b59621 100644
--- a/sw/source/filter/inc/rtf.hxx
+++ b/sw/source/filter/inc/rtf.hxx
@@ -21,82 +21,6 @@
#include <tools/solar.h>
-// Umsetzung einiger FlyFrame-Attribute
-class RTFVertOrient
-{
- union {
- struct {
- sal_uInt16 nOrient : 4;
- sal_uInt16 nRelOrient : 4;
- } Flags;
- sal_uInt16 nVal;
- } Value;
-
-public:
- RTFVertOrient( sal_uInt16 nValue ) { Value.nVal = nValue; }
-
- RTFVertOrient( sal_uInt16 nOrient, sal_uInt16 nRelOrient ) {
- Value.Flags.nOrient = nOrient;
- Value.Flags.nRelOrient = nRelOrient;
- }
-
- sal_uInt16 GetOrient() const { return Value.Flags.nOrient; }
- sal_uInt16 GetRelation() const { return Value.Flags.nRelOrient; }
- sal_uInt16 GetValue() const { return Value.nVal; }
-};
-
-
-class RTFHoriOrient
-{
- union {
- struct {
- sal_uInt16 nOrient : 4;
- sal_uInt16 nRelAnchor : 4;
- sal_uInt16 nRelOrient : 4;
- } Flags;
- sal_uInt16 nVal;
- } Value;
-
-public:
- RTFHoriOrient( sal_uInt16 nValue ) { Value.nVal = nValue; }
-
- RTFHoriOrient( sal_uInt16 nOrient, sal_uInt16 nRelOrient ) {
- Value.Flags.nOrient = nOrient;
- Value.Flags.nRelOrient = nRelOrient;
- Value.Flags.nRelAnchor = 0;
- }
-
- sal_uInt16 GetOrient() const { return Value.Flags.nOrient; }
- sal_uInt16 GetRelation() const { return Value.Flags.nRelOrient; }
- sal_uInt16 GetValue() const { return Value.nVal; }
-};
-
-class RTFProtect
-{
- union {
- struct {
- sal_Bool bCntnt : 1;
- sal_Bool bSize : 1;
- sal_Bool bPos : 1;
- } Flags;
- sal_uInt8 nVal;
- } Value;
-public:
- RTFProtect( sal_uInt8 nValue ) { Value.nVal = nValue; }
-
- RTFProtect( sal_Bool bCntnt, sal_Bool bSize, sal_Bool bPos ) {
- Value.Flags.bCntnt = bCntnt;
- Value.Flags.bSize = bSize;
- Value.Flags.bPos = bPos;
- }
-
- sal_Bool GetCntnt() const { return Value.Flags.bCntnt; }
- sal_Bool GetSize() const { return Value.Flags.bSize; }
- sal_Bool GetPos() const { return Value.Flags.bPos; }
- sal_uInt16 GetValue() const { return Value.nVal; }
-};
-
-
class RTFSurround
{
union {
diff --git a/sw/source/filter/ww8/rtfattributeoutput.cxx b/sw/source/filter/ww8/rtfattributeoutput.cxx
index 627767684efa..25d3a082b3ee 100644
--- a/sw/source/filter/ww8/rtfattributeoutput.cxx
+++ b/sw/source/filter/ww8/rtfattributeoutput.cxx
@@ -2867,12 +2867,6 @@ void RtfAttributeOutput::FormatVertOrientation( const SwFmtVertOrient& rFlyVert
m_rExport.OutLong(rFlyVert.GetPos() + m_pFlyFrameSize->Height());
}
}
- else if ( !m_rExport.bRTFFlySyntax )
- {
- RTFVertOrient aVO( static_cast< sal_uInt16 >(rFlyVert.GetVertOrient()), static_cast< sal_uInt16 >(rFlyVert.GetRelationOrient()) );
- m_aRunText->append(OOO_STRING_SVTOOLS_RTF_FLYVERT);
- m_aRunText->append((sal_Int32)aVO.GetValue());
- }
}
void RtfAttributeOutput::FormatHorizOrientation( const SwFmtHoriOrient& rFlyHori )
@@ -2915,13 +2909,6 @@ void RtfAttributeOutput::FormatHorizOrientation( const SwFmtHoriOrient& rFlyHori
m_rExport.OutLong(rFlyHori.GetPos() + m_pFlyFrameSize->Width());
}
}
- else if ( !m_rExport.bRTFFlySyntax )
- {
- RTFHoriOrient aHO( static_cast< sal_uInt16 >(rFlyHori.GetHoriOrient()),
- static_cast< sal_uInt16 >(rFlyHori.GetRelationOrient()) );
- m_aRunText->append(OOO_STRING_SVTOOLS_RTF_FLYHORZ);
- m_aRunText->append((sal_Int32)aHO.GetValue());
- }
}
void RtfAttributeOutput::FormatAnchor( const SwFmtAnchor& rAnchor )