docfly.cxx (56b35d86) | docfly.cxx (26ea3662) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 5 unchanged lines hidden (view full) --- 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 5 unchanged lines hidden (view full) --- 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 |
22 23 | |
24// MARKER(update_precomp.py): autogen include statement, do not remove 25#include "precompiled_sw.hxx" 26 27#include <hintids.hxx> 28#include <svl/itemiter.hxx> 29#include <svx/svdobj.hxx> 30#include <svx/svdpage.hxx> 31#include <svx/svdmodel.hxx> 32#include <svx/svdocapt.hxx> 33#include <svx/svdmark.hxx> 34#include <svx/xlndsit.hxx> 35#include <svx/xlnstit.hxx> 36#include <svx/xlnedit.hxx> 37#include <svx/xflhtit.hxx> 38#include <fmtfsize.hxx> 39#include <fmtornt.hxx> 40#include <fmtsrnd.hxx> 41#include <dcontact.hxx> | 22// MARKER(update_precomp.py): autogen include statement, do not remove 23#include "precompiled_sw.hxx" 24 25#include <hintids.hxx> 26#include <svl/itemiter.hxx> 27#include <svx/svdobj.hxx> 28#include <svx/svdpage.hxx> 29#include <svx/svdmodel.hxx> 30#include <svx/svdocapt.hxx> 31#include <svx/svdmark.hxx> 32#include <svx/xlndsit.hxx> 33#include <svx/xlnstit.hxx> 34#include <svx/xlnedit.hxx> 35#include <svx/xflhtit.hxx> 36#include <fmtfsize.hxx> 37#include <fmtornt.hxx> 38#include <fmtsrnd.hxx> 39#include <dcontact.hxx> |
42 | |
43#include <ndgrf.hxx> 44#include <doc.hxx> 45#include <IDocumentUndoRedo.hxx> 46#include <ndindex.hxx> 47#include <docary.hxx> 48#include <fmtcntnt.hxx> 49#include <fmtanchr.hxx> 50#include <txtflcnt.hxx> --- 11 unchanged lines hidden (view full) --- 62#include <swtable.hxx> 63#include <crstate.hxx> 64#include <UndoCore.hxx> 65#include <UndoAttribute.hxx> 66#include <fmtcnct.hxx> 67#include <dflyobj.hxx> 68#include <undoflystrattr.hxx> 69#include <switerator.hxx> | 40#include <ndgrf.hxx> 41#include <doc.hxx> 42#include <IDocumentUndoRedo.hxx> 43#include <ndindex.hxx> 44#include <docary.hxx> 45#include <fmtcntnt.hxx> 46#include <fmtanchr.hxx> 47#include <txtflcnt.hxx> --- 11 unchanged lines hidden (view full) --- 59#include <swtable.hxx> 60#include <crstate.hxx> 61#include <UndoCore.hxx> 62#include <UndoAttribute.hxx> 63#include <fmtcnct.hxx> 64#include <dflyobj.hxx> 65#include <undoflystrattr.hxx> 66#include <switerator.hxx> |
70 71//UUUU | |
72#include <svx/xbtmpit.hxx> 73#include <svx/xflftrit.hxx> | 67#include <svx/xbtmpit.hxx> 68#include <svx/xflftrit.hxx> |
69#include <drawdoc.hxx> |
|
74 75extern sal_uInt16 GetHtmlMode( const SwDocShell* ); 76 | 70 71extern sal_uInt16 GetHtmlMode( const SwDocShell* ); 72 |
77 | |
78using namespace ::com::sun::star; 79 80sal_uInt16 SwDoc::GetFlyCount( FlyCntType eType ) const 81{ 82 const SwSpzFrmFmts& rFmts = *GetSpzFrmFmts(); 83 sal_uInt16 nSize = rFmts.Count(); 84 sal_uInt16 nCount = 0; 85 const SwNodeIndex* pIdx; --- 347 unchanged lines hidden (view full) --- 433 if( MAKEFRMS == nMakeFrms ) 434 rFlyFmt.MakeFrms(); 435 436 return aTmpSet.Count() || MAKEFRMS == nMakeFrms; 437} 438 439void SwDoc::CheckForUniqueItemForLineFillNameOrIndex(SfxItemSet& rSet) 440{ | 73using namespace ::com::sun::star; 74 75sal_uInt16 SwDoc::GetFlyCount( FlyCntType eType ) const 76{ 77 const SwSpzFrmFmts& rFmts = *GetSpzFrmFmts(); 78 sal_uInt16 nSize = rFmts.Count(); 79 sal_uInt16 nCount = 0; 80 const SwNodeIndex* pIdx; --- 347 unchanged lines hidden (view full) --- 428 if( MAKEFRMS == nMakeFrms ) 429 rFlyFmt.MakeFrms(); 430 431 return aTmpSet.Count() || MAKEFRMS == nMakeFrms; 432} 433 434void SwDoc::CheckForUniqueItemForLineFillNameOrIndex(SfxItemSet& rSet) 435{ |
441 SdrModel* pDrawModel = GetOrCreateDrawModel(); | 436 SwDrawModel* pDrawModel = GetOrCreateDrawModel(); |
442 SfxItemIter aIter(rSet); 443 444 for(const SfxPoolItem* pItem = aIter.FirstItem(); pItem; pItem = aIter.NextItem()) 445 { 446 const SfxPoolItem* pResult = pItem; 447 448 switch(pItem->Which()) 449 { --- 631 unchanged lines hidden --- | 437 SfxItemIter aIter(rSet); 438 439 for(const SfxPoolItem* pItem = aIter.FirstItem(); pItem; pItem = aIter.NextItem()) 440 { 441 const SfxPoolItem* pResult = pItem; 442 443 switch(pItem->Which()) 444 { --- 631 unchanged lines hidden --- |