Type: info
         Title: creation API for SfxViewFrames reworked
     Posted by: frank.schoenh...@sun.com
      Affected: -
         TaskId: i65597
<http://www.openoffice.org/issues/show_bug.cgi?id=65597>
Effective from: CWS autorecovery
           CWS:
<http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=DEV300/autorecovery>
    CWS status: new


*Summary*
--------
in SfxViewFrame:
- SfxViewFrame(
    SfxBindings&, SfxFrame*, SfxObjectShell*, sal_uInt32 );
- SfxViewFrame(
    SfxObjectShell&, SfxBindings&, SfxFrame*, sal_uInt32 );
- SfxViewFrame(
    const SfxViewFrame &, SfxBindings &, SfxFrame *pFrame );
+ static void SetViewFrame( SfxViewFrame* );
- static SfxViewFrame* SearchViewFrame(
    SfxViewFrame*, const String& );
- static void SetViewFrame( SfxViewFrame* );
- static SfxViewFrame* CreateViewFrame(
    SfxObjectShell&, BOOL bHidden );
+ static SfxViewFrame* LoadHiddenDocument(
    SfxObjectShell&, const USHORT i_nViewId );
+ static SfxViewFrame* LoadDocument(
    SfxObjectShell&, const USHORT i_nViewId );
+ static SfxViewFrame* LoadDocumentIntoFrame(
    SfxObjectShell&, const SfxFrameItem*,
    const USHORT i_nViewId );
+ static SfxViewFrame* LoadDocumentIntoFrame(
    SfxObjectShell&, const Reference< XFrame >&,
    const USHORT i_nViewId );
+ static SfxViewFrame* DisplayNewDocument(
    SfxObjectShell&, const SfxRequest&,
    const USHORT i_nViewId = 0 );


*Description*
-------------
In the course of re-factoring the implementation for loading SFX-based
documents, the SfxViewFrame interface for related to creating such
frames has been reworked.

Load(Hidden)Document are for loading a document into a to-be-created
frame. LoadDocumentIntoFrame allows loading a document into an
already-existent UNO frame. DisplayNewdocument finally encapsulates a
pattern found in various places in the application code, where an
SfxRequest for displaying a document, either with our without given
frame, and retrieving the resulting Sfx(View)Frame, was handled.


Send feedback to interface-announce@openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: interface-announce-unsubscr...@openoffice.org
For additional commands, e-mail: interface-announce-h...@openoffice.org

Reply via email to