Kaydet (Commit) c93aaf9a authored tarafından Michael Meeks's avatar Michael Meeks

Switch to the LibreOffice about dialog instead

üst a2c8d5f2
This diff is collapsed.
...@@ -29,39 +29,57 @@ ...@@ -29,39 +29,57 @@
ModalDialog RID_DEFAULTABOUT ModalDialog RID_DEFAULTABOUT
{ {
HelpID = "cui:ModalDialog:RID_DEFAULTABOUT";
OutputSize = TRUE ; OutputSize = TRUE ;
Size = MAP_APPFONT ( 245 , 260 ) ; Size = MAP_APPFONT ( 245 , 280 ) ;
Moveable = TRUE ; Moveable = TRUE ;
SVLook = TRUE ; SVLook = TRUE ;
Text [ x-comment ] = "PB: ; PB: only %PRODUCTNAME"; // TEXT_DEFAULTABOUT
Text [ en-US ] = "About %PRODUCTNAME" ;
OKButton ABOUT_BTN_OK OKButton ABOUT_BTN_OK
{ {
DefButton = TRUE ; DefButton = TRUE ;
Pos = MAP_APPFONT ( 174 , 6 ) ; Pos = MAP_APPFONT ( 174 , 6 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ; Size = MAP_APPFONT ( 50 , 14 ) ;
}; };
FixedText ABOUT_FTXT_VERSION MultiLineEdit ABOUT_FTXT_VERSION
{ {
Border = FALSE ;
Pos = MAP_APPFONT ( 54 , 6 ) ; Pos = MAP_APPFONT ( 54 , 6 ) ;
Size = MAP_APPFONT ( 118 , 16 ) ; Size = MAP_APPFONT ( 118 , 16 ) ;
WordBreak = TRUE ; IgnoreTab = TRUE ;
Text = "%PRODUCTNAME %ABOUTBOXPRODUCTVERSION %PRODUCTEXTENSION" ; ReadOnly = TRUE ;
AutoVScroll = TRUE ;
}; };
MultiLineEdit ABOUT_FTXT_COPYRIGHT MultiLineEdit ABOUT_FTXT_COPYRIGHT
{ {
HelpID = "cui:MultiLineEdit:RID_DEFAULTABOUT:ABOUT_FTXT_COPYRIGHT"; Border = FALSE ;
Border = TRUE ;
Pos = MAP_APPFONT ( 54 , 25 ) ; Pos = MAP_APPFONT ( 54 , 25 ) ;
Size = MAP_APPFONT ( 168 , 51 ) ; Size = MAP_APPFONT ( 168 , 71 ) ;
IgnoreTab = TRUE ; IgnoreTab = TRUE ;
ReadOnly = TRUE ; ReadOnly = TRUE ;
AutoVScroll = TRUE ; AutoVScroll = TRUE ;
}; };
FixedText ABOUT_FTXT_LINK
{
NoLabel = TRUE;
TabStop = TRUE;
Text [ en-US ] = "Contributor credits";
Pos = MAP_APPFONT ( 54 , 100 ) ;
Size = MAP_APPFONT ( 168 , 10 ) ;
};
String ABOUT_STR_VERSION
{
Text[ en-US ] = "%PRODUCTNAME %ABOUTBOXPRODUCTVERSION %PRODUCTEXTENSION";
};
String ABOUT_STR_COPYRIGHT
{
Text[ en-US ] = "Copyright © 2000, 2010 LibreOffice contributors and/or their affiliates. All rights reserved.\nThis product was created by %OOOVENDOR, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.\n%OOOVENDOR acknowledges all community members, please find more info at the link below:";
};
String ABOUT_STR_LINK
{
Text[ en-US ] = "http://www.libreoffice.org/credits.html";
};
String ABOUT_STR_ACCEL String ABOUT_STR_ACCEL
{ {
Text = "SDT" ; Text = "SDT" ;
}; };
}; };
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/************************************************************************* /*************************************************************************
* *
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
...@@ -33,11 +34,12 @@ ...@@ -33,11 +34,12 @@
#include <vcl/button.hxx> #include <vcl/button.hxx>
#include <vcl/accel.hxx> #include <vcl/accel.hxx>
#include <svtools/svmedit.hxx> #include <svtools/svmedit.hxx>
#include <tools/list.hxx>
#include <svtools/stdctrl.hxx> #include <svtools/stdctrl.hxx>
#include "svtools/fixedhyper.hxx"
#include <sfx2/basedlgs.hxx> // SfxModalDialog #include <sfx2/basedlgs.hxx> // SfxModalDialog
#include <vector>
DECLARE_LIST( AccelList, Accelerator* ) typedef ::std::vector< Accelerator* > AccelList;
// class AboutDialog ----------------------------------------------------- // class AboutDialog -----------------------------------------------------
...@@ -47,15 +49,16 @@ private: ...@@ -47,15 +49,16 @@ private:
OKButton aOKButton; OKButton aOKButton;
Image aAppLogo; Image aAppLogo;
FixedInfo aVersionText; MultiLineEdit aVersionText;
MultiLineEdit aCopyrightText; MultiLineEdit aCopyrightText;
FixedInfo aBuildData; svt::FixedHyperlink aInfoLink;
ResStringArray* pDeveloperAry; // ResStringArray aDeveloperAry; // RIP ...
String aDevVersionStr;
String aAccelStr; String aAccelStr;
String aVersionData; String aVersionData;
String aVersionTextStr;
String aCopyrightTextStr; String aCopyrightTextStr;
String aLinkStr;
AccelList aAccelList; AccelList aAccelList;
...@@ -64,20 +67,20 @@ private: ...@@ -64,20 +67,20 @@ private:
long m_nDeltaWidth; long m_nDeltaWidth;
int m_nPendingScrolls; int m_nPendingScrolls;
sal_Bool bNormal;
protected: protected:
virtual sal_Bool Close(); virtual sal_Bool Close();
virtual void Paint( const Rectangle& ); virtual void Paint( const Rectangle& rRect );
public: public:
AboutDialog( Window* pParent, const ResId& nId ); AboutDialog( Window* pParent, const ResId& rId);
~AboutDialog(); ~AboutDialog();
DECL_LINK( TimerHdl, Timer * ); DECL_LINK( TimerHdl, Timer * );
DECL_LINK( AccelSelectHdl, Accelerator * ); DECL_LINK( AccelSelectHdl, Accelerator * );
DECL_LINK( HandleHyperlink, svt::FixedHyperlink * );
}; };
#endif // #ifndef _ABOUT_HXX #endif // #ifndef _ABOUT_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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