diff options
author | Mathias Bauer <mba@openoffice.org> | 2010-12-22 12:45:53 +0100 |
---|---|---|
committer | Mathias Bauer <mba@openoffice.org> | 2010-12-22 12:45:53 +0100 |
commit | e22a1e2f5c5ed74c22849c9b5bb59dd8f47bffbc (patch) | |
tree | 373386268af66194acb407856bb65f541579a25b /sw | |
parent | af69eeaeae90037f27e7a8a10fce1b4899d5b305 (diff) |
CWS swlayoutrefactoring: conflict resolution after resync to DEV300_m96
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/frmfmt.hxx | 4 | ||||
-rw-r--r-- | sw/inc/printdata.hxx | 12 | ||||
-rw-r--r-- | sw/inc/unotxdoc.hxx | 17 | ||||
-rw-r--r-- | sw/sdi/_docsh.sdi | 14 | ||||
-rw-r--r-- | sw/source/core/draw/dview.cxx | 15 | ||||
-rw-r--r-- | sw/source/core/edit/edfld.cxx | 39 | ||||
-rw-r--r-- | sw/source/core/fields/dbfld.cxx | 4 | ||||
-rw-r--r-- | sw/source/core/fields/tblcalc.cxx | 4 | ||||
-rw-r--r-- | sw/source/core/frmedt/feshview.cxx | 4 | ||||
-rw-r--r-- | sw/source/core/frmedt/tblsel.cxx | 3 | ||||
-rw-r--r-- | sw/source/core/inc/cellfrm.hxx | 8 | ||||
-rw-r--r-- | sw/source/core/inc/flyfrm.hxx | 6 | ||||
-rw-r--r-- | sw/source/core/inc/frame.hxx | 6 | ||||
-rw-r--r-- | sw/source/core/inc/notxtfrm.hxx | 5 | ||||
-rw-r--r-- | sw/source/core/inc/txtfrm.hxx | 5 | ||||
-rw-r--r-- | sw/source/core/layout/fly.cxx | 11 | ||||
-rw-r--r-- | sw/source/core/layout/paintfrm.cxx | 20 | ||||
-rw-r--r-- | sw/source/core/txtnode/ndtxt.cxx | 8 | ||||
-rw-r--r-- | sw/source/core/unocore/unotbl.cxx | 17 | ||||
-rw-r--r-- | sw/source/core/view/vprint.cxx | 127 | ||||
-rw-r--r-- | sw/source/ui/app/docsh2.cxx | 61 | ||||
-rw-r--r-- | sw/source/ui/uno/unotxdoc.cxx | 5 |
22 files changed, 10 insertions, 385 deletions
diff --git a/sw/inc/frmfmt.hxx b/sw/inc/frmfmt.hxx index a252969a3106..178645f5ec7e 100644 --- a/sw/inc/frmfmt.hxx +++ b/sw/inc/frmfmt.hxx @@ -29,11 +29,7 @@ #include <com/sun/star/text/PositionLayoutDir.hpp> #include <cppuhelper/weakref.hxx> -<<<<<<< local -======= #include <tools/gen.hxx> - ->>>>>>> other #include <format.hxx> #include "swdllapi.h" diff --git a/sw/inc/printdata.hxx b/sw/inc/printdata.hxx index 51cf486479ef..1e16d3d782e9 100644 --- a/sw/inc/printdata.hxx +++ b/sw/inc/printdata.hxx @@ -45,12 +45,8 @@ class _SetGetExpFlds; class SwViewOption; class OutputDevice; class SwViewOptionAdjust_Impl; -<<<<<<< local class SwPrtOptions; class ViewShell; -======= -class SwWrtShell; ->>>>>>> other class SfxViewShell; // forward declarations @@ -271,15 +267,9 @@ public: void DeletePostItData(); bool IsViewOptionAdjust() const { return m_pViewOptionAdjust != 0; } -<<<<<<< local bool NeedNewViewOptionAdjust( const ViewShell& ) const; void ViewOptionAdjustStart( ViewShell &rSh, const SwViewOption &rViewOptions ); - void ViewOptionAdjust( const SwPrtOptions *pPrtOptions ); -======= - bool NeedNewViewOptionAdjust( const SwWrtShell& ) const; - void ViewOptionAdjustStart( SwWrtShell &rSh, const SwViewOption &rViewOptions ); - void ViewOptionAdjust( SwPrintData const*const pPrtOptions ); ->>>>>>> other + void ViewOptionAdjust( SwPrintData const* const pPrtOptions ); void ViewOptionAdjustStop(); bool HasSwPrtOptions() const { return m_pPrtOptions != 0; } diff --git a/sw/inc/unotxdoc.hxx b/sw/inc/unotxdoc.hxx index 1da33a545874..df3d700e67d6 100644 --- a/sw/inc/unotxdoc.hxx +++ b/sw/inc/unotxdoc.hxx @@ -129,13 +129,7 @@ class SfxViewFrame; class SwPrintUIOptions; class SwPrintData; class SwRenderData; -<<<<<<< local -class SwPrtOptions; class ViewShell; -======= -class SwWrtShell; ->>>>>>> other - typedef UnoActionContext* UnoActionContextPtr; SV_DECL_PTRARR(ActionContextArr, UnoActionContextPtr, 4, 4) @@ -609,17 +603,8 @@ class SwViewOptionAdjust_Impl public: SwViewOptionAdjust_Impl( ViewShell& rSh, const SwViewOption &rViewOptions ); ~SwViewOptionAdjust_Impl(); -<<<<<<< local - - void AdjustViewOptions( const SwPrtOptions *pPrtOptions ); - + void AdjustViewOptions( SwPrintData const* const pPrtOptions ); bool checkShell( const ViewShell& rCompare ) const -======= - - void AdjustViewOptions( SwPrintData const*const pPrtOptions ); - - bool checkShell( const SwWrtShell& rCompare ) const ->>>>>>> other { return &rCompare == &m_rShell; } }; diff --git a/sw/sdi/_docsh.sdi b/sw/sdi/_docsh.sdi index 3660722c6d4b..ad37160a3c1f 100644 --- a/sw/sdi/_docsh.sdi +++ b/sw/sdi/_docsh.sdi @@ -121,25 +121,11 @@ interface BaseTextDocument StateMethod = GetState ; ] -<<<<<<< local -======= - SID_BROWSER_MODE - [ - ExecMethod = Execute; - StateMethod = GetState; - ] - - FN_PRINT_LAYOUT - [ - ExecMethod = Execute; - StateMethod = GetState; - ] SID_MAIL_PREPAREEXPORT [ ExecMethod = Execute ; StateMethod = GetState; ] ->>>>>>> other } diff --git a/sw/source/core/draw/dview.cxx b/sw/source/core/draw/dview.cxx index e2ac04bf7e85..207e3f0d4f68 100644 --- a/sw/source/core/draw/dview.cxx +++ b/sw/source/core/draw/dview.cxx @@ -1110,18 +1110,3 @@ void SwDrawView::DeleteMarked() pTmpRoot->EndAllAction(); //swmod 080218 } -<<<<<<< local -======= -/******** -JP 02.10.98: sollte als Fix fuer 57153 gelten, hatte aber Nebenwirkungen, - wie Bug 57475 -const SdrMarkList& SwDrawView::GetMarkedObjectList() const -{ - FlushComeBackTimer(); - return FmFormView::GetMarkedObjectList(); -} -*************/ - - - ->>>>>>> other diff --git a/sw/source/core/edit/edfld.cxx b/sw/source/core/edit/edfld.cxx index b200bbd8bb3f..a49f2a26af86 100644 --- a/sw/source/core/edit/edfld.cxx +++ b/sw/source/core/edit/edfld.cxx @@ -203,50 +203,11 @@ void SwEditShell::FieldToText( SwFieldType* pType ) SwFieldHint aHint( pPaM ); SwClientIter aIter( *pType ); -<<<<<<< local for ( SwClient* pClient = aIter.GoStart(); pClient; aIter++ ) { pPaM->DeleteMark(); pClient->SwClientNotifyCall( *pType, aHint ); } -======= - SwClient * pLast = aIter.GoStart(); - - if( pLast ) // konnte zum Anfang gesprungen werden ?? - do { - pPaM->DeleteMark(); - const SwFmtFld* pFmtFld = bDDEFld - ? PTR_CAST( SwFmtFld, pLast ) - : (SwFmtFld*)pLast; - - if( pFmtFld ) - { - if( !pFmtFld->GetTxtFld() ) - continue; - - // kann keine DDETabelle sein - const SwTxtNode& rTxtNode = pFmtFld->GetTxtFld()->GetTxtNode(); - pPaM->GetPoint()->nNode = rTxtNode; - pPaM->GetPoint()->nContent.Assign( (SwTxtNode*)&rTxtNode, - *pFmtFld->GetTxtFld()->GetStart() ); - - // Feldinhalt durch Text ersetzen - String const aEntry( pFmtFld->GetFld()->ExpandField(true) ); - pPaM->SetMark(); - pPaM->Move( fnMoveForward ); - GetDoc()->DeleteRange( *pPaM ); - GetDoc()->InsertString( *pPaM, aEntry ); - } - else if( bDDEFld ) - { - // DDETabelle - SwDepend* pDep = (SwDepend*)pLast; - SwDDETable* pDDETbl = (SwDDETable*)pDep->GetToTell(); - pDDETbl->NoDDETable(); - } - - } while( 0 != ( pLast = aIter++ )); ->>>>>>> other Pop( FALSE ); EndAllAction(); diff --git a/sw/source/core/fields/dbfld.cxx b/sw/source/core/fields/dbfld.cxx index 166989d9d828..9a26fff02c02 100644 --- a/sw/source/core/fields/dbfld.cxx +++ b/sw/source/core/fields/dbfld.cxx @@ -48,11 +48,7 @@ #include <expfld.hxx> #include <txtatr.hxx> #include <unofldmid.h> -<<<<<<< local #include <switerator.hxx> -======= - ->>>>>>> other using namespace ::com::sun::star::sdbc; using namespace ::com::sun::star; diff --git a/sw/source/core/fields/tblcalc.cxx b/sw/source/core/fields/tblcalc.cxx index 51df9807599b..8c0cc509a669 100644 --- a/sw/source/core/fields/tblcalc.cxx +++ b/sw/source/core/fields/tblcalc.cxx @@ -38,10 +38,6 @@ #include <expfld.hxx> #include <docfld.hxx> // fuer _SetGetExpFld #include <unofldmid.h> -<<<<<<< local -======= - ->>>>>>> other using namespace ::com::sun::star; using ::rtl::OUString; diff --git a/sw/source/core/frmedt/feshview.cxx b/sw/source/core/frmedt/feshview.cxx index 578f638d50b3..f6492d2be4b9 100644 --- a/sw/source/core/frmedt/feshview.cxx +++ b/sw/source/core/frmedt/feshview.cxx @@ -49,12 +49,8 @@ #include <editeng/protitem.hxx> #include <svx/svdpage.hxx> #include <svx/svdpagv.hxx> -<<<<<<< local -======= - #include <IDocumentSettingAccess.hxx> #include <cmdid.h> ->>>>>>> other #include <poolfmt.hrc> // fuer InitFldTypes #include <frmfmt.hxx> #include <frmatr.hxx> diff --git a/sw/source/core/frmedt/tblsel.cxx b/sw/source/core/frmedt/tblsel.cxx index 2f8a69fffd68..36683730e760 100644 --- a/sw/source/core/frmedt/tblsel.cxx +++ b/sw/source/core/frmedt/tblsel.cxx @@ -54,11 +54,8 @@ #include <mvsave.hxx> #include <sectfrm.hxx> #include <frmtool.hxx> -<<<<<<< local #include <switerator.hxx> -======= #include <deque> ->>>>>>> other //siehe auch swtable.cxx #define COLFUZZY 20L diff --git a/sw/source/core/inc/cellfrm.hxx b/sw/source/core/inc/cellfrm.hxx index 11a73b370f02..86a2c1f655e1 100644 --- a/sw/source/core/inc/cellfrm.hxx +++ b/sw/source/core/inc/cellfrm.hxx @@ -48,13 +48,7 @@ public: ~SwCellFrm(); virtual BOOL GetCrsrOfst( SwPosition *, Point&, SwCrsrMoveState* = 0 ) const; -<<<<<<< local - virtual void Paint( const SwRect&, const SwPrtOptions *pPrintData = NULL ) const; -======= - virtual void Modify( SfxPoolItem*, SfxPoolItem* ); - virtual void Paint( SwRect const&, - SwPrintData const*const pPrintData = NULL ) const; ->>>>>>> other + virtual void Paint( SwRect const&, SwPrintData const*const pPrintData = NULL ) const; virtual void CheckDirection( BOOL bVert ); // --> OD 2010-02-17 #i103961# diff --git a/sw/source/core/inc/flyfrm.hxx b/sw/source/core/inc/flyfrm.hxx index b6207fe98bf4..0b957911cd8b 100644 --- a/sw/source/core/inc/flyfrm.hxx +++ b/sw/source/core/inc/flyfrm.hxx @@ -28,11 +28,8 @@ #define SW_FLYFRM_HXX #include "layfrm.hxx" -<<<<<<< local #include <list> -======= #include "frmfmt.hxx" ->>>>>>> other class SwPageFrm; class SwFmtFrmSize; @@ -289,15 +286,12 @@ public: @author OD */ virtual bool IsFormatPossible() const; -<<<<<<< local static void GetAnchoredObjects( std::list<SwAnchoredObject*>&, const SwFmt& rFmt ); -======= // overwriting "SwFrmFmt *SwLayoutFrm::GetFmt" to provide the correct derived return type. // (This is in order to skip on the otherwise necessary casting of the result to // 'SwFlyFrmFmt *' after calls to this function. The casting is now done in this function.) virtual const SwFlyFrmFmt *GetFmt() const; virtual SwFlyFrmFmt *GetFmt(); ->>>>>>> other }; #endif diff --git a/sw/source/core/inc/frame.hxx b/sw/source/core/inc/frame.hxx index c4c79e7d210b..7e9a9d99c8e4 100644 --- a/sw/source/core/inc/frame.hxx +++ b/sw/source/core/inc/frame.hxx @@ -55,14 +55,8 @@ class SvxBrushItem; class SwSelectionList; struct SwPosition; struct SwCrsrMoveState; -<<<<<<< local -class SwPrtOptions; class SwFmt; -======= class SwPrintData; - -// --> OD 2004-07-06 #i28701# ->>>>>>> other class SwSortedObjs; class SwAnchoredObject; diff --git a/sw/source/core/inc/notxtfrm.hxx b/sw/source/core/inc/notxtfrm.hxx index 9a4844a65964..421584f5a827 100644 --- a/sw/source/core/inc/notxtfrm.hxx +++ b/sw/source/core/inc/notxtfrm.hxx @@ -56,13 +56,8 @@ public: SwNoTxtFrm( SwNoTxtNode * const, SwFrm* ); ~SwNoTxtFrm(); -<<<<<<< local - virtual void Paint(const SwRect&, const SwPrtOptions *pPrintData = NULL ) const; -======= - virtual void Modify( SfxPoolItem*, SfxPoolItem* ); virtual void Paint( SwRect const&, SwPrintData const*const pPrintData = NULL ) const; ->>>>>>> other virtual BOOL GetCharRect( SwRect &, const SwPosition&, SwCrsrMoveState* = 0) const; BOOL GetCrsrOfst(SwPosition* pPos, Point& aPoint, diff --git a/sw/source/core/inc/txtfrm.hxx b/sw/source/core/inc/txtfrm.hxx index dafdd255746e..1dbda6d0614f 100644 --- a/sw/source/core/inc/txtfrm.hxx +++ b/sw/source/core/inc/txtfrm.hxx @@ -295,13 +295,8 @@ public: void PaintExtraData( const SwRect & rRect ) const; //Seitennummer usw. SwRect Paint(); -<<<<<<< local - virtual void Paint( const SwRect &, const SwPrtOptions *pPrintData = NULL ) const; -======= virtual void Paint( SwRect const&, SwPrintData const*const pPrintData = NULL ) const; - virtual void Modify( SfxPoolItem*, SfxPoolItem* ); ->>>>>>> other virtual sal_Bool GetInfo( SfxPoolItem & ) const; //Layoutorientiertes Cursortravelling: Linker, rechter Rand, diff --git a/sw/source/core/layout/fly.cxx b/sw/source/core/layout/fly.cxx index bad3594ea1b5..b026bcca27a6 100644 --- a/sw/source/core/layout/fly.cxx +++ b/sw/source/core/layout/fly.cxx @@ -2935,23 +2935,20 @@ bool SwFlyFrm::IsFormatPossible() const !IsLocked() && !IsColLocked(); } -<<<<<<< local void SwFlyFrm::GetAnchoredObjects( std::list<SwAnchoredObject*>& aList, const SwFmt& rFmt ) -======= -const SwFlyFrmFmt * SwFlyFrm::GetFmt() const ->>>>>>> other { -<<<<<<< local SwIterator<SwFlyFrm,SwFmt> aIter( rFmt ); for( SwFlyFrm* pFlyFrm = aIter.First(); pFlyFrm; pFlyFrm = aIter.Next() ) aList.push_back( pFlyFrm ); -======= +} + +const SwFlyFrmFmt * SwFlyFrm::GetFmt() const +{ return static_cast< const SwFlyFrmFmt * >( GetDep() ); } SwFlyFrmFmt * SwFlyFrm::GetFmt() { return static_cast< SwFlyFrmFmt * >( GetDep() ); ->>>>>>> other } diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx index 179697eb0ee2..f43cb2e0d45a 100644 --- a/sw/source/core/layout/paintfrm.cxx +++ b/sw/source/core/layout/paintfrm.cxx @@ -29,11 +29,7 @@ #include "precompiled_sw.hxx" #include <com/sun/star/text/HoriOrientation.hpp> -<<<<<<< local #include <hintids.hxx> -======= - ->>>>>>> other #include <vcl/sound.hxx> #include <tools/poly.hxx> #define _SVSTDARR_LONGS @@ -46,19 +42,11 @@ #include <editeng/boxitem.hxx> #include <editeng/shaditem.hxx> #include <svx/framelink.hxx> -<<<<<<< local -======= -// <-- ->>>>>>> other #include <vcl/graph.hxx> #include <svx/svdpagv.hxx> - #include <hintids.hxx> #include <tgrditem.hxx> -<<<<<<< local #include <switerator.hxx> -======= ->>>>>>> other #include <fmtsrnd.hxx> #include <fmtclds.hxx> #include <tools/shl.hxx> @@ -93,15 +81,7 @@ #include <lineinfo.hxx> #include <dbg_lay.hxx> #include <accessibilityoptions.hxx> -<<<<<<< local -======= -// OD 20.12.2002 #94627# ->>>>>>> other #include <docsh.hxx> -<<<<<<< local -======= -// OD 28.02.2003 #b4779636#, #107692# ->>>>>>> other #include <swtable.hxx> #include <svx/svdogrp.hxx> #include <sortedobjs.hxx> diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx index 61a15c188b47..ff7a6a20b899 100644 --- a/sw/source/core/txtnode/ndtxt.cxx +++ b/sw/source/core/txtnode/ndtxt.cxx @@ -2542,20 +2542,14 @@ void SwTxtNode::NumRuleChgd() } SetInSwFntCache( FALSE ); -<<<<<<< local - - SvxLRSpaceItem& rLR = (SvxLRSpaceItem&)GetSwAttrSet().GetLRSpace(); - NotifyClients( &rLR, &rLR ); -======= // Sending "noop" modify in order to cause invalidations of registered // <SwTxtFrm> instances to get the list style change respectively the change // in the list tree reflected in the layout. // Important note: { SvxLRSpaceItem& rLR = (SvxLRSpaceItem&)GetSwAttrSet().GetLRSpace(); - SwModify::Modify( &rLR, &rLR ); + NotifyClients( &rLR, &rLR ); } ->>>>>>> other } // -> #i27615# diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx index 5ee03182a08a..ed925932e31b 100644 --- a/sw/source/core/unocore/unotbl.cxx +++ b/sw/source/core/unocore/unotbl.cxx @@ -2079,24 +2079,7 @@ void SwTableProperties_Impl::ApplyTblAttr(const SwTable& rTbl, SwDoc& rDoc) rDoc.SetAttr( aSet, *rTbl.GetFrmFmt() ); } } -<<<<<<< local -======= -/* -----------------------------10.03.00 18:02-------------------------------- ->>>>>>> other - -<<<<<<< local -SwXTextTable* SwXTextTable::GetImplementation(uno::Reference< XInterface> xRef ) -{ - uno::Reference<lang::XUnoTunnel> xTunnel( xRef, uno::UNO_QUERY); - if(xTunnel.is()) - return reinterpret_cast< SwXTextTable * >( - sal::static_int_cast< sal_IntPtr >( xTunnel->getSomething(SwXTextTable::getUnoTunnelId()) )); - return 0; -} -======= - ---------------------------------------------------------------------------*/ ->>>>>>> other const uno::Sequence< sal_Int8 > & SwXTextTable::getUnoTunnelId() { static uno::Sequence< sal_Int8 > aSeq = ::CreateUnoTunnelId(); diff --git a/sw/source/core/view/vprint.cxx b/sw/source/core/view/vprint.cxx index 4351e9286bab..b9cf9173a02c 100644 --- a/sw/source/core/view/vprint.cxx +++ b/sw/source/core/view/vprint.cxx @@ -369,110 +369,6 @@ void ViewShell::CalcPagesForPrint( USHORT nMax ) /******************************************************************************/ -<<<<<<< local -SwDoc * ViewShell::CreatePrtDoc( SfxObjectShellRef &rDocShellRef) -{ - ASSERT( this->IsA( TYPE(SwFEShell) ),"ViewShell::Prt for FEShell only"); - SwFEShell* pFESh = (SwFEShell*)this; - // Wir bauen uns ein neues Dokument - SwDoc *pPrtDoc = new SwDoc; - pPrtDoc->acquire(); - pPrtDoc->SetRefForDocShell( (SfxObjectShellRef*)&(long&)rDocShellRef ); - pPrtDoc->LockExpFlds(); - - const SfxPoolItem* pCpyItem; - const SfxItemPool& rPool = GetAttrPool(); - for( USHORT nWh = POOLATTR_BEGIN; nWh < POOLATTR_END; ++nWh ) - if( 0 != ( pCpyItem = rPool.GetPoolDefaultItem( nWh ) ) ) - pPrtDoc->GetAttrPool().SetPoolDefaultItem( *pCpyItem ); - - // JP 29.07.99 - Bug 67951 - set all Styles from the SourceDoc into - // the PrintDoc - will be replaced! - pPrtDoc->ReplaceStyles( *GetDoc() ); - - SwShellCrsr *pActCrsr = pFESh->_GetCrsr(); - SwShellCrsr *pFirstCrsr = dynamic_cast<SwShellCrsr*>(pActCrsr->GetNext()); - if( !pActCrsr->HasMark() ) // bei Multiselektion kann der aktuelle Cursor leer sein - { - pActCrsr = dynamic_cast<SwShellCrsr*>(pActCrsr->GetPrev()); - } - - Point aSelPoint; - if( pFESh->IsTableMode() ) - { - SwShellTableCrsr* pShellTblCrsr = pFESh->GetTableCrsr(); - - const SwCntntNode* pCntntNode = pShellTblCrsr->GetNode()->GetCntntNode(); - const SwCntntFrm *pCntntFrm = pCntntNode ? pCntntNode->getLayoutFrm( GetLayout(), 0, pShellTblCrsr->Start() ) : 0; - if( pCntntFrm ) - { - SwRect aCharRect; - SwCrsrMoveState aTmpState( MV_NONE ); - pCntntFrm->GetCharRect( aCharRect, *pShellTblCrsr->Start(), &aTmpState ); - aSelPoint = Point( aCharRect.Left(), aCharRect.Top() ); - } - } - else - { - aSelPoint = pFirstCrsr->GetSttPos(); - } - - const SwPageFrm* pPage = GetLayout()->GetPageAtPos( aSelPoint ); - ASSERT( pPage, "no page found!" ); - - // get page descriptor - fall back to the first one if pPage could not be found - const SwPageDesc* pPageDesc = pPage ? pPrtDoc->FindPageDescByName( - pPage->GetPageDesc()->GetName() ) : &pPrtDoc->_GetPageDesc( (sal_uInt16)0 ); - - if( !pFESh->IsTableMode() && pActCrsr->HasMark() ) - { // Am letzten Absatz die Absatzattribute richten: - SwNodeIndex aNodeIdx( *pPrtDoc->GetNodes().GetEndOfContent().StartOfSectionNode() ); - SwTxtNode* pTxtNd = pPrtDoc->GetNodes().GoNext( &aNodeIdx )->GetTxtNode(); - SwCntntNode *pLastNd = - pActCrsr->GetCntntNode( (*pActCrsr->GetMark()) <= (*pActCrsr->GetPoint()) ); - // Hier werden die Absatzattribute des ersten Absatzes uebertragen - if( pLastNd && pLastNd->IsTxtNode() ) - ((SwTxtNode*)pLastNd)->CopyCollFmt( *pTxtNd ); - } - - // es wurde in der CORE eine neu angelegt (OLE-Objekte kopiert!) -// if( aDocShellRef.Is() ) -// SwDataExchange::InitOle( aDocShellRef, pPrtDoc ); - // und fuellen es mit dem selektierten Bereich - pFESh->Copy( pPrtDoc ); - - //Jetzt noch am ersten Absatz die Seitenvorlage setzen - { - SwNodeIndex aNodeIdx( *pPrtDoc->GetNodes().GetEndOfContent().StartOfSectionNode() ); - SwCntntNode* pCNd = pPrtDoc->GetNodes().GoNext( &aNodeIdx ); // gehe zum 1. ContentNode - if( pFESh->IsTableMode() ) - { - SwTableNode* pTNd = pCNd->FindTableNode(); - if( pTNd ) - pTNd->GetTable().GetFrmFmt()->SetFmtAttr( SwFmtPageDesc( pPageDesc ) ); - } - else - { - pCNd->SetAttr( SwFmtPageDesc( pPageDesc ) ); - if( pFirstCrsr->HasMark() ) - { - SwTxtNode *pTxtNd = pCNd->GetTxtNode(); - if( pTxtNd ) - { - SwCntntNode *pFirstNd = - pFirstCrsr->GetCntntNode( (*pFirstCrsr->GetMark()) > (*pFirstCrsr->GetPoint()) ); - // Hier werden die Absatzattribute des ersten Absatzes uebertragen - if( pFirstNd && pFirstNd->IsTxtNode() ) - ((SwTxtNode*)pFirstNd)->CopyCollFmt( *pTxtNd ); - } - } - } - } - return pPrtDoc; -} - -======= ->>>>>>> other SwDoc * ViewShell::FillPrtDoc( SwDoc *pPrtDoc, const SfxPrinter* pPrt) { ASSERT( this->IsA( TYPE(SwFEShell) ),"ViewShell::Prt for FEShell only"); @@ -620,29 +516,6 @@ sal_Bool ViewShell::PrintOrPDFExport( pOutDevDoc = GetDoc(); pShell = new ViewShell( *this, 0, pOutDev ); -<<<<<<< local - // PDF export for (multi-)selection has already generated a temporary document - // with the selected text. (see XRenderable implementation in unotxdoc.cxx) - // Thus we like to go in the 'else' part here in that case. - // Is is implemented this way because PDF export calls this Prt function - // once per page and we do not like to always have the temporary document - // to be created that often here in the 'then' part. - if ( bSelection ) - { - pOutDevDoc = CreatePrtDoc( aDocShellRef ); - - // eine ViewShell darauf - pShell = new ViewShell( *pOutDevDoc, 0, pOpt, pOutDev ); - pOutDevDoc->SetRefForDocShell( 0 ); - } - else - { - pOutDevDoc = GetDoc(); - pShell = new ViewShell( *this, 0, pOutDev, VSHELLFLAG_SHARELAYOUT ); - } - -======= ->>>>>>> other SdrView *pDrawView = pShell->GetDrawView(); if (pDrawView) { diff --git a/sw/source/ui/app/docsh2.cxx b/sw/source/ui/app/docsh2.cxx index a66dbddcb8cf..daf610215421 100644 --- a/sw/source/ui/app/docsh2.cxx +++ b/sw/source/ui/app/docsh2.cxx @@ -1190,63 +1190,6 @@ void SwDocShell::Execute(SfxRequest& rReq) SW_MOD()->CheckSpellChanges(FALSE, TRUE, TRUE, FALSE ); break; -<<<<<<< local - case SID_MAIL_EXPORT_FINISHED: -======= - case SID_BROWSER_MODE: - case FN_PRINT_LAYOUT: //Fuer Web, genau umgekehrt zum BrowserMode - { - int eState = STATE_TOGGLE; - BOOL bSet = sal_True; - const SfxPoolItem* pAttr=NULL; - if ( pArgs && SFX_ITEM_SET == pArgs->GetItemState( nWhich , FALSE, &pAttr )) - { - bSet = ((SfxBoolItem*)pAttr)->GetValue(); - if ( nWhich == FN_PRINT_LAYOUT ) - bSet = !bSet; - eState = bSet ? STATE_ON : STATE_OFF; - } - - if ( STATE_TOGGLE == eState ) - bSet = !GetDoc()->get(IDocumentSettingAccess::BROWSE_MODE); - - ToggleBrowserMode(bSet, 0); - - // OS: numerische Reihenfolge beachten! - static USHORT __READONLY_DATA aInva[] = - { - SID_NEWWINDOW,/*5620*/ - SID_BROWSER_MODE, /*6313*/ - SID_RULER_BORDERS, SID_RULER_PAGE_POS, - SID_ATTR_LONG_LRSPACE, - SID_HTML_MODE, - SID_RULER_PROTECT, - SID_AUTOSPELL_CHECK, - FN_RULER, /*20211*/ - FN_VIEW_GRAPHIC, /*20213*/ - FN_VIEW_BOUNDS, /**/ - FN_VIEW_FIELDS, /*20215*/ - FN_VLINEAL, /*20216*/ - FN_VSCROLLBAR, /*20217*/ - FN_HSCROLLBAR, /*20218*/ - FN_VIEW_META_CHARS, /**/ - FN_VIEW_MARKS, /**/ - FN_VIEW_FIELDNAME, /**/ - FN_VIEW_TABLEGRID, /*20227*/ - FN_PRINT_LAYOUT, /*20237*/ - FN_QRY_MERGE, /*20364*/ - 0 - }; - // the view must not exist! - SfxViewFrame *pTmpFrm = SfxViewFrame::GetFirst( this ); - if( pTmpFrm ) - pTmpFrm->GetBindings().Invalidate( aInva ); - if ( !pAttr ) - rReq.AppendItem( SfxBoolItem( nWhich, bSet ) ); - rReq.Done(); - } - break; - case SID_MAIL_PREPAREEXPORT: { //pWrtShell is not set in page preview @@ -1259,8 +1202,8 @@ void SwDocShell::Execute(SfxRequest& rReq) pWrtShell->EndAllAction(); } break; - case SID_MAIL_EXPORT_FINISHED: ->>>>>>> other + + case SID_MAIL_EXPORT_FINISHED: { if(pWrtShell) pWrtShell->StartAllAction(); diff --git a/sw/source/ui/uno/unotxdoc.cxx b/sw/source/ui/uno/unotxdoc.cxx index a51bf422bce3..c6cd30b8bfb4 100644 --- a/sw/source/ui/uno/unotxdoc.cxx +++ b/sw/source/ui/uno/unotxdoc.cxx @@ -2735,13 +2735,8 @@ sal_Int32 SAL_CALL SwXTextDocument::getRendererCount( m_pRenderData->SetSwPrtOptions( new SwPrintData ); m_pRenderData->MakeSwPrtOptions( m_pRenderData->GetSwPrtOptionsRef(), pRenderDocShell, m_pPrintUIOptions, m_pRenderData, bIsPDFExport ); -<<<<<<< local if (pSwView) -======= - - if (pView->IsA(aSwViewTypeId)) ->>>>>>> other { // PDF export should not make use of the SwPrtOptions const SwPrintData *pPrtOptions = (bIsPDFExport) |