LCOV - code coverage report
Current view: top level - sfx2/source/appl - newhelp.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 64 0.0 %
Date: 2014-11-03 Functions: 0 46 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : #ifndef INCLUDED_SFX2_SOURCE_APPL_NEWHELP_HXX
      20             : #define INCLUDED_SFX2_SOURCE_APPL_NEWHELP_HXX
      21             : 
      22             : #include <cppuhelper/implbase1.hxx>
      23             : #include <com/sun/star/uno/Reference.h>
      24             : #include <com/sun/star/frame/XDispatchResultListener.hpp>
      25             : #include <com/sun/star/frame/XDispatch.hpp>
      26             : #include <com/sun/star/frame/XFrame2.hpp>
      27             : 
      28             : namespace com { namespace sun { namespace star { namespace awt { class XWindow; } } } }
      29             : namespace com { namespace sun { namespace star { namespace i18n { class XBreakIterator; } } } }
      30             : namespace com { namespace sun { namespace star { namespace text { class XTextRange; } } } }
      31             : 
      32             : #include <vcl/window.hxx>
      33             : #include <vcl/toolbox.hxx>
      34             : #include <vcl/tabpage.hxx>
      35             : #include <vcl/splitwin.hxx>
      36             : #include <vcl/tabctrl.hxx>
      37             : #include <vcl/combobox.hxx>
      38             : #include <vcl/fixed.hxx>
      39             : #include <vcl/button.hxx>
      40             : #include <vcl/lstbox.hxx>
      41             : #include <vcl/dialog.hxx>
      42             : #include <svtools/treelistbox.hxx>
      43             : #include <unotools/moduleoptions.hxx>
      44             : 
      45             : #include "srchdlg.hxx"
      46             : 
      47             : // ContentListBox_Impl ---------------------------------------------------
      48             : 
      49             : class ContentListBox_Impl : public SvTreeListBox
      50             : {
      51             : private:
      52             :     Image           aOpenBookImage;
      53             :     Image           aClosedBookImage;
      54             :     Image           aDocumentImage;
      55             : 
      56             :     void            InitRoot();
      57             :     void            ClearChildren( SvTreeListEntry* pParent );
      58             : 
      59             : public:
      60             :     ContentListBox_Impl(vcl::Window* pParent, WinBits nStyle);
      61             :     virtual ~ContentListBox_Impl();
      62             : 
      63             : 
      64             :     virtual void    RequestingChildren( SvTreeListEntry* pParent ) SAL_OVERRIDE;
      65             :     virtual bool    Notify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
      66             : 
      67           0 :     inline void     SetOpenHdl( const Link& rLink ) { SetDoubleClickHdl( rLink ); }
      68             :     OUString        GetSelectEntry() const;
      69             : };
      70             : 
      71             : // class HelpTabPage_Impl ------------------------------------------------
      72             : 
      73             : class SfxHelpIndexWindow_Impl;
      74             : 
      75           0 : class HelpTabPage_Impl : public TabPage
      76             : {
      77             : protected:
      78             :     SfxHelpIndexWindow_Impl*    m_pIdxWin;
      79             : 
      80             : public:
      81             :     HelpTabPage_Impl(vcl::Window* pParent, SfxHelpIndexWindow_Impl* _pIdxWin,
      82             :         const OString& rID, const OUString& rUIXMLDescription);
      83             : 
      84             :     virtual Control*    GetLastFocusControl() = 0;
      85             : };
      86             : 
      87             : // class ContentTabPage_Impl ---------------------------------------------
      88             : 
      89           0 : class ContentTabPage_Impl : public HelpTabPage_Impl
      90             : {
      91             : private:
      92             :     ContentListBox_Impl* m_pContentBox;
      93             : 
      94             : public:
      95             :     ContentTabPage_Impl(vcl::Window* pParent, SfxHelpIndexWindow_Impl* _pIdxWin);
      96             : 
      97             :     virtual void        ActivatePage() SAL_OVERRIDE;
      98             :     virtual Control*    GetLastFocusControl() SAL_OVERRIDE;
      99             : 
     100           0 :     void     SetOpenHdl( const Link& rLink ) { m_pContentBox->SetOpenHdl( rLink ); }
     101           0 :     OUString GetSelectEntry() const { return m_pContentBox->GetSelectEntry(); }
     102           0 :     void     SetFocusOnBox() { m_pContentBox->GrabFocus(); }
     103             : };
     104             : 
     105             : // class IndexTabPage_Impl -----------------------------------------------
     106             : 
     107           0 : class IndexBox_Impl : public ComboBox
     108             : {
     109             : public:
     110             :     IndexBox_Impl(vcl::Window* pParent, WinBits nStyle);
     111             : 
     112             :     virtual void        UserDraw( const UserDrawEvent& rUDEvt ) SAL_OVERRIDE;
     113             :     virtual bool        Notify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
     114             : 
     115             :     void                SelectExecutableEntry();
     116             : };
     117             : 
     118             : class IndexTabPage_Impl : public HelpTabPage_Impl
     119             : {
     120             : private:
     121             :     IndexBox_Impl*      m_pIndexCB;
     122             :     PushButton*         m_pOpenBtn;
     123             : 
     124             :     Timer               aFactoryTimer;
     125             :     Timer               aKeywordTimer;
     126             :     Link                aKeywordLink;
     127             : 
     128             :     OUString            sFactory;
     129             :     OUString            sKeyword;
     130             : 
     131             :     bool                bIsActivated;
     132             : 
     133             :     void                InitializeIndex();
     134             :     void                ClearIndex();
     135             : 
     136             :     DECL_LINK(OpenHdl, void *);
     137             :     DECL_LINK(          TimeoutHdl, Timer* );
     138             : 
     139             : public:
     140             :     IndexTabPage_Impl( vcl::Window* pParent, SfxHelpIndexWindow_Impl* _pIdxWin );
     141             :     virtual ~IndexTabPage_Impl();
     142             : 
     143             :     virtual void        ActivatePage() SAL_OVERRIDE;
     144             :     virtual Control*    GetLastFocusControl() SAL_OVERRIDE;
     145             : 
     146             :     void                SetDoubleClickHdl( const Link& rLink );
     147             :     void                SetFactory( const OUString& rFactory );
     148           0 :     inline OUString     GetFactory() const { return sFactory; }
     149             :     OUString            GetSelectEntry() const;
     150           0 :     inline void         SetFocusOnBox() { m_pIndexCB->GrabFocus(); }
     151           0 :     inline bool     HasFocusOnEdit() const { return m_pIndexCB->HasChildPathFocus(); }
     152             : 
     153           0 :     inline void         SetKeywordHdl( const Link& rLink ) { aKeywordLink = rLink; }
     154             :     void                SetKeyword( const OUString& rKeyword );
     155             :     bool            HasKeyword() const;
     156             :     bool            HasKeywordIgnoreCase();
     157             :     void                OpenKeyword();
     158             : 
     159           0 :     inline void         SelectExecutableEntry() { m_pIndexCB->SelectExecutableEntry(); }
     160             : };
     161             : 
     162             : // class SearchTabPage_Impl ----------------------------------------------
     163             : 
     164           0 : class SearchBox_Impl : public ComboBox
     165             : {
     166             : private:
     167             :     Link                aSearchLink;
     168             : 
     169             : public:
     170           0 :     SearchBox_Impl(vcl::Window* pParent, WinBits nStyle)
     171           0 :         : ComboBox(pParent, nStyle)
     172             :     {
     173           0 :         SetDropDownLineCount(5);
     174           0 :     }
     175             : 
     176             :     virtual bool        PreNotify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
     177             :     virtual void        Select() SAL_OVERRIDE;
     178             : 
     179           0 :     inline void         SetSearchLink( const Link& rLink ) { aSearchLink = rLink; }
     180             : };
     181             : 
     182           0 : class SearchResultsBox_Impl : public ListBox
     183             : {
     184             : public:
     185           0 :     SearchResultsBox_Impl(vcl::Window* pParent, WinBits nStyle)
     186           0 :         : ListBox(pParent, nStyle)
     187             :     {
     188           0 :     }
     189             : 
     190             :     virtual bool    Notify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
     191             : };
     192             : 
     193             : class SearchTabPage_Impl : public HelpTabPage_Impl
     194             : {
     195             : private:
     196             :     SearchBox_Impl*         m_pSearchED;
     197             :     PushButton*             m_pSearchBtn;
     198             :     CheckBox*               m_pFullWordsCB;
     199             :     CheckBox*               m_pScopeCB;
     200             :     SearchResultsBox_Impl*  m_pResultsLB;
     201             :     PushButton*             m_pOpenBtn;
     202             : 
     203             :     OUString                aFactory;
     204             : 
     205             :     ::com::sun::star::uno::Reference< ::com::sun::star::i18n::XBreakIterator >
     206             :                             xBreakIterator;
     207             : 
     208             :     void                ClearSearchResults();
     209             :     void                RememberSearchText( const OUString& rSearchText );
     210             : 
     211             :     DECL_LINK(SearchHdl, void *);
     212             :     DECL_LINK(OpenHdl, void *);
     213             :     DECL_LINK(ModifyHdl, void *);
     214             : 
     215             : public:
     216             :     SearchTabPage_Impl( vcl::Window* pParent, SfxHelpIndexWindow_Impl* _pIdxWin );
     217             :     virtual ~SearchTabPage_Impl();
     218             : 
     219             :     virtual void        ActivatePage() SAL_OVERRIDE;
     220             :     virtual Control*    GetLastFocusControl() SAL_OVERRIDE;
     221             : 
     222             :     void                SetDoubleClickHdl( const Link& rLink );
     223           0 :     inline void         SetFactory( const OUString& rFactory ) { aFactory = rFactory; }
     224             :     OUString            GetSelectEntry() const;
     225             :     void                ClearPage();
     226           0 :     inline void         SetFocusOnBox() { m_pResultsLB->GrabFocus(); }
     227           0 :     inline bool     HasFocusOnEdit() const { return m_pSearchED->HasChildPathFocus(); }
     228           0 :     inline OUString     GetSearchText() const { return m_pSearchED->GetText(); }
     229           0 :     inline bool     IsFullWordSearch() const { return m_pFullWordsCB->IsChecked(); }
     230             :     bool            OpenKeyword( const OUString& rKeyword );
     231             : };
     232             : 
     233             : // class BookmarksTabPage_Impl -------------------------------------------
     234             : 
     235             : class BookmarksBox_Impl : public ListBox
     236             : {
     237             : private:
     238             :     void                DoAction( sal_uInt16 nAction );
     239             : 
     240             : public:
     241             :     BookmarksBox_Impl(vcl::Window* pParent, WinBits nStyle);
     242             :     virtual ~BookmarksBox_Impl();
     243             : 
     244             :     virtual bool        Notify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
     245             : };
     246             : 
     247           0 : class BookmarksTabPage_Impl : public HelpTabPage_Impl
     248             : {
     249             : private:
     250             :     BookmarksBox_Impl*  m_pBookmarksBox;
     251             :     PushButton*         m_pBookmarksPB;
     252             : 
     253             :     DECL_LINK(OpenHdl, void *);
     254             : 
     255             : public:
     256             :     BookmarksTabPage_Impl( vcl::Window* pParent, SfxHelpIndexWindow_Impl* _pIdxWin );
     257             : 
     258             :     virtual void        ActivatePage() SAL_OVERRIDE;
     259             :     virtual Control*    GetLastFocusControl() SAL_OVERRIDE;
     260             : 
     261             :     void                SetDoubleClickHdl( const Link& rLink );
     262             :     OUString            GetSelectEntry() const;
     263             :     void                AddBookmarks( const OUString& rTitle, const OUString& rURL );
     264           0 :     void                SetFocusOnBox() { m_pBookmarksBox->GrabFocus(); }
     265             : };
     266             : 
     267             : // class SfxHelpIndexWindow_Impl -----------------------------------------
     268             : 
     269             : class SfxHelpWindow_Impl;
     270             : 
     271             : class SfxHelpIndexWindow_Impl : public vcl::Window, public VclBuilderContainer
     272             : {
     273             : private:
     274             :     ListBox*            m_pActiveLB;
     275             :     TabControl*         m_pTabCtrl;
     276             : 
     277             :     Timer               aTimer;
     278             : 
     279             :     Link                aSelectFactoryLink;
     280             :     Link                aPageDoubleClickLink;
     281             :     Link                aIndexKeywordLink;
     282             :     OUString            sKeyword;
     283             : 
     284             :     SfxHelpWindow_Impl*     pParentWin;
     285             : 
     286             :     ContentTabPage_Impl*    pCPage;
     287             :     IndexTabPage_Impl*      pIPage;
     288             :     SearchTabPage_Impl*     pSPage;
     289             :     BookmarksTabPage_Impl*  pBPage;
     290             : 
     291             :     long                nMinWidth;
     292             :     bool                bWasCursorLeftOrRight;
     293             :     bool                bIsInitDone;
     294             : 
     295             :     void                Initialize();
     296             :     void                SetActiveFactory();
     297             :     HelpTabPage_Impl*   GetCurrentPage( sal_uInt16& rCurId );
     298             : 
     299             :     inline ContentTabPage_Impl*     GetContentPage();
     300             :     inline IndexTabPage_Impl*       GetIndexPage();
     301             :     inline SearchTabPage_Impl*      GetSearchPage();
     302             :     inline BookmarksTabPage_Impl*   GetBookmarksPage();
     303             : 
     304             :     DECL_LINK(          ActivatePageHdl, TabControl* );
     305             :     DECL_LINK(SelectHdl, void *);
     306             :     DECL_LINK(InitHdl, void *);
     307             :     DECL_LINK(SelectFactoryHdl, void *);
     308             :     DECL_LINK(KeywordHdl, void *);
     309             : 
     310             : public:
     311             :     SfxHelpIndexWindow_Impl( SfxHelpWindow_Impl* pParent );
     312             :     virtual ~SfxHelpIndexWindow_Impl();
     313             : 
     314             :     virtual void        Resize() SAL_OVERRIDE;
     315             :     virtual Size        GetOptimalSize() const SAL_OVERRIDE;
     316             :     virtual bool        PreNotify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
     317             :     virtual void        DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE;
     318             : 
     319             :     void                SetDoubleClickHdl( const Link& rLink );
     320           0 :     inline void         SetSelectFactoryHdl( const Link& rLink ) { aSelectFactoryLink = rLink; }
     321             :     void                SetFactory( const OUString& rFactory, bool bActive );
     322           0 :     inline OUString     GetFactory() const { return pIPage->GetFactory(); }
     323             :     OUString            GetSelectEntry() const;
     324             :     void                AddBookmarks( const OUString& rTitle, const OUString& rURL );
     325             :     bool                IsValidFactory( const OUString& _rFactory );
     326           0 :     inline OUString     GetActiveFactoryTitle() const { return m_pActiveLB->GetSelectEntry(); }
     327             :     inline void         UpdateTabControl() { m_pTabCtrl->Invalidate(); }
     328             :     void                ClearSearchPage();
     329             :     void                GrabFocusBack();
     330             :     bool            HasFocusOnEdit() const;
     331             :     OUString            GetSearchText() const;
     332             :     bool            IsFullWordSearch() const;
     333             :     void                OpenKeyword( const OUString& rKeyword );
     334             :     void                SelectExecutableEntry();
     335             :     inline bool         WasCursorLeftOrRight();
     336             : };
     337             : 
     338             : // inlines ---------------------------------------------------------------
     339             : 
     340           0 : ContentTabPage_Impl* SfxHelpIndexWindow_Impl::GetContentPage()
     341             : {
     342           0 :     if ( !pCPage )
     343             :     {
     344           0 :         pCPage = new ContentTabPage_Impl( m_pTabCtrl, this );
     345           0 :         pCPage->SetOpenHdl( aPageDoubleClickLink );
     346             :     }
     347           0 :     return pCPage;
     348             : }
     349           0 : IndexTabPage_Impl* SfxHelpIndexWindow_Impl::GetIndexPage()
     350             : {
     351           0 :     if ( !pIPage )
     352             :     {
     353           0 :         pIPage = new IndexTabPage_Impl( m_pTabCtrl, this );
     354           0 :         pIPage->SetDoubleClickHdl( aPageDoubleClickLink );
     355           0 :         pIPage->SetKeywordHdl( aIndexKeywordLink );
     356             :     }
     357           0 :     return pIPage;
     358             : }
     359             : 
     360           0 : SearchTabPage_Impl* SfxHelpIndexWindow_Impl::GetSearchPage()
     361             : {
     362           0 :     if ( !pSPage )
     363             :     {
     364           0 :         pSPage = new SearchTabPage_Impl( m_pTabCtrl, this );
     365           0 :         pSPage->SetDoubleClickHdl( aPageDoubleClickLink );
     366             :     }
     367           0 :     return pSPage;
     368             : }
     369             : 
     370           0 : BookmarksTabPage_Impl* SfxHelpIndexWindow_Impl::GetBookmarksPage()
     371             : {
     372           0 :     if ( !pBPage )
     373             :     {
     374           0 :         pBPage = new BookmarksTabPage_Impl( m_pTabCtrl, this );
     375           0 :         pBPage->SetDoubleClickHdl( aPageDoubleClickLink );
     376             :     }
     377           0 :     return pBPage;
     378             : }
     379             : 
     380           0 : bool SfxHelpIndexWindow_Impl::WasCursorLeftOrRight()
     381             : {
     382           0 :     bool bRet = bWasCursorLeftOrRight;
     383           0 :     bWasCursorLeftOrRight = false;
     384           0 :     return bRet;
     385             : }
     386             : 
     387             : // class TextWin_Impl ----------------------------------------------------
     388             : 
     389             : class TextWin_Impl : public DockingWindow
     390             : {
     391             : public:
     392             :                             TextWin_Impl( vcl::Window* pParent );
     393             :     virtual                 ~TextWin_Impl();
     394             : 
     395             :     virtual bool            Notify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
     396             : };
     397             : 
     398             : // class SfxHelpTextWindow_Impl ------------------------------------------
     399             : 
     400             : class SvtMiscOptions;
     401             : class SfxHelpWindow_Impl;
     402             : 
     403             : class SfxHelpTextWindow_Impl : public vcl::Window
     404             : {
     405             : private:
     406             :     ToolBox                 aToolBox;
     407             :     CheckBox                aOnStartupCB;
     408             :     Timer                   aSelectTimer;
     409             :     Image                   aIndexOnImage;
     410             :     Image                   aIndexOffImage;
     411             :     OUString                aIndexOnText;
     412             :     OUString                aIndexOffText;
     413             :     OUString                aSearchText;
     414             :     OUString                aOnStartupText;
     415             :     OUString                sCurrentFactory;
     416             : 
     417             :     SfxHelpWindow_Impl*     pHelpWin;
     418             :     vcl::Window*                 pTextWin;
     419             :     sfx2::SearchDialog*     pSrchDlg;
     420             :     ::com::sun::star::uno::Reference < ::com::sun::star::frame::XFrame2 >
     421             :                             xFrame;
     422             :     ::com::sun::star::uno::Reference< ::com::sun::star::i18n::XBreakIterator >
     423             :                             xBreakIterator;
     424             :     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
     425             :                             xConfiguration;
     426             :     long                    nMinPos;
     427             :     bool                bIsDebug;
     428             :     bool                bIsIndexOn;
     429             :     bool                bIsInClose;
     430             :     bool                bIsFullWordSearch;
     431             : 
     432             :     bool                HasSelection() const;
     433             :     void                    InitToolBoxImages();
     434             :     void                    InitOnStartupBox( bool bOnlyText );
     435             :     void                    SetOnStartupBoxPosition();
     436             : 
     437             :     ::com::sun::star::uno::Reference< ::com::sun::star::i18n::XBreakIterator >
     438             :                             GetBreakIterator();
     439             :     ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange >
     440             :                             getCursor() const;
     441             :     bool                    isHandledKey( const vcl::KeyCode& _rKeyCode );
     442             : 
     443             :     DECL_LINK(SelectHdl, void *);
     444             :     DECL_LINK(              NotifyHdl, SvtMiscOptions* );
     445             :     DECL_LINK(              FindHdl, sfx2::SearchDialog* );
     446             :     DECL_LINK(              CloseHdl, sfx2::SearchDialog* );
     447             :     DECL_LINK(              CheckHdl, CheckBox* );
     448             : 
     449             : public:
     450             :     SfxHelpTextWindow_Impl( SfxHelpWindow_Impl* pParent );
     451             :     virtual ~SfxHelpTextWindow_Impl();
     452             : 
     453             :     virtual void            Resize() SAL_OVERRIDE;
     454             :     virtual bool            PreNotify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
     455             :     virtual void            GetFocus() SAL_OVERRIDE;
     456             :     virtual void            DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE;
     457             : 
     458             :     inline ::com::sun::star::uno::Reference < ::com::sun::star::frame::XFrame2 >
     459           0 :                             getFrame() const { return xFrame; }
     460             : 
     461           0 :     inline void             SetSelectHdl( const Link& rLink ) { aToolBox.SetSelectHdl( rLink ); }
     462             :     void                    ToggleIndex( bool bOn );
     463             :     void                    SelectSearchText( const OUString& rSearchText, bool _bIsFullWordSearch );
     464             :     void                    SetPageStyleHeaderOff() const;
     465           0 :     inline ToolBox&         GetToolBox() { return aToolBox; }
     466             :      void                   CloseFrame();
     467             :     void                    DoSearch();
     468             : };
     469             : 
     470             : // class SfxHelpWindow_Impl ----------------------------------------------
     471             : 
     472             : class HelpInterceptor_Impl;
     473             : class HelpListener_Impl;
     474             : class SfxHelpWindow_Impl : public SplitWindow
     475             : {
     476             : private:
     477             : friend class SfxHelpIndexWindow_Impl;
     478             : 
     479             :     ::com::sun::star::uno::Reference < ::com::sun::star::awt::XWindow >
     480             :                                 xWindow;
     481             :     ::com::sun::star::uno::Reference < ::com::sun::star::frame::XDispatchResultListener >
     482             :                                 xOpenListener;
     483             :     ::com::sun::star::uno::Reference < ::com::sun::star::frame::XFrame2 >
     484             :                                 xFrame;
     485             : 
     486             :     SfxHelpIndexWindow_Impl*    pIndexWin;
     487             :     SfxHelpTextWindow_Impl*     pTextWin;
     488             :     HelpInterceptor_Impl*       pHelpInterceptor;
     489             :     HelpListener_Impl*          pHelpListener;
     490             : 
     491             :     sal_Int32           nExpandWidth;
     492             :     sal_Int32           nCollapseWidth;
     493             :     sal_Int32           nHeight;
     494             :     long                nIndexSize;
     495             :     long                nTextSize;
     496             :     bool            bIndex;
     497             :     bool            bGrabFocusToToolBox;
     498             :     Point               aWinPos;
     499             :     OUString            sTitle;
     500             : 
     501             :     virtual void        Resize() SAL_OVERRIDE;
     502             :     virtual void        Split() SAL_OVERRIDE;
     503             :     virtual void        GetFocus() SAL_OVERRIDE;
     504             : 
     505             :     void                MakeLayout();
     506             :     void                InitSizes();
     507             :     void                LoadConfig();
     508             :     void                SaveConfig();
     509             :     void                ShowStartPage();
     510             : 
     511             :     DECL_LINK(          SelectHdl, ToolBox* );
     512             :     DECL_LINK(OpenHdl, void *);
     513             :     DECL_LINK(          SelectFactoryHdl, SfxHelpIndexWindow_Impl* );
     514             :     DECL_LINK(          ChangeHdl, HelpListener_Impl* );
     515             : 
     516             : public:
     517             :     SfxHelpWindow_Impl( const ::com::sun::star::uno::Reference < ::com::sun::star::frame::XFrame2 >& rFrame,
     518             :                         vcl::Window* pParent, WinBits nBits );
     519             :     virtual ~SfxHelpWindow_Impl();
     520             : 
     521             :     virtual bool        PreNotify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
     522             : 
     523             :     void                setContainerWindow(
     524             :                             ::com::sun::star::uno::Reference < ::com::sun::star::awt::XWindow > xWin );
     525             :     inline ::com::sun::star::uno::Reference < ::com::sun::star::frame::XFrame2 >
     526           0 :                         getTextFrame() const { return pTextWin->getFrame(); }
     527             :     inline ::com::sun::star::uno::Reference < ::com::sun::star::frame::XDispatchResultListener >
     528             :                         getOpenListener() const { return xOpenListener; }
     529             : 
     530             :     void                SetFactory( const OUString& rFactory );
     531             :     void                SetHelpURL( const OUString& rURL );
     532             :     void                DoAction( sal_uInt16 nActionId );
     533             :     void                CloseWindow();
     534             : 
     535             :     void                UpdateToolbox();
     536           0 :     inline void         OpenKeyword( const OUString& rKeyword ) { pIndexWin->OpenKeyword( rKeyword ); }
     537             :     inline OUString     GetFactory() const { return pIndexWin->GetFactory(); }
     538             : 
     539             :     bool            HasHistoryPredecessor() const;      // forward to interceptor
     540             :     bool            HasHistorySuccessor() const;        // forward to interceptor
     541             : 
     542             :     void                openDone(const OUString& sURL    ,
     543             :                                        bool         bSuccess);
     544             : 
     545             :     static OUString  buildHelpURL(const OUString& sFactory        ,
     546             :                                          const OUString& sContent        ,
     547             :                                          const OUString& sAnchor         ,
     548             :                                                bool         bUseQuestionMark);
     549             : 
     550             :     void                loadHelpContent(const OUString& sHelpURL                ,
     551             :                                               bool         bAddToHistory = true);
     552             : };
     553             : 
     554           0 : class SfxAddHelpBookmarkDialog_Impl : public ModalDialog
     555             : {
     556             : private:
     557             :     Edit* m_pTitleED;
     558             : public:
     559             :     SfxAddHelpBookmarkDialog_Impl( vcl::Window* pParent, bool bRename = true );
     560             : 
     561             :     void SetTitle( const OUString& rTitle );
     562           0 :     OUString GetTitle() const { return m_pTitleED->GetText(); }
     563             : };
     564             : 
     565             : /// Appends ?Language=xy&System=abc to the help URL in rURL
     566             : void AppendConfigToken(OUStringBuffer& rURL, bool bQuestionMark, const OUString &rLang = OUString());
     567             : 
     568             : #endif // INCLUDED_SFX2_SOURCE_APPL_NEWHELP_HXX
     569             : 
     570             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10