Hello Andreas,

I have written PrintOptTest.cxx and used it to test the old and new
SvtPrintOptions_Impl.
1) I tested the new ConfigItem, and found :
In the new SvtPrintOptions_Impl, there are all the public method that
does not throw errors.
just the result I expected.
2) I tested the old ConfigItem, and found a different testing result
with the new ConfigItem:
In the old SvtPrintOptions_Impl, these Set**() methods will not throw
errors, this is what I expected;
these Get***() methods throw errors. then, I analysed the following code
in PrintOptTest.cxx :

bNewValue = bOldValue = FALSE;
bOldValue = impl_IsConvertToGreyscales(); // read the configitem file
directly
bNewValue = !bOldValue; // set bNewValue != bOldValue
impl_SetConvertToGreyscales(bNewValue); // set the new value in
configitem file directly
bNewValue = pPrintOpt->IsConvertToGreyscales(); // read the new value
from local cache

The output shows that the bOldValue is unequal to the bNewValue,
which indicates that the cache has been updated in the

impl_SetConvertToGreyscales(bNewValue);

statement. This is obviously not the result we expected. Could you help
me analyse this?

Best regard
Shizhoubo

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to