docsh4.cxx (c7be74b1) docsh4.cxx (9ecfe28e)
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

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

62#include <svx/fmshell.hxx>
63#include <svtools/xwindowitem.hxx>
64#include <sfx2/passwd.hxx>
65#include <sfx2/filedlghelper.hxx>
66#include <sfx2/docinsert.hxx>
67#include <svl/PasswordHelper.hxx>
68#include <svl/documentlockfile.hxx>
69#include <svl/sharecontrolfile.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

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

62#include <svx/fmshell.hxx>
63#include <svtools/xwindowitem.hxx>
64#include <sfx2/passwd.hxx>
65#include <sfx2/filedlghelper.hxx>
66#include <sfx2/docinsert.hxx>
67#include <svl/PasswordHelper.hxx>
68#include <svl/documentlockfile.hxx>
69#include <svl/sharecontrolfile.hxx>
70#include <unotools/securityoptions.hxx>
70
71#include <comphelper/processfactory.hxx>
72#include "docuno.hxx"
73
74#include <com/sun/star/sdbc/XResultSet.hpp>
75#include "docsh.hxx"
76#include "docshimp.hxx"
77#include "docfunc.hxx"

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

447 if(nSet==LM_UNKNOWN)
448 {
449 ScAppOptions aAppOptions=SC_MOD()->GetAppOptions();
450 nSet=aAppOptions.GetLinkMode();
451 }
452
453 if (nCanUpdate == com::sun::star::document::UpdateDocMode::NO_UPDATE)
454 nSet = LM_NEVER;
71
72#include <comphelper/processfactory.hxx>
73#include "docuno.hxx"
74
75#include <com/sun/star/sdbc/XResultSet.hpp>
76#include "docsh.hxx"
77#include "docshimp.hxx"
78#include "docfunc.hxx"

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

448 if(nSet==LM_UNKNOWN)
449 {
450 ScAppOptions aAppOptions=SC_MOD()->GetAppOptions();
451 nSet=aAppOptions.GetLinkMode();
452 }
453
454 if (nCanUpdate == com::sun::star::document::UpdateDocMode::NO_UPDATE)
455 nSet = LM_NEVER;
455 else if (nCanUpdate == com::sun::star::document::UpdateDocMode::QUIET_UPDATE &&
456 nSet == LM_ON_DEMAND)
457 nSet = LM_NEVER;
458 else if (nCanUpdate == com::sun::star::document::UpdateDocMode::FULL_UPDATE)
459 nSet = LM_ALWAYS;
460
456 else if (nCanUpdate == com::sun::star::document::UpdateDocMode::FULL_UPDATE)
457 nSet = LM_ALWAYS;
458
459 if (nSet == LM_ALWAYS && !(SvtSecurityOptions().GetMacroSecurityLevel() == 0))
460 nSet = LM_ON_DEMAND;
461 if (nCanUpdate == com::sun::star::document::UpdateDocMode::QUIET_UPDATE &&
462 nSet == LM_ON_DEMAND)
463 nSet = LM_NEVER;
464
461 if(nSet==LM_ON_DEMAND)
462 {
463 QueryBox aBox( GetActiveDialogParent(), WinBits(WB_YES_NO | WB_DEF_YES),
464 ScGlobal::GetRscString(STR_RELOAD_TABLES) );
465
466 nDlgRet=aBox.Execute();
467 }
468

--- 1861 unchanged lines hidden ---
465 if(nSet==LM_ON_DEMAND)
466 {
467 QueryBox aBox( GetActiveDialogParent(), WinBits(WB_YES_NO | WB_DEF_YES),
468 ScGlobal::GetRscString(STR_RELOAD_TABLES) );
469
470 nDlgRet=aBox.Execute();
471 }
472

--- 1861 unchanged lines hidden ---