OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TLangModule Class Reference

International resource support: [APP]ENG.DLL - default application module. More...

#include <owl/applicat.h>

Public Types

typedef void(*) InitLanguage()

Public Member Functions

 TLangModule (const tstring &prefix, const TApplication &appl)
virtual ~TLangModule ()
 operator TModule * ()
TModule * GetModule ()
void SetLanguage (const TLangId &langId)
TLangId GetLanguage () const

Protected Attributes

tstring Prefix
TModule * Module
TApplication * Application
TLangId LangId

Detailed Description

International resource support: [APP]ENG.DLL - default application module.

Module == TApplication if not found any resource module. Usage:

static TLangModule* langModulePtr = 0;
TLangModule* GetResModule()
{
return langModulePtr;
}
int OwlMain(int,LPCTSTR*)
{
TMyAppl appl;
TLangModule langModule("MRES_",appl); // will be MRES_###.dll
langModulePtr = &langModule;
return appl.Run();
}
International resource support: [APP]ENG.DLL - default application module.
Definition applicat.h:534
TLangModule(const tstring &prefix, const TApplication &appl)
STDAPI_(owl::TDocTemplate **) GetDocTemplateHead(owl STDAPI_(owl::TModule **) GetModulePtr(owl int OwlMain(int argc, TCHAR *argv[])
Main entry point for an Owl application.
Definition module.h:394

Definition at line 534 of file applicat.h.

Member Typedef Documentation

◆ InitLanguage

typedef void(*) owl::TLangModule::InitLanguage()

Definition at line 537 of file applicat.h.

Constructor & Destructor Documentation

◆ TLangModule()

owl::TLangModule::TLangModule ( const tstring & prefix,
const TApplication & appl )

◆ ~TLangModule()

owl::TLangModule::~TLangModule ( )
virtual

Definition at line 2054 of file applicat.cpp.

References Application, and Module.

Member Function Documentation

◆ GetLanguage()

TLangId owl::TLangModule::GetLanguage ( ) const
inline

Definition at line 547 of file applicat.h.

References LangId.

◆ GetModule()

TModule * owl::TLangModule::GetModule ( )
inline

Definition at line 544 of file applicat.h.

References Module.

◆ operator TModule *()

owl::TLangModule::operator TModule * ( )
inline

Definition at line 543 of file applicat.h.

References Module.

◆ SetLanguage()

void owl::TLangModule::SetLanguage ( const TLangId & langId)

Member Data Documentation

◆ Application

TApplication* owl::TLangModule::Application
protected

Definition at line 552 of file applicat.h.

◆ LangId

TLangId owl::TLangModule::LangId
protected

Definition at line 553 of file applicat.h.

◆ Module

TModule* owl::TLangModule::Module
protected

Definition at line 551 of file applicat.h.

◆ Prefix

tstring owl::TLangModule::Prefix
protected

Definition at line 550 of file applicat.h.


The documentation for this class was generated from the following files: