Lines Matching refs:mpDoc

214     mpDoc( pShell ? pShell->GetDoc() : NULL ),  in SdXImpressDocument()
220 if( mpDoc ) in SdXImpressDocument()
222 StartListening( *mpDoc ); in SdXImpressDocument()
233 mpDoc( pDoc ), in SdXImpressDocument()
239 if( mpDoc ) in SdXImpressDocument()
241 StartListening( *mpDoc ); in SdXImpressDocument()
381 return sal::static_int_cast<sal_Int64>(reinterpret_cast<sal_IntPtr>(mpDoc)); in getSomething()
446 if( mpDoc ) in Notify()
455 if( SvxUnoDrawMSFactory::createEvent( mpDoc, pSdrHint, aEvent ) ) in Notify()
461 if( mpDoc ) in Notify()
462 EndListening( *mpDoc ); in Notify()
463 mpDoc = NULL; in Notify()
480 if( pNewDoc != mpDoc ) in Notify()
482 mpDoc = pNewDoc; in Notify()
483 if(mpDoc) in Notify()
484 StartListening( *mpDoc ); in Notify()
498 sal_uInt16 nPageCount = mpDoc->GetSdPageCount( PK_STANDARD ); in InsertSdPage()
499 SdrLayerAdmin& rLayerAdmin = mpDoc->GetLayerAdmin(); in InsertSdPage()
508 pStandardPage = (SdPage*) mpDoc->AllocPage(sal_False); in InsertSdPage()
512 mpDoc->InsertPage(pStandardPage, 0); in InsertSdPage()
517 …SdPage* pPreviousStandardPage = mpDoc->GetSdPage( Min( (sal_uInt16)(nPageCount - 1), nPage ), PK_S… in InsertSdPage()
523 mpDoc->StopWorkStartupDelay(); in InsertSdPage()
532 SdPage* pPreviousNotesPage = (SdPage*) mpDoc->GetPage( nStandardPageNum - 1 ); in InsertSdPage()
543 pStandardPage = (SdPage*) mpDoc->AllocPage(sal_False); in InsertSdPage()
554 mpDoc->InsertPage(pStandardPage, nStandardPageNum); in InsertSdPage()
578 pNotesPage = (SdPage*) mpDoc->AllocPage(sal_False); in InsertSdPage()
590 mpDoc->InsertPage(pNotesPage, nNotesPageNum); in InsertSdPage()
608 if( mpDoc ) in SetModified()
609 mpDoc->SetChanged( bModified ); in SetModified()
618 if( NULL == mpDoc ) in lockControllers()
621 mpDoc->setLock( sal_True ); in lockControllers()
629 if( NULL == mpDoc ) in unlockControllers()
632 if( mpDoc->isLocked() ) in unlockControllers()
634 mpDoc->setLock( sal_False ); in unlockControllers()
643 if( NULL == mpDoc ) in hasControllersLocked()
646 return mpDoc && mpDoc->isLocked(); in hasControllersLocked()
657 if( NULL == mpDoc ) in getViewData()
664 List* pFrameViewList = mpDoc->GetFrameViewList(); in getViewData()
700 if( NULL == mpDoc ) in setViewData()
708 List* pFrameViewList = mpDoc->GetFrameViewList(); in setViewData()
734 pFrameView = new ::sd::FrameView( mpDoc ); in setViewData()
749 if( NULL == mpDoc ) in duplicate()
778 if( NULL == mpDoc ) in getDrawPages()
798 if( NULL == mpDoc ) in getMasterPages()
819 if( NULL == mpDoc ) in getLayerManager()
836 if( NULL == mpDoc ) in getCustomPresentations()
855 if( NULL == mpDoc ) in getPresentation()
858 return uno::Reference< presentation::XPresentation >( mpDoc->getPresentation().get() ); in getPresentation()
867 if( NULL == mpDoc ) in getHandoutMasterPage()
872 if( mpDoc ) in getHandoutMasterPage()
875 SdPage* pPage = mpDoc->GetMasterSdPage( 0, PK_HANDOUT ); in getHandoutMasterPage()
888 if( NULL == mpDoc ) in createInstance()
894 mxDashTable = SvxUnoDashTable_createInstance( mpDoc ); in createInstance()
901 mxGradientTable = SvxUnoGradientTable_createInstance( mpDoc ); in createInstance()
908 mxHatchTable = SvxUnoHatchTable_createInstance( mpDoc ); in createInstance()
915 mxBitmapTable = SvxUnoBitmapTable_createInstance( mpDoc ); in createInstance()
922 mxTransGradientTable = SvxUnoTransGradientTable_createInstance( mpDoc ); in createInstance()
929 mxMarkerTable = SvxUnoMarkerTable_createInstance( mpDoc ); in createInstance()
935 return uno::Reference< uno::XInterface >( SvxCreateNumRule( mpDoc ), uno::UNO_QUERY ); in createInstance()
940 static_cast<uno::XWeak*>(new SdUnoPageBackground( mpDoc ))); in createInstance()
946 mxDrawingPool = SdUnoCreatePool( mpDoc ); in createInstance()
1002 return svx::NamespaceMap_createInstance( aWhichIds, &mpDoc->GetItemPool() ); in createInstance()
1018 ::comphelper::IEmbeddedHelper *pPersist = mpDoc ? mpDoc->GetPersist() : NULL; in createInstance()
1027 ::comphelper::IEmbeddedHelper *pPersist = mpDoc ? mpDoc->GetPersist() : NULL; in createInstance()
1155 if( NULL == mpDoc ) in getAvailableServiceNames()
1275 if( NULL == mpDoc ) in setPropertyValue()
1288 mpDoc->SetLanguage( SvxLocaleToLanguage(aLocale), EE_CHAR_LANGUAGE ); in setPropertyValue()
1297 mpDoc->SetDefaultTabulator((sal_uInt16)nValue); in setPropertyValue()
1302 SfxObjectShell* pEmbeddedObj = mpDoc->GetDocSh(); in setPropertyValue()
1318 mpDoc->SetAutoControlFocus( bFocus ); in setPropertyValue()
1326 mpDoc->SetOpenInDesignMode( bMode ); in setPropertyValue()
1350 if( NULL == mpDoc ) in getPropertyValue()
1359 LanguageType eLang = mpDoc->GetLanguage( EE_CHAR_LANGUAGE ); in getPropertyValue()
1366 aAny <<= (sal_Int32)mpDoc->GetDefaultTabulator(); in getPropertyValue()
1370 SfxObjectShell* pEmbeddedObj = mpDoc->GetDocSh(); in getPropertyValue()
1381 SfxObjectShell* pEmbeddedObj = mpDoc->GetDocSh(); in getPropertyValue()
1396 aAny <<= (sal_Bool)mpDoc->GetAutoControlFocus(); in getPropertyValue()
1399 aAny <<= mpDoc->GetOpenInDesignMode(); in getPropertyValue()
1433 if( NULL == mpDoc ) in getLinks()
1448 if( NULL == mpDoc ) in getStyleFamilies()
1451 …uno::Reference< container::XNameAccess > xStyles( dynamic_cast< container::XNameAccess* >( mpDoc->… in getStyleFamilies()
1470 if( NULL == mpDoc ) in getRendererCount()
1475 if( mpDocShell && mpDoc ) in getRendererCount()
1482 nRet = mpDoc->GetSdPageCount( PK_STANDARD ); in getRendererCount()
1502 if( NULL == mpDoc ) in getRenderer()
1512 if( mpDocShell && mpDoc ) in getRenderer()
1517 Size aNotesPageSize = mpDoc->GetSdPage( 0, PK_NOTES )->GetSize(); in getRenderer()
1861 if( NULL == mpDoc ) in render()
1864 if( mpDocShell && mpDoc ) in render()
1883 … if( xRenderDevice.is() && nPageNumber && ( nPageNumber <= mpDoc->GetSdPageCount( ePageKind ) ) ) in render()
1893 …Rectangle aVisArea = Rectangle( Point(), mpDoc->GetSdPage( (sal_uInt16)nPageNumber - 1, ePageKi… in render()
1919 pView->ShowSdrPage( mpDoc->GetSdPage( (sal_uInt16)nPageNumber - 1, ePageKind )); in render()
1932 ImplRenderPaintProc aImplRenderPaintProc( mpDoc->GetLayerAdmin(), in render()
1939 SdrOutliner& rOutl = mpDoc->GetDrawOutliner( NULL ); in render()
1995 ImplPDFExportShapeInteraction( xShape, *mpDoc, *pPDFExtOutDevData ); in render()
2009 ImplPDFExportShapeInteraction( xShape, *mpDoc, *pPDFExtOutDevData ); in render()
2098 Size aPageSize( mpDoc->GetSdPage( 0, PK_STANDARD )->GetSize() ); in render()
2108 sal_Int32 nPage = ImplPDFGetBookmarkPage( aIBeg->aBookmark, *mpDoc ); in render()
2123 String aPageName = mpDoc->GetSdPage( (sal_uInt16)nPageNumber - 1 , PK_STANDARD )->GetName(); in render()
2160 ImplRenderPaintProc aImplRenderPaintProc( mpDoc->GetLayerAdmin(), in render()
2203 mxForbidenCharacters = xForb = new SdUnoForbiddenCharsTable( mpDoc ); in getForbiddenCharsTable()
2212 switch( mpDoc->GetPageCount() ) in initializeDocument()
2222 mpDoc->CreateFirstPages(); in initializeDocument()
2223 mpDoc->StopWorkStartupDelay(); in initializeDocument()
2237 if( mpDoc ) in dispose()
2239 EndListening( *mpDoc ); in dispose()
2240 mpDoc = NULL; in dispose()
2265 …uno::Reference< ::com::sun::star::presentation::XPresentation2 > xPres( mpDoc->getPresentation().g… in dispose()
2354 return mpModel->mpDoc->GetSdPageCount( PK_STANDARD ); in getCount()
2367 if( (Index < 0) || (Index >= mpModel->mpDoc->GetSdPageCount( PK_STANDARD ) ) ) in getByIndex()
2370 SdPage* pPage = mpModel->mpDoc->GetSdPage( (sal_uInt16)Index, PK_STANDARD ); in getByIndex()
2390 const sal_uInt16 nCount = mpModel->mpDoc->GetSdPageCount( PK_STANDARD ); in getByName()
2394 SdPage* pPage = mpModel->mpDoc->GetSdPage( nPage, PK_STANDARD ); in getByName()
2418 const sal_uInt16 nCount = mpModel->mpDoc->GetSdPageCount( PK_STANDARD ); in getElementNames()
2425 SdPage* pPage = mpModel->mpDoc->GetSdPage( nPage, PK_STANDARD ); in getElementNames()
2439 const sal_uInt16 nCount = mpModel->mpDoc->GetSdPageCount( PK_STANDARD ); in hasByName()
2443 SdPage* pPage = mpModel->mpDoc->GetSdPage( nPage, PK_STANDARD ); in hasByName()
2481 if( mpModel->mpDoc ) in insertNewByIndex()
2504 if( NULL == mpModel || mpModel->mpDoc == NULL ) in remove()
2507 SdDrawDocument& rDoc = *mpModel->mpDoc; in remove()
2623 if( NULL == mpModel->mpDoc ) in getCount()
2626 return mpModel->mpDoc->GetMasterSdPageCount(PK_STANDARD); in getCount()
2643 if( (Index < 0) || (Index >= mpModel->mpDoc->GetMasterSdPageCount( PK_STANDARD ) ) ) in getByIndex()
2646 SdPage* pPage = mpModel->mpDoc->GetMasterSdPage( (sal_uInt16)Index, PK_STANDARD ); in getByIndex()
2680 SdDrawDocument* mpDoc = mpModel->mpDoc; in insertNewByIndex() local
2681 if( mpDoc ) in insertNewByIndex()
2684 const sal_Int32 nMPageCount = mpDoc->GetMasterPageCount(); in insertNewByIndex()
2700 SdPage* pPage = (SdPage*)mpDoc->GetMasterPage((sal_uInt16)nMaster); in insertNewByIndex()
2723 ((SdStyleSheetPool*)mpDoc->GetStyleSheetPool())->CreateLayoutStyleSheets( aPrefix ); in insertNewByIndex()
2726 SdPage* pPage = mpModel->mpDoc->GetSdPage( (sal_uInt16)0, PK_STANDARD ); in insertNewByIndex()
2727 SdPage* pRefNotesPage = mpModel->mpDoc->GetSdPage( (sal_uInt16)0, PK_NOTES); in insertNewByIndex()
2730 SdPage* pMPage = (SdPage*)mpModel->mpDoc->AllocPage(sal_True); in insertNewByIndex()
2737 mpDoc->InsertMasterPage(pMPage, (sal_uInt16)nInsertPos); in insertNewByIndex()
2747 SdPage* pMNotesPage = (SdPage*)mpModel->mpDoc->AllocPage(sal_True); in insertNewByIndex()
2755 mpDoc->InsertMasterPage(pMNotesPage, (sal_uInt16)nInsertPos + 1); in insertNewByIndex()
2774 if( NULL == mpModel || mpModel->mpDoc == NULL ) in remove()
2777 SdDrawDocument& rDoc = *mpModel->mpDoc; in remove()
2787 if( !pPage || !pPage->IsMasterPage() || (mpModel->mpDoc->GetMasterPageUserCount(pPage) > 0)) in remove()
2902 SdDrawDocument* mpDoc = mpModel->GetDoc(); in getElementNames() local
2903 if( mpDoc == NULL ) in getElementNames()
2909 if( mpDoc->GetDocumentType() == DOCUMENT_TYPE_DRAW ) in getElementNames()
2911 const sal_uInt16 nMaxPages = mpDoc->GetSdPageCount( PK_STANDARD ); in getElementNames()
2912 const sal_uInt16 nMaxMasterPages = mpDoc->GetMasterSdPageCount( PK_STANDARD ); in getElementNames()
2920 *pStr++ = mpDoc->GetSdPage( nPage, PK_STANDARD )->GetName(); in getElementNames()
2924 *pStr++ = mpDoc->GetMasterSdPage( nPage, PK_STANDARD )->GetName(); in getElementNames()
2929 const sal_uInt16 nMaxPages = mpDoc->GetPageCount(); in getElementNames()
2930 const sal_uInt16 nMaxMasterPages = mpDoc->GetMasterPageCount(); in getElementNames()
2938 *pStr++ = ((SdPage*)mpDoc->GetPage( nPage ))->GetName(); in getElementNames()
2942 *pStr++ = ((SdPage*)mpDoc->GetMasterPage( nPage ))->GetName(); in getElementNames()
2978 SdDrawDocument* mpDoc = mpModel->GetDoc(); in FindPage() local
2979 if( mpDoc == NULL ) in FindPage()
2982 const sal_uInt16 nMaxPages = mpDoc->GetPageCount(); in FindPage()
2983 const sal_uInt16 nMaxMasterPages = mpDoc->GetMasterPageCount(); in FindPage()
2990 const bool bDraw = mpDoc->GetDocumentType() == DOCUMENT_TYPE_DRAW; in FindPage()
2995 pPage = (SdPage*)mpDoc->GetPage( nPage ); in FindPage()
3003 pPage = (SdPage*)mpDoc->GetMasterPage( nPage ); in FindPage()