navigatr.hxx (67e470da) navigatr.hxx (62024513)
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

--- 74 unchanged lines hidden (view full) ---

83};
84
85//------------------------------------------------------------------------
86
87class SdNavigatorWin
88 : public Window
89{
90public:
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

--- 74 unchanged lines hidden (view full) ---

83};
84
85//------------------------------------------------------------------------
86
87class SdNavigatorWin
88 : public Window
89{
90public:
91 typedef ::boost::function<void(void)> UpdateRequestFunctor;
92
93 /** Create a new instance of the navigator.
94 @param bUseActiveUpdate
95 When <TRUE/>, the default, then the SdNavigatorWin object
96 will make a SID_NAVIGATOR_INIT call whenever it thinks an
97 update is necessary. When <FALSE/> the navigator will
98 rely on others to trigger updates.
99 */
91 SdNavigatorWin(
92 ::Window* pParent,
93 ::sd::NavigatorChildWindow* pChildWinContext,
94 const SdResId& rSdResId,
100 SdNavigatorWin(
101 ::Window* pParent,
102 ::sd::NavigatorChildWindow* pChildWinContext,
103 const SdResId& rSdResId,
95 SfxBindings* pBindings );
104 SfxBindings* pBindings,
105 const UpdateRequestFunctor& rUpdateRequest);
96 virtual ~SdNavigatorWin();
97
98 virtual void KeyInput( const KeyEvent& rKEvt );
99
100 void InitTreeLB( const SdDrawDocument* pDoc );
101 void RefreshDocumentLB( const String* pDocName = NULL );
102
103 sal_Bool InsertFile(const String& rFileName);

--- 28 unchanged lines hidden (view full) ---

132 SdPageNameControllerItem* mpPageNameCtrlItem;
133
134 ImageList maImageList;
135 ImageList maImageListH;
136
137 /** This flag controls whether all shapes or only the named shapes are
138 shown.
139 */
106 virtual ~SdNavigatorWin();
107
108 virtual void KeyInput( const KeyEvent& rKEvt );
109
110 void InitTreeLB( const SdDrawDocument* pDoc );
111 void RefreshDocumentLB( const String* pDocName = NULL );
112
113 sal_Bool InsertFile(const String& rFileName);

--- 28 unchanged lines hidden (view full) ---

142 SdPageNameControllerItem* mpPageNameCtrlItem;
143
144 ImageList maImageList;
145 ImageList maImageListH;
146
147 /** This flag controls whether all shapes or only the named shapes are
148 shown.
149 */
140 bool mbShowAllShapes;
150 // bool mbShowAllShapes;
141
142 sal_uInt16 GetDragTypeSdResId( NavigatorDragType eDT, sal_Bool bImage = sal_False );
143 NavDocInfo* GetDocInfo();
144
145 DECL_LINK( GetFocusObjectsHdl, void * );
146 DECL_LINK( SelectToolboxHdl, void * );
147 DECL_LINK( ClickToolboxHdl, ToolBox * );
148 DECL_LINK( DropdownClickToolBoxHdl, ToolBox * );

--- 15 unchanged lines hidden (view full) ---

164|*
165|* ControllerItem fuer Navigator
166|*
167\************************************************************************/
168
169class SdNavigatorControllerItem : public SfxControllerItem
170{
171public:
151
152 sal_uInt16 GetDragTypeSdResId( NavigatorDragType eDT, sal_Bool bImage = sal_False );
153 NavDocInfo* GetDocInfo();
154
155 DECL_LINK( GetFocusObjectsHdl, void * );
156 DECL_LINK( SelectToolboxHdl, void * );
157 DECL_LINK( ClickToolboxHdl, ToolBox * );
158 DECL_LINK( DropdownClickToolBoxHdl, ToolBox * );

--- 15 unchanged lines hidden (view full) ---

174|*
175|* ControllerItem fuer Navigator
176|*
177\************************************************************************/
178
179class SdNavigatorControllerItem : public SfxControllerItem
180{
181public:
172 SdNavigatorControllerItem( sal_uInt16, SdNavigatorWin*, SfxBindings* );
182 SdNavigatorControllerItem( sal_uInt16, SdNavigatorWin*, SfxBindings*,
183 const SdNavigatorWin::UpdateRequestFunctor& rUpdateRequest);
173
174protected:
175 virtual void StateChanged( sal_uInt16 nSId, SfxItemState eState,
176 const SfxPoolItem* pState );
177
178private:
179 SdNavigatorWin* pNavigatorWin;
184
185protected:
186 virtual void StateChanged( sal_uInt16 nSId, SfxItemState eState,
187 const SfxPoolItem* pState );
188
189private:
190 SdNavigatorWin* pNavigatorWin;
191 const SdNavigatorWin::UpdateRequestFunctor maUpdateRequest;
180};
181
182
183
184/*************************************************************************
185|*
186|* ControllerItem fuer Navigator zum Anzeigen der Seite in der TreeLB
187|*
188\************************************************************************/
189
190class SdPageNameControllerItem : public SfxControllerItem
191{
192public:
192};
193
194
195
196/*************************************************************************
197|*
198|* ControllerItem fuer Navigator zum Anzeigen der Seite in der TreeLB
199|*
200\************************************************************************/
201
202class SdPageNameControllerItem : public SfxControllerItem
203{
204public:
193 SdPageNameControllerItem( sal_uInt16, SdNavigatorWin*, SfxBindings* );
205 SdPageNameControllerItem( sal_uInt16, SdNavigatorWin*, SfxBindings*,
206 const SdNavigatorWin::UpdateRequestFunctor& rUpdateRequest);
194
195protected:
196 virtual void StateChanged( sal_uInt16 nSId, SfxItemState eState,
197 const SfxPoolItem* pState );
198
199private:
200 SdNavigatorWin* pNavigatorWin;
207
208protected:
209 virtual void StateChanged( sal_uInt16 nSId, SfxItemState eState,
210 const SfxPoolItem* pState );
211
212private:
213 SdNavigatorWin* pNavigatorWin;
214 const SdNavigatorWin::UpdateRequestFunctor maUpdateRequest;
201};
202
203#endif
215};
216
217#endif