diff options
Diffstat (limited to 'framework/source/services/backingwindow.hxx')
-rw-r--r-- | framework/source/services/backingwindow.hxx | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/framework/source/services/backingwindow.hxx b/framework/source/services/backingwindow.hxx index e01a797267..e02206cf5f 100644 --- a/framework/source/services/backingwindow.hxx +++ b/framework/source/services/backingwindow.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite @@ -38,7 +38,7 @@ #include "vcl/bitmapex.hxx" #include "vcl/toolbox.hxx" -#include "svtools/moduleoptions.hxx" +#include "unotools/moduleoptions.hxx" #include "svtools/acceleratorexecute.hxx" #include "com/sun/star/frame/XDispatchProvider.hpp" @@ -66,25 +66,25 @@ namespace framework class DecoToolBox : public ToolBox { Size maMinSize; - + using Window::ImplInit; public: DecoToolBox( Window* pParent, WinBits nStyle = 0 ); DecoToolBox( Window* pParent, const ResId& rResId ); - + void DataChanged( const DataChangedEvent& rDCEvt ); - + void calcMinSize(); Size getMinSize(); }; - + class BackingWindow : public Window { com::sun::star::uno::Reference<com::sun::star::frame::XDesktop> mxDesktop; com::sun::star::uno::Reference<com::sun::star::frame::XDispatchProvider > mxDesktopDispatchProvider; com::sun::star::uno::Reference<com::sun::star::frame::XFrame> mxFrame; com::sun::star::uno::Reference<com::sun::star::document::XEventBroadcaster> mxBroadcaster; - + FixedText maWelcome; Size maWelcomeSize; FixedText maProduct; @@ -107,32 +107,32 @@ namespace framework ImageButton maTemplateButton; FixedText maOpenText; ImageButton maOpenButton; - + DecoToolBox maToolbox; - + BitmapEx maBackgroundLeft; BitmapEx maBackgroundMiddle; BitmapEx maBackgroundRight; - + String maWelcomeString; String maProductString; String maCreateString; String maOpenString; String maTemplateString; - + Font maTextFont; Rectangle maControlRect; - + long mnColumnWidth[2]; Color maLabelTextColor; Color maWelcomeTextColor; - + Size maButtonImageSize; - + bool mbInitControls; svt::AcceleratorExecute* mpAccExec; - + static const long nBtnPos = 240; static const int nItemId_Extensions = 1; static const int nItemId_Reg = 2; @@ -142,31 +142,31 @@ namespace framework static const int nShadowLeft = 35; static const int nShadowRight = 45; static const int nShadowBottom = 50; - + void loadImage( const ResId& i_rId, ImageButton& i_rButton ); - + void layoutButtonAndText( const char* i_pURL, int nColumn, const std::set<rtl::OUString>& i_rURLS, SvtModuleOptions& i_rOpt, SvtModuleOptions::EModule i_eMod, ImageButton& i_rBtn, FixedText& i_rText, MnemonicGenerator& i_rMnemonicGen, const String& i_rStr = String() ); - + void dispatchURL( const rtl::OUString& i_rURL, const rtl::OUString& i_rTarget = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "_default" ) ), const com::sun::star::uno::Reference< com::sun::star::frame::XDispatchProvider >& i_xProv = com::sun::star::uno::Reference< com::sun::star::frame::XDispatchProvider >(), const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >& = com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >() ); - + DECL_LINK( ClickHdl, Button* ); DECL_LINK( ToolboxHdl, void* ); - + void initControls(); void initBackground(); public: BackingWindow( Window* pParent ); ~BackingWindow(); - + virtual void Paint( const Rectangle& rRect ); virtual void Resize(); virtual long Notify( NotifyEvent& rNEvt ); |