Lines Matching +full:- +full:- +full:-

11  *   http://www.apache.org/licenses/LICENSE-2.0
27 //------------------------------------------------------------------------
29 //------------------------------------------------------------------------
52 //------------------------------------------------------------------------
54 //------------------------------------------------------------------------
66 //-------------------------------------------------------------------------
68 //-------------------------------------------------------------------------
87 //-------------------------------------------------------------------------
89 //-------------------------------------------------------------------------
101 m_CustomControls(m_CustomControlFactory->CreateCustomControlContainer()), in CWinFileOpenImpl()
111 //------------------------------------------------------------------------
113 //------------------------------------------------------------------------
121 //------------------------------------------------------------------------
123 //------------------------------------------------------------------------
143 if ( aSysDirectory.lastIndexOf(BACKSLASH) != (aSysDirectory.getLength() - 1)) in setDisplayDirectory()
151 //------------------------------------------------------------------------
153 //------------------------------------------------------------------------
157 return m_FilePickerState->getDisplayDirectory(this); in getDisplayDirectory()
160 //-----------------------------------------------------------------------------------------
162 //-----------------------------------------------------------------------------------------
172 // appear in the file-name-box and set in setDefaultName()
177 //-----------------------------------------------------------------------------------------
183 //-----------------------------------------------------------------------------------------
188 return m_FilePickerState->getFiles(this); in getFiles()
191 //-----------------------------------------------------------------------------------------
193 //-----------------------------------------------------------------------------------------
211 //-----------------------------------------------------------------------------------------
215 //-----------------------------------------------------------------------------------------
220 sal_Bool bRet = m_filterContainer->addFilter(aTitle, aFilter); in appendFilter()
238 //-----------------------------------------------------------------------------------------
240 //-----------------------------------------------------------------------------------------
245 sal_Int32 filterPos = m_filterContainer->getFilterPos(aTitle); in setCurrentFilter()
256 //-----------------------------------------------------------------------------------------
258 //-----------------------------------------------------------------------------------------
268 if (!m_filterContainer->getFilter(nIndex - 1, currentFilter)) { in getCurrentFilter()
276 //-----------------------------------------------------------------------------------------
278 //-----------------------------------------------------------------------------------------
282 m_filterContainer->addFilter(FILTER_SEPARATOR, ALL_FILES_WILDCARD, ALLOW_DUPLICATES); in appendFilterGroupSeparator()
285 //-----------------------------------------------------------------------------------------
287 //-----------------------------------------------------------------------------------------
303 if (m_filterContainer->numFilter() > 0) in appendFilterGroup()
315 // #i90917: Due to a different feature set for the system-dependent file pickers
332 m_FilePickerState->setValue(aControlId, aControlAction, aValue); in setValue()
335 //-----------------------------------------------------------------------------------------
338 //-----------------------------------------------------------------------------------------
345 return m_FilePickerState->getValue(aControlId, aControlAction); in getValue()
350 //-----------------------------------------------------------------------------------------
352 //-----------------------------------------------------------------------------------------
359 m_FilePickerState->enableControl(ControlID, bEnable); in enableControl()
362 //-----------------------------------------------------------------------------------------
364 //-----------------------------------------------------------------------------------------
371 m_FilePickerState->setLabel(aControlId, aLabel); in setLabel()
374 //-----------------------------------------------------------------------------------------
376 //-----------------------------------------------------------------------------------------
383 return m_FilePickerState->getLabel(aControlId); in getLabel()
388 //-----------------------------------------------------------------------------------------
390 //-----------------------------------------------------------------------------------------
395 return m_Preview->getSupportedImageFormats(); in getSupportedImageFormats()
398 //-----------------------------------------------------------------------------------------
400 //-----------------------------------------------------------------------------------------
405 return m_Preview->getTargetColorDepth(); in getTargetColorDepth()
408 //-----------------------------------------------------------------------------------------
410 //-----------------------------------------------------------------------------------------
415 return m_Preview->getAvailableWidth(); in getAvailableWidth()
418 //-----------------------------------------------------------------------------------------
420 //-----------------------------------------------------------------------------------------
425 return m_Preview->getAvailableHeight(); in getAvailableHeight()
428 //-----------------------------------------------------------------------------------------
430 //-----------------------------------------------------------------------------------------
435 m_Preview->setImage(aImageFormat,aImage); in setImage()
438 //-----------------------------------------------------------------------------------------
440 //-----------------------------------------------------------------------------------------
445 return m_Preview->setShowState(bShowState); in setShowState()
448 //-----------------------------------------------------------------------------------------
450 //-----------------------------------------------------------------------------------------
455 return m_Preview->getShowState(); in getShowState()
458 //-----------------------------------------------------------------------------------------
460 //-----------------------------------------------------------------------------------------
476 //-----------------------------------------------------------------------------------------
478 //-----------------------------------------------------------------------------------------
493 //-----------------------------------------------------------------------------------------
495 //-----------------------------------------------------------------------------------------
499 return ((lphi->iCtrlId != IDOK) && (lphi->iCtrlId != IDCANCEL) && (lphi->iCtrlId < ctlFirst)); in IsCustomControlHelpRequested()
502 //-----------------------------------------------------------------------------------------
506 //-----------------------------------------------------------------------------------------
521 if (pImpl->IsCustomControlHelpRequested(lphi)) in SubClassFunc()
522 pImpl->onCustomControlHelpRequest(lphi); in SubClassFunc()
525 reinterpret_cast<WNDPROC>(pImpl->m_pfnOldDlgProc), in SubClassFunc()
532 reinterpret_cast<WNDPROC>(pImpl->m_pfnOldDlgProc), in SubClassFunc()
535 pImpl->onWMSize(); in SubClassFunc()
540 reinterpret_cast<WNDPROC>(pImpl->m_pfnOldDlgProc), in SubClassFunc()
543 pImpl->onWMWindowPosChanged(); in SubClassFunc()
548 reinterpret_cast<WNDPROC>(pImpl->m_pfnOldDlgProc), in SubClassFunc()
551 pImpl->onWMShow((sal_Bool)wParam); in SubClassFunc()
557 reinterpret_cast<LONG>(pImpl->m_pfnOldDlgProc)); in SubClassFunc()
560 reinterpret_cast<WNDPROC>(pImpl->m_pfnOldDlgProc), in SubClassFunc()
566 reinterpret_cast<WNDPROC>(pImpl->m_pfnOldDlgProc), in SubClassFunc()
575 //-----------------------------------------------------------------
577 //-----------------------------------------------------------------
581 //----------------------------------------- in InitControlLabel()
583 //----------------------------------------- in InitControlLabel()
591 //-----------------------------------------------------------------
603 //-----------------------------------------------------------------
607 m_CustomControls->AddControl( in InitCustomControlContainer()
608 m_CustomControlFactory->CreateCustomControl(hCustomControl,m_hwndFileOpenDlg)); in InitCustomControlContainer()
611 //-----------------------------------------------------------------
613 //-----------------------------------------------------------------
618 m_ExecuteFilePickerState->cacheControlState(hWnd, m_NonExecuteFilePickerState); in CacheControlState()
621 //-----------------------------------------------------------------
623 //-----------------------------------------------------------------
628 CWinFileOpenImpl* pImpl = enumParam->m_instance; in EnumChildWndProc()
634 switch(enumParam->m_action) in EnumChildWndProc()
637 pImpl->InitControlLabel(hWnd); in EnumChildWndProc()
638 pImpl->InitCustomControlContainer(hWnd); in EnumChildWndProc()
642 pImpl->CacheControlState(hWnd); in EnumChildWndProc()
653 //-----------------------------------------------------------------
655 //-----------------------------------------------------------------
659 m_NonExecuteFilePickerState->reset(); in onFileOk()
671 //-----------------------------------------------------------------
673 //-----------------------------------------------------------------
692 m_FilePicker->fileSelectionChanged(evt); in onSelChanged()
720 int w = rcFileNameBox.right - rcFileNameBox.left; in EnlargeStdControlLabels()
721 int h = rcFileNameBox.bottom - rcFileNameBox.top; in EnlargeStdControlLabels()
723 int gap = rcOkButton.left - rcFileNameBox.right; in EnlargeStdControlLabels()
724 gap = (gap > MAX_GAP) ? gap - MAX_GAP : gap; in EnlargeStdControlLabels()
727 …MoveWindow(hFileNameBox, rcFileNameBox.left + gap + OFFSET, rcFileNameBox.top, w - OFFSET, h, true… in EnlargeStdControlLabels()
731 w = rcFilterBox.right - rcFilterBox.left; in EnlargeStdControlLabels()
732 h = rcFilterBox.bottom - rcFilterBox.top; in EnlargeStdControlLabels()
734 MoveWindow(hFilterBox, rcFilterBox.left + gap + OFFSET, rcFilterBox.top, w - OFFSET, h, true); in EnlargeStdControlLabels()
741 int offset = rcFileNameBox.left - rcFilterBoxLabel.right - 1; in EnlargeStdControlLabels()
743 w = rcFilterBoxLabel.right - rcFilterBoxLabel.left + offset; in EnlargeStdControlLabels()
744 h = rcFilterBoxLabel.bottom - rcFilterBoxLabel.top; in EnlargeStdControlLabels()
750 w = rcFileNameBoxLabel.right - rcFileNameBoxLabel.left + offset; in EnlargeStdControlLabels()
751 h = rcFileNameBoxLabel.bottom - rcFileNameBoxLabel.top; in EnlargeStdControlLabels()
758 m_Preview->setParent(m_hwndFileOpenDlg); in onInitDone()
769 m_ExecuteFilePickerState->setHwnd(m_hwndFileOpenDlgChild); in onInitDone()
782 m_ExecuteFilePickerState->initFilePickerControls( in onInitDone()
783 m_NonExecuteFilePickerState->getControlCommand()); in onInitDone()
787 m_CustomControls->Align(); in onInitDone()
789 m_CustomControls->SetFont( in onInitDone()
794 m_FilePicker->resumeEventNotification(); in onInitDone()
808 //-----------------------------------------------------------------
810 //-----------------------------------------------------------------
815 m_FilePicker->directoryChanged(evt); in onFolderChanged()
818 //-----------------------------------------------------------------
820 //-----------------------------------------------------------------
828 m_FilePicker->controlStateChanged(evt); in onTypeChanged()
831 //-----------------------------------------------------------------------------------------
833 //-----------------------------------------------------------------------------------------
844 m_FilePicker->controlStateChanged(evt); in onCtrlCommand()
850 //-----------------------------------------------------------------------------------------
852 //-----------------------------------------------------------------------------------------
856 m_Preview->notifyParentSizeChanged(); in onWMSize()
857 m_CustomControls->Align(); in onWMSize()
858 m_FilePicker->dialogSizeChanged(); in onWMSize()
861 //-----------------------------------------------------------------------------------------
863 //-----------------------------------------------------------------------------------------
867 m_Preview->notifyParentShow(bShow); in onWMShow()
870 //-----------------------------------------------------------------------------------------
872 //-----------------------------------------------------------------------------------------
876 m_Preview->notifyParentWindowPosChanged(); in onWMWindowPosChanged()
879 //-----------------------------------------------------------------------------------------
881 //-----------------------------------------------------------------------------------------
886 evt.ElementId = sal::static_int_cast< sal_Int16 >(lphi->iCtrlId); in onCustomControlHelpRequest()
888 rtl::OUString aPopupHelpText = m_FilePicker->helpRequested(evt); in onCustomControlHelpRequest()
899 //-----------------------------------------------------------------------------------------
901 //-----------------------------------------------------------------------------------------
912 //-----------------------------------------------------------------------------------------
914 //-----------------------------------------------------------------------------------------
924 //-----------------------------------------------------------------------------------------
926 //-----------------------------------------------------------------------------------------
935 m_CustomControls->RemoveAllControls(); in postModal()
940 //-----------------------------------------------------------------------------------------
942 //-----------------------------------------------------------------------------------------
961 m_filterContainer->getFilter(nIndex - 1, currentFilter); in SetDefaultExtension()
966 m_filterContainer->getFilter(currentFilter, FilterExt); in SetDefaultExtension()
971 sal_Int32 posOfSemiColon = FilterExt.indexOf(L';') - 1; in SetDefaultExtension()
973 posOfSemiColon = FilterExt.getLength() - 1; in SetDefaultExtension()
975 FilterExt = rtl::OUString(pFirstExtStart, posOfSemiColon - posOfPoint); in SetDefaultExtension()
990 //-----------------------------------------------------------------------------------------
992 //-----------------------------------------------------------------------------------------
997 // initially in the file-name-box of the file in InitialSetDefaultName()