sddll.cxx (79aad27f) | sddll.cxx (16e7aaae) |
---|---|
1/************************************************************** | 1/************************************************************** |
2 * | 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 9 * with the License. You may obtain a copy of the License at | 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 9 * with the License. You may obtain a copy of the License at |
10 * | 10 * |
11 * http://www.apache.org/licenses/LICENSE-2.0 | 11 * http://www.apache.org/licenses/LICENSE-2.0 |
12 * | 12 * |
13 * Unless required by applicable law or agreed to in writing, 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. | 13 * Unless required by applicable law or agreed to in writing, 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 * | 19 * |
20 *************************************************************/ 21 22 23 24// MARKER(update_precomp.py): autogen include statement, do not remove 25#include "precompiled_sd.hxx" 26#include <editeng/eeitem.hxx> 27 --- 22 unchanged lines hidden (view full) --- 50#include <com/sun/star/util/XArchiver.hpp> 51#include <comphelper/processfactory.hxx> 52 53using namespace ::rtl; 54using namespace ::com::sun::star; 55 56 57/************************************************************************* | 20 *************************************************************/ 21 22 23 24// MARKER(update_precomp.py): autogen include statement, do not remove 25#include "precompiled_sd.hxx" 26#include <editeng/eeitem.hxx> 27 --- 22 unchanged lines hidden (view full) --- 50#include <com/sun/star/util/XArchiver.hpp> 51#include <comphelper/processfactory.hxx> 52 53using namespace ::rtl; 54using namespace ::com::sun::star; 55 56 57/************************************************************************* |
58|* | |
59|* Init | 58|* Init |
60|* | |
61\************************************************************************/ 62 63void SdDLL::Init() 64{ 65 if ( SD_MOD() ) 66 return; 67 68 SfxObjectFactory* pDrawFact = NULL; --- 17 unchanged lines hidden (view full) --- 86 } 87 else 88 { 89 (*ppShlPtr) = new SdModule( pDrawFact, pImpressFact ); 90 } 91 92 if (SvtModuleOptions().IsImpress()) 93 { | 59\************************************************************************/ 60 61void SdDLL::Init() 62{ 63 if ( SD_MOD() ) 64 return; 65 66 SfxObjectFactory* pDrawFact = NULL; --- 17 unchanged lines hidden (view full) --- 84 } 85 else 86 { 87 (*ppShlPtr) = new SdModule( pDrawFact, pImpressFact ); 88 } 89 90 if (SvtModuleOptions().IsImpress()) 91 { |
94 // Register the Impress shape types in order to make the shapes accessible. 95 ::accessibility::RegisterImpressShapeTypes (); 96 ::sd::DrawDocShell::Factory().SetDocumentServiceName( String( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.presentation.PresentationDocument" ) ) ); | 92 // Register the Impress shape types in order to make the shapes accessible. 93 ::accessibility::RegisterImpressShapeTypes (); 94 ::sd::DrawDocShell::Factory().SetDocumentServiceName( String( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.presentation.PresentationDocument" ) ) ); |
97 } 98 | 95 } 96 |
99 if (SvtModuleOptions().IsDraw()) | 97 if (SvtModuleOptions().IsDraw()) |
100 { | 98 { |
101 ::sd::GraphicDocShell::Factory().SetDocumentServiceName( String( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.drawing.DrawingDocument" ) ) ); 102 } | 99 ::sd::GraphicDocShell::Factory().SetDocumentServiceName( String( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.drawing.DrawingDocument" ) ) ); 100 } |
103 104 // register your view-factories here 105 RegisterFactorys(); 106 107 // register your shell-interfaces here 108 RegisterInterfaces(); 109 110 // register your controllers here 111 RegisterControllers(); 112 | 101 102 // register your view-factories here 103 RegisterFactorys(); 104 105 // register your shell-interfaces here 106 RegisterInterfaces(); 107 108 // register your controllers here 109 RegisterControllers(); 110 |
113 // SvDraw-Felder registrieren 114 SdrRegisterFieldClasses(); | 111 // SvDraw-Felder registrieren 112 SdrRegisterFieldClasses(); |
115 | 113 |
116 // 3D-Objekt-Factory eintragen 117 E3dObjFactory(); | 114 // 3D-Objekt-Factory eintragen 115 E3dObjFactory(); |
118 | 116 |
119 // ::com::sun::star::form::component::Form-Objekt-Factory eintragen 120 FmFormObjFactory(); | 117 // ::com::sun::star::form::component::Form-Objekt-Factory eintragen 118 FmFormObjFactory(); |
121 122 // Objekt-Factory eintragen 123 SdrObjFactory::InsertMakeUserDataHdl(LINK(&aSdObjectFactory, SdObjectFactory, MakeUserData)); 124} 125 126 127 128/************************************************************************* | 119 120 // Objekt-Factory eintragen 121 SdrObjFactory::InsertMakeUserDataHdl(LINK(&aSdObjectFactory, SdObjectFactory, MakeUserData)); 122} 123 124 125 126/************************************************************************* |
129|* | |
130|* Exit | 127|* Exit |
131|* | |
132\************************************************************************/ 133 134void SdDLL::Exit() 135{ | 128\************************************************************************/ 129 130void SdDLL::Exit() 131{ |
136 // called directly befor unloading the DLL | 132 // called directly before unloading the DLL |
137 // do whatever you want, Sd-DLL is accessible 138 139 // Objekt-Factory austragen 140 SdrObjFactory::RemoveMakeUserDataHdl(LINK(&aSdObjectFactory, SdObjectFactory, MakeUserData)); 141 142 // the SdModule must be destroyed 143 SdModule** ppShlPtr = (SdModule**) GetAppData(SHL_DRAW); 144 delete (*ppShlPtr); 145 (*ppShlPtr) = NULL; 146} | 133 // do whatever you want, Sd-DLL is accessible 134 135 // Objekt-Factory austragen 136 SdrObjFactory::RemoveMakeUserDataHdl(LINK(&aSdObjectFactory, SdObjectFactory, MakeUserData)); 137 138 // the SdModule must be destroyed 139 SdModule** ppShlPtr = (SdModule**) GetAppData(SHL_DRAW); 140 delete (*ppShlPtr); 141 (*ppShlPtr) = NULL; 142} |
147 | |