/* -*- 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_SC_SOURCE_UI_INC_TPVIEW_HXX #define INCLUDED_SC_SOURCE_UI_INC_TPVIEW_HXX #include #include #include #include #include #include class ScViewOptions; class ScTpContentOptions : public SfxTabPage { friend class VclPtr; VclPtr pGridLB; VclPtr pColorFT; VclPtr pColorLB; VclPtr pBreakCB; VclPtr pGuideLineCB; VclPtr pFormulaCB; VclPtr pNilCB; VclPtr pAnnotCB; VclPtr pValueCB; VclPtr pAnchorCB; VclPtr pClipMarkCB; VclPtr pRangeFindCB; VclPtr pObjGrfLB; VclPtr pDiagramLB; VclPtr pDrawLB; VclPtr pSyncZoomCB; VclPtr pRowColHeaderCB; VclPtr pHScrollCB; VclPtr pVScrollCB; VclPtr pTblRegCB; VclPtr pOutlineCB; ScViewOptions* pLocalOptions; void InitGridOpt(); DECL_LINK_TYPED( GridHdl, ListBox&, void ); DECL_LINK_TYPED( SelLbObjHdl, ListBox&, void ); DECL_LINK_TYPED( CBHdl, Button*, void ); ScTpContentOptions( vcl::Window* pParent, const SfxItemSet& rArgSet ); virtual ~ScTpContentOptions(); virtual void dispose() override; public: static VclPtr Create ( vcl::Window* pParent, const SfxItemSet* rCoreSet ); virtual bool FillItemSet ( SfxItemSet* rCoreSet ) override; virtual void Reset ( const SfxItemSet* rCoreSet ) override; using SfxTabPage::ActivatePage; using SfxTabPage::DeactivatePage; virtual void ActivatePage( const SfxItemSet& ) override; virtual sfxpg DeactivatePage( SfxItemSet* pSet = 0 ) override; }; class ScDocument; class ScTpLayoutOptions : public SfxTabPage { friend class VclPtrInstance; VclPtr m_pUnitLB; VclPtr m_pTabMF; VclPtr m_pAlwaysRB; VclPtr m_pRequestRB; VclPtr m_pNeverRB; VclPtr m_pAlignCB; VclPtr m_pAlignLB; VclPtr m_pEditModeCB; VclPtr m_pFormatCB; VclPtr m_pExpRefCB; VclPtr m_pSortRefUpdateCB; VclPtr m_pMarkHdrCB; VclPtr m_pTextFmtCB; VclPtr m_pReplWarnCB; VclPtr m_pLegacyCellSelectionCB; SvxStringArray aUnitArr; DECL_LINK_TYPED(MetricHdl, ListBox&, void ); DECL_LINK_TYPED( AlignHdl, Button*, void ); ScDocument *pDoc; ScTpLayoutOptions( vcl::Window* pParent, const SfxItemSet& rArgSet ); public: virtual ~ScTpLayoutOptions(); virtual void dispose() override; static VclPtr Create ( vcl::Window* pParent, const SfxItemSet* rCoreSet ); virtual bool FillItemSet ( SfxItemSet* rCoreSet ) override; virtual void Reset ( const SfxItemSet* rCoreSet ) override; using SfxTabPage::ActivatePage; using SfxTabPage::DeactivatePage; virtual void ActivatePage( const SfxItemSet& ) override; virtual sfxpg DeactivatePage( SfxItemSet* pSet = 0 ) override; void SetDocument(ScDocument* pPtr){pDoc = pPtr;} }; #endif // INCLUDED_SC_SOURCE_UI_INC_TPVIEW_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */