INTEGRATION: CWS sb88 (1.23.10); FILE MERGED
2008/06/03 15:29:52 sb 1.23.10.1: #i89553 applied patch by cmc
This commit is contained in:
parent
fb503f7425
commit
9cb4ca0132
@ -7,7 +7,7 @@
|
||||
* OpenOffice.org - a multi-platform office productivity suite
|
||||
*
|
||||
* $RCSfile: cmtreemodel.cxx,v $
|
||||
* $Revision: 1.23 $
|
||||
* $Revision: 1.24 $
|
||||
*
|
||||
* This file is part of OpenOffice.org.
|
||||
*
|
||||
@ -68,14 +68,6 @@ bool isLocalizedValueSet(SubtreeChange const& _aSubtree)
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
bool isValueSet(ISubtree const& _aSubtree)
|
||||
{
|
||||
if ( !_aSubtree.isSetNode()) return false;
|
||||
if ( !_aSubtree.getElementTemplateModule().equals(TEMPLATE_MODULE_NATIVE_VALUE) ) return false;
|
||||
return true;
|
||||
}
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
bool isValueSet(SubtreeChange const& _aSubtree)
|
||||
{
|
||||
if ( !_aSubtree.isSetNodeChange()) return false;
|
||||
|
@ -7,7 +7,7 @@
|
||||
* OpenOffice.org - a multi-platform office productivity suite
|
||||
*
|
||||
* $RCSfile: treeactions.cxx,v $
|
||||
* $Revision: 1.23 $
|
||||
* $Revision: 1.24 $
|
||||
*
|
||||
* This file is part of OpenOffice.org.
|
||||
*
|
||||
@ -40,25 +40,6 @@
|
||||
//..........................................................................
|
||||
namespace configmgr
|
||||
{
|
||||
// -------------------------------------------------------------------------
|
||||
namespace
|
||||
{
|
||||
struct ForceWritable : NodeModification
|
||||
{
|
||||
void handle(ValueNode& _rValue) { implForceWritable(_rValue); }
|
||||
void handle(ISubtree& _rSubtree) { implForceWritable(_rSubtree); applyToChildren(_rSubtree); }
|
||||
|
||||
void implForceWritable(INode& _rNode) { _rNode.forceReadonlyToFinalized(); }
|
||||
};
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
void forceWritable(INode& _rNode)
|
||||
{
|
||||
ForceWritable aVisitor;
|
||||
|
||||
aVisitor.applyToNode(_rNode);
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//= OChangeActionCounter
|
||||
|
Loading…
x
Reference in New Issue
Block a user