56 :
FuPoor(pViewSh, pWin, pView, pDoc, rReq)
63 xFunc->DoExecute(rReq);
73 SdPage* pActualPage =
nullptr;
77 while (!pActualPage &&
i <
nCount)
91 aOutliner.SetUpdateLayout(
false);
92 aOutliner.EnableUndo(
false);
95 aOutliner.SetRefDevice(
SD_MOD()->GetVirtualRefDevice() );
101 sal_uInt16 nActualPageNum = pActualPage->
GetPageNum();
114 aOutliner.SetText(*pParaObj);
118 sal_Int32 nParaCount1 = aOutliner.GetParagraphCount();
120 for (sal_Int32 nPara = 0; nPara < nParaCount1; nPara++)
122 aOutliner.RemoveCharAttribs(nPara);
123 aOutliner.SetParaAttribs(nPara, aEmptyEEAttr);
127 Paragraph* pPara = aOutliner.GetParagraph( 0 );
131 sal_Int32 nParaPos = aOutliner.GetAbsPos( pPara );
132 sal_Int16 nDepth = aOutliner.GetDepth( nParaPos );
137 pPage->SetSize(pActualPage->
GetSize() );
142 pPage->SetName(OUString());
155 pPage->TRG_SetMasterPageVisibleLayers(aVisibleLayers);
159 pNotesPage->SetSize(pActualNotesPage->
GetSize());
165 pNotesPage->SetName(OUString());
176 pNotesPage->SetLayoutName(pActualNotesPage->
GetLayoutName());
177 pNotesPage->SetAutoLayout(pActualNotesPage->
GetAutoLayout(),
true);
178 pNotesPage->TRG_SetMasterPageVisibleLayers(aVisibleLayers);
182 SAL_WARN_IF(!pTextObj,
"sd.core",
"worrying lack of PresObjKind::Title object");
189 if( pOutlinerParaObject->
GetDepth(0) != -1 )
193 pTempOutl->SetText( *pOutlinerParaObject );
195 pOutlinerParaObject.
reset();
197 pTempOutl->SetDepth( pTempOutl->GetParagraph( 0 ), -1 );
199 pOutlinerParaObject = pTempOutl->CreateParaObject();
210 sal_Int32 nChildCount = aOutliner.GetChildCount(pPara);
219 pTempOutl->SetText( *pOPO );
221 sal_Int32 nParaCount2 = pTempOutl->GetParagraphCount();
223 for( nPara = 0; nPara < nParaCount2; nPara++ )
225 pTempOutl->SetDepth (
226 pTempOutl->GetParagraph( nPara ),
227 pTempOutl->GetDepth( nPara ) - 1);
230 pOPO = pTempOutl->CreateParaObject();
244 pPara = aOutliner.GetParagraph( ++nParaPos );
void SetOutlinerMode(OutlinerMode nNew)
sal_Int16 GetDepth(sal_Int32 nPara) const
SAL_DLLPRIVATE SfxItemPool & GetPool()
SdPage * GetSdPage(sal_uInt16 nPgNum, PageKind ePgKind) const
SAL_DLLPRIVATE void InsertPage(SdrPage *pPage, sal_uInt16 nPos=0xFFFF) override
SAL_DLLPRIVATE rtl::Reference< SdPage > AllocSdPage(bool bMasterPage)
sal_uInt16 GetSdPageCount(PageKind ePgKind) const
The main purpose of this class is searching and replacing as well as spelling of impress documents.
SdrObject * GetPresObj(PresObjKind eObjKind, int nIndex=1, bool bFuzzySearch=false)
returns the nIndex'th object from the given PresObjKind, index starts with 1
virtual OUString GetLayoutName() const override
AutoLayout GetAutoLayout() const
bool IsUndoEnabled() const
void AddUndo(std::unique_ptr< SdrUndoAction > pUndo)
sal_uInt16 GetDefaultTabulator() const
SfxStyleSheetBasePool * GetStyleSheetPool() const
SdrUndoFactory & GetSdrUndoFactory() const
const SdrPage * GetPage(sal_uInt16 nPgNum) const
virtual bool IsTextEdit() const final override
void SetOutlinerParaObject(std::optional< OutlinerParaObject > pTextObject)
void SetEmptyPresObj(bool bEpt)
void SetMergedItemSet(const SfxItemSet &rSet, bool bClearAllItems=false)
void NbcSetStyleSheet(SfxStyleSheet *pNewStyleSheet, bool bDontRemoveHardAttr)
SdrPage & TRG_GetMasterPage() const
sal_uInt16 GetPageNum() const
sal_Int32 GetUpperBorder() const
sal_Int32 GetRightBorder() const
sal_Int32 GetLeftBorder() const
const SdrLayerIDSet & TRG_GetMasterPageVisibleLayers() const
sal_Int32 GetLowerBorder() const
virtual OutlinerParaObject * GetOutlinerParaObject() const override
virtual std::unique_ptr< SdrUndoAction > CreateUndoNewPage(SdrPage &rPage)
const SfxPoolItem * Execute(sal_uInt16 nSlot, SfxCallMode nCall=SfxCallMode::SLOT, const SfxPoolItem **pArgs=nullptr, sal_uInt16 nModi=0, const SfxPoolItem **pInternalArgs=nullptr)
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
SfxDispatcher * GetDispatcher()
FuExpandPage(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
virtual void DoExecute(SfxRequest &rReq) override
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
Base class for all functions.
Base class of the stacked shell hierarchy.
SD_DLLPUBLIC SfxViewFrame * GetViewFrame() const
virtual SdrEndTextEditKind SdrEndTextEdit(bool bDontDeleteReally=false) override
ends current text editing
An SdWindow contains the actual working area of ViewShell.
#define SAL_WARN_IF(condition, area, stream)
OUString SdResId(TranslateId aId)
SVXCORE_DLLPUBLIC std::unique_ptr< SdrOutliner > SdrMakeOutliner(OutlinerMode nOutlinerMode, SdrModel &rMod)