summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@suse.com>2013-04-12 14:38:51 +0200
committerThorsten Behrens <tbehrens@suse.com>2013-04-12 14:38:51 +0200
commitddfae02796f98ff1889f77a232cf459aaa9e2ea4 (patch)
treeace02b29c529a416541c9e14edc0aa55d990cb53
parentRevert "fix fdo#60534 : use DefaultCharMapper::mapChar() to map RTL string un... (diff)
downloadcore-ddfae02796f98ff1889f77a232cf459aaa9e2ea4.tar.gz
core-ddfae02796f98ff1889f77a232cf459aaa9e2ea4.zip
Change fprintf -> SAL_DEBUG
Let's not forget to remove that before merge.
-rw-r--r--sd/source/ui/dlg/GroupSlidesDialog.cxx10
-rw-r--r--sd/source/ui/slidesorter/controller/SlsSlotManager.cxx10
-rw-r--r--sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx16
-rw-r--r--sd/source/ui/slidesorter/view/SlideSorterView.cxx16
4 files changed, 25 insertions, 27 deletions
diff --git a/sd/source/ui/dlg/GroupSlidesDialog.cxx b/sd/source/ui/dlg/GroupSlidesDialog.cxx
index 0771d5a28756..a3969131e962 100644
--- a/sd/source/ui/dlg/GroupSlidesDialog.cxx
+++ b/sd/source/ui/dlg/GroupSlidesDialog.cxx
@@ -79,7 +79,7 @@ SdGroupSlidesDialog::~SdGroupSlidesDialog()
IMPL_LINK_NOARG(SdGroupSlidesDialog, AddHdl)
{
- fprintf(stderr, "Add to group\n");
+ SAL_DEBUG("Add to group");
EndDialog(0);
return 0;
}
@@ -89,14 +89,14 @@ int SdGroupSlidesDialog::endDialog( bool bSuccessSoSave )
if ( bSuccessSoSave )
{
sal_uInt16 nSelected = mpGroupCombo->GetSelectEntryPos();
- fprintf( stderr, "complete: %d\n", (int) nSelected );
+ SAL_DEBUG("complete: " << (int) nSelected );
if ( nSelected < maGroups.size() )
{
- fprintf( stderr, "one selected\n" );
+ SAL_DEBUG("one selected");
}
else
{
- fprintf( stderr, "new group\n" );
+ SAL_DEBUG("new group");
}
}
@@ -120,7 +120,7 @@ IMPL_LINK_NOARG( SdGroupSlidesDialog, GroupSelectHdl )
{
sal_uInt16 nSelected = mpGroupCombo->GetSelectEntryPos();
OSL_ASSERT( nSelected < maGroups.size() );
- fprintf( stderr, "select hdl %d\n", (int) nSelected );
+ SAL_DEBUG("select hdl " << (int) nSelected );
populateEdits( maGroups[ nSelected ] );
return 0;
}
diff --git a/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx b/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx
index a500dee4d748..4d177c61f21c 100644
--- a/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx
@@ -84,6 +84,7 @@
#include <com/sun/star/drawing/XMasterPagesSupplier.hpp>
#include <com/sun/star/drawing/XDrawPages.hpp>
#include <vcl/svapp.hxx>
+#include <sal/log.hxx>
#include <boost/bind.hpp>
@@ -657,7 +658,7 @@ void SlotManager::GetMenuState (SfxItemSet& rSet)
if (rSet.GetItemState(SID_GROUP_SLIDES) == SFX_ITEM_AVAILABLE
|| rSet.GetItemState(SID_UNGROUP_SLIDES) == SFX_ITEM_AVAILABLE)
{
- fprintf(stderr, "Determine if we can show group vs. un-group\n");
+ SAL_DEBUG("Determine if we can show group vs. un-group");
}
PageKind ePageKind = mrSlideSorter.GetModel().GetPageType();
@@ -1272,10 +1273,7 @@ SlideExclusionState GetSlideExclusionState (model::PageEnumeration& rPageSet)
void SlotManager::GroupSlides()
{
- PageKind ePageKind = mrSlideSorter.GetModel().GetPageType();
- View* pDrView = &mrSlideSorter.GetView();
-
- fprintf (stderr, "Execute -group\n");
+ SAL_DEBUG("Execute -group");
model::PageEnumeration aSelectedPages (
model::PageEnumerationProvider::CreateSelectedPagesEnumeration(
@@ -1303,7 +1301,7 @@ void SlotManager::GroupSlides()
void SlotManager::UnGroupSlides()
{
- fprintf (stderr, "Execute un-group\n");
+ SAL_DEBUG("Execute un-group");
}
} } } // end of namespace ::sd::slidesorter::controller
diff --git a/sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx b/sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx
index 4444e5905260..66f75d94ded4 100644
--- a/sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx
+++ b/sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx
@@ -701,7 +701,7 @@ SlideJockeyViewShell::~SlideJockeyViewShell()
{
// FIXME: need to delete this early - it holds references on random widgets.
mpSlideSorter.reset();
- fprintf(stderr, "Delete slide jockey %p\n", this);
+ SAL_DEBUG("Delete slide jockey " << this);
}
::boost::shared_ptr<SlideJockeyViewShell> SlideJockeyViewShell::Create (
@@ -744,9 +744,9 @@ public:
}
virtual void setAllocation(const Size& rAllocation)
{
- fprintf(stderr, "setAllocation %d,%d %dx%d\n",
- (int)GetPosPixel().X(), (int)GetPosPixel().Y(),
- (int)rAllocation.Width(), (int)rAllocation.Height());
+ SAL_DEBUG("setAllocation " << (int)GetPosPixel().X() << "," <<
+ (int)GetPosPixel().Y() << " " << (int)rAllocation.Width()
+ << "x" << (int)rAllocation.Height());
mpSlideSorter->ArrangeGUIElements(GetPosPixel(), rAllocation);
@@ -764,7 +764,7 @@ public:
virtual void Paint( const Rectangle& rRect )
{ // for reasons unknown the background is not painted at all here [!]
// who should do that ?
- fprintf(stderr,"SlideSortercontainer::Paint ...\n");
+ SAL_DEBUG("SlideSortercontainer::Paint ...");
Erase();
VclBin::Paint( rRect );
}
@@ -776,7 +776,7 @@ public:
void SlideJockeyViewShell::Initialize (void)
{
- fprintf( stderr, "Create custom slide jockey layout\n" );
+ SAL_DEBUG("Create custom slide jockey layout");
// FIXME: I need to write a layout enabled GtkPaned replacement
// using a splitter manually is just -too- bad ...
@@ -829,8 +829,8 @@ void SlideJockeyViewShell::ArrangeGUIElements (void)
{
if (IsActive())
{
- fprintf(stderr, "Arrange elements size %d %d\n",
- (int) maViewSize.Width(), (int)maViewSize.Height() );
+ SAL_DEBUG("Arrange elements size " << (int) maViewSize.Width()
+ << " " << (int)maViewSize.Height());
OSL_ASSERT(mpSlideSorter.get()!=NULL);
diff --git a/sd/source/ui/slidesorter/view/SlideSorterView.cxx b/sd/source/ui/slidesorter/view/SlideSorterView.cxx
index fecd7d7f4379..1bbe97bb533a 100644
--- a/sd/source/ui/slidesorter/view/SlideSorterView.cxx
+++ b/sd/source/ui/slidesorter/view/SlideSorterView.cxx
@@ -523,9 +523,9 @@ void SlideSorterView::DeterminePageObjectVisibilities (void)
mbPageObjectVisibilitiesValid = true;
Rectangle aViewArea (pWindow->PixelToLogic(Rectangle(Point(0,0),pWindow->GetSizePixel())));
- fprintf(stderr ,"SlideSorterView::DeterminePageObjectvisi %ld,%ld %ldx%ld\n",
- aViewArea.getX(), aViewArea.getY(),
- aViewArea.getWidth(), aViewArea.getHeight());
+ SAL_DEBUG("SlideSorterView::DeterminePageObjectvisi " <<
+ aViewArea.getX() << "," << aViewArea.getY() << " " <<
+ aViewArea.getWidth() << "," << aViewArea.getHeight());
const Range aRange (mpLayouter->GetRangeOfVisiblePageObjects(aViewArea));
const Range aUnion(
::std::min(maVisiblePageRange.Min(), aRange.Min()),
@@ -760,14 +760,14 @@ void SlideSorterView::Paint (
OutputDevice& rDevice,
const Rectangle& rRepaintArea)
{
- fprintf(stderr ,"SlideSorterView::Paint %ld,%ld %ldx%ld\n",
- rRepaintArea.getX(), rRepaintArea.getY(),
- rRepaintArea.getWidth(), rRepaintArea.getHeight());
+ SAL_DEBUG("SlideSorterView::Paint " <<
+ rRepaintArea.getX() << "," << rRepaintArea.getY() << " "
+ << rRepaintArea.getWidth() << "," << rRepaintArea.getHeight());
if ( ! mpPageObjectPainter)
if ( ! GetPageObjectPainter())
{
- fprintf(stderr, "bail early !\n");
+ SAL_DEBUG("bail early !");
return;
}
@@ -784,7 +784,7 @@ void SlideSorterView::Paint (
// Paint all page objects that are fully or partially inside the
// repaint region.
const Range aRange (mpLayouter->GetRangeOfVisiblePageObjects(rRepaintArea));
- fprintf(stderr, "Visible slides are: %d -> %d\n", (int) aRange.Min(), (int)aRange.Max());
+ SAL_DEBUG("Visible slides are: " << (int) aRange.Min() << " -> " << (int)aRange.Max());
for (sal_Int32 nIndex=aRange.Min(); nIndex<=aRange.Max(); ++nIndex)
{
model::SharedPageDescriptor pDescriptor (mrModel.GetPageDescriptor(nIndex));