25#include <com/sun/star/beans/PropertyValue.hpp>
26#include <com/sun/star/ui/dialogs/ExecutableDialogResults.hpp>
56 return "com.sun.star.comp.linguistic2.ChineseTranslationDialog";
66 return {
"com.sun.star.linguistic2.ChineseTranslationDialog" };
84 beans::PropertyValue aProperty;
85 if(rArgument >>= aProperty)
87 if( aProperty.Name ==
"ParentWindow" )
97 sal_Int16 nRet = ui::dialogs::ExecutableDialogResults::CANCEL;
106 nRet=ui::dialogs::ExecutableDialogResults::OK;
114 lang::EventObject aEvt;
125 aEvt.Source =
static_cast< XComponent *
>( this );
160 throw beans::PropertyVetoException();
167 bool bDirectionToSimplified =
true;
168 bool bTranslateCommonTerms =
false;
174 m_xDialog->getSettings(bDirectionToSimplified, bTranslateCommonTerms);
177 if( rPropertyName ==
"IsDirectionToSimplified" )
179 aRet <<= bDirectionToSimplified;
181 else if( rPropertyName ==
"IsUseCharacterVariants" )
185 else if( rPropertyName ==
"IsTranslateCommonTerms" )
187 aRet <<= bTranslateCommonTerms;
191 throw beans::UnknownPropertyException( rPropertyName, getXWeak());
220extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
222 css::uno::XComponentContext* , css::uno::Sequence<css::uno::Any>
const&)
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * svx_ChineseTranslation_UnoDialog_get_implementation(css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &)
static weld::Window * GetFrameWeld(const css::uno::Reference< css::awt::XWindow > &rWindow)
sal_Int32 addInterface(std::unique_lock< std::mutex > &rGuard, const css::uno::Reference< ListenerT > &rxIFace)
void disposeAndClear(::std::unique_lock<::std::mutex > &rGuard, const css::lang::EventObject &rEvt)
sal_Int32 removeInterface(std::unique_lock< std::mutex > &rGuard, const css::uno::Reference< ListenerT > &rxIFace)
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &aArguments) override
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual void SAL_CALL setTitle(const OUString &aTitle) override
virtual sal_Int16 SAL_CALL execute() override
css::uno::Reference< css::awt::XWindow > m_xParentWindow
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > m_aDisposeEventListeners
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
ChineseTranslation_UnoDialog()
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual ~ChineseTranslation_UnoDialog() override
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
std::mutex m_aContainerMutex
In dispose call.
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
std::unique_ptr< ChineseTranslationDialog > m_xDialog
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
virtual OUString SAL_CALL getImplementationName() override
bool m_bInDispose
Dispose call ready.
virtual void SAL_CALL dispose() override
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
Sequence< PropertyValue > aArguments
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)