diff options
Diffstat (limited to 'fpicker/source/win32/filepicker/previewadapter.cxx')
-rw-r--r-- | fpicker/source/win32/filepicker/previewadapter.cxx | 105 |
1 files changed, 0 insertions, 105 deletions
diff --git a/fpicker/source/win32/filepicker/previewadapter.cxx b/fpicker/source/win32/filepicker/previewadapter.cxx index 981fde0ff882..6cb7bcfbae80 100644 --- a/fpicker/source/win32/filepicker/previewadapter.cxx +++ b/fpicker/source/win32/filepicker/previewadapter.cxx @@ -30,9 +30,6 @@ #include <stdexcept> - - - using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; @@ -98,9 +95,6 @@ private: }; - - - CPreviewAdapterImpl::CPreviewAdapterImpl(HINSTANCE instance) : m_Instance(instance), m_Preview(new PreviewBase()), // create dummy preview (NULL-Object pattern) @@ -110,44 +104,29 @@ CPreviewAdapterImpl::CPreviewAdapterImpl(HINSTANCE instance) : } - - - CPreviewAdapterImpl::~CPreviewAdapterImpl() { } - - - sal_Int32 SAL_CALL CPreviewAdapterImpl::getTargetColorDepth() { return m_Preview->getTargetColorDepth(); } - - - sal_Int32 SAL_CALL CPreviewAdapterImpl::getAvailableWidth() { return m_Preview->getAvailableWidth(); } - - - sal_Int32 SAL_CALL CPreviewAdapterImpl::getAvailableHeight() { return m_Preview->getAvailableHeight(); } - - - void SAL_CALL CPreviewAdapterImpl::setImage( sal_Int16 aImageFormat, const Any& aImage ) throw (IllegalArgumentException,RuntimeException) { @@ -155,9 +134,6 @@ void SAL_CALL CPreviewAdapterImpl::setImage( sal_Int16 aImageFormat, const Any& } - - - sal_Bool SAL_CALL CPreviewAdapterImpl::setShowState( sal_Bool bShowState ) { sal_Bool bRet = m_Preview->setShowState(bShowState); @@ -166,18 +142,12 @@ sal_Bool SAL_CALL CPreviewAdapterImpl::setShowState( sal_Bool bShowState ) } - - - sal_Bool SAL_CALL CPreviewAdapterImpl::getShowState() { return m_Preview->getShowState(); } - - - void SAL_CALL CPreviewAdapterImpl::setParent(HWND parent) { OSL_PRECOND(IsWindow(parent),"Invalid FileDialog handle"); @@ -187,18 +157,12 @@ void SAL_CALL CPreviewAdapterImpl::setParent(HWND parent) } - - - HWND SAL_CALL CPreviewAdapterImpl::getParent() { return m_FileDialog; } - - - void SAL_CALL CPreviewAdapterImpl::calcRightMargin() { // Calculate the right reference margin @@ -228,34 +192,22 @@ void SAL_CALL CPreviewAdapterImpl::calcRightMargin() } - - - void SAL_CALL CPreviewAdapterImpl::notifyParentShow(sal_Bool) { } - - - void SAL_CALL CPreviewAdapterImpl::notifyParentSizeChanged() { rearrangeLayout(); } - - - void SAL_CALL CPreviewAdapterImpl::notifyParentWindowPosChanged() { } - - - void SAL_CALL CPreviewAdapterImpl::rearrangeLayout() { // try to get a handle to the filelistbox @@ -348,9 +300,6 @@ void SAL_CALL CPreviewAdapterImpl::rearrangeLayout() } - - - void SAL_CALL CPreviewAdapterImpl::initializeActivePreview() throw(std::runtime_error) { sal_Bool bShowState = m_Preview->getImaginaryShowState(); @@ -370,9 +319,6 @@ void SAL_CALL CPreviewAdapterImpl::initializeActivePreview() throw(std::runtime_ } - - - HWND SAL_CALL CPreviewAdapterImpl::findFileListbox() const { // try to get a handle to the filelistbox @@ -390,15 +336,10 @@ HWND SAL_CALL CPreviewAdapterImpl::findFileListbox() const } - - - - // Implementation for Windows 95/NT/ME/2000/XP // because: - class CWin95NTPreviewAdapterImpl : public CPreviewAdapterImpl { public: @@ -408,18 +349,12 @@ public: }; - - - CWin95NTPreviewAdapterImpl::CWin95NTPreviewAdapterImpl(HINSTANCE instance) : CPreviewAdapterImpl(instance) { } - - - void SAL_CALL CWin95NTPreviewAdapterImpl::notifyParentShow(sal_Bool bShow) { try @@ -436,10 +371,6 @@ void SAL_CALL CWin95NTPreviewAdapterImpl::notifyParentShow(sal_Bool bShow) } - - - - // ctor @@ -449,17 +380,11 @@ CPreviewAdapter::CPreviewAdapter(HINSTANCE instance) } - - - CPreviewAdapter::~CPreviewAdapter() { } - - - Sequence<sal_Int16> SAL_CALL CPreviewAdapter::getSupportedImageFormats() { css::uno::Sequence<sal_Int16> imgFormats(1); @@ -468,36 +393,24 @@ Sequence<sal_Int16> SAL_CALL CPreviewAdapter::getSupportedImageFormats() } - - - sal_Int32 SAL_CALL CPreviewAdapter::getTargetColorDepth() { return m_pImpl->getTargetColorDepth(); } - - - sal_Int32 SAL_CALL CPreviewAdapter::getAvailableWidth() { return m_pImpl->getAvailableWidth(); } - - - sal_Int32 SAL_CALL CPreviewAdapter::getAvailableHeight() { return m_pImpl->getAvailableHeight(); } - - - void SAL_CALL CPreviewAdapter::setImage( sal_Int16 aImageFormat, const Any& aImage ) throw (IllegalArgumentException, RuntimeException) { @@ -505,54 +418,36 @@ void SAL_CALL CPreviewAdapter::setImage( sal_Int16 aImageFormat, const Any& aIma } - - - sal_Bool SAL_CALL CPreviewAdapter::setShowState( sal_Bool bShowState ) { return m_pImpl->setShowState(bShowState); } - - - sal_Bool SAL_CALL CPreviewAdapter::getShowState() { return m_pImpl->getShowState(); } - - - void SAL_CALL CPreviewAdapter::setParent(HWND parent) { m_pImpl->setParent(parent); } - - - void SAL_CALL CPreviewAdapter::notifyParentShow(bool bShow) { m_pImpl->notifyParentShow(bShow); } - - - void SAL_CALL CPreviewAdapter::notifyParentSizeChanged() { m_pImpl->notifyParentSizeChanged(); } - - - void SAL_CALL CPreviewAdapter::notifyParentWindowPosChanged() { m_pImpl->notifyParentWindowPosChanged(); |