To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=88878





------- Additional comments from npo...@openoffice.org Thu May 21 22:19:06 
+0000 2009 -------
Some notes for testing, just some ideas that can be used with the test documents
attached to this document

* all-form-controls.ods

This document contains all ( afaik ) form controls in openoffice, additionally
there are 2 buttons, one "hide" ( makes all controls invisible ) and the other
"sow" makes all the controls visible.

  a) test initial state
when the document is loaded all controls are visible, pressing the "hide" btton
should hide all the controls.
  b) test control state after a repaint 
force a repaint ( close the window, minimize etc. ) controls should still be
invisible. 
  c) test change of view ( ensure model preserves the visibilty state )
switch sheets ( e.g. switch to sheet 2, then back to sheet 1 ) the controls
should still be invisible
  d) test visibility in design mode.
If the controls obeyed their model regarding visibility in design mode it would
be hard to find invisible controls on the document to modify them ;-) switch to
design mode, all controls should become visible.
  e) test the property browser for form controls
while still in design mode set the visibility attribute for a couple of controls
to be visible ( note: those controls ), turn off design mode, the controls you
set to be visible should have remained visible, the others controls should be
ininvisible

the above is a basic set of steps, just for illustration of what should be
tested, with more imagination more combinations etc. can be tested

* odf-some-invisible-persisted.ods

This document tests the persisted state of some controls

 a) open the document, 
 b) ensure that the only controls visible are those in the red boxes
 c) press the toggle button, the previously invisible controls ( in the blue
boxes ) should become visible and vice-versa
 d) reload the document, state should be as in step b)

* hiddenbutton.xls
import/export of visibility attribute from MSO form documents
 a) open the excel document, it contains 2 push buttons, 1 is visible, the other
invisible, note only "CommandButton1" is visible
 b) enter design mode, you should see command button 2
 c) in design mode change CommandButton1's visible state to true, export the
document as hiddenbutton-modified.xls
 d) reload document, see that the 2 buttons are visible
 e) load the document in MSO Excel and verify it is displayed as expected

Dialogs/Userforms

* DialogStepVistest.ods

Tests use visibilty attributes on controls with basic dialogs

 a) press the button, a Dialog will launch
 b) verify basic behaviour, each command button is assigned a different step
value,  the topmost button has a step value of 1, the next 2, and the last one
3. Dialogs display controls that have a step value of 0 or controls that have a
step value equal to the present value of the step attribute of the dialog
itself. The dialogs step value can be modified using the scroll bar, the dialogs
step value is displayed in the numberic field.

  expected behaviour: 
   Dialog Step
     0          all 3 buttons displayed
     1          top button displayed
     2          middle button displayed
     3          bottom button displayed

 c) while the dialog is executing, clicking the toggle button changes the
visible state of the button associated with that step, e.g if you press the
toggle button when the dialog step = 1 you will notice that the button on step 1
disappears. Setting the scroll bar to zero you will notice that only the bottom
2 buttons are visibile
 d) Check after reload, e.g. dismiss the dialog and press the button again to
relaunch. state should be as it was in b) again
 e) test attribute persistence, 
  o use the script browser to edit the dialog
  o when the dialog is opened, select the topmost button & change its visibilty
state to false
  o select another control, one that is present on all steps e.g. the "toggle
Numeric field" button and change its visibility state to false. 
  o Save the document as DialogStepVistest-modified.ods,
  o Close & reload document, launch dialog from the button
  o ensure that at step 0, the bottom 2 buttons are displayed, and that at all
steps the " toggle Numeric.."
 f) design mode,
    Open the dialog editor, notice all invisible controls ( at the current
dialog step ) are visible, changing the step should show any invisible controls
on that step value, e.g. setting the dialog step to 1 and the top button should
still be visible

* UserformVisibility.xls
 test userform import

 a) load the document 
 b) insert the following code ( the vba code obviously will not work )
Sub Dialog1Show
DialogLibraries.LoadLibrary( "Standard" )
oDialog1 = CreateUnoDialog( DialogLibraries.Standard.UserForm1 )
oDialog1.Execute()
End Sub
 c) after lauching the document the opened dialog should contain just a button.
open the IDE and in design mode you should see checkbox ( imported in invisible
mode )
 d) open the document in MSO and verify the checkbox is also invisible



---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@gsl.openoffice.org
For additional commands, e-mail: issues-h...@gsl.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to