LibreOffice Module unodevtools (master) 1
|
Namespaces | |
namespace | cpp |
namespace | java |
Classes | |
struct | ProgramOptions |
Typedefs | |
typedef ::std::map< OString, ::std::vector< OString > > | ProtocolCmdMap |
typedef ::std::vector< unoidl::AccumulationBasedServiceEntity::Property > | AttributeInfo |
Functions | |
void | printLicenseHeader (std::ostream &o) |
print the standard OpenOffice.org license header More... | |
bool | getOutputStream (ProgramOptions const &options, OString const &extension, std::ostream **ppOutputStream, OString &targetSourceFileName, OString &tmpSourceFileName) |
create dependent on the output path, the implementation name and the extension a new output file. More... | |
static bool | containsAttribute (AttributeInfo &attributes, OUString const &attrname) |
static void | checkAttributes (rtl::Reference< TypeManager > const &manager, OUString const &name, AttributeInfo &attributes, std::set< OUString > &propinterfaces) |
void | checkType (rtl::Reference< TypeManager > const &manager, OUString const &name, std::set< OUString > &interfaceTypes, std::set< OUString > &serviceTypes, AttributeInfo &properties) |
void | checkDefaultInterfaces (std::set< OUString > &interfaces, const std::set< OUString > &services, std::u16string_view propertyhelper) |
static bool | checkServiceProperties (rtl::Reference< TypeManager > const &manager, OUString const &name) |
OUString | checkPropertyHelper (ProgramOptions const &options, rtl::Reference< TypeManager > const &manager, const std::set< OUString > &services, const std::set< OUString > &interfaces, AttributeInfo &attributes, std::set< OUString > &propinterfaces) |
static bool | checkXComponentSupport (rtl::Reference< TypeManager > const &manager, OUString const &name) |
bool | checkXComponentSupport (rtl::Reference< TypeManager > const &manager, std::set< OUString > &interfaces) |
checks if XComponent have to be supported, if yes it removes it from the supported interfaces list because it becomes implemented by the appropriate helper More... | |
unoidl::AccumulationBasedServiceEntity::Property::Attributes | checkAdditionalPropertyFlags (unoidl::InterfaceTypeEntity::Attribute const &attribute) |
static bool | checkAddinType (rtl::Reference< TypeManager > const &manager, std::u16string_view type, bool &bLastAny, bool &bHasXPropertySet, bool bIsReturn) |
static void | checkAddInTypes (rtl::Reference< TypeManager > const &manager, std::u16string_view name, rtl::Reference< unoidl::InterfaceTypeEntity > const &entity) |
static void | generateFunctionParameterMap (std::ostream &o, ProgramOptions const &options, rtl::Reference< TypeManager > const &manager, OUString const &name, ::codemaker::GeneratedTypeSet &generated, bool &bFirst) |
void | generateFunctionParameterMap (std::ostream &o, ProgramOptions const &options, rtl::Reference< TypeManager > const &manager, const std::set< OUString > &interfaces) |
typedef ::std::vector< unoidl::AccumulationBasedServiceEntity::Property > skeletonmaker::AttributeInfo |
Definition at line 37 of file skeletoncommon.hxx.
typedef ::std::map< OString, ::std::vector< OString > > skeletonmaker::ProtocolCmdMap |
Definition at line 34 of file skeletoncommon.hxx.
|
static |
Definition at line 392 of file skeletoncommon.cxx.
References codemaker::UnoType::Any, codemaker::UnoType::Double, codemaker::UnoType::Interface, codemaker::UnoType::Long, manager, codemaker::UnoType::String, type, and u.
Referenced by checkAddInTypes().
|
static |
Definition at line 439 of file skeletoncommon.cxx.
References checkAddinType(), manager, and name.
Referenced by generateFunctionParameterMap().
unoidl::AccumulationBasedServiceEntity::Property::Attributes skeletonmaker::checkAdditionalPropertyFlags | ( | unoidl::InterfaceTypeEntity::Attribute const & | attribute | ) |
Definition at line 363 of file skeletoncommon.cxx.
References attribute, unoidl::AccumulationBasedServiceEntity::Property::ATTRIBUTE_CONSTRAINED, and unoidl::AccumulationBasedServiceEntity::Property::ATTRIBUTE_OPTIONAL.
Referenced by skeletonmaker::cpp::printSetPropertyMixinBody().
|
static |
Definition at line 90 of file skeletoncommon.cxx.
References codemaker::UnoType::AccumulationBasedService, unoidl::AccumulationBasedServiceEntity::Property::ATTRIBUTE_BOUND, unoidl::AccumulationBasedServiceEntity::Property::ATTRIBUTE_READ_ONLY, checkAttributes(), containsAttribute(), codemaker::UnoType::Interface, manager, and name.
Referenced by checkAttributes(), and checkPropertyHelper().
void skeletonmaker::checkDefaultInterfaces | ( | std::set< OUString > & | interfaces, |
const std::set< OUString > & | services, | ||
std::u16string_view | propertyhelper | ||
) |
Definition at line 225 of file skeletoncommon.cxx.
References u.
Referenced by skeletonmaker::cpp::generateCalcAddin(), skeletonmaker::cpp::generateSkeleton(), and skeletonmaker::java::generateSkeleton().
OUString skeletonmaker::checkPropertyHelper | ( | ProgramOptions const & | options, |
rtl::Reference< TypeManager > const & | manager, | ||
const std::set< OUString > & | services, | ||
const std::set< OUString > & | interfaces, | ||
AttributeInfo & | attributes, | ||
std::set< OUString > & | propinterfaces | ||
) |
Definition at line 266 of file skeletoncommon.cxx.
References checkAttributes(), checkServiceProperties(), end, manager, codemaker::UnoType::SingleInterfaceBasedService, and skeletonmaker::ProgramOptions::supportpropertysetmixin.
Referenced by skeletonmaker::cpp::generateCalcAddin(), skeletonmaker::cpp::generateSkeleton(), and skeletonmaker::java::generateSkeleton().
|
static |
Definition at line 243 of file skeletoncommon.cxx.
References codemaker::UnoType::AccumulationBasedService, manager, and name.
Referenced by checkPropertyHelper().
void skeletonmaker::checkType | ( | rtl::Reference< TypeManager > const & | manager, |
OUString const & | name, | ||
std::set< OUString > & | interfaceTypes, | ||
std::set< OUString > & | serviceTypes, | ||
AttributeInfo & | properties | ||
) |
Definition at line 159 of file skeletoncommon.cxx.
References codemaker::UnoType::AccumulationBasedService, checkType(), codemaker::UnoType::Interface, manager, name, and codemaker::UnoType::SingleInterfaceBasedService.
Referenced by checkType(), skeletonmaker::cpp::generateCalcAddin(), skeletonmaker::cpp::generateSkeleton(), and skeletonmaker::java::generateSkeleton().
|
static |
Definition at line 320 of file skeletoncommon.cxx.
References codemaker::UnoType::Interface, manager, and name.
Referenced by checkXComponentSupport(), skeletonmaker::cpp::generateCalcAddin(), skeletonmaker::cpp::generateSkeleton(), and skeletonmaker::java::generateSkeleton().
bool skeletonmaker::checkXComponentSupport | ( | rtl::Reference< TypeManager > const & | manager, |
std::set< OUString > & | interfaces | ||
) |
checks if XComponent have to be supported, if yes it removes it from the supported interfaces list because it becomes implemented by the appropriate helper
manager | a type manager |
interfaces | a list of interfaces which should be implemented |
Definition at line 344 of file skeletoncommon.cxx.
References checkXComponentSupport(), and manager.
|
static |
Definition at line 82 of file skeletoncommon.cxx.
Referenced by checkAttributes().
void skeletonmaker::generateFunctionParameterMap | ( | std::ostream & | o, |
ProgramOptions const & | options, | ||
rtl::Reference< TypeManager > const & | manager, | ||
const std::set< OUString > & | interfaces | ||
) |
Definition at line 575 of file skeletoncommon.cxx.
References generateFunctionParameterMap(), and manager.
|
static |
Definition at line 484 of file skeletoncommon.cxx.
References codemaker::GeneratedTypeSet::add(), checkAddInTypes(), codemaker::GeneratedTypeSet::contains(), generateFunctionParameterMap(), codemaker::UnoType::Interface, skeletonmaker::ProgramOptions::language, manager, n, name, and u2b().
Referenced by skeletonmaker::cpp::generateAddinConstructorAndHelper(), skeletonmaker::java::generateAddinConstructorAndHelper(), and generateFunctionParameterMap().
bool skeletonmaker::getOutputStream | ( | ProgramOptions const & | options, |
OString const & | extension, | ||
std::ostream ** | ppOutputStream, | ||
OString & | targetSourceFileName, | ||
OString & | tmpSourceFileName | ||
) |
create dependent on the output path, the implementation name and the extension a new output file.
If output path is equal "stdout" the tool generates the output to standard out.
options | the program options including the output path and the implementation name |
extension | specifies the file extensions (e.g. .cxx or .java) |
ppOutputStream | out parameter returning the output stream |
targetSourceFileName | out parameter returning the generated file name constructed on base of the output path, the implementation name and the extension |
tmpSourceFileName | out parameter returning the temporary file name based on the output path and a generated temporary file name. |
Definition at line 48 of file skeletoncommon.cxx.
References b2u(), FileStream::close(), createFileNameFromType(), FileStream::createTempFile(), FileStream::getName(), getTempDir(), skeletonmaker::ProgramOptions::implname, FileStream::isValid(), and skeletonmaker::ProgramOptions::outputpath.
Referenced by skeletonmaker::cpp::generateCalcAddin(), skeletonmaker::cpp::generateSkeleton(), and skeletonmaker::java::generateSkeleton().
void skeletonmaker::printLicenseHeader | ( | std::ostream & | o | ) |
print the standard OpenOffice.org license header
o | specifies the output stream |
filename | specifies the source file name |
Definition at line 36 of file skeletoncommon.cxx.
Referenced by skeletonmaker::cpp::generateCalcAddin(), skeletonmaker::cpp::generateSkeleton(), and skeletonmaker::java::generateSkeleton().