Home
last modified time | relevance | path

Searched refs:pProtect (Results 1 – 19 of 19) sorted by relevance

/trunk/main/sc/source/filter/excel/
H A Dxicontent.cxx1155 auto_ptr<ScDocProtection> pProtect(new ScDocProtection); in Apply() local
1156 pProtect->setProtected(true); in Apply()
1165 pProtect->setPasswordHash(aPass, PASSHASH_XL); in Apply()
1170 pProtect->setOption(ScDocProtection::STRUCTURE, mbDocProtect); in Apply()
1171 pProtect->setOption(ScDocProtection::WINDOWS, mbWinProtect); in Apply()
1173 GetDoc().SetDocProtection(pProtect.get()); in Apply()
1260 auto_ptr<ScTableProtection> pProtect(new ScTableProtection); in Apply() local
1261 pProtect->setProtected(true); in Apply()
1271 pProtect->setPasswordHash(aPass, PASSHASH_XL); in Apply()
1277 pProtect->setOption( ScTableProtection::OBJECTS, (nOptions & 0x0001) ); in Apply()
[all …]
H A Dexcdoc.cxx122 const ScDocProtection* pProtect = self.GetDoc().GetDocProtection();
123 if (pProtect && pProtect->isProtected())
125 …aRecList.AppendNewRecord( new XclExpWindowProtection(pProtect->isOptionEnabled(ScDocProtection::WI…
126 …aRecList.AppendNewRecord( new XclExpProtection(pProtect->isOptionEnabled(ScDocProtection::STRUCTUR…
127 aRecList.AppendNewRecord( new XclExpPassHash(pProtect->getPasswordHash(PASSHASH_XL)) );
265 const ScDocProtection* pProtect = GetDoc().GetDocProtection(); in FillAsHeader() local
266 if (pProtect && pProtect->isProtected()) in FillAsHeader()
268 Add( new XclExpWindowProtection(pProtect->isOptionEnabled(ScDocProtection::WINDOWS)) ); in FillAsHeader()
269 Add( new XclExpProtection(pProtect->isOptionEnabled(ScDocProtection::STRUCTURE)) ); in FillAsHeader()
271 Add( new XclExpPassHash(pProtect->getPasswordHash(PASSHASH_XL)) ); in FillAsHeader()
/trunk/main/sc/source/ui/view/
H A Dtabvwsh3.cxx1001 ScDocProtection* pProtect = pDoc->GetDocProtection(); in Execute() local
1002 if (pProtect && pProtect->isProtected()) in Execute()
1007 if (pProtect->isProtectedWithPass()) in Execute()
1081 ScTableProtection* pProtect = pDoc->GetTabProtection(nTab); in Execute() local
1082 if (pProtect && pProtect->isProtectedWithPass()) in Execute()
1113 ScTableProtection* pProtect = pDoc->GetTabProtection(nTab); in Execute() local
1114 if (pProtect) in Execute()
1115 pDlg->SetDialogData(*pProtect); in Execute()
1153 ScTableProtection* pProtect = pDoc->GetTabProtection(nTab); in Execute() local
1154 if (pProtect && pProtect->isProtectedWithPass()) in Execute()
H A Dhdrcont.cxx661 const ScTableProtection* pProtect = pDoc->GetTabProtection(nTab); in IsSelectionAllowed() local
663 if ( pProtect && pProtect->isProtected() ) in IsSelectionAllowed()
680 bool bSelProtected = pProtect->isOptionEnabled(ScTableProtection::SELECT_LOCKED_CELLS); in IsSelectionAllowed()
681 bool bSelUnprotected = pProtect->isOptionEnabled(ScTableProtection::SELECT_UNLOCKED_CELLS); in IsSelectionAllowed()
H A Dselect.cxx326 ScTableProtection* pProtect = pDoc->GetTabProtection(nTab); in SetCursorAtCell() local
327 bool bSkipProtected = !pProtect->isOptionEnabled(ScTableProtection::SELECT_LOCKED_CELLS); in SetCursorAtCell()
328 … bool bSkipUnprotected = !pProtect->isOptionEnabled(ScTableProtection::SELECT_UNLOCKED_CELLS); in SetCursorAtCell()
H A Dgridwin.cxx2162 ScTableProtection* pProtect = pDoc->GetTabProtection( nTab ); in MouseButtonUp() local
2164 if ( pProtect && pProtect->isProtected() ) in MouseButtonUp()
2167 … bool bSkipProtected = !pProtect->isOptionEnabled(ScTableProtection::SELECT_LOCKED_CELLS); in MouseButtonUp()
2168 … bool bSkipUnprotected = !pProtect->isOptionEnabled(ScTableProtection::SELECT_UNLOCKED_CELLS); in MouseButtonUp()
2847 const ScTableProtection* pProtect = pDoc->GetTabProtection(nTab); in Command() local
2849 if ( pProtect && pProtect->isProtected() ) in Command()
2853 … bool bSelProtected = pProtect->isOptionEnabled(ScTableProtection::SELECT_LOCKED_CELLS); in Command()
2854 … bool bSelUnprotected = pProtect->isOptionEnabled(ScTableProtection::SELECT_UNLOCKED_CELLS); in Command()
H A Dtabview3.cxx963 ScTableProtection* pProtect = pDoc->GetTabProtection(nTab); in MoveCursorRel() local
964 if ( pProtect && pProtect->isProtected() ) in MoveCursorRel()
966 bSkipProtected = !pProtect->isOptionEnabled(ScTableProtection::SELECT_LOCKED_CELLS); in MoveCursorRel()
967 bSkipUnprotected = !pProtect->isOptionEnabled(ScTableProtection::SELECT_UNLOCKED_CELLS); in MoveCursorRel()
/trunk/main/sw/source/core/docnode/
H A Dsection.cxx1027 const SvxProtectItem* pProtect(0); in UpdateParent() local
1045 pProtect = &pPS->GetFmt()->GetProtect(); in UpdateParent()
1053 pProtect = &GetProtect(); in UpdateParent()
1060 if (!pProtect->IsCntntProtected() != in UpdateParent()
1063 pLast->ModifyNotification( (SfxPoolItem*)pProtect, in UpdateParent()
1064 (SfxPoolItem*)pProtect ); in UpdateParent()
1091 pProtect = &pPS->GetFmt()->GetProtect(); in UpdateParent()
1099 pProtect = &GetProtect(); in UpdateParent()
/trunk/main/sc/source/ui/vba/
H A Dvbaworksheet.cxx274 ScTableProtection* pProtect = pDoc->GetTabProtection(nTab); in getEnableSelection() local
277 if( pProtect ) in getEnableSelection()
279 bLockedCells = pProtect->isOptionEnabled(ScTableProtection::SELECT_LOCKED_CELLS); in getEnableSelection()
280 bUnlockedCells = pProtect->isOptionEnabled(ScTableProtection::SELECT_UNLOCKED_CELLS); in getEnableSelection()
312 ScTableProtection* pProtect = pDoc->GetTabProtection(nTab); in setEnableSelection() local
325 if( pProtect ) in setEnableSelection()
327 pProtect->setOption( ScTableProtection::SELECT_LOCKED_CELLS, bLockedCells ); in setEnableSelection()
328 pProtect->setOption( ScTableProtection::SELECT_UNLOCKED_CELLS, bUnlockedCells ); in setEnableSelection()
/trunk/main/sc/source/filter/xml/
H A Dxmlsubti.cxx658 auto_ptr<ScTableProtection> pProtect(new ScTableProtection); in DeleteTable() local
659 pProtect->setProtected(bProtection); in DeleteTable()
660 pProtect->setPasswordHash(aPass, PASSHASH_OOO); in DeleteTable()
661 rImport.GetDocument()->SetTabProtection(static_cast<SCTAB>(nCurrentSheet), pProtect.get()); in DeleteTable()
H A Dxmlexprt.cxx1730 … ScTableProtection* pProtect = pDoc->GetTabProtection(static_cast<SCTAB>(nTable)); in _ExportContent() local
1731 if (pProtect) in _ExportContent()
1732 … SvXMLUnitConverter::encodeBase64(aBuffer, pProtect->getPasswordHash(PASSHASH_OOO)); in _ExportContent()
/trunk/main/sc/source/ui/docshell/
H A Ddocfunc.cxx3426 ScTableProtection* pProtect = pDoc->GetTabProtection(nTab); in ProtectSheet() local
3427 DBG_ASSERT(pProtect, "ScDocFunc::Unprotect: ScTableProtection pointer is NULL!"); in ProtectSheet()
3428 if (pProtect) in ProtectSheet()
3430 ::std::auto_ptr<ScTableProtection> p(new ScTableProtection(*pProtect)); in ProtectSheet()
3456 ScDocProtection* pProtect = pDoc->GetDocProtection(); in Protect() local
3457 DBG_ASSERT(pProtect, "ScDocFunc::Unprotect: ScDocProtection pointer is NULL!"); in Protect()
3458 if (pProtect) in Protect()
3460 ::std::auto_ptr<ScDocProtection> p(new ScDocProtection(*pProtect)); in Protect()
3478 ScTableProtection* pProtect = pDoc->GetTabProtection(nTab); in Protect() local
3480 if (pProtect) in Protect()
[all …]
/trunk/main/sc/source/core/data/
H A Ddocumen3.cxx1814 void ScDocument::SetDocProtection(const ScDocProtection* pProtect) in SetDocProtection() argument
1816 if (pProtect) in SetDocProtection()
1817 pDocProtection.reset(new ScDocProtection(*pProtect)); in SetDocProtection()
1850 void ScDocument::SetTabProtection(SCTAB nTab, const ScTableProtection* pProtect) in SetTabProtection() argument
1855 pTab[nTab]->SetProtection(pProtect); in SetTabProtection()
H A Dtable5.cxx1029 void ScTable::SetProtection(const ScTableProtection* pProtect) in SetProtection() argument
1031 if (pProtect) in SetProtection()
1032 pTabProtection.reset(new ScTableProtection(*pProtect)); in SetProtection()
H A Dattarray.cxx1297 const ScProtectionAttr* pProtect = in HasAttrib() local
1299 if ( pProtect->GetProtection() || pProtect->GetHideCell() ) in HasAttrib()
/trunk/main/sc/source/filter/xcl97/
H A Dxcl97rec.cxx1111 ScTableProtection* pProtect = rRoot.GetDoc().GetTabProtection(nTab); in XclExpSheetProtectOptions() local
1112 if (!pProtect) in XclExpSheetProtectOptions()
1117 if ( pProtect->isOptionEnabled(aTable[i].eOption) ) in XclExpSheetProtectOptions()
/trunk/main/sw/source/filter/ww8/
H A Drtfexport.cxx554 const SvxProtectItem* pProtect = (const SvxProtectItem*)rPool.GetItem2(RES_PROTECT, n); in ExportDocument_Impl() local
555 if (pProtect && pProtect->IsCntntProtected()) in ExportDocument_Impl()
/trunk/main/sc/inc/
H A Ddocument.hxx578 SC_DLLPUBLIC void SetDocProtection(const ScDocProtection* pProtect);
583 SC_DLLPUBLIC void SetTabProtection(SCTAB nTab, const ScTableProtection* pProtect);
H A Dtable.hxx283 void SetProtection(const ScTableProtection* pProtect);

Completed in 204 milliseconds