We used it all over the place without leading :: already anyway, even in many files in include. So let's be consistent. In the majority of cases, prefer the easier-on-the-eyes choice, not the "safe" one. In those files in include where *all* existing uses of ::vcl:: indeed used the :: prefix, there let's keep it for consistency. Change-Id: If99cb41d3bf290d38c601d91125c3c8d935e61d0
78 lines
2.5 KiB
C++
78 lines
2.5 KiB
C++
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
/*
|
|
* This file is part of the LibreOffice project.
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*
|
|
* This file incorporates work covered by the following license notice:
|
|
*
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
* with this work for additional information regarding copyright
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
* except in compliance with the License. You may obtain a copy of
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
*/
|
|
|
|
#ifndef INCLUDED_SD_SOURCE_UI_INC_DRAWVIEW_HXX
|
|
#define INCLUDED_SD_SOURCE_UI_INC_DRAWVIEW_HXX
|
|
|
|
#include "View.hxx"
|
|
|
|
namespace sd {
|
|
|
|
class DrawDocShell;
|
|
class DrawViewShell;
|
|
|
|
/**
|
|
* Derivative of ::sd::View; contains also a pointer to the document
|
|
*/
|
|
class DrawView : public ::sd::View
|
|
{
|
|
public:
|
|
TYPEINFO_OVERRIDE();
|
|
|
|
DrawView (
|
|
DrawDocShell* pDocSh,
|
|
OutputDevice* pOutDev,
|
|
DrawViewShell* pShell);
|
|
virtual ~DrawView();
|
|
|
|
virtual void MarkListHasChanged() SAL_OVERRIDE;
|
|
void CompleteRedraw(OutputDevice* pOutDev, const vcl::Region& rReg, sdr::contact::ViewObjectContactRedirector* pRedirector = 0L) SAL_OVERRIDE;
|
|
|
|
virtual bool SetAttributes(const SfxItemSet& rSet, bool bReplaceAll = false) SAL_OVERRIDE;
|
|
|
|
virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) SAL_OVERRIDE;
|
|
|
|
void BlockPageOrderChangedHint(bool bBlock);
|
|
|
|
bool SetStyleSheet(SfxStyleSheet* pStyleSheet, bool bDontRemoveHardAttr = false) SAL_OVERRIDE;
|
|
virtual bool IsObjMarkable(SdrObject* pObj, SdrPageView* pPV) const SAL_OVERRIDE;
|
|
|
|
virtual void MakeVisible(const Rectangle& rRect, vcl::Window& rWin) SAL_OVERRIDE;
|
|
virtual void HideSdrPage() SAL_OVERRIDE; // SdrPageView* pPV);
|
|
|
|
void PresPaint(const vcl::Region& rRegion);
|
|
|
|
virtual void DeleteMarked() SAL_OVERRIDE; // from SdrView
|
|
protected:
|
|
virtual void ModelHasChanged() SAL_OVERRIDE;
|
|
|
|
private:
|
|
DrawDocShell* mpDocShell;
|
|
DrawViewShell* mpDrawViewShell;
|
|
VclPtr<VirtualDevice> mpVDev;
|
|
|
|
sal_uInt16 mnPOCHSmph; ///< for blocking PageOrderChangedHint
|
|
};
|
|
|
|
} // end of namespace sd
|
|
|
|
#endif
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|