summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorFelix Zhang <fezhang@suse.com>2011-11-15 18:14:01 +0800
committerJan Holesovsky <kendy@suse.cz>2011-11-15 14:39:55 +0100
commit30d646fb884570ac34d40b0d2300eaf54453cfc4 (patch)
tree145f41b2b9dfc9c81e490319e52a675e69259d5b /toolkit
parentd52f57837e302a9ef483e042b58da8b54d266597 (diff)
remove unused methods from layoutimpl
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/awt/vclxplugin.cxx5
-rw-r--r--toolkit/source/awt/vclxplugin.hxx2
-rw-r--r--toolkit/source/awt/vclxtabcontrol.cxx13
-rw-r--r--toolkit/source/awt/vclxtabcontrol.hxx2
-rw-r--r--toolkit/source/layout/core/helper.cxx43
-rw-r--r--toolkit/source/layout/core/helper.hxx7
-rw-r--r--toolkit/source/layout/core/proplist.cxx12
-rw-r--r--toolkit/source/layout/core/proplist.hxx4
-rw-r--r--toolkit/source/layout/core/root.cxx7
-rw-r--r--toolkit/source/layout/core/root.hxx3
10 files changed, 2 insertions, 96 deletions
diff --git a/toolkit/source/awt/vclxplugin.cxx b/toolkit/source/awt/vclxplugin.cxx
index 93b1a9db6830..de3737897738 100644
--- a/toolkit/source/awt/vclxplugin.cxx
+++ b/toolkit/source/awt/vclxplugin.cxx
@@ -65,11 +65,6 @@ void SAL_CALL VCLXPlugin::dispose() throw(uno::RuntimeException)
VCLXWindow::dispose();
}
-void VCLXPlugin::SetPlugin( ::Control *p )
-{
- mpPlugin = p;
-}
-
awt::Size SAL_CALL VCLXPlugin::getMinimumSize()
throw(::com::sun::star::uno::RuntimeException)
{
diff --git a/toolkit/source/awt/vclxplugin.hxx b/toolkit/source/awt/vclxplugin.hxx
index 458fef360d57..1b838a2820c5 100644
--- a/toolkit/source/awt/vclxplugin.hxx
+++ b/toolkit/source/awt/vclxplugin.hxx
@@ -47,8 +47,6 @@ public:
VCLXPlugin( Window *p, WinBits b );
- void SetPlugin( ::Control *p );
-
protected:
~VCLXPlugin();
diff --git a/toolkit/source/awt/vclxtabcontrol.cxx b/toolkit/source/awt/vclxtabcontrol.cxx
index cc3940c92784..221cbe915678 100644
--- a/toolkit/source/awt/vclxtabcontrol.cxx
+++ b/toolkit/source/awt/vclxtabcontrol.cxx
@@ -240,19 +240,6 @@ void SAL_CALL VCLXTabControl::draw( sal_Int32 nX, sal_Int32 nY ) throw(uno::Runt
VCLXWindow::draw( nX, nY );
}
-void VCLXTabControl::AddChild (uno::Reference< awt::XLayoutConstrains > const& xChild)
-
-{
-#ifndef __SUNPRO_CC
- OSL_TRACE ("%s: children: %d", __PRETTY_FUNCTION__, maChildren.size ());
-#endif
- mIdMap[ xChild ] = mTabId++;
- Box_Base::AddChild( xChild );
-#ifndef __SUNPRO_CC
- OSL_TRACE ("%s: children: %d", __PRETTY_FUNCTION__, maChildren.size ());
-#endif
-}
-
void SAL_CALL VCLXTabControl::addChild(
const uno::Reference< awt::XLayoutConstrains > &xChild )
throw (uno::RuntimeException, awt::MaxChildrenException)
diff --git a/toolkit/source/awt/vclxtabcontrol.hxx b/toolkit/source/awt/vclxtabcontrol.hxx
index e5d391b0c783..9b20182e7d16 100644
--- a/toolkit/source/awt/vclxtabcontrol.hxx
+++ b/toolkit/source/awt/vclxtabcontrol.hxx
@@ -53,8 +53,6 @@ class VCLXTabControl :public VCLXWindow
public:
VCLXTabControl();
- void AddChild (css::uno::Reference <css::awt::XLayoutConstrains> const &);
-
protected:
~VCLXTabControl();
diff --git a/toolkit/source/layout/core/helper.cxx b/toolkit/source/layout/core/helper.cxx
index f915d197c709..eff0838f65d4 100644
--- a/toolkit/source/layout/core/helper.cxx
+++ b/toolkit/source/layout/core/helper.cxx
@@ -43,24 +43,6 @@ namespace layoutimpl
using namespace com::sun::star;
using rtl::OUString;
-uno::Reference< awt::XWindowPeer >
-getParent( uno::Reference< uno::XInterface > xRef )
-{
- do
- {
- uno::Reference< awt::XWindowPeer > xPeer( xRef, uno::UNO_QUERY );
- if ( xPeer.is() )
- return xPeer;
-
- uno::Reference< awt::XLayoutContainer > xCont( xRef, uno::UNO_QUERY );
- if ( xCont.is() )
- xRef = xCont->getParent();
- }
- while ( xRef.is() );
-
- return uno::Reference< awt::XWindowPeer >();
-}
-
}
#include "bin.hxx"
@@ -329,7 +311,7 @@ uno::Reference <awt::XLayoutConstrains> WidgetFactory::implCreateWidget (uno::Re
parent = parentComponent->GetWindow ();
VCLXWindow* component = 0;
- Window* window = 0; //sfx2CreateWindow (&component, parent, name, attributes);
+ Window* window = 0;
if (!window)
window = layoutCreateWindow (&component, parent, name, attributes);
@@ -348,29 +330,6 @@ uno::Reference <awt::XLayoutConstrains> WidgetFactory::implCreateWidget (uno::Re
return reference;
}
-extern "C" { static void SAL_CALL thisModule() {} }
-
-Window* WidgetFactory::sfx2CreateWindow (VCLXWindow** component, Window* parent, OUString const& name, long& attributes)
-{
- OSL_TRACE("Asking sfx2: %s", OUSTRING_CSTR (name));
-
- if (!mSfx2Library)
- {
- OUString libraryName = ::vcl::unohelper::CreateLibraryName ("sfx", sal_True);
- mSfx2Library = osl_loadModuleRelative (&thisModule, libraryName.pData, SAL_LOADMODULE_DEFAULT);
- if (mSfx2Library)
- {
- OUString functionName (RTL_CONSTASCII_USTRINGPARAM ("CreateWindow"));
- mSfx2CreateWidget = (WindowCreator) osl_getFunctionSymbol (mSfx2Library, functionName.pData);
- }
- }
-
- if (mSfx2CreateWidget)
- return mSfx2CreateWidget (component, name, parent, attributes);
-
- return 0;
-}
-
Window* WidgetFactory::layoutCreateWindow (VCLXWindow** component, Window *parent, OUString const& name, long& attributes)
{
Window* window = 0;
diff --git a/toolkit/source/layout/core/helper.hxx b/toolkit/source/layout/core/helper.hxx
index cd91a19aa88d..87ef7b62020d 100644
--- a/toolkit/source/layout/core/helper.hxx
+++ b/toolkit/source/layout/core/helper.hxx
@@ -121,12 +121,6 @@ protected:
css::uno::Any anyFromString (const rtl::OUString &value, const css::uno::Type &type);
-// The native widgets wrapper hierarchy may not reflect that of the layout
-// hierarchy as some containers don't have an associated native widget.
-// Use this function to get the native parent of the given peer.
-css::uno::Reference< css::awt::XWindowPeer >
-getParent( css::uno::Reference< css::uno::XInterface > xPeer );
-
class TOOLKIT_DLLPUBLIC WidgetFactory
{
public:
@@ -138,7 +132,6 @@ public:
static css::uno::Reference< css::awt::XLayoutConstrains > createWidget( css::uno::Reference <css::awt::XToolkit > xToolkit, css::uno::Reference< css::uno::XInterface > xParent, rtl::OUString const &name, long properties);
static css::uno::Reference <css::awt::XLayoutContainer> createContainer (rtl::OUString const& name);
static css::uno::Reference <css::awt::XLayoutConstrains> implCreateWidget (css::uno::Reference <css::uno::XInterface> xParent, rtl::OUString name, long attributes);
- static Window* sfx2CreateWindow (VCLXWindow** component, Window* parent, rtl::OUString const& name, long& attributes);
static Window* layoutCreateWindow (VCLXWindow** component, Window *parent, rtl::OUString const& name, long& attributes);
};
diff --git a/toolkit/source/layout/core/proplist.cxx b/toolkit/source/layout/core/proplist.cxx
index 893b51889782..88ba18b7ce68 100644
--- a/toolkit/source/layout/core/proplist.cxx
+++ b/toolkit/source/layout/core/proplist.cxx
@@ -88,18 +88,6 @@ setProperty( const uno::Reference< uno::XInterface > &xPeer,
}
}
-uno::Any TOOLKIT_DLLPUBLIC
-getProperty( const uno::Reference< uno::XInterface > &xPeer,
- const OUString &rName )
-{
- uno::Reference< awt::XVclWindowPeer> xVclPeer( xPeer, uno::UNO_QUERY );
- if ( xVclPeer.is() )
- return xVclPeer->getProperty( rName );
-
- uno::Reference< beans::XPropertySet > xPropSet( xPeer, uno::UNO_QUERY );
- return xPropSet->getPropertyValue( rName );
-}
-
} // namespace prophlp
diff --git a/toolkit/source/layout/core/proplist.hxx b/toolkit/source/layout/core/proplist.hxx
index fafd45059552..bddd24bd34f8 100644
--- a/toolkit/source/layout/core/proplist.hxx
+++ b/toolkit/source/layout/core/proplist.hxx
@@ -64,12 +64,10 @@ bool TOOLKIT_DLLPUBLIC canHandleProps( const css::uno::Reference< css::uno::XInt
// if so which properties ?
css::uno::Reference< css::beans::XPropertySetInfo > TOOLKIT_DLLPUBLIC queryPropertyInfo(
const css::uno::Reference< css::uno::XInterface > &xRef );
-// set / get ...
+// set ...
void TOOLKIT_DLLPUBLIC setProperty( const css::uno::Reference< css::uno::XInterface > &xRef,
const rtl::OUString &rName,
css::uno::Any aValue );
-css::uno::Any TOOLKIT_DLLPUBLIC getProperty( const css::uno::Reference< css::uno::XInterface > &xRef,
- const rtl::OUString &rName );
} // namespace prophlp
} // namespace layoutimpl
diff --git a/toolkit/source/layout/core/root.cxx b/toolkit/source/layout/core/root.cxx
index e10857280613..408b7efa53e6 100644
--- a/toolkit/source/layout/core/root.cxx
+++ b/toolkit/source/layout/core/root.cxx
@@ -202,13 +202,6 @@ uno::Reference< awt::XLayoutContainer > LayoutRoot::getLayoutContainer() throw (
return uno::Reference< awt::XLayoutContainer >();
}
-// local helper ...
-void LayoutRoot::addItem( const OUString &rName,
- const uno::Reference< awt::XLayoutConstrains > &xRef )
-{
- maItems[ rName ] = xRef;
-}
-
// XNameAccess
uno::Any SAL_CALL LayoutRoot::getByName( const OUString &rName )
throw ( container::NoSuchElementException,
diff --git a/toolkit/source/layout/core/root.hxx b/toolkit/source/layout/core/root.hxx
index 8254f1b46b38..8110529df183 100644
--- a/toolkit/source/layout/core/root.hxx
+++ b/toolkit/source/layout/core/root.hxx
@@ -95,9 +95,6 @@ public:
LayoutRoot( const css::uno::Reference< css::lang::XMultiServiceFactory >& xFactory );
virtual ~LayoutRoot();
- void addItem( const rtl::OUString &rName,
- const css::uno::Reference< css::awt::XLayoutConstrains > &xRef );
-
void setWindow( css::uno::Reference< css::awt::XLayoutConstrains > xPeer )
{
mxWindow = css::uno::Reference< css::awt::XWindow >( xPeer, css::uno::UNO_QUERY );