diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-08-14 16:21:57 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-08-14 16:21:57 +0000 |
commit | e12dbae2ec6a2215cc0da026587bc53f5cbb1f90 (patch) | |
tree | a975c3cc678a6ff059fa688ddc7e625ea89e915b /sw/source/filter/xml/xmlexp.cxx | |
parent | 08fbcb7863d8ee13f36d0eade3f9916aa19b98b7 (diff) |
INTEGRATION: CWS writercorehandoff (1.76.96); FILE MERGED
2006/07/27 14:54:14 fme 1.76.96.9: RESYNC: (1.80-1.81); FILE MERGED
2006/01/19 08:50:22 fme 1.76.96.8: #i50348# General cleanup - removed unused header files, functions, members, declarations
2005/12/20 15:30:39 tra 1.76.96.7: RESYNC: (1.77-1.80); FILE MERGED
2005/09/13 15:44:58 tra 1.76.96.6: RESYNC: (1.76-1.77); FILE MERGED
2005/08/31 12:51:08 tra 1.76.96.5: #i50348# Introducing IDocumentRedlineAccess interface
2005/07/12 11:21:50 tra 1.76.96.4: #i50348#make SwDoc interface based
2005/07/11 05:11:45 tra 1.76.96.3: #i50348#make SwDoc interface based
2005/06/07 14:15:13 fme 1.76.96.2: #i50348# General cleanup - removed unused header files, functions, members, declarations etc.
2005/06/06 09:29:02 tra 1.76.96.1: Unnecessary includes removed #i50348#
Diffstat (limited to 'sw/source/filter/xml/xmlexp.cxx')
-rw-r--r-- | sw/source/filter/xml/xmlexp.cxx | 30 |
1 files changed, 10 insertions, 20 deletions
diff --git a/sw/source/filter/xml/xmlexp.cxx b/sw/source/filter/xml/xmlexp.cxx index 327142047aa2..106a79995b74 100644 --- a/sw/source/filter/xml/xmlexp.cxx +++ b/sw/source/filter/xml/xmlexp.cxx @@ -4,9 +4,9 @@ * * $RCSfile: xmlexp.cxx,v $ * - * $Revision: 1.81 $ + * $Revision: 1.82 $ * - * last change: $Author: hr $ $Date: 2006-06-19 12:42:04 $ + * last change: $Author: hr $ $Date: 2006-08-14 17:21:57 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -33,7 +33,6 @@ * ************************************************************************/ - #pragma hdrstop #ifndef _COM_SUN_STAR_TEXT_XTEXTDOCUMENT_HPP_ @@ -42,12 +41,6 @@ #ifndef _COM_SUN_STAR_DRAWING_XDRAWPAGESUPPLIER_HPP_ #include <com/sun/star/drawing/XDrawPageSupplier.hpp> #endif -#ifndef _COM_SUN_STAR_DRAWING_XDRAWPAGE_HPP_ -#include <com/sun/star/drawing/XDrawPage.hpp> -#endif -#ifndef _COM_SUN_STAR_TEXT_XTEXT_HPP_ -#include <com/sun/star/text/XText.hpp> -#endif #ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_ #include <com/sun/star/beans/XPropertySet.hpp> #endif @@ -76,9 +69,6 @@ #endif #include <svx/xmlgrhlp.hxx> #endif -#ifndef _XMLEOHLP_HXX -#include <svx/xmleohlp.hxx> -#endif #ifndef _EEITEM_HXX #include <svx/eeitem.hxx> #endif @@ -207,7 +197,7 @@ void SwXMLExport::SetCurPaM( SwPaM& rPaM, sal_Bool bWhole, sal_Bool bTabOnly ) pCurPaM->GetPoint()->nNode = *pSectNd; // SwSectionNode::FindSectionNode() returns the section node itself - pSectNd = pSectNd->FindStartNode()->FindSectionNode(); + pSectNd = pSectNd->StartOfSectionNode()->FindSectionNode(); } } } @@ -249,7 +239,7 @@ SwXMLExport::SwXMLExport( sal_Bool bExpWholeDoc, sal_Bool bExpFirstTableOnly, sal_Bool bShowProg ) : SvXMLExport( xServiceFactory, rFileName, rHandler, rModel, rEmbeddedGrfObjs, - SW_MOD()->GetMetric( rPaM.GetDoc()->IsHTMLMode() ) ), + SW_MOD()->GetMetric( rPaM.GetDoc()->get(IDocumentSettingAccess::HTML_MODE) ) ), pCurPaM( 0 ), pOrigPaM( &rPaM ), pTableItemMapper( 0 ), @@ -357,7 +347,7 @@ sal_uInt32 SwXMLExport::exportDoc( enum XMLTokenEnum eClass ) } MapUnit eUnit = - SvXMLUnitConverter::GetMapUnit( SW_MOD()->GetMetric(pDoc->IsHTMLMode()) ); + SvXMLUnitConverter::GetMapUnit( SW_MOD()->GetMetric(pDoc->get(IDocumentSettingAccess::HTML_MODE)) ); if( GetMM100UnitConverter().getXMLMeasureUnit() != eUnit ) { GetMM100UnitConverter().setXMLMeasureUnit( eUnit ); @@ -421,12 +411,12 @@ sal_uInt32 SwXMLExport::exportDoc( enum XMLTokenEnum eClass ) } // adjust document class (eClass) - if (pDoc->IsGlobalDoc()) + if (pDoc->get(IDocumentSettingAccess::GLOBAL_DOCUMENT)) { eClass = XML_TEXT_GLOBAL; // additionally, we take care of the save-linked-sections-thingy - mbSaveLinkedSections = pDoc->IsGlblDocSaveLinks(); + mbSaveLinkedSections = pDoc->get(IDocumentSettingAccess::GLOBAL_DOCUMENT_SAVE_LINKS); } // MIB: 03/26/04: The Label information is saved in the settings, so // we don't need it here. @@ -472,13 +462,13 @@ sal_uInt32 SwXMLExport::exportDoc( enum XMLTokenEnum eClass ) } } sal_uInt16 nRedlineMode = 0; - bSavedShowChanges = IsShowChanges( pDoc->GetRedlineMode() ); + bSavedShowChanges = IDocumentRedlineAccess::IsShowChanges( pDoc->GetRedlineMode() ); if( bSaveRedline ) { // now save and switch redline mode nRedlineMode = pDoc->GetRedlineMode(); pDoc->SetRedlineMode( - ( nRedlineMode & REDLINE_SHOW_MASK ) | REDLINE_INSERT ); + ( nRedlineMode & IDocumentRedlineAccess::REDLINE_SHOW_MASK ) | IDocumentRedlineAccess::REDLINE_INSERT ); } sal_uInt32 nRet = SvXMLExport::exportDoc( eClass ); @@ -613,7 +603,7 @@ void SwXMLExport::GetViewSettings(Sequence<PropertyValue>& aProps) pValue[nIndex].Name = OUString( RTL_CONSTASCII_USTRINGPARAM ( "ShowRedlineChanges") ); pValue[nIndex++].Value.setValue( &bShowRedlineChanges, ::getBooleanCppuType() ); - sal_Bool bInBrowse = pDoc->IsBrowseMode(); + sal_Bool bInBrowse = pDoc->get(IDocumentSettingAccess::BROWSE_MODE); pValue[nIndex].Name = OUString( RTL_CONSTASCII_USTRINGPARAM ( "InBrowseMode") ); pValue[nIndex++].Value.setValue( &bInBrowse, ::getBooleanCppuType() ); |