コード例 #1
0
logical pc0_ImportProtokoll :: ImportXMLActions ( )
{
  logical   term = NO;
BEGINSEQ
  if ( !IsPositioned() )                            ERROR
  if ( CheckStatus(IMPORT_erfolgreich_beendet) )    ERROR
  
  term = ImportXMLActions((TP_ImportGlobals *)NULL);
RECOVER
  term = YES;
ENDSEQ
  return(term);
}
コード例 #2
0
nsresult FilteredContentIterator::InitWithRange() {
  MOZ_ASSERT(mRange);
  MOZ_ASSERT(mRange->IsPositioned());

  mIsOutOfRange = false;
  mDirection = eForward;
  mCurrentIterator = &mPreIterator;

  nsresult rv = mPreIterator.Init(mRange);
  if (NS_WARN_IF(NS_FAILED(rv))) {
    return rv;
  }
  return mPostIterator.Init(mRange);
}
コード例 #3
0
PropertyHandle *pc_TopicFromOldStyle :: Check (PropertyHandle *prophdl )
{
  PropertyHandle   *srce_resource_ref = prophdl->GPH("resource_ref");
  PropertyHandle   *srce_description  = srce_resource_ref->GPH("description");
  logical           term              = NO;
BEGINSEQ
  if ( !IsPositioned() )                             ERROR
  
  if ( !srce_resource_ref->Get(FIRST_INSTANCE) ||
       !srce_description->Get(FIRST_INSTANCE)     )  ERROR
       

RECOVER
  srce_description = NULL;
ENDSEQ
  return(srce_description);
}
コード例 #4
0
logical pc_ODC_FunctImp :: ExistDescription (char *names )
{
  PropertyHandle  *parent  = GetParentProperty();
  logical          cond    = YES;
BEGINSEQ
  if ( !IsPositioned() )                            ERROR
  if ( !parent )                                    ERROR
  if ( !parent->IsA("ODC_PFunction") )              ERROR  

  PropertyHandle   impl_descr_copy(*parent->GPH("implementation_descr"));
  PropertyHandle phnames(names);
  if ( !impl_descr_copy.Get(phnames) )
                                                    ERROR

RECOVER
  cond = NO;
ENDSEQ
  return(cond);
}
コード例 #5
0
ファイル: ToolBar.cpp プロジェクト: jengelh/audacity
//
// Show or hide the toolbar
//
bool ToolBar::Expose( bool show )
{
   bool was = mVisible;

   SetVisible( show );

   if( IsDocked() )
   {
      Show( show );
   }
   else
   {
      wxWindow * pParent = GetParent();
      if( !IsPositioned() && show ){
         SetPositioned();
         pParent->CentreOnParent();
         pParent->Move( pParent->GetPosition() + wxSize( mType*10, mType*10 ));
      }
      pParent->Show( show );
   }

   return was;
}