1cdf0e10cSrcweirAttribute VB_Name = "Loader"
2*e76eebc6SAndrew Rist'*************************************************************************
3*e76eebc6SAndrew Rist'
4*e76eebc6SAndrew Rist'  Licensed to the Apache Software Foundation (ASF) under one
5*e76eebc6SAndrew Rist'  or more contributor license agreements.  See the NOTICE file
6*e76eebc6SAndrew Rist'  distributed with this work for additional information
7*e76eebc6SAndrew Rist'  regarding copyright ownership.  The ASF licenses this file
8*e76eebc6SAndrew Rist'  to you under the Apache License, Version 2.0 (the
9*e76eebc6SAndrew Rist'  "License"); you may not use this file except in compliance
10*e76eebc6SAndrew Rist'  with the License.  You may obtain a copy of the License at
11*e76eebc6SAndrew Rist'
12*e76eebc6SAndrew Rist'    http://www.apache.org/licenses/LICENSE-2.0
13*e76eebc6SAndrew Rist'
14*e76eebc6SAndrew Rist'  Unless required by applicable law or agreed to in writing,
15*e76eebc6SAndrew Rist'  software distributed under the License is distributed on an
16*e76eebc6SAndrew Rist'  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17*e76eebc6SAndrew Rist'  KIND, either express or implied.  See the License for the
18*e76eebc6SAndrew Rist'  specific language governing permissions and limitations
19*e76eebc6SAndrew Rist'  under the License.
20*e76eebc6SAndrew Rist'
21*e76eebc6SAndrew Rist'*************************************************************************
22cdf0e10cSrcweir
23cdf0e10cSrcweirOption Explicit
24cdf0e10cSrcweir
25cdf0e10cSrcweirPublic ppStrings As StringDataManager
26cdf0e10cSrcweir
27cdf0e10cSrcweirPublic Sub Presentation_Open()
28cdf0e10cSrcweir    On Error GoTo ErrorHandler
29cdf0e10cSrcweir    Set ppStrings = New StringDataManager
30cdf0e10cSrcweir    Dim aPres As Presentation
31cdf0e10cSrcweir    Set aPres = Presentations("_OOoDocAnalysisPPTDriver.ppt")
32cdf0e10cSrcweir    ppStrings.InitStringData (GetResourceDataFileName(aPres.path))
33cdf0e10cSrcweir    LoadCommonStrings ppStrings
34cdf0e10cSrcweir    LoadPPStrings ppStrings
35cdf0e10cSrcweir    LoadResultsStrings ppStrings
36cdf0e10cSrcweir    Set ppStrings = Nothing
37cdf0e10cSrcweir
38cdf0e10cSrcweir    SetPPDriverText
39cdf0e10cSrcweirFinalExit:
40cdf0e10cSrcweir    Exit Sub
41cdf0e10cSrcweirErrorHandler:
42cdf0e10cSrcweir    WriteDebug "Presentation_Open : " & Err.Number & " : " & Err.Description
43cdf0e10cSrcweir    GoTo FinalExit
44cdf0e10cSrcweirEnd Sub
45cdf0e10cSrcweir
46cdf0e10cSrcweirSub SetPPDriverText()
47cdf0e10cSrcweir    On Error Resume Next
48cdf0e10cSrcweir    CAPP_DOCPROP_LOCATION = RID_STR_COMMON_RESULTS_LOCATION_TYPE_PRESENTATION
49cdf0e10cSrcweir    ActivePresentation.Slides.item(1).Shapes.item("RID_STR_DVR_PP_TXT2").OLEFormat.Object.Text = RID_STR_DVR_PP_TXT2
50cdf0e10cSrcweir    ActivePresentation.Slides.item(1).Shapes.item("RID_STR_DVR_PP_TXT3").OLEFormat.Object.Text = RID_STR_DVR_PP_TXT3
51cdf0e10cSrcweir    ActivePresentation.Slides.item(1).Shapes.item("RID_STR_DVR_PP_TXT4").OLEFormat.Object.Text = RID_STR_DVR_PP_TXT4
52cdf0e10cSrcweir    ActivePresentation.Slides.item(1).Shapes.item("RID_STR_DVR_PP_TXT5").OLEFormat.Object.Text = RID_STR_DVR_PP_TXT5
53cdf0e10cSrcweir    ActivePresentation.Slides.item(1).Shapes.item("RID_STR_DVR_PP_TXT6").OLEFormat.Object.Text = RID_STR_DVR_PP_TXT6
54cdf0e10cSrcweir    ActivePresentation.Slides.item(1).Shapes.item("RID_STR_DVR_PP_TXT7").OLEFormat.Object.Text = RID_STR_DVR_PP_TXT7
55cdf0e10cSrcweir    ActivePresentation.Slides.item(1).Shapes.item("RID_STR_DVR_PP_TXT8").OLEFormat.Object.Text = RID_STR_DVR_PP_TXT8
56cdf0e10cSrcweirEnd Sub
57