backingwindow.hxx (f8e07b45) | backingwindow.hxx (f7882915) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 21 unchanged lines hidden (view full) --- 30#include "vcl/menubtn.hxx" 31#include "vcl/fixed.hxx" 32#include "vcl/bitmapex.hxx" 33#include "vcl/toolbox.hxx" 34 35#include "unotools/moduleoptions.hxx" 36#include "svtools/acceleratorexecute.hxx" 37 | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 21 unchanged lines hidden (view full) --- 30#include "vcl/menubtn.hxx" 31#include "vcl/fixed.hxx" 32#include "vcl/bitmapex.hxx" 33#include "vcl/toolbox.hxx" 34 35#include "unotools/moduleoptions.hxx" 36#include "svtools/acceleratorexecute.hxx" 37 |
38#include <com/sun/star/uno/XComponentContext.hpp> 39#include <com/sun/star/frame/XUIControllerFactory.hpp> 40#include <com/sun/star/frame/XPopupMenuController.hpp> 41#include <com/sun/star/awt/XPopupMenu.hpp> |
|
38#include "com/sun/star/frame/XDispatchProvider.hpp" 39#include "com/sun/star/frame/XDesktop.hpp" 40#include "com/sun/star/frame/XFrame.hpp" 41#include "com/sun/star/frame/XTerminateListener.hpp" 42#include "com/sun/star/document/XEventListener.hpp" 43#include "com/sun/star/document/XEventBroadcaster.hpp" 44#include "com/sun/star/util/XURLTransformer.hpp" 45#include "com/sun/star/ui/dialogs/XFilePicker.hpp" --- 23 unchanged lines hidden (view full) --- 69 void DataChanged( const DataChangedEvent& rDCEvt ); 70 71 void calcMinSize(); 72 Size getMinSize(); 73 }; 74 75 class BackingWindow : public Window 76 { | 42#include "com/sun/star/frame/XDispatchProvider.hpp" 43#include "com/sun/star/frame/XDesktop.hpp" 44#include "com/sun/star/frame/XFrame.hpp" 45#include "com/sun/star/frame/XTerminateListener.hpp" 46#include "com/sun/star/document/XEventListener.hpp" 47#include "com/sun/star/document/XEventBroadcaster.hpp" 48#include "com/sun/star/util/XURLTransformer.hpp" 49#include "com/sun/star/ui/dialogs/XFilePicker.hpp" --- 23 unchanged lines hidden (view full) --- 73 void DataChanged( const DataChangedEvent& rDCEvt ); 74 75 void calcMinSize(); 76 Size getMinSize(); 77 }; 78 79 class BackingWindow : public Window 80 { |
77 struct LoadRecentFile 78 { 79 rtl::OUString aTargetURL; 80 com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > aArgSeq; 81 }; 82 | 81 82 com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > mxContext; |
83 com::sun::star::uno::Reference<com::sun::star::frame::XDesktop> mxDesktop; 84 com::sun::star::uno::Reference<com::sun::star::frame::XDispatchProvider > mxDesktopDispatchProvider; 85 com::sun::star::uno::Reference<com::sun::star::frame::XFrame> mxFrame; | 83 com::sun::star::uno::Reference<com::sun::star::frame::XDesktop> mxDesktop; 84 com::sun::star::uno::Reference<com::sun::star::frame::XDispatchProvider > mxDesktopDispatchProvider; 85 com::sun::star::uno::Reference<com::sun::star::frame::XFrame> mxFrame; |
86 com::sun::star::uno::Reference<com::sun::star::document::XEventBroadcaster> mxBroadcaster; | 86 com::sun::star::uno::Reference< com::sun::star::frame::XUIControllerFactory > mxPopupMenuFactory; 87 com::sun::star::uno::Reference< com::sun::star::frame::XPopupMenuController > mxPopupMenuController; 88 com::sun::star::uno::Reference< com::sun::star::awt::XPopupMenu > mxPopupMenu; |
87 88 FixedText maWelcome; 89 Size maWelcomeSize; 90 FixedText maProduct; 91 Size maProductSize; 92 ImageButton maWriterButton; 93 ImageButton maCalcButton; 94 ImageButton maImpressButton; --- 25 unchanged lines hidden (view full) --- 120 121 Size maButtonImageSize; 122 123 bool mbInitControls; 124 sal_Int32 mnLayoutStyle; 125 svt::AcceleratorExecute* mpAccExec; 126 long mnBtnPos; 127 long mnBtnTop; | 89 90 FixedText maWelcome; 91 Size maWelcomeSize; 92 FixedText maProduct; 93 Size maProductSize; 94 ImageButton maWriterButton; 95 ImageButton maCalcButton; 96 ImageButton maImpressButton; --- 25 unchanged lines hidden (view full) --- 122 123 Size maButtonImageSize; 124 125 bool mbInitControls; 126 sal_Int32 mnLayoutStyle; 127 svt::AcceleratorExecute* mpAccExec; 128 long mnBtnPos; 129 long mnBtnTop; |
128 129 PopupMenu* mpRecentMenu; 130 std::vector< LoadRecentFile > maRecentFiles; | |
131 132 static const int nItemId_Extensions = 1; 133 static const int nItemId_Reg = 2; 134 static const int nItemId_Info = 3; 135 static const int nItemId_TplRep = 4; 136 static const int nShadowTop = 32; 137 static const int nShadowLeft = 35; 138 static const int nShadowRight = 45; --- 10 unchanged lines hidden (view full) --- 149 150 void dispatchURL( const rtl::OUString& i_rURL, 151 const rtl::OUString& i_rTarget = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "_default" ) ), 152 const com::sun::star::uno::Reference< com::sun::star::frame::XDispatchProvider >& i_xProv = com::sun::star::uno::Reference< com::sun::star::frame::XDispatchProvider >(), 153 const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >& = com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >() 154 ); 155 156 DECL_LINK( ClickHdl, Button* ); | 130 131 static const int nItemId_Extensions = 1; 132 static const int nItemId_Reg = 2; 133 static const int nItemId_Info = 3; 134 static const int nItemId_TplRep = 4; 135 static const int nShadowTop = 32; 136 static const int nShadowLeft = 35; 137 static const int nShadowRight = 45; --- 10 unchanged lines hidden (view full) --- 148 149 void dispatchURL( const rtl::OUString& i_rURL, 150 const rtl::OUString& i_rTarget = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "_default" ) ), 151 const com::sun::star::uno::Reference< com::sun::star::frame::XDispatchProvider >& i_xProv = com::sun::star::uno::Reference< com::sun::star::frame::XDispatchProvider >(), 152 const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >& = com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >() 153 ); 154 155 DECL_LINK( ClickHdl, Button* ); |
157 DECL_LINK( SelectHdl, Button* ); | |
158 DECL_LINK( ActivateHdl, Button* ); 159 DECL_LINK( ToolboxHdl, void* ); 160 161 void initControls(); 162 void initBackground(); 163 void prepareRecentFileMenu(); 164 public: 165 BackingWindow( Window* pParent ); --- 15 unchanged lines hidden --- | 156 DECL_LINK( ActivateHdl, Button* ); 157 DECL_LINK( ToolboxHdl, void* ); 158 159 void initControls(); 160 void initBackground(); 161 void prepareRecentFileMenu(); 162 public: 163 BackingWindow( Window* pParent ); --- 15 unchanged lines hidden --- |