summaryrefslogtreecommitdiff
path: root/sdext/source/minimizer
diff options
context:
space:
mode:
authorPovilas Kanapickas <povilas.kanapickas@gmail.com>2010-10-18 15:50:38 +0100
committerMichael Meeks <michael.meeks@novell.com>2010-10-18 15:50:38 +0100
commitbdc71b3e4112b5c83a6aec61403981fcdd156138 (patch)
tree31f6bc8f8a44936e6a13565dac0af1c9948793a7 /sdext/source/minimizer
parent9f8917600d8b8815963d94b15908e3db07612cd7 (diff)
remove non-compiled code
Diffstat (limited to 'sdext/source/minimizer')
-rw-r--r--sdext/source/minimizer/unodialog.cxx49
-rw-r--r--sdext/source/minimizer/unodialog.hxx4
2 files changed, 1 insertions, 52 deletions
diff --git a/sdext/source/minimizer/unodialog.cxx b/sdext/source/minimizer/unodialog.cxx
index e5ade357ac89..e5f6fdceeed3 100644
--- a/sdext/source/minimizer/unodialog.cxx
+++ b/sdext/source/minimizer/unodialog.cxx
@@ -344,55 +344,6 @@ void UnoDialog::setControlProperty( const OUString& rControlName, const OUString
}
// -----------------------------------------------------------------------------
-#if 0
-void UnoDialog::showMessageBox( const OUString& rTitle, const OUString& rMessage, sal_Bool bErrorBox ) const
-{
- try
- {
- Reference< XMessageBoxFactory > xMessageBoxFactory( mxMSF->getServiceManager()->createInstanceWithContext( OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.awt.Toolkit" ) ), mxMSF ), UNO_QUERY_THROW );
- if ( xMessageBoxFactory.is() )
- {
- Rectangle aRectangle( 0, 0, 0, 0 );
- Reference< XMessageBox > xMessageBox( xMessageBoxFactory->createMessageBox( mxWindowPeer, aRectangle,
- bErrorBox ? OUString( RTL_CONSTASCII_USTRINGPARAM( "errorbox" ) ) : OUString( RTL_CONSTASCII_USTRINGPARAM( "querybox" ) ), MessageBoxButtons::BUTTONS_OK, rTitle, rMessage ) );
- Reference< XComponent > xComponent( xMessageBox, UNO_QUERY_THROW );
- /* sal_Int16 nResult = */ xMessageBox->execute();
- xComponent->dispose();
- }
- }
- catch ( Exception& )
- {
- }
-
-/*
-public void showErrorMessageBox(XWindowPeer _xParentWindowPeer, String _sTitle, String _sMessage){
-XComponent xComponent = null;
-try {
- Object oToolkit = m_xMCF.createInstanceWithContext("com.sun.star.awt.Toolkit", m_xContext);
- XMessageBoxFactory xMessageBoxFactory = (XMessageBoxFactory) UnoRuntime.queryInterface(XMessageBoxFactory.class, oToolkit);
- // rectangle may be empty if position is in the center of the parent peer
-
- Rectangle aRectangle = new Rectangle();
- XMessageBox xMessageBox = xMessageBoxFactory.createMessageBox(_xParentWindowPeer, aRectangle, "errorbox", com.sun.star.awt.MessageBoxButtons.BUTTONS_OK, _sTitle, _sMessage);
- xComponent = (XComponent) UnoRuntime.queryInterface(XComponent.class, xMessageBox);
- if (xMessageBox != null){
- short nResult = xMessageBox.execute();
- }
-} catch (com.sun.star.uno.Exception ex) {
- ex.printStackTrace(System.out);
-}
-finally{
- //make sure always to dispose the component and free the memory!
- if (xComponent != null){
- xComponent.dispose();
- }
-}}
-*/
-}
-
-#endif
-
-// -----------------------------------------------------------------------------
sal_Int32 UnoDialog::getMapsFromPixels( sal_Int32 nPixels ) const
{
diff --git a/sdext/source/minimizer/unodialog.hxx b/sdext/source/minimizer/unodialog.hxx
index 1bd4c87b3dc0..6fb363dd9232 100644
--- a/sdext/source/minimizer/unodialog.hxx
+++ b/sdext/source/minimizer/unodialog.hxx
@@ -114,9 +114,7 @@ public :
void setControlProperty( const rtl::OUString& rControlName, const rtl::OUString& rPropertyName, const com::sun::star::uno::Any& rPropertyValue );
com::sun::star::uno::Any getControlProperty( const rtl::OUString& rControlName, const rtl::OUString& rPropertyName );
-#if 0
- void showMessageBox( const rtl::OUString& rTitle, const rtl::OUString& rMessage, sal_Bool bErrorBox ) const;
-#endif
+
void enableControl( const rtl::OUString& rControlName );
void disableControl( const rtl::OUString& rControlName );