tabvwshe.cxx (b3f79822) tabvwshe.cxx (0deba7fb)
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

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

43
44#include "tabvwsh.hxx"
45#include "sc.hrc"
46#include "scmod.hxx"
47#include "impex.hxx"
48#include "editsh.hxx"
49#include "dociter.hxx"
50#include "inputhdl.hxx"
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

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

43
44#include "tabvwsh.hxx"
45#include "sc.hrc"
46#include "scmod.hxx"
47#include "impex.hxx"
48#include "editsh.hxx"
49#include "dociter.hxx"
50#include "inputhdl.hxx"
51//IAccessibility2 Implementation 2009-----
52#include <svx/srchdlg.hxx>
53//-----IAccessibility2 Implementation 2009
51#include "document.hxx"
52
53//==================================================================
54
55String __EXPORT ScTabViewShell::GetSelectionText( sal_Bool bWholeWord )
56{
57 String aStrSelection;
58

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

249 {
250 if ( pReqArgs &&
251 SFX_ITEM_SET == pReqArgs->GetItemState(SID_SEARCH_ITEM, sal_False, &pItem) )
252 {
253 DBG_ASSERT( pItem->ISA(SvxSearchItem), "falsches Item" );
254 const SvxSearchItem* pSearchItem = (const SvxSearchItem*) pItem;
255
256 ScGlobal::SetSearchItem( *pSearchItem );
54#include "document.hxx"
55
56//==================================================================
57
58String __EXPORT ScTabViewShell::GetSelectionText( sal_Bool bWholeWord )
59{
60 String aStrSelection;
61

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

252 {
253 if ( pReqArgs &&
254 SFX_ITEM_SET == pReqArgs->GetItemState(SID_SEARCH_ITEM, sal_False, &pItem) )
255 {
256 DBG_ASSERT( pItem->ISA(SvxSearchItem), "falsches Item" );
257 const SvxSearchItem* pSearchItem = (const SvxSearchItem*) pItem;
258
259 ScGlobal::SetSearchItem( *pSearchItem );
257 SearchAndReplace( pSearchItem, sal_True, rReq.IsAPI() );
260 //IAccessibility2 Implementation 2009-----
261 //SearchAndReplace( pSearchItem, sal_True, rReq.IsAPI() );
262 sal_Bool bSuccess = SearchAndReplace( pSearchItem, sal_True, rReq.IsAPI() );
263 if ( Application::IsAccessibilityEnabled() )
264 {
265 SvxSearchDialog* pSearchDlg =
266 ((SvxSearchDialog*)(SfxViewFrame::Current()->GetChildWindow(
267 SvxSearchDialogWrapper::GetChildWindowId())->GetWindow()));
268 if( pSearchDlg )
269 {
270 ScTabView* pTabView = GetViewData()->GetView();
271 if( pTabView )
272 {
273 Window* pWin = pTabView->GetActiveWin();
274 if( pWin )
275 {
276 pSearchDlg->SetDocWin( pWin );
277 pSearchDlg->SetSrchFlag( bSuccess );
278 }
279 }
280 }
281 }
282 //-----IAccessibility2 Implementation 2009
258 rReq.Done();
259 }
260 }
261 break;
262
263 case SID_SEARCH_ITEM:
264 if (pReqArgs && SFX_ITEM_SET ==
265 pReqArgs->GetItemState(SID_SEARCH_ITEM, sal_False, &pItem))

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

301
302 // Request ausfuehren (dabei wird das SearchItem gespeichert)
303
304 aSearchItem.SetWhich(SID_SEARCH_ITEM);
305 GetViewData()->GetDispatcher().Execute( FID_SEARCH_NOW,
306 rReq.IsAPI() ? SFX_CALLMODE_API|SFX_CALLMODE_SYNCHRON :
307 SFX_CALLMODE_STANDARD,
308 &aSearchItem, 0L );
283 rReq.Done();
284 }
285 }
286 break;
287
288 case SID_SEARCH_ITEM:
289 if (pReqArgs && SFX_ITEM_SET ==
290 pReqArgs->GetItemState(SID_SEARCH_ITEM, sal_False, &pItem))

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

326
327 // Request ausfuehren (dabei wird das SearchItem gespeichert)
328
329 aSearchItem.SetWhich(SID_SEARCH_ITEM);
330 GetViewData()->GetDispatcher().Execute( FID_SEARCH_NOW,
331 rReq.IsAPI() ? SFX_CALLMODE_API|SFX_CALLMODE_SYNCHRON :
332 SFX_CALLMODE_STANDARD,
333 &aSearchItem, 0L );
334 //IAccessibility2 Implementation 2009-----
335 if ( Application::IsAccessibilityEnabled() )
336 {
337 SvxSearchDialog* pSearchDlg =
338 ((SvxSearchDialog*)(SfxViewFrame::Current()->GetChildWindow(
339 SvxSearchDialogWrapper::GetChildWindowId())->GetWindow()));
340 if( pSearchDlg )
341 {
342 ScTabView* pTabView = GetViewData()->GetView();
343 if( pTabView )
344 {
345 Window* pWin = pTabView->GetActiveWin();
346 if( pWin )
347 {
348 pSearchDlg->SetDocWin( pWin );
349 pSearchDlg->SetSrchFlag();
350 }
351 }
352 }
353 }
354 //-----IAccessibility2 Implementation 2009
309 }
310 else
311 {
312 GetViewData()->GetDispatcher().Execute(
313 SID_SEARCH_DLG, SFX_CALLMODE_ASYNCHRON|SFX_CALLMODE_RECORD );
314 }
315 }
316 break;

--- 23 unchanged lines hidden ---
355 }
356 else
357 {
358 GetViewData()->GetDispatcher().Execute(
359 SID_SEARCH_DLG, SFX_CALLMODE_ASYNCHRON|SFX_CALLMODE_RECORD );
360 }
361 }
362 break;

--- 23 unchanged lines hidden ---