diff options
-rw-r--r-- | xmloff/source/forms/elementexport.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/forms/propertyexport.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/forms/propertyexport.hxx | 3 |
3 files changed, 5 insertions, 4 deletions
diff --git a/xmloff/source/forms/elementexport.cxx b/xmloff/source/forms/elementexport.cxx index 4bf3e1c2c205..1acb6cc40a3a 100644 --- a/xmloff/source/forms/elementexport.cxx +++ b/xmloff/source/forms/elementexport.cxx @@ -837,7 +837,7 @@ namespace xmloff OAttributeMetaData::getDatabaseAttributeNamespace(), OAttributeMetaData::getDatabaseAttributeName( DAFlags::InputRequired ), PROPERTY_INPUT_REQUIRED, - BoolAttrFlags::DefaultFalse + BoolAttrFlags::DefaultFalse | BoolAttrFlags::DefaultVoid ); RESET_BIT( nIncludeDatabase, DAFlags::InputRequired ); } diff --git a/xmloff/source/forms/propertyexport.cxx b/xmloff/source/forms/propertyexport.cxx index 4fbf337600d4..3c6711bc1555 100644 --- a/xmloff/source/forms/propertyexport.cxx +++ b/xmloff/source/forms/propertyexport.cxx @@ -269,8 +269,8 @@ namespace xmloff // no check of the property value type: this method is allowed to be called with any integer properties // (e.g. sal_Int32, sal_uInt16 etc) - bool bDefault = (BoolAttrFlags::DefaultTrue == (BoolAttrFlags::DefaultMask & _nBooleanAttributeFlags)); - bool bDefaultVoid = (BoolAttrFlags::DefaultVoid == (BoolAttrFlags::DefaultMask & _nBooleanAttributeFlags)); + bool bDefault = (BoolAttrFlags::DefaultTrue == (BoolAttrFlags::DefaultValueMask & _nBooleanAttributeFlags)); + bool bDefaultVoid = (BoolAttrFlags::DefaultVoid == (BoolAttrFlags::DefaultVoidMask & _nBooleanAttributeFlags)); // get the value bool bCurrentValue = bDefault; diff --git a/xmloff/source/forms/propertyexport.hxx b/xmloff/source/forms/propertyexport.hxx index 2d940bf392df..a6f701a428fc 100644 --- a/xmloff/source/forms/propertyexport.hxx +++ b/xmloff/source/forms/propertyexport.hxx @@ -35,7 +35,8 @@ enum class BoolAttrFlags { DefaultFalse = 0x00, DefaultTrue = 0x01, DefaultVoid = 0x02, - DefaultMask = 0x03, + DefaultValueMask = 0x01, + DefaultVoidMask = 0x02, InverseSemantics = 0x04, }; namespace o3tl { |