summaryrefslogtreecommitdiff
path: root/sw/source/ui/config/prtopt.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/config/prtopt.cxx')
-rw-r--r--sw/source/ui/config/prtopt.cxx14
1 files changed, 5 insertions, 9 deletions
diff --git a/sw/source/ui/config/prtopt.cxx b/sw/source/ui/config/prtopt.cxx
index cc6f0a4368c0..d3ecdc2c4a70 100644
--- a/sw/source/ui/config/prtopt.cxx
+++ b/sw/source/ui/config/prtopt.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -30,7 +31,7 @@
#include <unotools/configmgr.hxx>
#include <prtopt.hxx>
-#include <tools/debug.hxx>
+#include <osl/diagnose.h>
#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/uno/Sequence.hxx>
@@ -42,7 +43,7 @@ using rtl::OUString;
using namespace com::sun::star::uno;
/*--------------------------------------------------------------------
- Beschreibung: Ctor
+ Description: Ctor
--------------------------------------------------------------------*/
Sequence<OUString> SwPrintOptions::GetPropertyNames()
@@ -77,9 +78,7 @@ Sequence<OUString> SwPrintOptions::GetPropertyNames()
}
return aNames;
}
-/* -----------------------------06.09.00 16:44--------------------------------
- ---------------------------------------------------------------------------*/
SwPrintOptions::SwPrintOptions(sal_Bool bWeb) :
ConfigItem(bWeb ? C2U("Office.WriterWeb/Print") : C2U("Office.Writer/Print"),
CONFIG_MODE_DELAYED_UPDATE|CONFIG_MODE_RELEASE_TREE),
@@ -94,7 +93,7 @@ SwPrintOptions::SwPrintOptions(sal_Bool bWeb) :
Sequence<OUString> aNames = GetPropertyNames();
Sequence<Any> aValues = GetProperties(aNames);
const Any* pValues = aValues.getConstArray();
- DBG_ASSERT(aValues.getLength() == aNames.getLength(), "GetProperties failed");
+ OSL_ENSURE(aValues.getLength() == aNames.getLength(), "GetProperties failed");
if(aValues.getLength() == aNames.getLength())
{
for(int nProp = 0; nProp < aNames.getLength(); nProp++)
@@ -138,15 +137,11 @@ SwPrintOptions::SwPrintOptions(sal_Bool bWeb) :
bPrintDraw = bPrintGraphic;
}
-/* -----------------------------06.09.00 16:50--------------------------------
- ---------------------------------------------------------------------------*/
SwPrintOptions::~SwPrintOptions()
{
}
-/* -----------------------------06.09.00 16:43--------------------------------
- ---------------------------------------------------------------------------*/
void SwPrintOptions::Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& ) {}
@@ -195,3 +190,4 @@ void SwPrintOptions::Commit()
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */