objmisc.cxx (8699c4ff) objmisc.cxx (69bbba3a)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 982 unchanged lines hidden (view full) ---

991 if ( !HasName() || !pMed )
992 {
993 // schon Titel gesetzt?
994 if ( pImp->aTitle.Len() )
995 return X(pImp->aTitle);
996
997 // muß es durchnumeriert werden?
998 String aNoName( SfxResId( STR_NONAME ) );
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 982 unchanged lines hidden (view full) ---

991 if ( !HasName() || !pMed )
992 {
993 // schon Titel gesetzt?
994 if ( pImp->aTitle.Len() )
995 return X(pImp->aTitle);
996
997 // muß es durchnumeriert werden?
998 String aNoName( SfxResId( STR_NONAME ) );
999 if ( pImp->bIsNamedVisible )
999 if ( pImp->bIsNamedVisible ) {
1000 // Leerzeichen und Nummer hinten anhängen
1001 aNoName += C2S(" ");
1002 aNoName += String::CreateFromInt32( pImp->nVisualDocumentNumber );
1000 // Leerzeichen und Nummer hinten anhängen
1001 aNoName += C2S(" ");
1002 aNoName += String::CreateFromInt32( pImp->nVisualDocumentNumber );
1003 }
1003
1004 // Dokument heißt vorerst 'Unbenannt #'
1005 return X(aNoName);
1006 }
1007
1008 const INetURLObject aURL( IsDocShared() ? GetSharedFileURL() : ::rtl::OUString( GetMedium()->GetName() ) );
1009 if ( nMaxLength > SFX_TITLE_CAPTION && nMaxLength <= SFX_TITLE_HISTORY )
1010 {

--- 1398 unchanged lines hidden ---
1004
1005 // Dokument heißt vorerst 'Unbenannt #'
1006 return X(aNoName);
1007 }
1008
1009 const INetURLObject aURL( IsDocShared() ? GetSharedFileURL() : ::rtl::OUString( GetMedium()->GetName() ) );
1010 if ( nMaxLength > SFX_TITLE_CAPTION && nMaxLength <= SFX_TITLE_HISTORY )
1011 {

--- 1398 unchanged lines hidden ---