diff options
Diffstat (limited to 'fpicker/source/win32/filepicker/dibpreview.cxx')
-rw-r--r-- | fpicker/source/win32/filepicker/dibpreview.cxx | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/fpicker/source/win32/filepicker/dibpreview.cxx b/fpicker/source/win32/filepicker/dibpreview.cxx index 1bfb21d35d29..66f46efff1e4 100644 --- a/fpicker/source/win32/filepicker/dibpreview.cxx +++ b/fpicker/source/win32/filepicker/dibpreview.cxx @@ -28,18 +28,18 @@ #include <stdexcept> #include <string> -//------------------------------------------------------------------------ + // -//------------------------------------------------------------------------ + using ::com::sun::star::uno::Sequence; using ::com::sun::star::uno::RuntimeException; using ::com::sun::star::uno::Any; using ::com::sun::star::lang::IllegalArgumentException; -//------------------------------------------------------------------------ + // -//------------------------------------------------------------------------ + namespace /* private */ { @@ -48,17 +48,17 @@ namespace /* private */ #define PREVIEWWND_CLASS_NAME TEXT("DIBPreviewWnd###") -//--------------------------------------------------- + // static member initialization -//--------------------------------------------------- + osl::Mutex CDIBPreview::s_Mutex; ATOM CDIBPreview::s_ClassAtom = 0; sal_Int32 CDIBPreview::s_RegisterDibPreviewWndCount = 0; -//--------------------------------------------------- + // -//--------------------------------------------------- + CDIBPreview::CDIBPreview(HINSTANCE instance,HWND parent,sal_Bool bShowWindow) : m_Instance(instance) @@ -95,9 +95,9 @@ CDIBPreview::CDIBPreview(HINSTANCE instance,HWND parent,sal_Bool bShowWindow) : } } -//--------------------------------------------------- + // -//--------------------------------------------------- + CDIBPreview::~CDIBPreview( ) { @@ -109,9 +109,9 @@ CDIBPreview::~CDIBPreview( ) UnregisterDibPreviewWindowClass(); } -//------------------------------- + // -//------------------------------- + sal_Int32 SAL_CALL CDIBPreview::getTargetColorDepth() throw (RuntimeException) { @@ -124,9 +124,9 @@ sal_Int32 SAL_CALL CDIBPreview::getTargetColorDepth() throw (RuntimeException) return clrRes; } -//------------------------------- + // -//------------------------------- + sal_Int32 SAL_CALL CDIBPreview::getAvailableWidth() throw (RuntimeException) { @@ -141,9 +141,9 @@ sal_Int32 SAL_CALL CDIBPreview::getAvailableWidth() throw (RuntimeException) return cx; } -//------------------------------- + // -//------------------------------- + sal_Int32 SAL_CALL CDIBPreview::getAvailableHeight() throw (RuntimeException) { @@ -158,9 +158,9 @@ sal_Int32 SAL_CALL CDIBPreview::getAvailableHeight() throw (RuntimeException) return cy; } -//------------------------------- + // -//------------------------------- + void SAL_CALL CDIBPreview::setImage(sal_Int16 aImageFormat, const Any& aImage) throw (IllegalArgumentException, RuntimeException) @@ -181,9 +181,9 @@ void SAL_CALL CDIBPreview::setImage(sal_Int16 aImageFormat, const Any& aImage) UpdateWindow(m_Hwnd); } -//------------------------------- + // -//------------------------------- + sal_Bool SAL_CALL CDIBPreview::setShowState(sal_Bool bShowState) throw (RuntimeException) { @@ -192,27 +192,27 @@ sal_Bool SAL_CALL CDIBPreview::setShowState(sal_Bool bShowState) throw (RuntimeE return sal_True; } -//------------------------------- + // -//------------------------------- + sal_Bool SAL_CALL CDIBPreview::getShowState() throw (RuntimeException) { return (sal_Bool)IsWindowVisible(m_Hwnd); } -//------------------------------- + // -//------------------------------- + HWND SAL_CALL CDIBPreview::getWindowHandle() const { return m_Hwnd; } -//--------------------------------------------------- + // -//--------------------------------------------------- + void SAL_CALL CDIBPreview::onPaint(HWND hWnd, HDC hDC) { @@ -306,9 +306,9 @@ void SAL_CALL CDIBPreview::onPaint(HWND hWnd, HDC hDC) } } -//--------------------------------------------------- + // -//--------------------------------------------------- + LRESULT CALLBACK CDIBPreview::WndProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) @@ -374,9 +374,9 @@ LRESULT CALLBACK CDIBPreview::WndProc( return lResult; } -//--------------------------------------------------- + // -//--------------------------------------------------- + ATOM SAL_CALL CDIBPreview::RegisterDibPreviewWindowClass() { @@ -417,9 +417,9 @@ ATOM SAL_CALL CDIBPreview::RegisterDibPreviewWindowClass() return s_ClassAtom; } -//--------------------------------------------------- + // -//--------------------------------------------------- + void SAL_CALL CDIBPreview::UnregisterDibPreviewWindowClass() { |