[dev] how to use the slideshow component to play the odp file?
i'm study the impress part in OOo source code, now i want to understand how to play the odp file by slide, and i write some codes to test how to play a odp file: // bootstrap UNO uno::Reference< lang::XMultiServiceFactory > xFactory; try { uno::Reference< uno::XComponentContext > xCtx = ::cppu::defaultBootstrap_InitialComponentContext(); xFactory = uno::Reference< lang::XMultiServiceFactory >( xCtx->getServiceManager(), uno::UNO_QUERY ); if( xFactory.is() ) ::comphelper::setProcessServiceFactory( xFactory ); } catch( uno::RuntimeException& ) { throw; } catch( uno::Exception& ) { OSL_ENSURE( false, rtl::OUStringToOString( comphelper::anyToString( cppu::getCaughtException() ), RTL_TEXTENCODING_UTF8 ).getStr() ); } if( !xFactory.is() ) { OSL_TRACE( "Could not bootstrap UNO, installation must be in disorder. Exiting.\n" ); exit( 1 ); } // Create UCB. uno::Sequence< uno::Any > aArgs( 2 ); aArgs[ 0 ] <<= rtl::OUString::createFromAscii( UCB_CONFIGURATION_KEY1_LOCAL ); aArgs[ 1 ] <<= rtl::OUString::createFromAscii( UCB_CONFIGURATION_KEY2_OFFICE ); ::ucbhelper::ContentBroker::initialize( xFactory, aArgs ) // init the sddll SdDLL::Init(); // open the test odp file SfxMedium *pMedium = NULL; pMedium = new SfxMedium(TESTODP_FILENAME, STREAM_READ, FALSE ); // new the drawdocshell SfxObjectShell* lpObjShell = new ::sd::DrawDocShell(SFX_CREATE_MODE_STANDARD); lpObjShell->DoInitNew(pMedium); WorkWindow* pWorkWindow = new WorkWindow ( NULL, WB_CLIPCHILDREN); pWorkWindow->StartPresentationMode ( TRUE, PRESENTATION_NOFULLSCREEN); pWorkWindow->SetBackground(Wallpaper(COL_BLACK)); SfxTopFrame *lpTopFrame = SfxTopFrame::Create(pObjShell, &pWorkWindow); sd::PresentationViewShellBase *lpViewShellBase = (sd::PresentationViewShellBase*)(sd::PresentationViewShellBase::CreateInstance(lpTopFrame->GetCurrentViewFrame(), NULL)); sd::DrawViewShell *lpDrawViewShell = new sd::DrawViewShell(lpTopFrame->GetCurrentViewFrame(), *lpViewShellBase, lpViewShellBase->GetViewWindow() ); sd::DrawView *lpView = lpDrawViewShell->GetDrawView(); sd::Slideshow *lpSlideShow = NULL; lpSlideShow = new sd::Slideshow(lpDrawViewShell, (sd::View*)lpView, ((sd::DrawDocShell*)pObjShell )->GetDoc(), lpViewShellBase->GetViewWindow()); lpSlideShow->startShow(); pWorkWindow->Show(); and i complie the codes, it runs, the slideshow window and slides didn't pop up, is there something wrong with the codes, who can tell me what is wrong whth it, thanks very much!
Re: [dev] I'm new
On Thu, Mar 20, 2008 at 01:17:35PM -0700, Kevin wrote: > Hi. My name is Kevin. I am a c++ programmer and I am happy to contribute to > this project! > I am signed up on openoffice.org as kjsisco1984 > I hope to learn from you all...and perhaps you will learn from me as well. > Hi Kevin, welcome to the project! If you'd like to hack on OOo, you might want to start from this page: http://wiki.services.openoffice.org/wiki/I_want_to_be_an_OpenOffice.org_developer Have fun, -- Thorsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] SRC680_m246 build breaks in
Hi all, I solved the problem with the following: 1. replace the word "scext" with "lpsolve" from postprocess/prj/build.lst 2. delete the words "STD_RES_FILE_PATCH( gid_File_Res_Solver, solver)" and "STD_UNO_LIB_FILE_PATCH( gid_File_Lib_Solver, solver)" from scp2/source/calc/file_calc.scp 3. delete the words "gid_File_Lib_Solver," from scp2/source/calc/module_calc.scp 4. delete the words "gid_File_Res_Solver" from scp2/source/ooo/module_lang_template.scp I already used SRC680-m248 with RHEL 5 cloned by my self Giuseppe Castagno-3 wrote: > > Hi all, > > on GNU/Linux Debian lenny, while building m246 from scratch, at the end > of the process, in module instsetoo_native the build complains with: > > ** > ERROR: Saved logfile: > /home/beppe/ooo-b/m246-std/build/current/instsetoo_native/unxlngi6.pro/OpenOffice/deb/logging/en-US/log_SRC680_en-US.log > ** > ... analyzing files ... > ERROR: The following files could not be found: > ERROR: File not found: liblpsolve55.so > ERROR: File not found: libsolver680li.so > ERROR: File not found: solver680en-US.res > > I can correct the library liblpsolve55.so issue by manually building the > module lpsolve, but I have no idea about the other two. > > Where does libsolver680li.so and come solver680en-US.res from? > > Any help appreciated, thanks. > > -- > Kind Regards, > Giuseppe Castagno > Acca Esse http://www.acca-esse.eu > [EMAIL PROTECTED] > [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/SRC680_m246-build-breaks-in-tp15410417p16248112.html Sent from the openoffice - dev mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]