diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-12-07 09:57:40 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-12-07 11:33:11 +0000 |
commit | 47690422e42f5fce29b331218a2d05966c13946d (patch) | |
tree | b64bc67420e133a9f7f3af2ad53e8d9631f86658 /accessibility/source | |
parent | 13959acbd48951bffd661501b4693ddbe6eef11a (diff) |
don't need an extra header, fold into body
Diffstat (limited to 'accessibility/source')
-rw-r--r-- | accessibility/source/helper/acc_factory.cxx | 39 |
1 files changed, 29 insertions, 10 deletions
diff --git a/accessibility/source/helper/acc_factory.cxx b/accessibility/source/helper/acc_factory.cxx index 1bbe20c9cc63..92ce2cc43d19 100644 --- a/accessibility/source/helper/acc_factory.cxx +++ b/accessibility/source/helper/acc_factory.cxx @@ -26,9 +26,9 @@ * ************************************************************************/ -#include <accessibility/helper/acc_factory.hxx> - #include <toolkit/awt/vclxwindows.hxx> +#include <toolkit/helper/accessiblefactory.hxx> +#include <svtools/accessiblefactory.hxx> #include <accessibility/standard/vclxaccessiblebutton.hxx> #include <accessibility/standard/vclxaccessiblecheckbox.hxx> #include <accessibility/standard/vclxaccessibledropdowncombobox.hxx> @@ -536,18 +536,37 @@ inline bool hasFloatingChild(Window *pWindow) //........................................................................ //======================================================================== -extern "C" void* SAL_CALL getStandardAccessibleFactory() + +/** this is the entry point to retrieve a factory for the toolkit-level Accessible/Contexts supplied + by this library + + This function implements the factory function needed in toolkit + (of type GetStandardAccComponentFactory). +*/ +extern "C" { - ::toolkit::IAccessibleFactory* pFactory = new ::accessibility::AccessibleFactory; - pFactory->acquire(); - return pFactory; + SAL_DLLPUBLIC_EXPORT void* SAL_CALL getStandardAccessibleFactory() + { + ::toolkit::IAccessibleFactory* pFactory = new ::accessibility::AccessibleFactory; + pFactory->acquire(); + return pFactory; + } } -extern "C" void* SAL_CALL getSvtAccessibilityComponentFactory() +/** this is the entry point to retrieve a factory for the svtools-level Accessible/Contexts supplied + by this library + + This function implements the factory function needed in svtools + (of type GetSvtAccessibilityComponentFactory). +*/ +extern "C" { - ::svt::IAccessibleFactory* pFactory = new ::accessibility::AccessibleFactory; - pFactory->acquire(); - return pFactory; + SAL_DLLPUBLIC_EXPORT void* SAL_CALL getSvtAccessibilityComponentFactory() + { + ::svt::IAccessibleFactory* pFactory = new ::accessibility::AccessibleFactory; + pFactory->acquire(); + return pFactory; + } } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |