Lines Matching refs:o

36 void generateIncludes(std::ostream & o,  in generateIncludes()  argument
42 o << "#include \"sal/config.h\"\n"; in generateIncludes()
44 o << "#include \"cppuhelper/factory.hxx\"\n" in generateIncludes()
47 o << "#include \"com/sun/star/uno/XComponentContext.hpp\"\n"; in generateIncludes()
50 o << "#include \"cppuhelper/compbase" << interfaces.size() << ".hxx\"\n"; in generateIncludes()
51 o << "#include \"cppuhelper/basemutex.hxx\"\n"; in generateIncludes()
53 o << "#include \"cppuhelper/implbase" << interfaces.size() << ".hxx\"\n"; in generateIncludes()
58 o << "#include \"cppuhelper/rpopshlp.hxx\"\n"; in generateIncludes()
60 o << "#include \"cppuhelper/propertysetmixin.hxx\"\n"; in generateIncludes()
66 o << "#include \"" in generateIncludes()
73 short generateNamespace(std::ostream & o, in generateNamespace() argument
81 o << "\n\n// component helper namespace\n"; in generateNamespace()
83 o << "\n"; in generateNamespace()
91 o << "namespace comp_" << implname << " {\n\n"; in generateNamespace()
103 o << "namespace comp_" << token << " { "; in generateNamespace()
108 o << "namespace " << token << " { "; in generateNamespace()
113 o << "\n\n"; in generateNamespace()
118 OString generateCompHelperDeclaration(std::ostream & o, in generateCompHelperDeclaration() argument
122 short nbrackets = generateNamespace(o, implname, true, nm); in generateCompHelperDeclaration()
124 o << "namespace css = ::com::sun::star;\n\n"; in generateCompHelperDeclaration()
127 o << "// component and service helper functions:\n" in generateCompHelperDeclaration()
137 o << "} "; in generateCompHelperDeclaration()
138 o << "// closing component helper namespace\n\n"; in generateCompHelperDeclaration()
143 void generateCompHelperDefinition(std::ostream & o, in generateCompHelperDefinition() argument
149 short nbrackets = generateNamespace(o, implname, true, nm); in generateCompHelperDefinition()
151 o << "::rtl::OUString SAL_CALL _getImplementationName() {\n" in generateCompHelperDefinition()
155 o << "css::uno::Sequence< ::rtl::OUString > SAL_CALL " in generateCompHelperDefinition()
163 o << " s[" << i++ << "] = ::rtl::OUString(" in generateCompHelperDefinition()
168 o << " return s;\n}\n\n"; in generateCompHelperDefinition()
170 o << "css::uno::Reference< css::uno::XInterface > SAL_CALL _create(" in generateCompHelperDefinition()
178 o << "} "; in generateCompHelperDefinition()
179 o << "// closing component helper namespace\n\n"; in generateCompHelperDefinition()
183 void generateCompFunctions(std::ostream & o, const OString & nmspace) in generateCompFunctions() argument
185 o << "static ::cppu::ImplementationEntry const entries[] = {\n" in generateCompFunctions()
192 o << "extern \"C\" void SAL_CALL component_getImplementationEnvironment(\n" in generateCompFunctions()
196 o << "extern \"C\" void * SAL_CALL component_getFactory(\n" in generateCompFunctions()
201 o << "extern \"C\" sal_Bool SAL_CALL component_writeInfo(\n" in generateCompFunctions()
207 void generateXPropertySetBodies(std::ostream& o, in generateXPropertySetBodies() argument
211 o << "// com.sun.star.beans.XPropertySet:\n"; in generateXPropertySetBodies()
213 o << "css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL " in generateXPropertySetBodies()
219 o << "void SAL_CALL " << classname << "setPropertyValue(const ::rtl::OUString" in generateXPropertySetBodies()
227 o << "css::uno::Any SAL_CALL " << classname << "getPropertyValue(const " in generateXPropertySetBodies()
233 o << "void SAL_CALL " << classname << "addPropertyChangeListener(const " in generateXPropertySetBodies()
241 o << "void SAL_CALL " << classname << "removePropertyChangeListener(const " in generateXPropertySetBodies()
249 o << "void SAL_CALL " << classname << "addVetoableChangeListener(const " in generateXPropertySetBodies()
257 o << "void SAL_CALL " << classname << "removeVetoableChangeListener(const " in generateXPropertySetBodies()
266 void generateXFastPropertySetBodies(std::ostream& o, in generateXFastPropertySetBodies() argument
270 o << "// com.sun.star.beans.XFastPropertySet:\n"; in generateXFastPropertySetBodies()
272 o << "void SAL_CALL " << classname << "setFastPropertyValue( ::sal_Int32 " in generateXFastPropertySetBodies()
280 o << "css::uno::Any SAL_CALL " << classname << "getFastPropertyValue( " in generateXFastPropertySetBodies()
287 void generateXPropertyAccessBodies(std::ostream& o, in generateXPropertyAccessBodies() argument
291 o << " // com.sun.star.beans.XPropertyAccess:\n"; in generateXPropertyAccessBodies()
293 o << "css::uno::Sequence< css::beans::PropertyValue > SAL_CALL " in generateXPropertyAccessBodies()
299 o << "void SAL_CALL " << classname << "setPropertyValues( const " in generateXPropertyAccessBodies()
308 void generateXLocalizable(std::ostream& o, const OString & classname) in generateXLocalizable() argument
310 o << "// ::com::sun::star::lang::XLocalizable:\n" in generateXLocalizable()
318 void generateXAddInBodies(std::ostream& o, const OString & classname) in generateXAddInBodies() argument
320 o << "// ::com::sun::star::sheet::XAddIn:\n"; in generateXAddInBodies()
322 o << "::rtl::OUString SAL_CALL " << classname << "getProgrammaticFuntionName(" in generateXAddInBodies()
337 o << "::rtl::OUString SAL_CALL " << classname << "getDisplayFunctionName(const " in generateXAddInBodies()
342 o << "::rtl::OUString SAL_CALL " << classname << "getFunctionDescription(const " in generateXAddInBodies()
347 o << "::rtl::OUString SAL_CALL " << classname << "getDisplayArgumentName(const " in generateXAddInBodies()
354 o << "::rtl::OUString SAL_CALL " << classname << "getArgumentDescription(const " in generateXAddInBodies()
361 o << "::rtl::OUString SAL_CALL " << classname << "getProgrammaticCategoryName(" in generateXAddInBodies()
366 o << "::rtl::OUString SAL_CALL " << classname << "getDisplayCategoryName(const " in generateXAddInBodies()
373 void generateXCompatibilityNamesBodies(std::ostream& o, const OString & classname) in generateXCompatibilityNamesBodies() argument
375 o << "// ::com::sun::star::sheet::XCompatibilityNames:\n" in generateXCompatibilityNamesBodies()
412 void generateXInitialization(std::ostream& o, const OString & classname) in generateXInitialization() argument
414 o << "// ::com::sun::star::lang::XInitialization:\n" in generateXInitialization()
423 void generateXDispatch(std::ostream& o, in generateXDispatch() argument
429 o << "// ::com::sun::star::frame::XDispatch:\n" in generateXDispatch()
436 o << " if ( aURL.Protocol.equalsAscii(\"" << (*iter).first in generateXDispatch()
441 o << " if ( aURL.Path.equalsAscii(\"" << (*i) << "\") )\n" in generateXDispatch()
446 o << " }\n"; in generateXDispatch()
449 o << "}\n\n"; in generateXDispatch()
452 o << "void SAL_CALL " << classname << "addStatusListener( const css::uno::Reference< " in generateXDispatch()
458 o << "void SAL_CALL " << classname << "removeStatusListener( const css::uno::Reference" in generateXDispatch()
464 void generateXDispatchProvider(std::ostream& o, in generateXDispatchProvider() argument
471 o << "// ::com::sun::star::frame::XDispatchProvider:\n" in generateXDispatchProvider()
481 o << " if ( aURL.Protocol.equalsAscii(\"" << (*iter).first in generateXDispatchProvider()
486 o << " if ( aURL.Path.equalsAscii(\"" << (*i) << "\") == 0 )\n" in generateXDispatchProvider()
490 o << " }\n"; in generateXDispatchProvider()
493 o << " return xRet;\n}\n\n"; in generateXDispatchProvider()
496 o << "css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL " in generateXDispatchProvider()
510 void generateAddinConstructorAndHelper(std::ostream& o, in generateAddinConstructorAndHelper() argument
515 o << classname << "::" << classname in generateAddinConstructorAndHelper()
520 o << " try {\n"; in generateAddinConstructorAndHelper()
522 generateFunctionParameterMap(o, options, manager, interfaces); in generateAddinConstructorAndHelper()
524 o << " css::uno::Reference< css::lang::XMultiServiceFactory > xProvider" in generateAddinConstructorAndHelper()
530 o << " ::rtl::OUString sReadOnlyView(\n" in generateAddinConstructorAndHelper()
534 o << " ::rtl::OUStringBuffer sPath(::rtl::OUString::createFromAscii(\n" in generateAddinConstructorAndHelper()
545 o << " // create the default view using default UI locale\n" in generateAddinConstructorAndHelper()
553 o << " // extend arguments to create a view for all locales to get " in generateAddinConstructorAndHelper()
565 o << " }\n catch ( css::uno::Exception & ) {\n }\n}\n\n"; in generateAddinConstructorAndHelper()
567 o << "// addin configuration property helper function:\n::rtl::OUString " in generateAddinConstructorAndHelper()
584 o <<"}\n\n"; in generateAddinConstructorAndHelper()
587 void generateMemberInitialization(std::ostream& o, in generateMemberInitialization() argument
606 o << ",\n m_" << i->first << "("; in generateMemberInitialization()
607 printType(o, options, manager, type, 16, true); in generateMemberInitialization()
608 o << ")"; in generateMemberInitialization()
614 void generateMemberDeclaration(std::ostream& o, in generateMemberDeclaration() argument
622 o << " "; in generateMemberDeclaration()
623 printType(o, options, manager, i->second.first.replace('.','/'), in generateMemberDeclaration()
625 o << " m_" << i->first << ";\n"; in generateMemberDeclaration()
629 OString generateClassDefinition(std::ostream& o, in generateClassDefinition() argument
640 o << "class " << classname << ":\n"; in generateClassDefinition()
646 o << " private ::cppu::BaseMutex,\n" in generateClassDefinition()
652 o << " public ::cppu::WeakImplHelper" << interfaces.size() << "<"; in generateClassDefinition()
659 o << "\n " << scopedCppName(*iter, false, true); in generateClassDefinition()
662 o << ","; in generateClassDefinition()
664 o << ">"; in generateClassDefinition()
669 o << ",\n public ::cppu::PropertySetMixin< " in generateClassDefinition()
673 o << "\n{\npublic:\n" in generateClassDefinition()
688 o << " // ::com::sun::star::uno::XInterface:\n" in generateClassDefinition()
708 o << " virtual void SAL_CALL acquire() throw ()\n { " in generateClassDefinition()
710 o << " virtual void SAL_CALL release() throw ()\n { " in generateClassDefinition()
720 printMethods(o, options, manager, reader, generated, "", "", " ", in generateClassDefinition()
725 o << "private:\n " << classname << "(const " << classname << " &); // not defined\n" in generateClassDefinition()
731 o << " typedef std::hash_map< ::sal_Int32, rtl::OUString, " in generateClassDefinition()
741 o << " // overload WeakComponentImplHelperBase::disposing()\n" in generateClassDefinition()
749 o << " css::uno::Reference< css::uno::XComponentContext > m_xContext;\n"; in generateClassDefinition()
751 o << " mutable ::osl::Mutex m_aMutex;\n"; in generateClassDefinition()
755 o << " css::uno::Reference< css::frame::XFrame > m_xFrame;\n"; in generateClassDefinition()
760 o <<" css::uno::Reference< css::container::XHierarchicalNameAccess > " in generateClassDefinition()
766 o << " css::lang::Locale m_locale;\n"; in generateClassDefinition()
769 generateMemberDeclaration(o, options, manager, properties); in generateClassDefinition()
770 generateMemberDeclaration(o, options, manager, attributes); in generateClassDefinition()
797 o << "};\n\n"; in generateClassDefinition()
801 generateAddinConstructorAndHelper(o, options, manager, in generateClassDefinition()
804 o << classname << "::" << classname in generateClassDefinition()
807 o << " ::cppu::WeakComponentImplHelper" << interfaces.size() << "<"; in generateClassDefinition()
811 o << "\n " << scopedCppName(*iter, false, true); in generateClassDefinition()
814 o << ","; in generateClassDefinition()
816 o << ">(m_aMutex),\n"; in generateClassDefinition()
820 o << " ::cppu::PropertySetMixin< " in generateClassDefinition()
842 o << buffer.makeStringAndClear() in generateClassDefinition()
845 o << " m_xContext(context)"; in generateClassDefinition()
847 generateMemberInitialization(o, options, manager, properties); in generateClassDefinition()
848 generateMemberInitialization(o, options, manager, attributes); in generateClassDefinition()
850 o << "\n{}\n\n"; in generateClassDefinition()
857 o << "// overload WeakComponentImplHelperBase::disposing()\n" in generateClassDefinition()
867 void generateXServiceInfoBodies(std::ostream& o, in generateXServiceInfoBodies() argument
871 o << "// com.sun.star.uno.XServiceInfo:\n" in generateXServiceInfoBodies()
876 o << "::sal_Bool SAL_CALL " << classname in generateXServiceInfoBodies()
885 o << "css::uno::Sequence< ::rtl::OUString > SAL_CALL " << classname in generateXServiceInfoBodies()
892 void generateMethodBodies(std::ostream& o, in generateMethodBodies() argument
906 generateXServiceInfoBodies(o, name, comphelpernamespace); in generateMethodBodies()
910 printMethods(o, options, manager, reader, generated, "_", in generateMethodBodies()
917 void generateQueryInterface(std::ostream& o, in generateQueryInterface() argument
928 o << "css::uno::Any " << classname in generateQueryInterface()
933 o << "return "; in generateQueryInterface()
935 o << "css::uno::Any a("; in generateQueryInterface()
937 o << parentname << "<"; in generateQueryInterface()
942 o << "\n " << scopedCppName(*iter, false, true); in generateQueryInterface()
945 o << ","; in generateQueryInterface()
947 o << ">"; in generateQueryInterface()
951 o << "::queryInterface(type);\n"; in generateQueryInterface()
953 o << "::queryInterface(type));\n"; in generateQueryInterface()
954 o << " return a.hasValue() ? a\n : ("; in generateQueryInterface()
956 o << "::cppu::OPropertySetHelper::queryInterface(type));\n"; in generateQueryInterface()
958 o << "::cppu::PropertySetMixin<\n "; in generateQueryInterface()
959 printType(o, options, manager, propertyhelper.replace('.', '/'), in generateQueryInterface()
961 o << " >::queryInterface(\n type));\n"; in generateQueryInterface()
964 o << "}\n\n"; in generateQueryInterface()