summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2005-03-07 16:32:46 +0000
committerVladimir Glazounov <vg@openoffice.org>2005-03-07 16:32:46 +0000
commit6eb1d135a6be0f1c98a1aaa39f240cee35dd6390 (patch)
treefd8b1b6a6d63297d7ac658df76ebcba5cd141de7 /svx
parentfa75ba0d6c0e955969755dddda741b33e238e5a1 (diff)
INTEGRATION: CWS aw028 (1.12.178); FILE MERGED
2005/02/17 21:30:44 aw 1.12.178.1: #i42714#
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sdr/contact/viewcontactofsdrpage.cxx104
1 files changed, 60 insertions, 44 deletions
diff --git a/svx/source/sdr/contact/viewcontactofsdrpage.cxx b/svx/source/sdr/contact/viewcontactofsdrpage.cxx
index 9e801662777b..1febb7e4b7b5 100644
--- a/svx/source/sdr/contact/viewcontactofsdrpage.cxx
+++ b/svx/source/sdr/contact/viewcontactofsdrpage.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: viewcontactofsdrpage.cxx,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: rt $ $Date: 2004-12-13 08:55:16 $
+ * last change: $Author: vg $ $Date: 2005-03-07 17:32:46 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -422,74 +422,90 @@ namespace sdr
// #i37869#
void ViewContactOfSdrPage::DrawPaperBorder(DisplayInfo& rDisplayInfo, const SdrPage& rPage)
{
- OutputDevice* pOut = rDisplayInfo.GetOutputDevice();
+ // #i42714#
+ if(!rDisplayInfo.OutputToPrinter())
+ {
+ OutputDevice* pOut = rDisplayInfo.GetOutputDevice();
- pOut->SetLineColor(Color(rDisplayInfo.GetColorConfig().GetColorValue(svtools::FONTCOLOR).nColor));
- pOut->SetFillColor();
- pOut->DrawRect(Rectangle(
- 0L, 0L,
- rPage.GetWdt(), rPage.GetHgt()));
+ pOut->SetLineColor(Color(rDisplayInfo.GetColorConfig().GetColorValue(svtools::FONTCOLOR).nColor));
+ pOut->SetFillColor();
+ pOut->DrawRect(Rectangle(
+ 0L, 0L,
+ rPage.GetWdt(), rPage.GetHgt()));
+ }
}
// #i37869#
void ViewContactOfSdrPage::DrawBorder(DisplayInfo& rDisplayInfo, const SdrPage& rPage)
{
- if(rPage.GetLftBorder() || rPage.GetUppBorder() || rPage.GetRgtBorder() || rPage.GetLwrBorder())
+ // #i42714#
+ if(!rDisplayInfo.OutputToPrinter())
{
- OutputDevice* pOut = rDisplayInfo.GetOutputDevice();
- Color aBorderColor;
-
- if(Application::GetSettings().GetStyleSettings().GetHighContrastMode())
- {
- aBorderColor = rDisplayInfo.GetColorConfig().GetColorValue(svtools::FONTCOLOR).nColor;
- }
- else
+ if(rPage.GetLftBorder() || rPage.GetUppBorder() || rPage.GetRgtBorder() || rPage.GetLwrBorder())
{
- aBorderColor = rDisplayInfo.GetColorConfig().GetColorValue(svtools::DOCBOUNDARIES).nColor;
- }
+ OutputDevice* pOut = rDisplayInfo.GetOutputDevice();
+ Color aBorderColor;
- pOut->SetLineColor(aBorderColor);
- pOut->SetFillColor();
+ if(Application::GetSettings().GetStyleSettings().GetHighContrastMode())
+ {
+ aBorderColor = rDisplayInfo.GetColorConfig().GetColorValue(svtools::FONTCOLOR).nColor;
+ }
+ else
+ {
+ aBorderColor = rDisplayInfo.GetColorConfig().GetColorValue(svtools::DOCBOUNDARIES).nColor;
+ }
- Rectangle aRect(Rectangle(
- 0L, 0L,
- rPage.GetWdt(), rPage.GetHgt()));
+ pOut->SetLineColor(aBorderColor);
+ pOut->SetFillColor();
+
+ Rectangle aRect(Rectangle(
+ 0L, 0L,
+ rPage.GetWdt(), rPage.GetHgt()));
- aRect.Left() += rPage.GetLftBorder();
- aRect.Top() += rPage.GetUppBorder();
- aRect.Right() -= rPage.GetRgtBorder();
- aRect.Bottom() -= rPage.GetLwrBorder();
+ aRect.Left() += rPage.GetLftBorder();
+ aRect.Top() += rPage.GetUppBorder();
+ aRect.Right() -= rPage.GetRgtBorder();
+ aRect.Bottom() -= rPage.GetLwrBorder();
- pOut->DrawRect(aRect);
+ pOut->DrawRect(aRect);
+ }
}
}
void ViewContactOfSdrPage::DrawHelplines(DisplayInfo& rDisplayInfo)
{
- const SdrPageView* pPageView = rDisplayInfo.GetPageView();
-
- if(pPageView)
+ // #i42714#
+ if(!rDisplayInfo.OutputToPrinter())
{
- const SdrHelpLineList& rHelpLineList = pPageView->GetHelpLines();
- OutputDevice* pOut = rDisplayInfo.GetOutputDevice();
+ const SdrPageView* pPageView = rDisplayInfo.GetPageView();
+
+ if(pPageView)
+ {
+ const SdrHelpLineList& rHelpLineList = pPageView->GetHelpLines();
+ OutputDevice* pOut = rDisplayInfo.GetOutputDevice();
- rHelpLineList.DrawAll(*pOut, Point());
+ rHelpLineList.DrawAll(*pOut, Point());
+ }
}
}
void ViewContactOfSdrPage::DrawGrid(DisplayInfo& rDisplayInfo)
{
- const SdrPageView* pPageView = rDisplayInfo.GetPageView();
-
- if(pPageView)
+ // #i42714#
+ if(!rDisplayInfo.OutputToPrinter())
{
- const SdrView& rView = pPageView->GetView();
- OutputDevice* pOut = rDisplayInfo.GetOutputDevice();
+ const SdrPageView* pPageView = rDisplayInfo.GetPageView();
+
+ if(pPageView)
+ {
+ const SdrView& rView = pPageView->GetView();
+ OutputDevice* pOut = rDisplayInfo.GetOutputDevice();
- ((SdrPageView*)pPageView)->DrawGrid(
- *pOut,
- rDisplayInfo.GetPaintInfoRec()->aCheckRect,
- rView.GetGridColor());
+ ((SdrPageView*)pPageView)->DrawGrid(
+ *pOut,
+ rDisplayInfo.GetPaintInfoRec()->aCheckRect,
+ rView.GetGridColor());
+ }
}
}