Issue 31738

Summary: Insert Graphic Dialog Preview Misbehavior
Product: General Reporter: mjneedles <matt>
Component: uiAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P4 CC: issues
Version: 680m47   
Target Milestone: AOO Later   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
the defect Dialog
none
The same Dialog after deselecting and selecting preview none

Description mjneedles 2004-07-19 22:25:27 UTC
Do the following:

In an HTML document, Insert->from File, and check on the "preview" checkbox.

If it was already checked, the preview pane will not be open, even if you click
on a graphic file in the file pane.  You have to uncheck the Preview box and
re-check it to get the preview pane to open.
Comment 1 mci 2004-07-20 13:20:13 UTC
Hi mjneedles,

thanks for using and supporting OpenOffice.org...

This problem only appears only in Writer/Web while inserting a graphic
(Insert->FromFile) with pre-selected  preview...

reassigned to 
Comment 2 mci 2004-07-20 13:20:46 UTC
Hi pb,

I think this is something for you...
Comment 3 mci 2004-07-20 13:31:57 UTC
Created attachment 16613 [details]
the defect Dialog
Comment 4 mci 2004-07-20 13:32:30 UTC
Created attachment 16614 [details]
The same Dialog after deselecting and selecting preview
Comment 5 mci 2004-07-20 13:34:35 UTC
Hi pb,

if this is nothing for you please reassigne dthi to the responsible developer...
Thanks...
Comment 6 pb 2004-07-21 08:00:01 UTC
pb -> tra: this only happens with the system dialog
Comment 7 tino.rachui 2004-07-29 07:06:16 UTC
Just happens with WriterWeb, all other applications work well. It's only
apparent in the system file open dialog because our own dialog is not able to
hide the preview. The XFilePreview interface has a method 'setShowState' which
displays or hides the preview obviously the client of the file open dialog only
sets the value of the 'Preview' checkbox but doe not call 'setShowState'.
Comment 8 michael.brauer 2004-07-29 08:37:01 UTC
MIB -> OS
Comment 9 Oliver Specht 2004-09-29 12:18:00 UTC
OS->TRA: Your assumption is wrong. The dialog is used in the same way in Writer
Web as in the Writer. The difference is that in WriterWeb the Link-Checkbox is
checked and set to disabled. This seems to break the preview function of the
dialog. 
See sw/source/ui/shells/grfshex.cxx around line 183

Reference < XFilePickerControlAccess > xCtrlAcc(xFP, UNO_QUERY);
if(nHtmlMode & HTMLMODE_ON)
	{
        sal_Bool bTrue = sal_True;
        Any aVal(&bTrue, ::getBooleanCppuType());
        xCtrlAcc->setValue( ExtendedFilePickerElementIds::CHECKBOX_LINK, 0, aVal);
        xCtrlAcc->enableControl( ExtendedFilePickerElementIds::CHECKBOX_LINK,
sal_False);
    }


Comment 10 tino.rachui 2004-09-30 07:44:16 UTC
Delayed because of resouce limitations.
Comment 11 tino.rachui 2005-06-13 12:41:51 UTC
Reassigned for change of responsibilities sake.
Comment 12 kai.sommerfeld 2009-10-16 12:29:32 UTC
cd: Please take over. Windows file picker issue?