diff options
author | Tor Lillqvist <tlillqvist@suse.com> | 2012-01-05 17:51:09 +0200 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2012-01-05 17:53:04 +0200 |
commit | c5b502664156db0b252c26054eb1047aec469175 (patch) | |
tree | 937ba2c8d94a81eeb0299e96bf33b8031236d112 /vcl | |
parent | 01d7c6a24b7a8244a3ae5816e39d3358242a35ea (diff) |
Add some more stuff to the Android libvcl
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/Library_vcl.mk | 8 | ||||
-rw-r--r-- | vcl/null/printerinfomanager.cxx | 19 |
2 files changed, 27 insertions, 0 deletions
diff --git a/vcl/Library_vcl.mk b/vcl/Library_vcl.mk index f18c18f2ab47..4b153f0b975f 100644 --- a/vcl/Library_vcl.mk +++ b/vcl/Library_vcl.mk @@ -437,9 +437,17 @@ $(eval $(call gb_Library_add_defs,vcl,\ -D_XSALSET_LIBNAME=\"$(call gb_Library_get_runtime_filename,spa)\" \ )) $(eval $(call gb_Library_add_exception_objects,vcl,\ + vcl/generic/fontmanager/fontcache \ + vcl/generic/fontmanager/fontconfig \ + vcl/generic/fontmanager/fontmanager \ vcl/unx/generic/plugadapt/salplug \ + vcl/unx/generic/printer/ppdparser \ vcl/null/printerinfomanager \ )) +$(eval $(call gb_Library_use_externals,vcl,\ + fontconfig \ + freetype \ +)) endif ifeq ($(GUIBASE),cocoatouch) diff --git a/vcl/null/printerinfomanager.cxx b/vcl/null/printerinfomanager.cxx index 964a19d1e3d5..934f2772f1e8 100644 --- a/vcl/null/printerinfomanager.cxx +++ b/vcl/null/printerinfomanager.cxx @@ -39,6 +39,14 @@ using ::rtl::OString; using ::rtl::OStringToOUString; using ::rtl::OUStringHash; +PrinterInfoManager& PrinterInfoManager::get() +{ + SalData* pSalData = GetSalData(); + if( ! pSalData->m_pPIManager ) + pSalData->m_pPIManager = new PrinterInfoManager(); + return *pSalData->m_pPIManager; +} + void PrinterInfoManager::release() { SalData* pSalData = GetSalData(); @@ -46,4 +54,15 @@ void PrinterInfoManager::release() pSalData->m_pPIManager = NULL; } +PrinterInfoManager::PrinterInfoManager( Type eType ) : + m_pQueueInfo( NULL ), + m_eType( eType ), + m_bUseIncludeFeature( false ), + m_bUseJobPatch( true ), + m_aSystemDefaultPaper( RTL_CONSTASCII_USTRINGPARAM( "A4" ) ), + m_bDisableCUPS( false ) +{ + initSystemDefaultPaper(); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |