summaryrefslogtreecommitdiff
path: root/vcl/unx/generic/printer/printerinfomanager.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/unx/generic/printer/printerinfomanager.cxx')
-rw-r--r--vcl/unx/generic/printer/printerinfomanager.cxx28
1 files changed, 0 insertions, 28 deletions
diff --git a/vcl/unx/generic/printer/printerinfomanager.cxx b/vcl/unx/generic/printer/printerinfomanager.cxx
index a38627f7216f..8c05206206f2 100644
--- a/vcl/unx/generic/printer/printerinfomanager.cxx
+++ b/vcl/unx/generic/printer/printerinfomanager.cxx
@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-
#include <unistd.h>
#include <sys/wait.h>
#include <signal.h>
@@ -53,7 +52,6 @@
using namespace psp;
using namespace osl;
-
namespace psp
{
class SystemQueueInfo : public Thread
@@ -82,8 +80,6 @@ namespace psp
* class PrinterInfoManager
*/
-
-
PrinterInfoManager& PrinterInfoManager::get()
{
SalData* pSalData = GetSalData();
@@ -110,8 +106,6 @@ void PrinterInfoManager::release()
pSalData->m_pPIManager = NULL;
}
-
-
PrinterInfoManager::PrinterInfoManager( Type eType ) :
m_pQueueInfo( NULL ),
m_eType( eType ),
@@ -139,8 +133,6 @@ void PrinterInfoManager::initSystemDefaultPaper()
RTL_TEXTENCODING_UTF8);
}
-
-
bool PrinterInfoManager::checkPrintersChanged( bool bWait )
{
// check if files were created, deleted or modified since initialize()
@@ -189,8 +181,6 @@ bool PrinterInfoManager::checkPrintersChanged( bool bWait )
return bChanged;
}
-
-
void PrinterInfoManager::initialize()
{
m_bUseIncludeFeature = false;
@@ -303,7 +293,6 @@ void PrinterInfoManager::initialize()
continue;
aDirectory.close();
-
FileBase::getFileURLFromSystemPath( aFile.PathToFileName(), aUniPath );
FileStatus aStatus( osl_FileStatus_Mask_ModifyTime );
DirectoryItem aItem;
@@ -550,8 +539,6 @@ void PrinterInfoManager::initialize()
}
}
-
-
void PrinterInfoManager::listPrinters( ::std::list< OUString >& rList ) const
{
::boost::unordered_map< OUString, Printer, OUStringHash >::const_iterator it;
@@ -560,8 +547,6 @@ void PrinterInfoManager::listPrinters( ::std::list< OUString >& rList ) const
rList.push_back( it->first );
}
-
-
const PrinterInfo& PrinterInfoManager::getPrinterInfo( const OUString& rPrinter ) const
{
static PrinterInfo aEmptyInfo;
@@ -572,8 +557,6 @@ const PrinterInfo& PrinterInfoManager::getPrinterInfo( const OUString& rPrinter
return it != m_aPrinters.end() ? it->second.m_aInfo : aEmptyInfo;
}
-
-
void PrinterInfoManager::changePrinterInfo( const OUString& rPrinter, const PrinterInfo& rNewInfo )
{
::boost::unordered_map< OUString, Printer, OUStringHash >::iterator it = m_aPrinters.find( rPrinter );
@@ -588,8 +571,6 @@ void PrinterInfoManager::changePrinterInfo( const OUString& rPrinter, const Prin
}
}
-
-
// need to check writeability / creatability of config files
static bool checkWriteability( const OUString& rUniPath )
{
@@ -737,8 +718,6 @@ bool PrinterInfoManager::writePrinterConfig()
return true;
}
-
-
bool PrinterInfoManager::addPrinter( const OUString& rPrinterName, const OUString& rDriverName )
{
bool bSuccess = false;
@@ -793,8 +772,6 @@ bool PrinterInfoManager::addPrinter( const OUString& rPrinterName, const OUStrin
return bSuccess;
}
-
-
bool PrinterInfoManager::removePrinter( const OUString& rPrinterName, bool bCheckOnly )
{
bool bSuccess = true;
@@ -806,7 +783,6 @@ bool PrinterInfoManager::removePrinter( const OUString& rPrinterName, bool bChec
{
// this printer already exists in a config file
-
// check writeability of config file(s)
if( ! checkWriteability( it->second.m_aFile ) )
bSuccess = false;
@@ -847,8 +823,6 @@ bool PrinterInfoManager::removePrinter( const OUString& rPrinterName, bool bChec
return bSuccess;
}
-
-
bool PrinterInfoManager::setDefaultPrinter( const OUString& rPrinterName )
{
bool bSuccess = false;
@@ -985,8 +959,6 @@ void PrinterInfoManager::setDefaultPaper( PPDContext& rContext ) const
}
}
-
-
SystemQueueInfo::SystemQueueInfo() :
m_bChanged( false )
{