Kaydet (Commit) 63d114a7 authored tarafından Matus Kukan's avatar Matus Kukan

Remove preload library related code

üst 25a4c95f
...@@ -25,14 +25,13 @@ ex extensions\source\abpilot nmake - all ex_abpilot ex_in ...@@ -25,14 +25,13 @@ ex extensions\source\abpilot nmake - all ex_abpilot ex_in
ex extensions\source\logging nmake - all ex_logging ex_inc NULL ex extensions\source\logging nmake - all ex_logging ex_inc NULL
ex extensions\source\oooimprovecore nmake - all ex_oooimprovecore ex_inc NULL ex extensions\source\oooimprovecore nmake - all ex_oooimprovecore ex_inc NULL
ex extensions\source\oooimprovement nmake - all ex_oooimprovement ex_inc NULL ex extensions\source\oooimprovement nmake - all ex_oooimprovement ex_inc NULL
ex extensions\source\preload nmake - all ex_preload ex_inc NULL
ex extensions\source\config\ldap nmake - all ex_ldap ex_inc NULL ex extensions\source\config\ldap nmake - all ex_ldap ex_inc NULL
ex extensions\source\nsplugin\source nmake - u ex_nsplugin ex_inc NULL ex extensions\source\nsplugin\source nmake - u ex_nsplugin ex_inc NULL
ex extensions\source\nsplugin\source nmake - w ex_nsplugin ex_inc NULL ex extensions\source\nsplugin\source nmake - w ex_nsplugin ex_inc NULL
ex extensions\source\update\feed nmake - all ex_updchkfeed ex_inc NULL ex extensions\source\update\feed nmake - all ex_updchkfeed ex_inc NULL
ex extensions\source\update\check nmake - all ex_updchk ex_inc NULL ex extensions\source\update\check nmake - all ex_updchk ex_inc NULL
ex extensions\source\update\ui nmake - all ex_updchkui ex_inc NULL ex extensions\source\update\ui nmake - all ex_updchkui ex_inc NULL
ex extensions\util nmake - all ex_util ex_preload ex_abpilot ex_dbpilots ex_logging ex_ldap ex_propctrlr ex_bib ex_plutil ex_oooimprovecore NULL ex extensions\util nmake - all ex_util ex_abpilot ex_dbpilots ex_logging ex_ldap ex_propctrlr ex_bib ex_plutil ex_oooimprovecore NULL
# Fails at the moment # Fails at the moment
# ex extensions\qa\complex\extensions nmake - all ex_complex ex_util NULL # ex extensions\qa\complex\extensions nmake - all ex_complex ex_util NULL
...@@ -49,7 +49,6 @@ mkdir: %_DEST%\xml\registry\spool\org\openoffice\Office\Logging ...@@ -49,7 +49,6 @@ mkdir: %_DEST%\xml\registry\spool\org\openoffice\Office\Logging
..\%__SRC%\misc\oooimprovement.component %_DEST%\xml\oooimprovement.component ..\%__SRC%\misc\oooimprovement.component %_DEST%\xml\oooimprovement.component
..\%__SRC%\misc\pcr.component %_DEST%\xml\pcr.component ..\%__SRC%\misc\pcr.component %_DEST%\xml\pcr.component
..\%__SRC%\misc\pl.component %_DEST%\xml\pl.component ..\%__SRC%\misc\pl.component %_DEST%\xml\pl.component
..\%__SRC%\misc\preload.component %_DEST%\xml\preload.component
..\%__SRC%\misc\res.component %_DEST%\xml\res.component ..\%__SRC%\misc\res.component %_DEST%\xml\res.component
..\%__SRC%\misc\scn.component %_DEST%\xml\scn.component ..\%__SRC%\misc\scn.component %_DEST%\xml\scn.component
..\%__SRC%\misc\updatefeed.component %_DEST%\xml\updatefeed.component ..\%__SRC%\misc\updatefeed.component %_DEST%\xml\updatefeed.component
......
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# only, as published by the Free Software Foundation.
#
# OpenOffice.org is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License version 3 for more details
# (a copy is included in the LICENSE file that accompanied this code).
#
# You should have received a copy of the GNU Lesser General Public License
# version 3 along with OpenOffice.org. If not, see
# <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License.
#
#*************************************************************************
PRJ=..$/..
PRJINC=..$/inc
PRJNAME=extensions
TARGET=preload
ENABLE_EXCEPTIONS=TRUE
VISIBILITY_HIDDEN=TRUE
USE_DEFFILE=TRUE
# --- Settings -----------------------------------------------------
.INCLUDE : $(PRJ)$/util$/makefile.pmk
# --- defines ------------------------------------------------------
CDEFS+=-DCOMPMOD_NAMESPACE=preload
CDEFS+=-DCOMPMOD_RESPREFIX=preload
# --- Files --------------------------------------------------------
SLOFILES= $(SLO)$/services.obj\
$(SLO)$/modulepreload.obj\
$(SLO)$/preloadservices.obj\
$(SLO)$/oemwiz.obj
SRS1NAME=$(TARGET)
SRC1FILES= preload.src
RESLIB1NAME=preload
RESLIB1IMAGES=$(PRJ)$/res
RESLIB1SRSFILES= $(SRS)$/preload.srs
SHL1TARGET= $(TARGET)$(DLLPOSTFIX)
SHL1VERSIONMAP=$(SOLARENV)/src/component.map
SHL1STDLIBS= \
$(SFXLIB) \
$(SVTOOLLIB)\
$(VCLLIB) \
$(SVLLIB) \
$(TOOLSLIB) \
$(UNOTOOLSLIB) \
$(COMPHELPERLIB) \
$(CPPUHELPERLIB) \
$(CPPULIB) \
$(SALLIB)
SHL1LIBS= $(SLB)$/$(TARGET).lib
SHL1IMPLIB= i$(TARGET)
SHL1DEPN= $(SHL1LIBS)
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
DEF1NAME= $(SHL1TARGET)
# --- Targets ------------------------------------------------------
.INCLUDE : target.mk
ALLTAR : $(MISC)/preload.component
$(MISC)/preload.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
preload.component
$(XSLTPROC) --nonet --stringparam uri \
'$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
$(SOLARENV)/bin/createcomponent.xslt preload.component
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_extensions.hxx"
#include "componentmodule.cxx"
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This diff is collapsed.
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
#ifndef _EXTENSIONS_PRELOAD_OEMWIZ_HXX_
#define _EXTENSIONS_PRELOAD_OEMWIZ_HXX_
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <svtools/wizdlg.hxx>
#include <vcl/button.hxx>
#include <vcl/tabpage.hxx>
#include <vcl/fixed.hxx>
#include <svtools/svmedit.hxx>
#include <svl/lstner.hxx>
#include <vcl/scrbar.hxx>
//.........................................................................
namespace preload
{
#define OEM_WELCOME 0
#define OEM_LICENSE 1
#define OEM_USERDATA 2
//.........................................................................
//=====================================================================
//= OEMPreloadDialog
//=====================================================================
struct OEMPreloadDialog_Impl;
class OEMPreloadDialog : public WizardDialog
{
PushButton aPrevPB;
PushButton aNextPB;
CancelButton aCancelPB;
String aNextST;
String aAcceptST;
String aFinishST;
String aDlgTitle;
String aLicense;
String aUserData;
OEMPreloadDialog_Impl* pImpl;
DECL_LINK(NextPrevPageHdl, PushButton*);
protected:
public:
OEMPreloadDialog(
Window* _pParent,
const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxObjectModel,
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB
);
~OEMPreloadDialog();
const String& GetAcceptString()const {return aAcceptST;}
const String GetCancelString() const {return aCancelPB.GetText();}
void SetCancelString( const String& rText );
static sal_Bool LoadFromLocalFile(const String& rFileName, String& rContent);
};
class OEMWelcomeTabPage : public TabPage
{
FixedText aInfoFT;
public:
OEMWelcomeTabPage(Window* pParent);
~OEMWelcomeTabPage();
};
class LicenceView : public MultiLineEdit, public SfxListener
{
sal_Bool mbEndReached;
Link maEndReachedHdl;
Link maScrolledHdl;
public:
LicenceView( Window* pParent, const ResId& rResId );
~LicenceView();
void ScrollDown( ScrollType eScroll );
sal_Bool IsEndReached() const;
sal_Bool EndReached() const { return mbEndReached; }
void SetEndReached( sal_Bool bEnd ) { mbEndReached = bEnd; }
void SetEndReachedHdl( const Link& rHdl ) { maEndReachedHdl = rHdl; }
const Link& GetAutocompleteHdl() const { return maEndReachedHdl; }
void SetScrolledHdl( const Link& rHdl ) { maScrolledHdl = rHdl; }
const Link& GetScrolledHdl() const { return maScrolledHdl; }
virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
private:
using MultiLineEdit::Notify;
};
class OEMLicenseTabPage : public TabPage
{
LicenceView aLicenseML;
FixedText aInfo1FT;
FixedText aInfo2FT;
FixedText aInfo3FT;
FixedText aInfo2_1FT;
FixedText aInfo3_1FT;
CheckBox aCBAccept;
PushButton aPBPageDown;
FixedImage aArrow;
String aStrAccept;
String aStrNotAccept;
String aOldCancelText;
sal_Bool bEndReached;
OEMPreloadDialog* pPreloadDialog;
void EnableControls();
DECL_LINK( AcceptHdl, CheckBox * );
DECL_LINK( PageDownHdl, PushButton * );
DECL_LINK( EndReachedHdl, LicenceView * );
DECL_LINK( ScrolledHdl, LicenceView * );
public:
OEMLicenseTabPage(OEMPreloadDialog* pParent);
~OEMLicenseTabPage();
virtual void ActivatePage();
};
//.........................................................................
} // namespace preload
//.........................................................................
#endif // _EXTENSIONS_PRELOAD_OEMWIZ_HXX_
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
<?xml version="1.0" encoding="UTF-8"?>
<!--**********************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
**********************************************************************-->
<component loader="com.sun.star.loader.SharedLibrary"
xmlns="http://openoffice.org/2010/uno-components">
<implementation name="org.openoffice.comp.preload.OEMPreloadWizard">
<service name="org.openoffice.comp.preload.OEMPreloadWizard"/>
</implementation>
</component>
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
#ifndef _EXTENSIONS_PRELOAD_PRELOAD_HRC_
#define _EXTENSIONS_PRELOAD_PRELOAD_HRC_
#define RID_DLG_OEMWIZARD 1024
#define RID_TP_LICENSE 1025
#define RID_TP_WELCOME 1027
#define PB_PREV 1
#define PB_NEXT 2
#define PB_CANCEL 3
#define ST_ACCEPT 5
#define ST_FINISH 6
#define FT_INFO 7
#define ML_README 8
#define FT_INFO1 9
#define FT_INFO2 10
#define ML_LICENSE 11
#define ST_LICENSE_AGREEMENT 12
#define ST_INSERT_USER_DATA 13
#define IMG_ARROW 14
#define FT_INFO2_1 15
#define FT_INFO3_1 16
#define FT_INFO3 17
#define PB_PAGEDOWN 18
#define CB_ACCEPT 19
#define LICENCE_ACCEPT 20
#define LICENCE_NOTACCEPT 21
#endif
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
#ifndef _EXTENSIONS_PRELOAD_PRELOAD_HRC_
#include "preload.hrc"
#endif
ModalDialog RID_DLG_OEMWIZARD
{
HelpID = "extensions:ModalDialog:RID_DLG_OEMWIZARD";
Text = "%PRODUCTNAME %PRODUCTVERSION";
OutputSize = TRUE ;
SVLook = TRUE ;
Moveable = TRUE ;
Closeable = TRUE ;
Hide = TRUE;
PushButton PB_PREV
{
HelpID = "extensions:PushButton:RID_DLG_OEMWIZARD:PB_PREV";
Size = MAP_APPFONT ( 50 , 14 ) ;
Text [ en-US ] = "<< Back" ;
};
PushButton PB_NEXT
{
HelpID = "extensions:PushButton:RID_DLG_OEMWIZARD:PB_NEXT";
Size = MAP_APPFONT ( 50 , 14 ) ;
Text [ en-US ] = "Next >>" ;
};
CancelButton PB_CANCEL
{
Size = MAP_APPFONT ( 50 , 14 ) ;
};
String ST_ACCEPT
{
Text [ en-US ] = "Accept";
};
String ST_FINISH
{
Text [ en-US ] = "Finish";
};
String ST_LICENSE_AGREEMENT
{
Text [ en-US ] = " - Software License Agreement";
};
String ST_INSERT_USER_DATA
{
Text [ en-US ] = "- User Data";
};
};
TabPage RID_TP_WELCOME
{
HelpID = "extensions:TabPage:RID_TP_WELCOME";
// HelpId = ;
OutputSize = TRUE ;
SVLook = TRUE ;
Hide = TRUE ;
Size = MAP_APPFONT ( 260 , 185 ) ;
Text [ en-US ] = "Welcome";
FixedText FT_INFO
{
Pos = MAP_APPFONT ( 6 , 3 ) ;
Size = MAP_APPFONT ( 248 , 174 ) ;
WordBreak = TRUE ;
Text [ en-US ] = "Welcome to %PRODUCTNAME %PRODUCTVERSION OEM\n\nTo start the %PRODUCTNAME %PRODUCTVERSION OEM, "
"please enter your personal data in the dialog following the license text. Important information is contained "
"in the readme files which are located in the %PRODUCTNAME product directory. Please read these files carefully. "
"You can also find detailed information at the Oracle website \n\n"
"http://www.oracle.com/us/products/applications/open-office.";
};
};
#define LICENSE_DIALOG_WIDTH 260
#define LICENSE_DIALOG_HEIGTH 185
#define LICENSE_RIGHT_BORDER 7
#define LICENSE_BOTTOM_BORDER 0
#define LICENSE_ROW_1 (7)
#define LICENSE_COL_1 (7)
#define OFFSET 2
#define COL2_WIDTH 10
#define OFFSET_IMG 10
#define FT_HEIGHT 8
#define PB_HEIGHT 14
#define PD_WIDTH 40
#define LICENCE_HEIGHT 102
#define LICENSE_ROW_2 (LICENSE_ROW_1 + OFFSET + LICENCE_HEIGHT)
#define LICENSE_ROW_3 (LICENSE_ROW_2 + OFFSET + FT_HEIGHT)
#define LICENSE_ROW_4 (LICENSE_ROW_3 + OFFSET + 3*FT_HEIGHT )
#define LICENSE_ROW_5 (LICENSE_ROW_4 + OFFSET + FT_HEIGHT)
/*
#define LICENSE_ROW_5 (LICENSE_DIALOG_HEIGTH - LICENSE_BOTTOM_BORDER - OFFSET - FT_HEIGHT)
#define LICENSE_ROW_4 (LICENSE_ROW_5 - OFFSET - FT_HEIGHT)
#define LICENSE_ROW_3 (LICENSE_ROW_4 - OFFSET - 3*FT_HEIGHT)
#define LICENSE_ROW_2 (LICENSE_ROW_3 - OFFSET - FT_HEIGHT)
#define LICENCE_HEIGHT (LICENSE_ROW_2-LICENSE_ROW_1-OFFSET)
*/
#define LICENSE_COL_2 (LICENSE_COL_1 + OFFSET_IMG)
#define LICENSE_COL_3 (LICENSE_COL_2 + COL2_WIDTH +1)
#define LICENSE_COL_4 (LICENSE_DIALOG_WIDTH - LICENSE_RIGHT_BORDER - PD_WIDTH)
#define LICENSE_WIDTH (LICENSE_DIALOG_WIDTH - LICENSE_RIGHT_BORDER - LICENSE_ROW_1)
#define COL3_WIDTH (LICENSE_COL_4 - LICENSE_COL_3)
TabPage RID_TP_LICENSE
{
HelpID = "extensions:TabPage:RID_TP_LICENSE";
OutputSize = TRUE ;
SVLook = TRUE ;
Hide = TRUE ;
Size = MAP_APPFONT ( LICENSE_DIALOG_WIDTH , LICENSE_DIALOG_HEIGTH ) ;
Text [ en-US ] = "License Agreement";
MultiLineEdit ML_LICENSE
{
HelpID = "extensions:MultiLineEdit:RID_TP_LICENSE:ML_LICENSE";
PosSize = MAP_APPFONT ( LICENSE_COL_1 , LICENSE_ROW_1 , LICENSE_WIDTH , LICENCE_HEIGHT ) ;
Border = TRUE ;
VScroll = TRUE ;
ReadOnly = TRUE ;
};
FixedText FT_INFO1
{
WordBreak = TRUE ;
Pos = MAP_APPFONT ( LICENSE_COL_1 , LICENSE_ROW_2 ) ;
Size = MAP_APPFONT ( LICENSE_WIDTH , FT_HEIGHT ) ;
Text [ en-US ] = "Please follow these steps to proceed with the installation:" ;
};
FixedImage IMG_ARROW
{
Pos = MAP_APPFONT ( LICENSE_COL_1 , LICENSE_ROW_3 ) ;
Size = MAP_PIXEL ( 16 , 16 ) ;
Fixed = Image
{
ImageBitmap = Bitmap
{
File = "arrow.bmp" ;
File[ ar ] = "m_arrow.bmp" ;
};
MaskColor = Color { Red = 0xFFFF ; Green = 0x0000 ; Blue = 0xFFFF ; };
};
};
FixedText FT_INFO2_1
{
WordBreak = TRUE ;
Pos = MAP_APPFONT ( LICENSE_COL_2 , LICENSE_ROW_3 ) ;
Size = MAP_APPFONT ( COL2_WIDTH , FT_HEIGHT ) ;
Text [ en-US ] = "1." ;
};
FixedText FT_INFO2
{
WordBreak = TRUE ;
Pos = MAP_APPFONT ( LICENSE_COL_3 , LICENSE_ROW_3 ) ;
Size = MAP_APPFONT ( COL3_WIDTH, 3*FT_HEIGHT ) ;
Text [ en-US ] = "View the complete License Agreement. Please use the scroll bar or the '%PAGEDOWN' button in this dialog to view the entire license text." ;
};
PushButton PB_PAGEDOWN
{
HelpID = "extensions:PushButton:RID_TP_LICENSE:PB_PAGEDOWN";
TabStop = TRUE ;
Pos = MAP_APPFONT ( LICENSE_COL_4 , LICENSE_ROW_3 ) ;
Size = MAP_APPFONT ( PD_WIDTH , PB_HEIGHT ) ;
Text [ en-US ] = "Page Down" ;
};
FixedText FT_INFO3_1
{
WordBreak = TRUE ;
Pos = MAP_APPFONT ( LICENSE_COL_2 , LICENSE_ROW_4 ) ;
Size = MAP_APPFONT ( COL2_WIDTH, FT_HEIGHT ) ;
Text [ en-US ] = "2." ;
};
FixedText FT_INFO3
{
WordBreak = TRUE ;
Pos = MAP_APPFONT ( LICENSE_COL_3, LICENSE_ROW_4 ) ;
Size = MAP_APPFONT ( COL3_WIDTH, FT_HEIGHT ) ;
Text [ en-US ] = "Accept the License Agreement." ;
};
CheckBox CB_ACCEPT
{
HelpID = "extensions:CheckBox:RID_TP_LICENSE:CB_ACCEPT";
TabStop = TRUE ;
Pos = MAP_APPFONT ( LICENSE_COL_3, LICENSE_ROW_5 ) ;
Size = MAP_APPFONT ( COL3_WIDTH, FT_HEIGHT ) ;
Text [ en-US ] = "I accept the terms of the Agreement." ;
};
String LICENCE_ACCEPT
{
Text [ en-US ] = "~Accept" ;
};
String LICENCE_NOTACCEPT
{
Text [ en-US ] = "Decline" ;
};
};
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_extensions.hxx"
#include "preloadservices.hxx"
#include "componentmodule.hxx"
#include "unoautopilot.hxx"
#include "oemwiz.hxx"
// the registration methods
extern "C" void SAL_CALL createRegistryInfo_OEMPreloadDialog()
{
static ::preload::OMultiInstanceAutoRegistration<
::preload::OUnoAutoPilot< ::preload::OEMPreloadDialog, ::preload::OEMPreloadSI >
> aAutoRegistration;
}
static const char cServiceName[] = "org.openoffice.comp.preload.OEMPreloadWizard";
//.........................................................................
namespace preload
{
//.........................................................................
using namespace ::com::sun::star::uno;
//=====================================================================
//= OEMPreloadSI
//=====================================================================
//---------------------------------------------------------------------
::rtl::OUString OEMPreloadSI::getImplementationName() const
{
return ::rtl::OUString::createFromAscii(cServiceName);
}
//---------------------------------------------------------------------
Sequence< ::rtl::OUString > OEMPreloadSI::getServiceNames() const
{
Sequence< ::rtl::OUString > aReturn(1);
aReturn[0] = ::rtl::OUString::createFromAscii(cServiceName);
return aReturn;
}
//.........................................................................
} // namespace preload
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
#ifndef _EXTENSIONS_PRELOAD_PRELOADSERVICES_HXX_
#define _EXTENSIONS_PRELOAD_PRELOADSERVICES_HXX_
#include <com/sun/star/uno/Sequence.hxx>
#include <rtl/ustring.hxx>
//.........................................................................
namespace preload
{
//.........................................................................
//=====================================================================
//= OGroupBoxSI
//=====================================================================
/// service info for the OEM preload wizard
struct OEMPreloadSI
{
public:
::rtl::OUString getImplementationName() const;
::com::sun::star::uno::Sequence< ::rtl::OUString >
getServiceNames() const;
};
//.........................................................................
} // namespace preload
//.........................................................................
#endif // _EXTENSIONS_PRELOAD_PRELOADSERVICES_HXX_
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_extensions.hxx"
#include "componentmodule.hxx"
//---------------------------------------------------------------------------------------
using namespace ::rtl;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::registry;
//---------------------------------------------------------------------------------------
extern "C" void SAL_CALL createRegistryInfo_OEMPreloadDialog();
//---------------------------------------------------------------------------------------
extern "C" void SAL_CALL preload_initializeModule()
{
static sal_Bool s_bInit = sal_False;
if (!s_bInit)
{
createRegistryInfo_OEMPreloadDialog();
::preload::OModule::setResourceFilePrefix("preload");
s_bInit = sal_True;
}
}
//---------------------------------------------------------------------------------------
extern "C" SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment(
const sal_Char **ppEnvTypeName,
uno_Environment ** /*ppEnv*/
)
{
preload_initializeModule();
*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}
//---------------------------------------------------------------------------------------
extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory(
const sal_Char* pImplementationName,
void* pServiceManager,
void* /*pRegistryKey*/)
{
Reference< XInterface > xRet;
if (pServiceManager && pImplementationName)
{
xRet = ::preload::OModule::getComponentFactory(
::rtl::OUString::createFromAscii(pImplementationName),
static_cast< XMultiServiceFactory* >(pServiceManager));
}
if (xRet.is())
xRet->acquire();
return xRet.get();
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
#ifndef _EXTENSIONS_PRELOAD_UNOAUTOPILOT_HXX_
#define _EXTENSIONS_PRELOAD_UNOAUTOPILOT_HXX_
#include <svtools/genericunodialog.hxx>
#include <comphelper/proparrhlp.hxx>
#include "componentmodule.hxx"
#include <cppuhelper/typeprovider.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
//.........................................................................
namespace preload
{
//.........................................................................
//=====================================================================
//= IServiceInfo
//=====================================================================
/** interface for the SERVICEINFO template parameter of the OUnoAutoPilot class
*/
struct IServiceInfo
{
public:
::rtl::OUString getImplementationName() const;
::com::sun::star::uno::Sequence< ::rtl::OUString >
getServiceNames() const;
};
//=====================================================================
//= OUnoAutoPilot
//=====================================================================
typedef ::svt::OGenericUnoDialog OUnoAutoPilot_Base;
template <class TYPE, class SERVICEINFO>
class OUnoAutoPilot
:public OUnoAutoPilot_Base
,public ::comphelper::OPropertyArrayUsageHelper< OUnoAutoPilot< TYPE, SERVICEINFO > >
,public OModuleResourceClient
{
OUnoAutoPilot(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB);
protected:
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >
m_xObjectModel;
public:
// XTypeProvider
virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL getImplementationId( ) throw(::com::sun::star::uno::RuntimeException);
// XServiceInfo
virtual ::rtl::OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException);
virtual ::comphelper::StringSequence SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
// XServiceInfo - static methods
static ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_Static(void) throw( ::com::sun::star::uno::RuntimeException );
static ::rtl::OUString getImplementationName_Static(void) throw( ::com::sun::star::uno::RuntimeException );
static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
SAL_CALL Create(const ::com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >&);
// XPropertySet
virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() throw(::com::sun::star::uno::RuntimeException);
virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
// OPropertyArrayUsageHelper
virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const;
protected:
// OGenericUnoDialog overridables
virtual Dialog* createDialog(Window* _pParent);
virtual void implInitialize(const com::sun::star::uno::Any& _rValue);
};
#include "unoautopilot.inl"
//.........................................................................
} // namespace dbp
//.........................................................................
#endif // _EXTENSIONS_PRELOAD_UNOAUTOPILOT_HXX_
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
// no include protecttion
// this file is included from unoautopilot.hxx directly
//=====================================================================
//= OUnoAutoPilot
//=====================================================================
template <class TYPE, class SERVICEINFO>
OUnoAutoPilot<TYPE, SERVICEINFO>::OUnoAutoPilot(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB)
:OUnoAutoPilot_Base(_rxORB)
{
}
//---------------------------------------------------------------------
template <class TYPE, class SERVICEINFO>
::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL OUnoAutoPilot<TYPE, SERVICEINFO>::getImplementationId( ) throw(::com::sun::star::uno::RuntimeException)
{
static ::cppu::OImplementationId aId;
return aId.getImplementationId();
}
//---------------------------------------------------------------------
template <class TYPE, class SERVICEINFO>
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL OUnoAutoPilot<TYPE, SERVICEINFO>::Create(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory)
{
return *(new OUnoAutoPilot<TYPE, SERVICEINFO>(_rxFactory));
}
//---------------------------------------------------------------------
template <class TYPE, class SERVICEINFO>
::rtl::OUString SAL_CALL OUnoAutoPilot<TYPE, SERVICEINFO>::getImplementationName() throw(::com::sun::star::uno::RuntimeException)
{
return getImplementationName_Static();
}
//---------------------------------------------------------------------
template <class TYPE, class SERVICEINFO>
::rtl::OUString OUnoAutoPilot<TYPE, SERVICEINFO>::getImplementationName_Static() throw(::com::sun::star::uno::RuntimeException)
{
return SERVICEINFO().getImplementationName();
}
//---------------------------------------------------------------------
template <class TYPE, class SERVICEINFO>
::comphelper::StringSequence SAL_CALL OUnoAutoPilot<TYPE, SERVICEINFO>::getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException)
{
return getSupportedServiceNames_Static();
}
//---------------------------------------------------------------------
template <class TYPE, class SERVICEINFO>
::comphelper::StringSequence OUnoAutoPilot<TYPE, SERVICEINFO>::getSupportedServiceNames_Static() throw(::com::sun::star::uno::RuntimeException)
{
return SERVICEINFO().getServiceNames();
}
//---------------------------------------------------------------------
template <class TYPE, class SERVICEINFO>
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL OUnoAutoPilot<TYPE, SERVICEINFO>::getPropertySetInfo() throw(::com::sun::star::uno::RuntimeException)
{
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > xInfo( createPropertySetInfo( getInfoHelper() ) );
return xInfo;
}
//---------------------------------------------------------------------
template <class TYPE, class SERVICEINFO>
::cppu::IPropertyArrayHelper& OUnoAutoPilot<TYPE, SERVICEINFO>::getInfoHelper()
{
return *const_cast<OUnoAutoPilot*>(this)->getArrayHelper();
}
//--------------------------------------------------------------------------
template <class TYPE, class SERVICEINFO>
::cppu::IPropertyArrayHelper* OUnoAutoPilot<TYPE, SERVICEINFO>::createArrayHelper( ) const
{
::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > aProps;
describeProperties(aProps);
return new ::cppu::OPropertyArrayHelper(aProps);
}
//--------------------------------------------------------------------------
template <class TYPE, class SERVICEINFO>
Dialog* OUnoAutoPilot<TYPE, SERVICEINFO>::createDialog(Window* _pParent)
{
return new TYPE(_pParent, m_xObjectModel, m_aContext.getLegacyServiceFactory());
}
//--------------------------------------------------------------------------
template <class TYPE, class SERVICEINFO>
void OUnoAutoPilot<TYPE, SERVICEINFO>::implInitialize(const com::sun::star::uno::Any& _rValue)
{
::com::sun::star::beans::PropertyValue aArgument;
if (_rValue >>= aArgument)
if (0 == aArgument.Name.compareToAscii("ObjectModel"))
{
aArgument.Value >>= m_xObjectModel;
return;
}
OUnoAutoPilot_Base::implInitialize(_rValue);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment