1*c4eee24dSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*c4eee24dSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*c4eee24dSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*c4eee24dSAndrew Rist * distributed with this work for additional information 6*c4eee24dSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*c4eee24dSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*c4eee24dSAndrew Rist * "License"); you may not use this file except in compliance 9*c4eee24dSAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11*c4eee24dSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*c4eee24dSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*c4eee24dSAndrew Rist * software distributed under the License is distributed on an 15*c4eee24dSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*c4eee24dSAndrew Rist * KIND, either express or implied. See the License for the 17*c4eee24dSAndrew Rist * specific language governing permissions and limitations 18*c4eee24dSAndrew Rist * under the License. 19cdf0e10cSrcweir * 20*c4eee24dSAndrew Rist *************************************************************/ 21*c4eee24dSAndrew Rist 22*c4eee24dSAndrew Rist 23cdf0e10cSrcweir #ifndef _SVX_OPTIMPROVE_HXX 24cdf0e10cSrcweir #define _SVX_OPTIMPROVE_HXX 25cdf0e10cSrcweir 26cdf0e10cSrcweir // include --------------------------------------------------------------- 27cdf0e10cSrcweir 28cdf0e10cSrcweir #include <vcl/tabpage.hxx> 29cdf0e10cSrcweir #include <vcl/fixed.hxx> 30cdf0e10cSrcweir #include <vcl/button.hxx> 31cdf0e10cSrcweir #include <svtools/fixedhyper.hxx> 32cdf0e10cSrcweir #include <sfx2/basedlgs.hxx> 33cdf0e10cSrcweir #include <sfx2/tabdlg.hxx> 34cdf0e10cSrcweir 35cdf0e10cSrcweir // class SvxImprovementPage ---------------------------------------------- 36cdf0e10cSrcweir 37cdf0e10cSrcweir class SvxImprovementPage : public TabPage 38cdf0e10cSrcweir { 39cdf0e10cSrcweir private: 40cdf0e10cSrcweir FixedLine m_aImproveFL; 41cdf0e10cSrcweir FixedText m_aInvitationFT; 42cdf0e10cSrcweir RadioButton m_aYesRB; 43cdf0e10cSrcweir RadioButton m_aNoRB; 44cdf0e10cSrcweir FixedLine m_aDataFL; 45cdf0e10cSrcweir FixedText m_aNumberOfReportsFT; 46cdf0e10cSrcweir FixedText m_aNumberOfReportsValueFT; 47cdf0e10cSrcweir FixedText m_aNumberOfActionsFT; 48cdf0e10cSrcweir FixedText m_aNumberOfActionsValueFT; 49cdf0e10cSrcweir PushButton m_aShowDataPB; 50cdf0e10cSrcweir 51cdf0e10cSrcweir String m_sInfo; 52cdf0e10cSrcweir String m_sMoreInfo; 53cdf0e10cSrcweir 54cdf0e10cSrcweir public: 55cdf0e10cSrcweir SvxImprovementPage( Window* pParent ); 56cdf0e10cSrcweir ~SvxImprovementPage(); 57cdf0e10cSrcweir IsYesChecked() const58cdf0e10cSrcweir inline bool IsYesChecked() const { return m_aYesRB.IsChecked() != sal_False; } 59cdf0e10cSrcweir GetPageText() const60cdf0e10cSrcweir inline String GetPageText() const { return GetText(); } GetInvitationText() const61cdf0e10cSrcweir inline String GetInvitationText() const { return m_aInvitationFT.GetText(); } GetYesButtonText() const62cdf0e10cSrcweir inline String GetYesButtonText() const { return m_aYesRB.GetText(); } GetNoButtonText() const63cdf0e10cSrcweir inline String GetNoButtonText() const { return m_aNoRB.GetText(); } GetInfoText() const64cdf0e10cSrcweir inline String GetInfoText() const { return m_sInfo; } GetTitleText() const65cdf0e10cSrcweir inline String GetTitleText() const { return m_aImproveFL.GetText(); } 66cdf0e10cSrcweir }; 67cdf0e10cSrcweir 68cdf0e10cSrcweir class SvxImprovementOptionsPage : public SfxTabPage 69cdf0e10cSrcweir { 70cdf0e10cSrcweir private: 71cdf0e10cSrcweir FixedLine m_aImproveFL; 72cdf0e10cSrcweir FixedText m_aInvitationFT; 73cdf0e10cSrcweir RadioButton m_aYesRB; 74cdf0e10cSrcweir RadioButton m_aNoRB; 75cdf0e10cSrcweir svt::FixedHyperlinkImage m_aInfoFI; 76cdf0e10cSrcweir FixedLine m_aDataFL; 77cdf0e10cSrcweir FixedText m_aNumberOfReportsFT; 78cdf0e10cSrcweir FixedText m_aNumberOfReportsValueFT; 79cdf0e10cSrcweir FixedText m_aNumberOfActionsFT; 80cdf0e10cSrcweir FixedText m_aNumberOfActionsValueFT; 81cdf0e10cSrcweir PushButton m_aShowDataPB; 82cdf0e10cSrcweir 83cdf0e10cSrcweir String m_sInfo; 84cdf0e10cSrcweir String m_sMoreInfo; 85cdf0e10cSrcweir ::rtl::OUString m_sLogPath; 86cdf0e10cSrcweir 87cdf0e10cSrcweir SvxImprovementOptionsPage( Window* pParent, const SfxItemSet& rSet ); 88cdf0e10cSrcweir 89cdf0e10cSrcweir DECL_LINK( HandleHyperlink, svt::FixedHyperlinkImage * ); 90cdf0e10cSrcweir DECL_LINK( HandleShowData, PushButton * ); 91cdf0e10cSrcweir 92cdf0e10cSrcweir public: 93cdf0e10cSrcweir virtual ~SvxImprovementOptionsPage(); 94cdf0e10cSrcweir 95cdf0e10cSrcweir static SfxTabPage* Create( Window* pParent, const SfxItemSet& rSet ); 96cdf0e10cSrcweir 97cdf0e10cSrcweir virtual sal_Bool FillItemSet( SfxItemSet& rSet ); 98cdf0e10cSrcweir virtual void Reset( const SfxItemSet& rSet ); 99cdf0e10cSrcweir }; 100cdf0e10cSrcweir 101cdf0e10cSrcweir class SvxImprovementDialog : public SfxSingleTabDialog 102cdf0e10cSrcweir { 103cdf0e10cSrcweir private: 104cdf0e10cSrcweir SvxImprovementPage* m_pPage; 105cdf0e10cSrcweir 106cdf0e10cSrcweir DECL_LINK( HandleOK, OKButton * ); 107cdf0e10cSrcweir DECL_LINK( HandleHyperlink, svt::FixedHyperlinkImage * ); 108cdf0e10cSrcweir 109cdf0e10cSrcweir public: 110cdf0e10cSrcweir SvxImprovementDialog( Window* pParent, const String& rInfoURL ); 111cdf0e10cSrcweir }; 112cdf0e10cSrcweir 113cdf0e10cSrcweir #endif 114cdf0e10cSrcweir 115